:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-hov: #1c1c1c;
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: #a1a1aa;
    --accent: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.2);
    --r-sm: 6px;
    --r-lg: 12px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
}


/* Team Flags & Logos Support */
.team-flag, img.team-logo-img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
    border-radius: 2px !important;
    vertical-align: middle !important;
    display: inline-block !important;
}


/* ==========================================================================
   UNIVERSAL MATCH CARDS & STREAM ROWS BEAUTIFICATION (NO BLUE LINKS FIX)
   ========================================================================== */

a.match-card, a.match-card:link, a.match-card:visited,
a.stream-row, a.stream-row:link, a.stream-row:visited,
.match-card *, .stream-row * {
    text-decoration: none !important;
}

.match-card, .card {
    background-color: var(--bg-card, #121721) !important;
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08)) !important;
    border-radius: 10px !important;
    padding: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    text-decoration: none !important;
    color: #ffffff !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
}

.match-card:hover, .card:hover {
    border-color: var(--accent-primary, #f55505) !important;
    background-color: var(--bg-card-hover, #1a2030) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6) !important;
}

.match-card .card-header, .match-card .match-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-bottom: 10px !important;
    margin-bottom: 4px !important;
}

.match-card .tag, .match-card .match-league {
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: var(--accent-primary, #f55505) !important;
    letter-spacing: 0.5px !important;
}

.match-card .time, .match-card .match-time {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.match-card .watch-btn, .match-card .watch-btn-full, .match-card .btn-watch-now {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 10px 0 !important;
    background: var(--accent-primary, #f55505) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease !important;
    margin-top: auto !important;
    border: none !important;
}

.match-card:hover .watch-btn, .match-card:hover .watch-btn-full {
    background: #ff6a1a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(245, 85, 5, 0.4) !important;
}

.match-card .team-name-text, .match-card .team-name {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

.match-card .match-teams-vs {
    color: var(--accent-primary, #f55505) !important;
    font-weight: 900 !important;
    font-size: 12px !important;
}

.stream-row {
    background: var(--bg-card, #121721) !important;
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08)) !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.stream-row:hover {
    border-color: var(--accent-primary, #f55505) !important;
    background-color: var(--bg-card-hover, #1a2030) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

.stream-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 140px !important;
}

.stream-time {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-transform: uppercase !important;
}

.stream-league {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: var(--accent-primary, #f55505) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.stream-matchup {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    flex: 1 !important;
}

.team-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.team-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.vs-divider {
    font-size: 11px !important;
    font-weight: 900 !important;
    color: var(--accent-primary, #f55505) !important;
    padding: 2px 6px !important;
    background: rgba(245, 85, 5, 0.1) !important;
    border-radius: 4px !important;
}

.watch-action {
    flex-shrink: 0 !important;
}

.stream-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 18px !important;
    background: var(--accent-primary, #f55505) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.stream-btn:hover {
    background: #ff6a1a !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(245, 85, 5, 0.5) !important;
    transform: translateY(-1px) !important;
}

@media (max-width: 768px) {
    .stream-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .stream-matchup {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .watch-action {
        width: 100% !important;
    }
    .stream-btn {
        width: 100% !important;
    }
}


/* ==========================================================================
   STREAM ROW CONTAINER FLEX COLUMN FIX (DESKTOP NO-OVERFLOW FIX)
   ========================================================================== */

.scoreboard-grid, .grid-container, .grid,
#scoreboardGrid, #matchesGrid, #streamsList, #streamsGrid, #match-grid {
    display: flex !important;
    flex-direction: column !important;
    max-width: 960px !important;
    margin: 0 auto !important;
    width: 100% !important;
    gap: 12px !important;
}

.scoreboard-grid:has(.match-card),
.grid-container:has(.match-card),
.grid:has(.match-card),
#match-grid:has(.match-card) {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    max-width: 1200px !important;
}

.stream-row {
    width: 100% !important;
    box-sizing: border-box !important;
}

.stream-matchup {
    min-width: 0 !important;
    flex: 1 !important;
}

.team-name {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
