/* ==========================================================================
   FAGLeague — Match Detail Page (extends league-detail.css)
   ========================================================================== */

/* ── Scoreboard (under league hero + subnav) ─────────────────────────────── */

.fl-v2-match .match-scoreboard {
    margin-bottom: 16px;
}

.fl-v2-match .match-score-panel {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius, 16px);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
    padding: 20px 24px 24px;
}

.fl-v2-match .match-score-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.fl-v2-match .match-status {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 5px 10px;
    border-radius: 99px;
}

.fl-v2-match .match-status-ft {
    background: #ECFDF5;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.fl-v2-match .match-status-live {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.fl-v2-match .match-status-ns {
    background: var(--gray-50);
    color: var(--gray-600);
    border: 1px solid var(--gray-100);
}

.fl-v2-match .match-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 99px;
    background: var(--gray-50);
    color: var(--gray-600);
    border: 1px solid var(--gray-100);
}

.fl-v2-match .match-score-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
}

.fl-v2-match .match-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy);
    min-width: 0;
    transition: opacity .15s ease;
}

.fl-v2-match .match-side:hover {
    opacity: .82;
}

.fl-v2-match .match-logo-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-100);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
}

.fl-v2-match .match-team-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fl-v2-match .match-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fl-v2-match .match-team-logo:not(:has(img)) .team-logo-fallback,
.fl-v2-match .match-team-logo.fallback .team-logo-fallback {
    display: flex;
    font-size: 20px;
}

.fl-v2-match .match-team-logo:not(:has(img)) img,
.fl-v2-match .match-team-logo.fallback img {
    display: none;
}

.fl-v2-match .match-team-name {
    font-size: clamp(15px, 2.4vw, 18px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
    text-align: center;
    color: var(--navy);
}

.fl-v2-match .match-score-core {
    text-align: center;
    flex-shrink: 0;
    min-width: 140px;
}

.fl-v2-match .match-ft-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.fl-v2-match .match-score-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: clamp(40px, 8vw, 56px);
    font-weight: 800;
    letter-spacing: -.05em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--navy);
}

.fl-v2-match .match-score-sep {
    opacity: .35;
    font-weight: 600;
    font-size: .55em;
}

.fl-v2-match .match-score-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
}

.fl-v2-match .match-venue::before {
    content: 'Sân · ';
    opacity: .7;
}

.fl-v2-match .match-score-vs {
    font-size: clamp(28px, 6vw, 40px);
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--gray-300);
    margin-bottom: 12px;
}

.fl-v2-match .match-pen {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 2px auto 10px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 1px solid #FDBA74;
    box-shadow: 0 1px 2px rgba(234, 88, 12, .08);
}

.fl-v2-match .match-pen-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #EA580C;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
}

.fl-v2-match .match-pen-score {
    font-size: 16px;
    font-weight: 800;
    color: #C2410C;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    line-height: 1;
}

.fl-v2-match .match-sets {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.fl-v2-match .match-set {
    min-width: 36px;
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    text-align: center;
}

.fl-v2-match .match-set span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.25;
}

.fl-v2-match .match-set small {
    font-size: 9px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
}

.fl-v2-match .match-inner-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.fl-v2-match .match-inner-tabs a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-600);
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    text-decoration: none;
}

.fl-v2-match .match-inner-tabs a:hover {
    color: var(--navy);
    border-color: var(--gray-200);
}

.fl-v2-match .match-inner-tabs a.active {
    color: var(--red);
    background: #FEF2F2;
    border-color: #FECACA;
}


/* ── Layout ──────────────────────────────────────────────────────────────── */

.match-layout .main-col {
    min-width: 0;
}

.panel-flush .panel-head {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.panel-desc {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    margin: 4px 0 0;
}


/* ── Scorer strip (unused) ─────────────────────────────────────────────────── */


/* ── Timeline ────────────────────────────────────────────────────────────── */

.tl-teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 24px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.tl-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tl-team-away {
    justify-content: flex-end;
    text-align: right;
}

.tl-team-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--gray-100);
    flex-shrink: 0;
    position: relative;
}

.tl-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tl-team-logo:not(:has(img)) .team-logo-fallback,
.tl-team-logo.fallback .team-logo-fallback {
    display: flex;
    font-size: 9px;
}

