/* ============================================
   FLASHSCORE-STYLE FIXTURES & RESULTS
   League card, tabs, date headers, stacked match rows
   ============================================ */

.fl-league {
    background: #fff;
    border: 1px solid var(--light-gray, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* --- League header --- */
.fl-league-head {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    background: #fff;
    border-bottom: 1px solid var(--light-gray, #e5e7eb);
}

.fl-league-badge {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    background: var(--dark, #071f36);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 21px;
    overflow: hidden;
}

.fl-league-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.fl-league-info h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0 0 3px;
    color: var(--dark, #17202a);
}

.fl-league-info p {
    color: var(--gray, #7c8793);
    font-size: 12px;
    margin: 0;
}

/* --- Tabs --- */
.fl-tabs {
    display: flex;
    background: #fafbfc;
    border-bottom: 1px solid var(--light-gray, #e5e7eb);
    padding-left: 12px;
    overflow-x: auto;
}

.fl-tab {
    border: 0;
    background: transparent;
    padding: 13px 18px;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray, #7b858e);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.fl-tab.active {
    color: #07894a;
}

.fl-tab.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 3px;
    background: #08a85a;
}

.fl-tab:hover {
    color: var(--dark, #17202a);
}

/* --- In-page tab bar --- */
.fl-tabs-top {
    padding-left: 12px;
    padding-right: 12px;
    border: 1px solid var(--light-gray, #e5e7eb);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: #fafbfc;
    margin-bottom: 14px;
}

.tab-panel {
    display: none;
}

.tab-panel.tab-panel-active {
    display: block;
}

/* --- Teams grid --- */
.fs-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.fs-team-tile {
    background: #fff;
    border: 1px solid var(--light-gray, #e5e7eb);
    border-radius: 8px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: box-shadow 0.15s ease;
}

.fs-team-tile:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.fs-team-tile img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--light-gray, #e5e7eb);
}

.fs-tile-shield {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--light-gray, #e5e7eb);
    display: grid;
    place-items: center;
    color: var(--gray, #7b858e);
    font-size: 24px;
}

.fs-team-tile-name {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--dark, #17202a);
}

/* --- Live strip --- */
.fl-live-strip {
    background: #fff7f7;
    border-left: 3px solid #e5484d;
    padding: 8px 15px;
    font-size: 10px;
    font-weight: 800;
    color: #e5484d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* --- Date header --- */
.fl-date-header {
    height: 43px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #eef0f2;
    border-bottom: 1px solid #dfe2e5;
    font-size: 12px;
    font-weight: 700;
    color: #4f5963;
}

.fl-date-header .fl-date {
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* --- Group / knockout section header --- */
.fl-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    margin-top: 14px;
    padding: 0 16px;
    background: linear-gradient(90deg, #008080 0%, #006c6c 100%);
    border-radius: 5px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.fl-group-header i {
    font-size: 14px;
}

.fl-live-strip + .fl-group-header,
.fl-date-header + .fl-group-header {
    margin-top: 12px;
}

.fl-group-header + .fl-match {
    border-top: 1px solid #dfe2e5;
}

.fl-date-header .fl-day {
    margin-left: auto;
    color: #929aa2;
    font-weight: 600;
    text-transform: none;
}

/* --- Match row --- */
.fl-match {
    min-height: 66px;
    display: grid;
    grid-template-columns: 82px 1fr 70px 88px;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #edf0f2;
    padding: 6px 14px;
    transition: background 0.15s ease;
}

.fl-match:hover {
    background: #f8faf9;
}

.fl-match.fixture-highlight {
    animation: flFixtureHighlight 2s ease;
}

@keyframes flFixtureHighlight {
    0%, 100% { box-shadow: inset 0 0 0 4px var(--primary-teal, #14b8a6); }
    50% { box-shadow: inset 0 0 0 6px var(--primary-teal, #14b8a6); }
}

.fl-match:last-child {
    border-bottom: 0;
}

.fl-time {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #5e6974;
    letter-spacing: 0.4px;
}

.fl-time.fl-live-time {
    color: #e5484d;
    font-weight: 700;
}

.fl-teams {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.fl-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    color: var(--dark, #17202a);
}

.fl-team.fl-winner {
    font-weight: 700;
}

.fl-crest {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #102c48;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    overflow: hidden;
}

.fl-crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 1px;
    border-radius: 50%;
}

.fl-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fl-scores {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark, #17202a);
}

.fl-score.fl-won {
    font-weight: 800;
    color: #111820;
}

.fl-score.fl-lost {
    color: #8c949c;
}

.fl-score.fl-dash {
    color: #9aa1a8;
}

.fl-status {
    justify-self: end;
    min-width: 64px;
    text-align: center;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.fl-status.fl-finished {
    background: #eef0f2;
    color: #68727d;
}

.fl-status.fl-live {
    color: #fff;
    background: #e5484d;
}

.fl-status.fl-upcoming {
    background: #eaf6ef;
    color: #07894a;
}

/* --- Empty state --- */
.fl-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
}

.fl-empty i {
    font-size: 48px;
    color: var(--light-gray, #d1d5db);
    margin-bottom: 16px;
}

.fl-empty h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--dark, #1a1a2e);
    margin-bottom: 8px;
}

.fl-empty p {
    color: var(--gray, #6b7280);
    font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 850px) {
    .fl-match {
        grid-template-columns: 62px 1fr 46px;
        padding: 0 9px;
    }

    .fl-status {
        display: none;
    }

    .fl-time {
        font-size: 11px;
    }

    .fl-team {
        font-size: 12px;
    }

    .fl-crest {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .fl-league-head {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .fl-match {
        min-height: 62px;
    }

    .fl-tab {
        padding-left: 14px;
        padding-right: 14px;
    }

    .fl-date-header {
        padding: 0 12px;
    }
}