﻿/* Trang /truc-tiep — card kiểu 90phut */

.page-live-streams .layout-sidebar {
    display: none;
}

.page-live-streams .layout-grid {
    grid-template-columns: 1fr;
}

.page-live-streams .layout-main {
    max-width: 100%;
}

.page-live-streams .site-wrap {
    max-width: 1280px;
}

.live-streams-page {
    --ls-bg: #0b1118;
    --ls-card: #141e2b;
    --ls-card-border: #1f2d40;
    --ls-green: #00e676;
    --ls-green-dim: rgba(0, 230, 118, 0.15);
    --ls-text: #e8edf3;
    --ls-muted: #8b9cb3;
    --ls-blue: #5dade2;
    background: var(--ls-bg);
    color: var(--ls-text);
    border-radius: 8px;
    padding: 14px 12px 18px;
    margin: 0 -2px;
}

.ls-hero {
    margin-bottom: 14px;
}

.ls-hero-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
}

.ls-hero-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--ls-muted);
}

.ls-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ls-card-border);
}

.ls-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.ls-filter {
    appearance: none;
    border: 1px solid var(--ls-card-border);
    background: var(--ls-card);
    color: var(--ls-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.ls-filter em {
    font-style: normal;
    opacity: 0.85;
    margin-left: 4px;
}

.ls-filter:hover {
    border-color: #2a4058;
    color: #fff;
}

.ls-filter.is-active {
    border-color: var(--ls-green);
    background: var(--ls-green-dim);
    color: var(--ls-green);
}

.ls-league-pick {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ls-league-pick-label {
    font-size: 11px;
    color: var(--ls-muted);
    white-space: nowrap;
}

.ls-league-pick select {
    background: var(--ls-card);
    border: 1px solid var(--ls-card-border);
    color: var(--ls-text);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 160px;
}

.ls-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ls-card {
    background: linear-gradient(180deg, #172433 0%, var(--ls-card) 100%);
    border: 1px solid var(--ls-card-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 148px;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.ls-card.is-upcoming {
    opacity: 0.92;
    border-color: var(--ls-card-border);
    box-shadow: none;
}

.ls-card.is-live-now {
    border-color: rgba(0, 230, 118, 0.55);
    box-shadow:
        0 0 0 1px rgba(0, 230, 118, 0.22),
        0 10px 28px rgba(0, 230, 118, 0.12);
    background: linear-gradient(180deg, #1a3428 0%, #13241c 55%, #141e2b 100%);
    opacity: 1;
}

.ls-card.is-live-now .ls-card-score {
    border-color: rgba(0, 230, 118, 0.55);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
}

.ls-card:hover {
    border-color: #2f4a66;
}

.ls-card.is-live-now:hover {
    border-color: rgba(0, 230, 118, 0.7);
}

.ls-card-link {
    display: block;
    color: inherit;
    flex: 1;
}

.ls-card-link:hover {
    color: inherit;
}

.ls-card-head {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 6px;
    font-size: 11px;
}

.ls-card-league {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--ls-muted);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ls-card-league span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-card-league-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.ls-card-status {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ls-card-status.is-live {
    background: rgba(0, 230, 118, 0.18);
    color: var(--ls-green);
    border: 1px solid rgba(0, 230, 118, 0.35);
}

.ls-card-status.is-soon {
    background: rgba(93, 173, 226, 0.12);
    color: var(--ls-blue);
    border: 1px solid rgba(93, 173, 226, 0.25);
}

.ls-card-status.is-done {
    background: rgba(149, 165, 166, 0.12);
    color: #bdc3c7;
}

.ls-card-time {
    text-align: right;
    line-height: 1.25;
    color: var(--ls-blue);
    font-weight: 700;
    font-size: 11px;
}

.ls-card-time span {
    display: block;
}

.ls-card-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 10px;
}

.ls-card-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ls-card-team--home {
    justify-content: flex-end;
}

.ls-card-team--away {
    justify-content: flex-start;
}

.ls-card-team-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-card-team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.ls-card-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 72px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 230, 118, 0.35);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 0 0 1px rgba(0, 230, 118, 0.08);
}

.ls-card-goals {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.ls-card-sep {
    color: var(--ls-muted);
    font-weight: 700;
}

.ls-card-vs {
    font-size: 13px;
    font-weight: 800;
    color: var(--ls-muted);
    letter-spacing: 0.08em;
}

.ls-card-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
}

.ls-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.ls-stat {
    font-size: 10px;
    font-weight: 700;
    color: var(--ls-muted);
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
}

.ls-stat--yellow::before {
    content: '▮';
    color: #f1c40f;
    margin-right: 3px;
}

.ls-stat--audio {
    color: #2ecc71;
}

.ls-stat--anim {
    color: #3498db;
}

.ls-blv {
    position: relative;
    flex-shrink: 0;
}

.ls-blv-btn {
    appearance: none;
    border: 1px solid rgba(0, 230, 118, 0.35);
    background: rgba(0, 230, 118, 0.1);
    color: var(--ls-green);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.ls-blv-btn--link {
    text-decoration: none;
}

.ls-blv-btn--link:hover {
    color: var(--ls-green);
    background: rgba(0, 230, 118, 0.18);
}

.ls-blv-icon {
    font-size: 12px;
    line-height: 1;
}

.ls-blv-caret {
    font-size: 10px;
    opacity: 0.8;
}

.ls-blv-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    min-width: 140px;
    background: #1b2838;
    border: 1px solid #2f4a66;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 20;
    overflow: hidden;
}

.ls-blv-menu a {
    display: block;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ls-blv-menu a:last-child {
    border-bottom: none;
}

.ls-blv-menu a:hover {
    background: rgba(0, 230, 118, 0.12);
    color: var(--ls-green);
}

.ls-card-watch {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    color: var(--ls-muted);
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.ls-card-watch:hover {
    color: #fff;
    border-color: #2f4a66;
}

.ls-card-odds {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 6px 10px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.22);
}

.ls-odds-block {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #d5deea;
    font-variant-numeric: tabular-nums;
}

.ls-odds-label {
    color: var(--ls-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 2px;
}

.ls-odds-val {
    min-width: 28px;
    text-align: center;
    color: #fff;
}

.ls-odds-line {
    min-width: 28px;
    text-align: center;
    color: var(--ls-green);
    font-weight: 800;
}

.ls-odds-block--x12 .ls-odds-val {
    color: var(--ls-blue);
}

.ls-empty {
    text-align: center;
    padding: 36px 16px;
    color: var(--ls-muted);
    font-size: 14px;
}

.ls-more-wrap {
    display: flex;
    justify-content: center;
    padding: 18px 0 6px;
}

.ls-more-btn {
    appearance: none;
    border: 1px solid rgba(0, 230, 118, 0.4);
    background: rgba(0, 230, 118, 0.12);
    color: var(--ls-green);
    font-size: 13px;
    font-weight: 800;
    padding: 10px 28px;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s, border-color 0.15s;
}

.ls-more-btn:hover:not(:disabled) {
    background: rgba(0, 230, 118, 0.22);
    border-color: var(--ls-green);
}

.ls-more-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 900px) {
    .ls-grid {
        grid-template-columns: 1fr;
    }

    .ls-card-team-name {
        font-size: 12px;
    }

    .ls-card-team-logo {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 520px) {
    .ls-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ls-league-pick {
        width: 100%;
    }

    .ls-league-pick select {
        flex: 1;
        width: 100%;
    }

    .ls-card-head {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            'league time'
            'status status';
    }

    .ls-card-league { grid-area: league; }
    .ls-card-time { grid-area: time; }
    .ls-card-status { grid-area: status; justify-self: start; margin-top: 4px; }
}

/* Test /test-truc-tiep */
.tls-player {
    margin-bottom: 16px;
    background: #0e1620;
    border: 1px solid var(--ls-card-border);
    border-radius: 8px;
    overflow: hidden;
}

.tls-player .blv-tabs[hidden] {
    display: none !important;
}

.tls-player .blv-waiting {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: #0e1620;
}

.tls-player .blv-waiting[hidden] {
    display: none !important;
}

.tls-now-playing {
    margin: 0;
    padding: 8px 12px 12px;
    font-size: 12px;
    color: var(--ls-muted);
}

.ls-card[data-tls-card] {
    cursor: pointer;
}

.ls-card[data-tls-card] .ls-card-link {
    cursor: pointer;
}

.ls-card.is-playing {
    outline: 2px solid var(--ls-green);
}

.tls-play-hint {
    font-size: 11px;
    font-weight: 700;
    color: var(--ls-green);
}

/* Danh sách trận từ feed (live-demo + probe) */
.lf-section {
    margin-bottom: 22px;
}

.lf-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 4px 0 12px;
}

.lf-section-title em {
    font-style: normal;
    font-size: 12px;
    color: var(--ls-green);
    margin-left: 4px;
}

.lf-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ls-card-border);
}

.lf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.lf-item[hidden],
.lf-section .ls-more-wrap[hidden],
.lf-section .ls-empty[hidden] {
    display: none !important;
}

.lf-grid .ls-card {
    min-height: 0;
}

.lf-grid .ls-card-team-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.25;
}

.lf-grid .ls-card-team--home .ls-card-team-name {
    text-align: right;
}

.lf-grid .ls-card-score {
    min-width: 60px;
    padding: 6px 10px;
}

.ls-stat--srv {
    color: var(--ls-green);
    background: var(--ls-green-dim);
}

.ls-blv-btn--link.is-disabled {
    opacity: 0.5;
    border-color: var(--ls-card-border);
    background: transparent;
    color: var(--ls-muted);
}

.lf-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
}

.lf-team img,
.lf-team-ph {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.lf-team-ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1f2d40;
    font-weight: 800;
    color: var(--ls-muted);
}

.lf-team-name {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.lf-score {
    font-size: 18px;
    font-weight: 800;
    color: var(--ls-green);
    white-space: nowrap;
}

.lf-badge {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--ls-blue);
}

.lf-badge--live {
    color: #fff;
    background: #e53935;
    padding: 1px 6px;
    border-radius: 4px;
    animation: lf-blink 1.4s infinite;
}

@keyframes lf-blink {
    50% { opacity: 0.55; }
}

@media (max-width: 1100px) and (min-width: 901px) {
    .lf-grid .ls-card-team-logo {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 900px) {
    .lf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    /* 2 cột hẹp: logo trên, tên dưới */
    .lf-grid .ls-card-head {
        grid-template-columns: 1fr auto;
        padding: 8px 8px 4px;
    }

    .lf-grid .ls-card-time {
        display: none;
    }

    .lf-grid .ls-card-body {
        gap: 4px;
        padding: 4px 6px 8px;
    }

    .lf-grid .ls-card-team {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .lf-grid .ls-card-team--home {
        flex-direction: column-reverse;
    }

    .lf-grid .ls-card-team--home .ls-card-team-name {
        text-align: center;
    }

    .lf-grid .ls-card-team-name {
        font-size: 11px;
    }

    .lf-grid .ls-card-team-logo {
        width: 28px;
        height: 28px;
    }

    .lf-grid .ls-card-score {
        min-width: 0;
        padding: 4px 8px;
    }

    .lf-grid .ls-card-goals {
        font-size: 15px;
    }

    .lf-grid .ls-card-foot {
        padding: 6px 8px 8px;
    }

    .lf-grid .ls-blv-btn {
        padding: 4px 8px;
    }
}

/* Trang chi tiết /truc-tiep/{doi-1-vs-doi-2}/ */
.lf-detail-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.lf-detail-head .lf-team img,
.lf-detail-head .lf-team-ph {
    width: 56px;
    height: 56px;
}

.lf-detail-head .lf-team-name {
    font-size: 15px;
}

.lf-detail-meta {
    text-align: center;
    font-size: 12px;
    color: var(--ls-muted);
}

.lf-detail-meta .lf-score {
    display: block;
    font-size: 26px;
}

.lf-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.lf-player video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.lf-player-msg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--ls-muted);
    font-size: 14px;
    background: rgba(0, 0, 0, 0.6);
}

.lf-player-msg[hidden] {
    display: none;
}

.lf-servers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}

.lf-server-btn.is-dead {
    opacity: 0.45;
    text-decoration: line-through;
}

.lf-server-btn.is-active {
    border-color: var(--ls-green);
    color: var(--ls-green);
    background: var(--ls-green-dim);
}