.tl-team-logo:not(:has(img)) img,
.tl-team-logo.fallback img {
    display: none;
}

.tl-team-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
}

.tl-team-goals {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    white-space: nowrap;
}

.tl {
    position: relative;
    padding: 20px 16px 28px;
}

.tl::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: var(--gray-100);
}

.tl-row {
    display: grid;
    grid-template-columns: 1fr 52px 1fr;
    align-items: center;
    margin-bottom: 6px;
}

.tl-row:last-child {
    margin-bottom: 0;
}

.tl-side-home {
    grid-column: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 10px;
}

.tl-node {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 1;
}

.tl-min {
    font-size: 11px;
    font-weight: 800;
    color: var(--gray-500);
    background: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.tl-min-dup {
    visibility: hidden;
    height: 14px;
    padding: 0;
}

.tl-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--green);
    box-shadow: 0 0 0 3px var(--white);
}

.tl-dot-yc {
    border-color: #EAB308;
    background: #FEF9C3;
}

.tl-dot-rc {
    border-color: #EF4444;
    background: #FEE2E2;
}

.tl-dot-sub {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.tl-side {
    min-width: 0;
}

.tl-side-away {
    grid-column: 3;
    display: flex;
    justify-content: flex-start;
    padding-left: 10px;
}

.tl-card {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    width: fit-content;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--gray-100);
    background: var(--white);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
    transition: box-shadow .15s ease, transform .15s ease;
}

.tl-card-yc,
.tl-card-rc,
.tl-card-y2r,
.tl-card-sub {
    background: var(--white);
    border-color: var(--gray-100);
}

.tl-card-sub {
    padding-top: 8px;
    padding-bottom: 8px;
}

.tl-badge {
    flex-shrink: 0;
}

.tl-badge-goal {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--navy);
    position: relative;
}

.tl-badge-goal::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    border: 1px solid var(--navy);
}

.tl-badge-yc {
    display: block;
    width: 10px;
    height: 14px;
    border-radius: 2px;
    background: #FACC15;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.tl-badge-rc {
    display: block;
    width: 10px;
    height: 14px;
    border-radius: 2px;
    background: #EF4444;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.tl-badge-y2r {
    display: flex;
    gap: 1px;
}

.tl-badge-y2r::before,
.tl-badge-y2r::after {
    content: '';
    width: 10px;
    height: 14px;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.tl-badge-y2r::before {
    background: #FACC15;
}

.tl-badge-y2r::after {
    background: #EF4444;
}

.tl-badge-sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.tl-badge-sub span:first-child {
    color: #15803D;
}

.tl-badge-sub span:last-child {
    color: var(--red);
}

.tl-card:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

.tl-home .tl-card {
    flex-direction: row-reverse;
}

.tl-home .tl-card:not(.tl-card-yc):not(.tl-card-rc):not(.tl-card-y2r):not(.tl-card-sub) {
    border-color: #BFDBFE;
    background: linear-gradient(135deg, #F0F7FF 0%, #fff 100%);
}

.tl-away .tl-card:not(.tl-card-yc):not(.tl-card-rc):not(.tl-card-y2r):not(.tl-card-sub) {
    border-color: #FECACA;
    background: linear-gradient(135deg, #FFF5F5 0%, #fff 100%);
}

.tl-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .06);
    flex-shrink: 0;
    position: relative;
}

.tl-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tl-logo:not(:has(img)) .team-logo-fallback,
.tl-logo.fallback .team-logo-fallback {
    display: flex;
    font-size: 8px;
}

.tl-logo:not(:has(img)) img,
.tl-logo.fallback img {
    display: none;
}

.tl-body {
    min-width: 0;
}

.tl-home .tl-body {
    text-align: right;
}

.tl-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
}

.tl-note {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--gray-400);
    margin-top: 2px;
    line-height: 1.3;
}

.tl-kind {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 1px;
}

.tl-kind-pill {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-500);
    background: var(--gray-50);
    padding: 4px 8px;
    border-radius: 99px;
    white-space: nowrap;
}

.tl-sub-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
}

.tl-sub-out {
    margin-top: 2px;
    font-weight: 600;
    color: var(--gray-500);
}

