/* ============================================
   STREAM EAST — v6
   ============================================ */
   
:root {
    --red:        #000;
    --line-color: #c10e0e;
    --red-dark:   #a00d24;
    --bg:         #0a0a0a;
    --surface:    #141414;
    --border:     #2a2a2a;
    --text:       #ffffff;
    --muted:      #a5a7aa;
    --dim:        #a5a7aa;
    --accent:     #ff3333;
    --live:       #e10000;
    --upcoming:   #ffaa00;
    --discord:    #5865f2;
    --radius:     10px;
    --radius-sm:  6px;
    --max-w:      1500px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Oxanium', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    font-weight: 900;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── HEADER ─────────────────────────────── */
.site-header {
    background: var(--red);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.header-container {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 66px;
}
.logo { display: flex; align-items: center; font-size: 1.7rem; font-weight: 900; flex-shrink: 0; }
.logo-stream { color: #fff; font-weight: 700; }
.logo-east { background: #fff; color: var(--red); padding: 2px 8px; margin-left: 5px; border-radius: var(--radius-sm); font-weight: 900; }

.main-nav {
    display: flex; align-items: center; gap: 2px;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
    flex: 1; justify-content: flex-end; margin: 0 2px;
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-link {
    color: rgba(255,255,255,.9); font-size: .92rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .5px;
    padding: 8px 12px; border-radius: var(--radius-sm); white-space: nowrap;
    min-width: max-content;
    transition: all .2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.15); }
.nav-link.active { color: #fff; background: rgba(0,0,0,.25); }
.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; padding: 3px; line-height: 1; }

/* ─── MAIN ───────────────────────────────── */
.main-content { padding: 24px 0 40px; min-height: calc(100vh - 56px - 60px); max-width: 1300px; margin-left: auto; margin-right: auto; }


/* ─── CATEGORY SECTION ───────────────────── */
.category-section { margin-bottom: 40px; }
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.section-title { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cat-icon { font-size: 1.3rem; }
.cat-count { color: var(--muted); font-weight: 500; font-size: .9rem; }
.view-all { color: var(--accent); font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-sm); background: rgba(255,51,51,.1); }
.view-all:hover { background: rgba(255,51,51,.2); color: #ff5555; }

/* ================================================
   STREAM GRID & CARDS - v4 Final
   ================================================ */

.stream-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f1f3f4;
    border: 10px solid #f1f3f4;
    border-radius: 12px;
    overflow: hidden;
}

.stream-card {
    border: none;
    border-bottom: none;
    border-radius: 8px;
    background: #fff;
    transition: background .12s;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.stream-card:last-child { border-bottom: none; }
.stream-card:hover { background: #111; transform: none !important; box-shadow: none !important; }
.stream-card.live:hover { background: #111; box-shadow: none !important; }
.stream-card.pregame:hover { background: #111; box-shadow: none !important; transform: none !important; }
.stream-card:hover .card-title { color: #fff; }
.stream-card:hover .card-cat { color: #fff; }

.card-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 0;
    min-height: 56px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
.card-link:hover { color: inherit; }

.card-img { display: none !important; }
.no-poster { display: none !important; }
.badge-live, .badge-upcoming, .badge-tag { display: none !important; }

.card-body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    min-width: 0;
}

.card-cat {
    color: #cc2222;
    font-weight: 900;
    font-size: .99rem;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: .01em;
    line-height: 1;
}

.card-pipe {
    color: #cc2222;
    margin: 0 12px;
    flex-shrink: 0;
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 900;
}

.card-title {
    flex: 1;
    font-size: .99rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 0;
    display: block;
    margin-bottom: 0;
    line-height: 1.2;
}

.card-meta {
    margin-left: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.card-time { display: none; }

.card-live-pill {
    background: #c10e0e;
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.card-countdown {
    background: #ededed;
    color: #000;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .76rem;
    font-weight: 700;
    border: none;
    white-space: nowrap;
    line-height: 1;
}

/* ── TABLET ──────────────────────────────────── */
@media (max-width: 1024px) {
    .card-link { padding: 13px 18px; }
}

/* ── MOBILE ──────────────────────────────────── */
@media (max-width: 768px) {
    .stream-grid {
        gap: 8px;
        background: #f1f3f4;
        border: 8px solid #f1f3f4;
        border-radius: 12px;
        overflow: hidden;
    }

    .stream-card {
        border: none !important;
        border-radius: 8px;
        background: #fff;
    }

    .stream-card:last-child { border-bottom: none !important; }

    .card-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
        min-height: auto;
        gap: 0;
    }

    .card-body {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .card-pipe { display: none; }

    .card-cat {
        font-size: .92rem;
        font-weight: 900;
        margin-bottom: 5px;
        display: block;
    }

    .card-title {
        font-size: .95rem;
        font-weight: 700;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        color: #1a1a1a;
        margin-bottom: 8px;
        display: block;
    }

    .card-meta { margin-left: 0; }
    .card-live-pill { font-size: .68rem; padding: 4px 10px; }
    .card-countdown { font-size: .78rem; padding: 4px 15px; }
}

@media (max-width: 768px) {
    .stream-card:hover { background: #111; }
    .stream-card:hover .card-title { color: #fff; }
    .stream-card:hover .card-cat { color: #fff; }
    .stream-card:hover .card-pipe { color: #333; }
}

@media (max-width: 480px) {
    .stream-grid { gap: 6px; border-width: 8px; }
    .card-link { padding: 11px 12px; }
    .card-title { font-size: .85rem; }
}

/* ─── PAGE HEADER ────────────────────────── */
.page-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--line-color); }
.page-title { font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.cat-icon-lg { font-size: 2rem; }
.sub-title { font-size: 1rem; font-weight: 700; margin: 30px 0 16px; padding-left: 12px; border-left: 4px solid var(--red); }

/* ─── NO-MATCHES EMPTY STATE ─────────────── */
.no-matches-box { text-align: center; padding: 60px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 16px; }
.no-matches-icon { font-size: 4rem; margin-bottom: 16px; }
.no-matches-box h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.no-matches-box p  { color: var(--muted); max-width: 480px; margin: 0 auto 24px; line-height: 1.7; }
.btn-home { display: inline-block; background: var(--red); color: #fff; padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 700; font-size: .9rem; transition: background .2s; }
.btn-home:hover { background: var(--red-dark); color: #fff; }

/* ─── BREADCRUMB ─────────────────────────── */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.bc-sep { color: var(--dim); }
.bc-current { color: var(--text); font-weight: 500; }
.stream-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.stream-tag { display: inline-block; background: var(--surface); border: 1px solid var(--border); padding: 3px 12px; border-radius: 20px; font-size: .8rem; color: var(--muted); margin-bottom: 20px; }

/* ─── STREAM LAYOUT ──────────────────────── */
.stream-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 1024px) { .stream-layout { grid-template-columns: 1fr; } }

/* ─── PLAYER ─────────────────────────────── */
.player-wrapper {
    position: relative;
    top: 0;
    width: 100%;
    padding-top: 56.25%;  /* 16:9 — universal */
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.player-container,
.player-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.player-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
    background: #000;
}

/* Placeholder — poster fills entire area */
.player-placeholder {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Dark overlay on top of poster */
.placeholder-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.7));
    z-index: 0;
}
.placeholder-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px;
    width: 100%;
}
.placeholder-match {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.placeholder-time { color: rgba(255,255,255,.75); margin-bottom: 18px; font-size: .9rem; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.countdown-box {
    background: rgba(0,0,0,.65);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    padding: 14px 28px; border-radius: var(--radius);
    font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums;
    color: var(--accent); letter-spacing: 1px; display: inline-block;
}
.ended-box { color: rgba(255,255,255,.65); font-style: italic; font-size: 1rem; }

/* ─── STREAM SELECTOR ────────────────────── */
.stream-selector { margin-top: 16px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.selector-label { font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.stream-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.stream-btn { background: var(--bg); border: 1px solid var(--border); color: var(--muted); padding: 8px 18px; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.stream-btn:hover  { border-color: var(--accent); color: var(--text); }
.stream-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ─── BLOG ───────────────────────────────── */
.match-blog { margin-top: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.blog-content { padding: 28px; }
.blog-content h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--red); }
.blog-content h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 12px; }
.blog-content p  { margin-bottom: 14px; line-height: 1.7; color: var(--muted); font-size: .95rem; }
.blog-content strong { color: var(--text); font-weight: 600; }
.blog-content ul { margin: 12px 0 16px 20px; color: var(--muted); }
.blog-content li { margin-bottom: 8px; line-height: 1.5; }

/* ─── SIDEBAR ────────────────────────────── */
.stream-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* Discord button */
.discord-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 14px 20px;
    background: var(--discord); color: #fff !important;
    font-weight: 700; font-size: .95rem; border-radius: var(--radius);
    transition: background .2s, transform .15s;
    box-shadow: 0 4px 16px rgba(88,101,242,.35);
}
.discord-btn:hover { background: #4752c4; color: #fff !important; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(88,101,242,.5); }

/* Discord visibility: desktop=sidebar, mobile=inline (below player) */
.discord-inline  { display: none; }
.discord-sidebar { display: block; }

.info-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.info-box h3 { font-size: .95rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.info-list { list-style: none; font-size: .9rem; }
.info-list li { padding: 8px 0; border-bottom: 1px solid #222; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.info-list li:last-child { border: none; }
.info-list strong { color: var(--text); font-weight: 600; }
.teams-showdown { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.team-block { flex: 1; text-align: center; padding: 12px 8px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.team-name { font-size: .85rem; font-weight: 600; display: block; line-height: 1.3; }
.vs-divider { font-size: .9rem; font-weight: 800; color: var(--red); flex-shrink: 0; }
.tips-list { list-style: none; font-size: .85rem; color: var(--muted); }
.tips-list li { padding: 8px 0; border-bottom: 1px solid #222; padding-left: 20px; position: relative; }
.tips-list li:last-child { border: none; }
.tips-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ─── ALERTS ─────────────────────────────── */
.alert { padding: 18px 24px; border-radius: var(--radius); margin: 24px 0; font-weight: 500; text-align: center; }
.alert-warn { background: rgba(255,170,0,.08); border: 1px solid rgba(255,170,0,.25); color: var(--upcoming); }
.alert a { color: inherit; text-decoration: underline; }

/* ─── 404 ────────────────────────────────── */
.error-page { min-height: calc(100vh - 56px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.error-code { font-size: 6rem; font-weight: 900; color: #bd0404; line-height: 1; }
.error-title { font-size: 1.8rem; font-weight: 700; margin: 12px 0; }
.error-desc  { color: var(--muted); margin-bottom: 28px; max-width: 400px; }
.btn-primary { display: inline-block; background: var(--red); color: #fff; padding: 12px 32px; border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem; transition: background .2s; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }

/* ─── FOOTER ─────────────────────────────── */
.site-footer { border-top: 4px solid var(--border); padding: 30px 0; text-align: center; color: var(--dim); font-size: .85rem; }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
    /* Mobile Discord: show inline below player, hide in sidebar */
    .discord-inline  { display: block; margin: 14px 0 14px; }
    .discord-sidebar { display: none; }
}

@media (max-width: 900px) {
    .header-container { padding: 0 16px; }
    .main-nav {
        display: none; position: absolute; top: 56px; left: 0; right: 0;
        background: var(--red-dark); flex-direction: column;
        padding: 10px 16px; margin: 0; gap: 0;
        max-height: 70vh; overflow-y: auto; z-index: 999;
    }
    .main-nav.open { display: flex; }
    .nav-link { padding: 12px 16px; font-size: .9rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .nav-link:last-child { border-bottom: none; }
    .mobile-toggle { display: block; }
    .stream-grid { grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 8px; }
    .container { padding: 0 16px; }
    .page-title   { font-size: 1.3rem; }
    .stream-title { font-size: 1.2rem; }
    .blog-content { padding: 20px; }
    .blog-content h2 { font-size: 1.15rem; }
}

@media (max-width: 480px) {
    .stream-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .card-title  { font-size: .85rem; min-height: auto; }
    .card-time   { font-size: .68rem; }
    .logo        { font-size: 1.5rem; }
    .section-title { font-size: .95rem; }
    .blog-content { padding: 14px; }
    .blog-content h2 { font-size: 1.05rem; }
    .blog-content p  { font-size: .88rem; }
    .placeholder-match   { font-size: 1rem; }
    .countdown-box       { font-size: 1.05rem; padding: 12px 18px; }
    .teams-showdown { flex-direction: column; }
    .vs-divider    { transform: rotate(360deg); }
    .stream-selector { flex-direction: column; align-items: flex-start; }
    .stream-buttons  { width: 100%; }
    .stream-btn      { flex: 1; text-align: center; }
}


/* ─── STREAM STATUS BAR (stream detail page) ─────────────── */
.stream-status-bar {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 6px;
}
.status-badge {
    display: inline-flex; align-items: center;
    font-size: .8rem; font-weight: 800; letter-spacing: .5px;
    text-transform: uppercase; padding: 5px 14px;
    border-radius: 20px;
}
.status-live {
    background: var(--live); color: #fff;
    animation: pulse-live 2s ease-in-out infinite;
}
.status-soon {
    background: rgba(0,136,204,.15);
    border: 1px solid #0088cc;
    color: #00aaff;
}
.status-upcoming {
    background: rgba(255,170,0,.12);
    border: 1px solid rgba(255,170,0,.4);
    color: var(--upcoming);
}
.status-finished {
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    color: var(--muted);
}

/* Mobile nav: scrollable with all league links always visible */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: fixed; top: 56px; left: 0; right: 0;
        background: var(--red);
        flex-direction: column; align-items: stretch;
        padding: 8px 0; z-index: 999;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }
    .main-nav.open { display: flex; }
    .nav-link { padding: 12px 20px; border-radius: 0; }
    .mobile-toggle { display: flex; align-items: center; }
    .discord-inline  { display: block; margin-top: 12px; }
    .discord-inline { margin: 16px 0 16px 0; }
    .discord-sidebar { display: none; }
}
@media (min-width: 769px) {
    .mobile-toggle { display: none; }
}

/* ─── STREAM INFORMATION ─────────────────────────── */
.sb-wrap{
    font-family:inherit;
    color:inherit;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
    overflow-x:hidden;
}

.sb-wrap *,
.sb-wrap *::before,
.sb-wrap *::after{
    box-sizing:border-box;
}

.sb-title{
    font-size:1.05rem;
    font-weight:700;
    margin:24px 0 10px;
    padding-bottom:6px;
    border-bottom:2px solid var(--red);
    color:#fff;
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
}

.sb-matchup{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
    padding:20px;
    background:#1a1a1a;
    border-radius:10px;
    margin:16px 0;
    flex-wrap:wrap;
    max-width:100%;
    min-width:0;
}

.sb-team{
    text-align:center;
    flex:1;
    min-width:100px;
    max-width:100%;
}

.sb-team-name{
    font-size:1rem;
    font-weight:700;
    color:#fff;
    overflow-wrap:anywhere;
}

.sb-team-sub{
    font-size:.72rem;
    color:#a5a7aa;
    margin-top:3px;
    overflow-wrap:anywhere;
}

.sb-vs{
    font-size:1.4rem;
    font-weight:900;
    color:var(--red);
}

.sb-table{
    width:100%;
    max-width:100%;
    border-collapse:collapse;
    margin:8px 0;
    font-size:.83rem;
}

.sb-table th{
    background:#1a1a1a;
    color:#a5a7aa;
    font-weight:600;
    padding:7px 10px;
    text-align:left;
    border-bottom:1px solid #222;
    font-size:.78rem;
    text-transform:uppercase;
    letter-spacing:.3px;
    overflow-wrap:anywhere;
}

.sb-table td{
    padding:7px 10px;
    border-bottom:1px solid #1a1a1a;
    color:#bbb;
    overflow-wrap:anywhere;
}

.sb-table tr:last-child td{
    border:none;
}

.sb-table tr:hover td{
    background:#161616;
}

.sb-teams-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin:10px 0;
    max-width:100%;
    min-width:0;
}

.sb-info-box{
    background:#141414;
    border:1px solid #222;
    border-radius:8px;
    padding:14px;
    max-width:100%;
    min-width:0;
    overflow:hidden;
}

.sb-info-box h4{
    font-size:.88rem;
    font-weight:700;
    color:#fff;
    margin:0 0 10px;
    padding-bottom:6px;
    border-bottom:1px solid #222;
    overflow-wrap:anywhere;
}

.sb-info-row{
    display:flex;
    justify-content:space-between;
    padding:5px 0;
    border-bottom:1px solid #1a1a1a;
    font-size:.8rem;
    min-width:0;
    max-width:100%;
}

.sb-info-row:last-child{
    border:none;
}

.sb-info-label{
    color:#a5a7aa;
    min-width:0;
}

.sb-info-value{
    color:#ddd;
    font-weight:500;
    text-align:right;
    max-width:65%;
    min-width:0;
    overflow-wrap:anywhere;
}

.sb-form{
    display:flex;
    gap:3px;
    flex-wrap:wrap;
    max-width:100%;
}

.sb-form-badge{
    width:24px;
    height:24px;
    border-radius:3px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:.68rem;
    font-weight:700;
    flex-shrink:0;
}

.sb-fw{
    background:#16a34a;
    color:#fff;
}

.sb-fl{
    background:#dc2626;
    color:#fff;
}

.sb-fd{
    background:#a5a7aa;
    color:#fff;
}

.sb-desc{
    font-size:.86rem;
    color:#999;
    line-height:1.75;
    margin:8px 0;
    max-width:100%;
    overflow-wrap:anywhere;
}

.sb-match-details{
    background:#141414;
    border:1px solid #222;
    border-radius:8px;
    overflow:hidden;
    margin:10px 0;
    max-width:100%;
    min-width:0;
}

.sb-match-details table{
    width:100%;
    border-collapse:collapse;
}

.sb-match-details td{
    padding:9px 14px;
    border-bottom:1px solid #1a1a1a;
    font-size:.84rem;
    overflow-wrap:anywhere;
    min-width:0;
}

.sb-match-details tr:last-child td{
    border:none;
}

.sb-match-details td:first-child{
    color:#a5a7aa;
    width:38%;
}

.sb-match-details td:last-child{
    color:#ddd;
    font-weight:500;
}

.sb-result-w{
    color:#22c55e;
    font-weight:700;
}

.sb-result-l{
    color:#ef4444;
    font-weight:700;
}

.sb-result-d{
    color:#a5a7aa;
    font-weight:700;
}

.sb-standing-me td{
    color:#fff!important;
    font-weight:600;
    background:#1e1e1e!important;
}

@media(max-width:600px){

    .sb-teams-grid{
        grid-template-columns:1fr;
    }

    .sb-matchup{
        flex-direction:column;
        max-width:100%;
    }

    .sb-table{
        font-size:.78rem;
        max-width:100%;
    }

    .sb-table th,
    .sb-table td{
        padding:6px 8px;
    }

    .sb-info-row{
        min-width:0;
        max-width:100%;
    }

    .sb-info-label,
    .sb-info-value{
        min-width:0;
    }

    .sb-info-value{
        overflow-wrap:anywhere;
    }

    .sb-match-details{
        max-width:100%;
    }

    .sb-match-details td{
        overflow-wrap:anywhere;
    }
}

/* ─── MATCH HERO ─────────────────────────────────────── */
.match-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
}
.match-hero-league {
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 18px;
}
.match-hero-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    padding: 0;
}
.match-hero-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.match-hero-badge {
    width: 72px;
    height: 72px;
    object-fit: contain;
}
.match-hero-badge-placeholder {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
.match-hero-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
}
.match-hero-abbr {
    font-size: .72rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .3px;
}
.match-hero-record {
    font-size: .72rem;
    color: var(--dim);
    font-weight: 500;
}
.match-hero-center {
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 120px;
}
.match-hero-datetime {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 500;
}
.match-hero-vs {
    font-size: .72rem;
    font-weight: 800;
    color: var(--dim);
    letter-spacing: 1px;
}
.mh-badge-live {
    background: var(--live);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
    animation: pulse-live 2s ease-in-out infinite;
    display: inline-block;
}
.mh-badge-upcoming {
    background: rgba(255,170,0,.12);
    border: 1px solid rgba(255,170,0,.4);
    color: var(--upcoming);
    font-size: .72rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-block;
}
.mh-badge-finished {
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-block;
}
@media (max-width: 480px) {
    .match-hero-badge { width: 48px; height: 48px; }
    .match-hero-badge-placeholder { width: 48px; height: 48px; font-size: 1.8rem; }
    .match-hero-name { font-size: .78rem; }
    .match-hero-center { min-width: 80px; }
}
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

.match-hero-score { font-size: 2rem; font-weight: 900; color: #fff; display: block; text-align: center; }
.match-hero-score-meta { display: flex; gap: 6px; justify-content: center; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.match-hero-score-wrap { text-align: center; margin-top: 6px; }

.links-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; margin-bottom: 16px; width: 100%; max-width: 100%; box-sizing: border-box; }
.links-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.links-table th { background: #1a1a1a; color: #a5a7aa; padding: 12px 16px; text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.links-table td { padding: 14px 16px; border-bottom: 1px solid #1a1a1a; color: var(--text); white-space: nowrap; }
.links-table td:first-child { font-weight: 700; }
.links-table tr:last-child td { border: none; }
.links-table tbody tr:hover { background: #252525; }
.link-quality { background: rgba(0,170,255,.1); border: 1px solid #0af; color: #0af; padding: 3px 10px; border-radius: 4px; font-size: .78rem; font-weight: 700; }
.link-adblock.yes { background: rgba(34,197,94,.1); border: 1px solid #22c55e; color: #22c55e; padding: 3px 10px; border-radius: 4px; font-size: .78rem; font-weight: 700; }
.link-adblock.no { background: rgba(239,68,68,.1); border: 1px solid #ef4444; color: #ef4444; padding: 3px 10px; border-radius: 4px; font-size: .78rem; font-weight: 700; }
.watch-btn { background: var(--line-color); color: #fff; padding: 8px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: .9rem; display: inline-block; white-space: nowrap; }
.watch-btn:hover { background: var(--red-dark); color: #fff; }

@media (max-width: 1024px) {
    .links-table th:nth-child(2), .links-table td:nth-child(2),
    .links-table th:nth-child(3), .links-table td:nth-child(3),
    .links-table th:nth-child(8), .links-table td:nth-child(8) { display: none; }
}

@media (max-width: 634px) {
    .links-table th:nth-child(5), .links-table td:nth-child(5),
    .links-table th:nth-child(6), .links-table td:nth-child(6) { display: none; }
    .links-table th, .links-table td { padding: 10px 8px; font-size: .78rem; }
    .watch-btn { padding: 6px 12px; font-size: .78rem; }
}


@media (max-width: 370px) {
    .links-table { table-layout: fixed; width: 100%; }
    .links-table th, .links-table td { padding: 8px 5px 8px 8px; font-size: .65rem; overflow: hidden; text-overflow: ellipsis; }
    .links-table th:nth-child(1), .links-table td:nth-child(1) { width: 28%; }
    .links-table th:nth-child(4), .links-table td:nth-child(4) { width: 16%; }
    .links-table th:nth-child(7), .links-table td:nth-child(7) { width: 28%; }
    .links-table th:nth-child(9), .links-table td:nth-child(9) { width: 28%; }
    .link-quality { padding: 2px 3px; font-size: .58rem; letter-spacing: 0; }
    .watch-btn { padding: 5px 6px; font-size: .63rem; }
}

/* ─── CATEGORY BOX ─── */
.category-section {
    background: #f1f3f4;
    border-radius: 12px;
    padding: 10px;
    overflow: hidden;
}
.category-section .section-header {
    margin: 0 0 10px;
    padding: 8px 10px 12px;
    border-bottom: 1px solid #dde0e3;
}
.category-section .section-title { color: #1a1a1a; }
.category-section .cat-count     { color: #6b6f73; }
.category-section .view-all      { color: #c10e0e; background: rgba(193,14,14,.08); }
.category-section .view-all:hover { color: #a00d24; background: rgba(193,14,14,.16); }

/* oldest) */
.category-section .stream-grid {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .category-section { padding: 8px; }
    .category-section .section-header { padding: 6px 8px 10px; }
}

/* ─── League ─── */
.category-section {
    margin-bottom: 0;
    border-radius: 0;
}
.category-section:first-of-type {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.category-section:last-of-type {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.category-section + .category-section {
    border-top: 1px solid #dde0e3;
    padding-top: 18px;
}

/* ─── Category page ─── */
.sub-title:has(+ .stream-grid) {
    margin: 30px 0 0;
    padding: 14px 18px 4px;
    border-left: 0;
    background: #f1f3f4;
    color: #1a1a1a;
    border-radius: 12px 12px 0 0;
}
.sub-title + .stream-grid {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.stream-grid:has(+ .sub-title) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.stream-grid + .sub-title:has(+ .stream-grid) {
    margin-top: 0;
    border-radius: 0;
    border-top: 1px solid #dde0e3;
}
@media (max-width: 768px) {
    .sub-title:has(+ .stream-grid) { padding: 12px 14px 4px; }
}