/**
 * Opposition This Season record sheet
 * Colour tokens: #071B36 / #0B2342 / #F5B800 / #F4F6F8 / #FFFFFF / #E4E7EC
 */

.btfc-opp-season-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7280;
}

.btfc-opp-season-year {
    margin: 0.7rem 0 0;
    font-family: var(--font-heading, 'Bebas Neue', sans-serif);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F5B800;
}

.btfc-opp-season-az {
    margin: 0.85rem 0 0;
    font-size: 0.85rem;
}

.btfc-opp-season-az a {
    color: #071B36;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btfc-opp-season-az a:hover {
    color: #F5B800;
}

.btfc-opp-season-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    background: #ffffff;
    border: 1px solid #E4E7EC;
    padding: 1rem 1.1rem 0.9rem;
    margin: 0 0 1rem;
}

.btfc-opp-season-form {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: min(100%, 16rem);
}

.btfc-opp-season-form label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.btfc-opp-season-form select {
    min-height: 2.5rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #E4E7EC;
    border-radius: 2px;
    background: #F4F6F8;
    color: #071B36;
    font-size: 0.9rem;
}

.btfc-opp-season-form select:focus {
    outline: 2px solid #F5B800;
    outline-offset: 1px;
    background: #ffffff;
}

.btfc-opp-season-count {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.btfc-opp-season-head,
.btfc-opp-season-row {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) repeat(6, 3.25rem) 5.5rem;
    gap: 0.4rem;
    align-items: center;
}

.btfc-opp-season-head {
    padding: 0 0.75rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    border-bottom: 1px solid #E4E7EC;
}

.btfc-opp-season-head span:not(.btfc-opp-season-col-club):not(.btfc-opp-season-col-action) {
    text-align: center;
}

.btfc-opp-season-row {
    background: #ffffff;
    border: 1px solid #E4E7EC;
    border-top: none;
    padding: 0.7rem 0.75rem;
}

.btfc-opp-season-list > .btfc-opp-season-row:first-of-type {
    border-top: 1px solid #E4E7EC;
}

.btfc-opp-season-club {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.btfc-opp-season-crest {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #F4F6F8;
    border: 1px solid #E4E7EC;
    font-size: 0.7rem;
    font-weight: 800;
    color: #071B36;
}

.btfc-opp-season-crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.btfc-opp-season-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #071B36;
    text-decoration: none;
    line-height: 1.25;
}

a.btfc-opp-season-name:hover {
    color: #F5B800;
}

.btfc-opp-season-stats {
    display: contents;
}

.btfc-opp-season-stats > span {
    text-align: center;
}

.btfc-opp-season-stat-label {
    display: none;
}

.btfc-opp-season-stats strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: #071B36;
}

.btfc-opp-season-action {
    text-align: right;
}

.btfc-opp-season-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    padding: 0 0.7rem;
    background: #071B36;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.btfc-opp-season-action a:hover {
    background: #0B2342;
    color: #F5B800;
}

.btfc-opp-season-empty {
    background: #ffffff;
    border: 1px solid #E4E7EC;
    padding: 2rem 1.25rem;
    text-align: center;
}

.btfc-opp-season-empty h2 {
    margin: 0 0 0.4rem;
    color: #071B36;
    font-size: 1.25rem;
}

.btfc-opp-season-empty p {
    margin: 0;
    color: #6b7280;
}

@media (max-width: 800px) {
    .btfc-opp-season-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .btfc-opp-season-form,
    .btfc-opp-season-form select {
        width: 100%;
        max-width: none;
    }

    .btfc-opp-season-head {
        display: none;
    }

    .btfc-opp-season-row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        padding: 0.9rem 0.85rem 1rem;
        border-top: 1px solid #E4E7EC;
        margin-bottom: 0.55rem;
    }

    .btfc-opp-season-list > .btfc-opp-season-row:first-of-type {
        border-top: 1px solid #E4E7EC;
    }

    .btfc-opp-season-stats {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.25rem;
        width: 100%;
    }

    .btfc-opp-season-stat-label {
        display: block;
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #F5B800;
        margin-bottom: 0.1rem;
    }

    .btfc-opp-season-action,
    .btfc-opp-season-action a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .btfc-opp-season-crest {
        width: 2.75rem;
        height: 2.75rem;
        flex-basis: 2.75rem;
    }
}