.tl-sub-ico {
    font-size: 11px;
    font-weight: 800;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.tl-sub-ico.up {
    color: #15803D;
}

.tl-sub-ico.down {
    color: var(--red);
}

.tl-home .tl-sub-line {
    flex-direction: row-reverse;
}

.tl-home .tl-sub-out {
    flex-direction: row-reverse;
}

.tl-score {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    min-width: 32px;
    text-align: center;
}

.tl-unofficial .tl-card {
    opacity: .55;
    border-style: dashed;
}

.tl-unofficial .tl-score {
    color: var(--gray-400);
}


/* ── Lineup ──────────────────────────────────────────────────────────────── */

.lineup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 20px 8px;
}

.lineup-side {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.lineup-side-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.lineup-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--gray-100);
    flex-shrink: 0;
    position: relative;
}

.lineup-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lineup-logo:not(:has(img)) .team-logo-fallback,
.lineup-logo.fallback .team-logo-fallback {
    display: flex;
    font-size: 10px;
}

.lineup-logo:not(:has(img)) img,
.lineup-logo.fallback img {
    display: none;
}

.lineup-side-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
}

.lineup-side-head span {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
}

.lineup-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.lineup-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    border-bottom: 1px solid var(--gray-50);
}

.lineup-list li:last-child {
    border-bottom: none;
}

.lineup-no {
    width: 24px;
    font-size: 12px;
    font-weight: 800;
    color: var(--gray-400);
    text-align: center;
    flex-shrink: 0;
}

.lineup-note {
    padding: 0 20px 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    font-style: italic;
}


/* ── Video placeholder ───────────────────────────────────────────────────── */

.video-placeholder {
    padding: 0 20px 20px;
}

.video-placeholder-inner {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, var(--navy-soft), var(--navy));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, .85);
    text-align: center;
    padding: 24px;
}

.video-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    border: 2px solid rgba(255, 255, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
}

.video-placeholder-inner p {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.video-placeholder-inner span {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .5);
}


/* ── Sidebar ─────────────────────────────────────────────────────────────── */

.match-info-list {
    padding: 4px 20px 16px;
}

.mi-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-50);
    font-size: 13px;
}

.mi-item:last-child {
    border-bottom: none;
}

.mi-item > span:first-child {
    color: var(--gray-500);
    font-weight: 600;
    flex-shrink: 0;
}

.mi-item strong,
.mi-item .link {
    text-align: right;
    font-weight: 700;
    color: var(--navy);
}

.mi-item .link {
    color: var(--red);
}

.rel-list {
    padding: 8px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rel-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, background .15s ease;
}

.rel-row:hover {
    border-color: var(--gray-200);
    background: var(--gray-50);
}

.rel-date {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
}

.rel-match {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.rel-score {
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.match-team-links {
    padding-bottom: 4px;
}

.mtl-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid var(--gray-50);
    transition: background .15s ease;
}

.mtl-row:last-child {
    border-bottom: none;
}

.mtl-row:hover {
    background: var(--gray-50);
}

.mtl-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--gray-100);
    flex-shrink: 0;
    position: relative;
}

.mtl-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mtl-logo:not(:has(img)) .team-logo-fallback,
.mtl-logo.fallback .team-logo-fallback {
    display: flex;
    font-size: 9px;
}

.mtl-logo:not(:has(img)) img,
.mtl-logo.fallback img {
    display: none;
}


/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .fl-v2-match .match-score-panel {
        padding: 14px 14px 16px;
        border-radius: 16px;
    }

    .fl-v2-match .match-score-badges {
        margin-bottom: 14px;
        gap: 6px;
    }

    .fl-v2-match .match-score-row {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        max-width: none;
    }

    .fl-v2-match .match-side {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .fl-v2-match .match-logo-ring {
        width: 56px;
        height: 56px;
        padding: 5px;
        box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
    }

    .fl-v2-match .match-team-name {
        font-size: 13px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
        width: 100%;
    }

    .fl-v2-match .match-score-core {
        order: 0;
        min-width: 88px;
        padding-top: 2px;
    }

    .fl-v2-match .match-ft-label {
        margin-bottom: 4px;
    }

    .fl-v2-match .match-score-main {
        font-size: 34px;
        gap: 6px;
        margin-bottom: 8px;
    }

    .fl-v2-match .match-score-meta {
        font-size: 11px;
        gap: 2px;
    }

    .fl-v2-match .match-score-vs {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .fl-v2-match .match-inner-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        margin: 0 -4px 14px;
        padding: 0 4px 2px;
    }

    .fl-v2-match .match-inner-tabs::-webkit-scrollbar {
        display: none;
    }

    .fl-v2-match .match-inner-tabs a {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 999px;
    }

    .lineup-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .fl-v2-match .match-scoreboard {
        margin-bottom: 12px;
    }

    .fl-v2-match .match-score-panel {
        padding: 12px;
    }

    .fl-v2-match .match-logo-ring {
        width: 48px;
        height: 48px;
    }

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

    .fl-v2-match .match-score-main {
        font-size: 30px;
    }

    .panel-flush .panel-head {
        padding: 14px 14px 12px;
    }

    .panel-flush .panel-head h2 {
        font-size: 15px;
    }

    .panel-desc {
        font-size: 12px;
    }

    .tl-teams {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        gap: 8px;
        padding: 12px 14px;
        background: var(--gray-50);
        border-bottom: 1px solid var(--gray-100);
    }

    .tl-team {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-align: center;
        padding: 10px 8px;
        border-radius: 12px;
        background: #fff;
        border: 1px solid var(--gray-200);
    }

    .tl-team-away {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .tl-team-away .tl-team-goals {
        order: 3;
    }

    .tl-team-away .tl-team-name {
        order: 2;
    }

    .tl-team-away .tl-team-logo {
        order: 1;
    }

    .tl-team-goals {
        font-size: 11px;
        font-weight: 800;
        color: var(--navy);
        background: var(--gray-50);
        border: 1px solid var(--gray-200);
        border-radius: 999px;
        padding: 2px 8px;
    }

    .tl-team-name {
        font-size: 11px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
    }

    .tl-team-logo {
        width: 28px;
        height: 28px;
    }

    .tl {
        padding: 12px 10px 18px;
    }

    .tl::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .tl-row {
        grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
        gap: 0;
        margin-bottom: 10px;
        align-items: center;
    }

    .tl-side-home {
        grid-column: 1;
        padding-right: 4px;
        justify-content: flex-end;
    }

    .tl-node {
        grid-column: 2;
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }

    .tl-side-away {
        grid-column: 3;
        padding-left: 4px;
        justify-content: flex-start;
    }

    .tl-min {
        font-size: 9px;
        padding: 1px 3px;
        line-height: 1.1;
    }

    .tl-dot {
        width: 8px;
        height: 8px;
        box-shadow: 0 0 0 2px var(--white);
    }

    .tl-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 7px 8px;
        border-radius: 9px;
        gap: 5px;
        align-items: center;
    }

    .tl-home .tl-card {
        flex-direction: row-reverse;
    }

    .tl-away .tl-card {
        flex-direction: row;
    }

    .tl-home .tl-body {
        text-align: right;
    }

    .tl-away .tl-body {
        text-align: left;
    }

    .tl-logo {
        display: none;
    }

    .tl-body {
        flex: 1;
        min-width: 0;
    }

    .tl-name {
        font-size: 11px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tl-kind,
    .tl-note {
        font-size: 9px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tl-sub-line {
        font-size: 10px;
        gap: 3px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tl-score {
        font-size: 11px;
        min-width: auto;
        flex-shrink: 0;
    }

    .tl-badge-goal {
        width: 10px;
        height: 10px;
    }

    .tl-badge-yc,
    .tl-badge-rc {
        width: 7px;
        height: 10px;
    }

    .tl-kind-pill {
        display: none;
    }

    .video-embed {
        padding: 0 14px 16px;
    }
}

.video-embed {
    padding: 0 20px 20px;
}

.video-embed-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #0F172A;
}

.video-embed-frame iframe,
.video-embed-frame .fb-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lineup-photo {
    padding: 12px 16px 16px;
}

.lineup-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    background: var(--gray-50);
}

.lineup-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 600;
}

.tl-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--gray-500);
}

.tl-empty p {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 600;
}
