/* ============================================
   Sports Theme - Premium Dark Cinema Design
   Dark mode (default) + Light mode
   RTL/LTR auto support
   ============================================ */

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* =============================================
   COLOR SYSTEM - Dark Cinema Theme (Default)
   ============================================= */
:root {
    /* Backgrounds */
    --bg-deepest: #06090f;
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1420;
    --bg-card: #111827;
    --bg-card-hover: #162032;
    --bg-elevated: #1a2233;

    /* Accent Colors */
    --accent-primary: #3b82f6;
    --accent-primary-hover: #2563eb;
    --accent-glow: rgba(59,130,246,0.15);
    --accent-red: #ef4444;
    --accent-green: #22c55e;
    --accent-orange: #f59e0b;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;

    /* Live/Status */
    --live-red: #ef4444;
    --live-glow: rgba(239,68,68,0.25);
    --live-pulse: rgba(239,68,68,0.5);
    --ft-green: #22c55e;
    --upcoming-amber: #f59e0b;
    --ht-purple: #a855f7;

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #475569;

    /* Borders */
    --border-primary: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --border-accent: rgba(59,130,246,0.3);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 20px rgba(59,130,246,0.1);

    /* Spacing & Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 50px;
    --container-max: 1280px;
    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    --transition-smooth: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* =============================================
   LIGHT MODE OVERRIDES
   ============================================= */
:root.light-mode {
    --bg-deepest: #f8fafc;
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-elevated: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-dim: #cbd5e1;
    --border-primary: rgba(0,0,0,0.06);
    --border-hover: rgba(0,0,0,0.12);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-glow: none;
}

/* =============================================
   BASE STYLES
   ============================================= */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Noto Sans Arabic', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-deepest);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
ul, ol { list-style: none; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   SCROLLBAR (Thin Dark)
   ============================================= */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deepest);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-elevated) var(--bg-deepest);
}

/* =============================================
   SELECTION
   ============================================= */
::selection {
    background: var(--accent-primary);
    color: #fff;
}

/* =============================================
   RTL SUPPORT
   ============================================= */
[dir="rtl"] .slider__arrow--prev { left: auto; right: -14px; }
[dir="rtl"] .slider__arrow--next { right: auto; left: -14px; }
[dir="rtl"] .sidebar-links li a:hover { padding-left: 0; padding-right: 8px; }
[dir="rtl"] .search-form__icon { left: auto; right: 12px; }
[dir="rtl"] .search-form input[type="search"] { padding-left: 14px; padding-right: 36px; }
[dir="rtl"] .leagues-list__item:hover { padding-right: 8px; }
[dir="rtl"] .standings-table th:nth-child(2) { text-align: right; }
[dir="rtl"] .standings-table__team { text-align: right !important; }

/* RTL 3-col layout: swap nav and sidebar positions */
@media (min-width: 960px) {
    [dir="rtl"] .home-3col {
        grid-template-columns: 300px 1fr 220px;
    }
    [dir="rtl"] .home-3col__nav { order: 3; }
    [dir="rtl"] .home-3col__main { order: 2; }
    [dir="rtl"] .home-3col__sidebar { order: 1; }
}
@media (min-width: 1100px) {
    [dir="rtl"] .home-3col {
        grid-template-columns: 300px 1fr 220px;
    }
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background var(--transition-smooth), backdrop-filter var(--transition-smooth);
}

.site-header.is-scrolled {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10,14,23,0.85);
}

.light-mode .site-header.is-scrolled {
    background: rgba(255,255,255,0.9);
}

/* Static header (non-sticky) */
.site-header--static {
    position: relative;
}

/* Admin bar compatibility */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* --- Header Top Bar --- */
.header-top {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
    padding: 0;
}

.header-top__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 56px;
}

/* Brand / Logo */
.header-top__brand {
    flex-shrink: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.site-logo:hover { color: var(--accent-primary); }

.site-logo__icon {
    font-size: 1.6rem;
    line-height: 1;
}

.site-logo__text {
    background: linear-gradient(135deg, var(--accent-primary), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-top__brand .custom-logo-link img {
    max-height: 40px;
    width: auto;
}

/* --- Search --- */
.header-top__search {
    flex: 1;
    max-width: 420px;
}

.search-form {
    position: relative;
    display: flex;
}

.search-form__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-dim);
    pointer-events: none;
    z-index: 1;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 9px 14px 9px 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-fast);
}

.search-form input[type="search"]::placeholder {
    color: var(--text-dim);
}

.search-form input[type="search"]:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
}

/* --- Header Actions --- */
.header-top__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    transition: all var(--transition-fast);
    font-size: 1.1rem;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

.theme-toggle__dark { display: inline; }
.theme-toggle__light { display: none; }
.light-mode .theme-toggle__dark { display: none; }
.light-mode .theme-toggle__light { display: inline; }

/* Bell */
.header-bell {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    transition: all var(--transition-fast);
    font-size: 1.05rem;
}

.header-bell:hover {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

.header-bell-wrap {
    position: relative;
}

.header-bell__dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

/* Live Button */
.header-live-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--live-red);
    letter-spacing: 0.06em;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.header-live-btn:hover {
    background: var(--live-red);
    color: #fff;
    border-color: var(--live-red);
}

.header-live-btn .live-dot {
    width: 8px;
    height: 8px;
    background: var(--live-red);
    border-radius: 50%;
    animation: pulse-live 1.5s ease-in-out infinite;
}

.header-live-btn:hover .live-dot {
    background: #fff;
}

/* --- Header Navigation Bar (Bottom row) --- */
.header-nav {
    background: var(--bg-deepest);
    border-bottom: 1px solid var(--border-primary);
}

.header-nav__inner {
    display: flex;
    align-items: center;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 12px 14px 0;
    z-index: 10;
}

[dir="rtl"] .hamburger {
    padding: 14px 0 14px 12px;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.nav-menu li a {
    display: block;
    padding: 12px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--accent-primary);
    transition: all var(--transition-fast);
    border-radius: 1px;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
    color: #fff;
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item > a::after,
.nav-menu li.current_page_item > a::after {
    left: 18px;
    right: 18px;
}

@media (min-width: 768px) {
    .hamburger { display: none; }
}

@media (max-width: 767px) {
    .header-top__search { max-width: 200px; }
    .header-live-btn span:last-child { display: none; }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-deepest);
        z-index: 99;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-primary);
    }
    .nav-menu.is-open { display: flex; }
    .nav-menu li a {
        padding: 14px 20px;
        border-bottom: 1px solid var(--border-primary);
        font-size: 0.9rem;
    }
    .nav-menu li a::after { display: none; }
}

@media (max-width: 480px) {
    .header-top__search { display: none; }
    .header-top__inner { gap: 8px; }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
    border: none;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent-primary); color: #fff; }
.btn--primary:hover { background: var(--accent-primary-hover); }
.btn--red { background: var(--accent-red); color: #fff; }
.btn--red:hover { background: #dc2626; }
.btn--green { background: var(--accent-green); color: #fff; }
.btn--green:hover { background: #16a34a; }

/* =============================================
   3-COLUMN HOME LAYOUT
   ============================================= */
.home-3col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
}

@media (min-width: 960px) {
    .home-3col {
        grid-template-columns: 200px 1fr 280px;
    }
}

@media (min-width: 1100px) {
    .home-3col {
        grid-template-columns: 220px 1fr 300px;
    }
}

.home-3col__nav { min-width: 0; }
.home-3col__main { min-width: 0; }
.home-3col__sidebar { min-width: 0; }

@media (max-width: 959px) {
    .home-3col__nav { order: 3; }
    .home-3col__main { order: 1; }
    .home-3col__sidebar { order: 2; }
}

/* =============================================
   HOME LAYOUT VARIANTS
   ============================================= */
.home-2col {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin: 20px 0;
}

.home-1col {
    margin: 20px 0;
}

@media (max-width: 768px) {
    .home-2col {
        grid-template-columns: 1fr;
    }
}

/* Old home-layout for backward compat */
.home-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
}

@media (min-width: 960px) {
    .home-layout { grid-template-columns: 1fr 300px; }
}

.home-layout__main { min-width: 0; }

.home-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    font-size: 0.9rem;
}

/* =============================================
   SIDE NAVIGATION
   ============================================= */
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 8px;
    position: sticky;
    top: 120px;
}

@media (max-width: 959px) {
    .side-nav {
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
    }
}

.side-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.side-nav__item:hover {
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.side-nav__item--active {
    background: var(--accent-primary);
    color: #fff !important;
}

.side-nav__icon {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

/* =============================================
   MATCHES HEADER
   ============================================= */
.matches-header {
    margin-bottom: 16px;
}

.matches-header__title {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

/* =============================================
   DATE TABS
   ============================================= */
.date-tabs {
    margin-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.date-tabs::-webkit-scrollbar { display: none; }

.date-tabs__track {
    display: flex;
    gap: 6px;
}

.date-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    min-width: 80px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    color: var(--text-secondary);
}

.date-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.date-tab--active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 16px var(--accent-glow);
}

.date-tab__label {
    font-size: 0.82rem;
    font-weight: 600;
}

.date-tab__day {
    font-size: 0.72rem;
    opacity: 0.75;
    margin-top: 2px;
}

/* =============================================
   STATUS FILTER TABS
   ============================================= */
.status-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.status-tabs::-webkit-scrollbar { display: none; }

.status-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.status-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.status-tab--active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.status-tab__count {
    font-size: 0.72rem;
    background: rgba(0,0,0,0.15);
    padding: 1px 6px;
    border-radius: 10px;
}

.status-tab--active .status-tab__count {
    background: rgba(255,255,255,0.2);
}

/* =============================================
   LEAGUE GROUP (matches grouped by league)
   ============================================= */
.league-group {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.league-group__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    font-weight: 700;
    font-size: 0.9rem;
    border-left: 3px solid var(--accent-primary);
}

[dir="rtl"] .league-group__header {
    border-left: none;
    border-right: 3px solid var(--accent-primary);
}

.league-group__logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.league-group__name a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.league-group__name a:hover {
    color: var(--accent-primary);
}

.league-group__count {
    margin-inline-start: auto;
    font-size: 0.72rem;
    color: var(--text-dim);
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 10px;
}

.league-group__header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.league-group__logo-ph {
    width: 24px;
    height: 24px;
    background: var(--bg-elevated);
    border-radius: 50%;
    flex-shrink: 0;
}

/* =============================================
   MATCH ROW (single match in league group)
   ============================================= */
.match-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-primary);
    transition: all var(--transition-fast);
    color: var(--text-primary);
    background: var(--bg-card);
    border-radius: 0;
}

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

.match-row:hover {
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.match-row--live {
    background: rgba(239,68,68,0.03);
    border-left: 3px solid var(--live-red);
    box-shadow: inset 3px 0 8px rgba(239,68,68,0.08);
}

[dir="rtl"] .match-row--live {
    border-left: none;
    border-right: 3px solid var(--live-red);
    box-shadow: inset -3px 0 8px rgba(239,68,68,0.08);
}

.match-row--live:hover {
    background: rgba(239,68,68,0.06);
}

.match-row__team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-row__team--home {
    justify-content: flex-end;
    text-align: end;
}

.match-row__team--away {
    justify-content: flex-start;
}

.match-row__team-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-row__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
}

.match-row__logo-ph {
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    border-radius: 50%;
    flex-shrink: 0;
}

.match-row__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 70px;
}

.match-row__score {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.match-row__time {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--upcoming-amber);
    background: rgba(245,158,11,0.1);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
}

.match-row__info {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding-top: 4px;
}

.match-row__channel,
.match-row__commentator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-row__info:empty { display: none; }

@media (max-width: 599px) {
    .match-row {
        padding: 10px 12px;
        gap: 2px 8px;
    }
    .match-row__logo { width: 26px; height: 26px; }
    .match-row__team-name { font-size: 0.8rem; }
    .match-row__score { font-size: 1.05rem; }
}

/* =============================================
   BADGES (status)
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge--live {
    background: var(--live-red);
    color: #fff;
    animation: pulse-live 1.5s ease-in-out infinite;
}

.badge--upcoming { background: rgba(245,158,11,0.15); color: var(--upcoming-amber); }
.badge--ft { background: rgba(34,197,94,0.15); color: var(--ft-green); }
.badge--ht { background: rgba(168,85,247,0.15); color: var(--ht-purple); }
.badge--postponed { background: rgba(100,116,139,0.15); color: var(--text-muted); }
.badge--free { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge--encrypted { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge--sports { background: rgba(59,130,246,0.15); color: #3b82f6; }
.badge--quality { background: rgba(168,85,247,0.15); color: #a855f7; }
.badge--sm { font-size: 0.68em; padding: 2px 8px; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes glow-live {
    0%, 100% { box-shadow: 0 0 4px var(--live-red); }
    50% { box-shadow: 0 0 12px var(--live-glow); }
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Live dot */
.live-dot {
    width: 10px;
    height: 10px;
    background: var(--live-red);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-live 1.5s ease-in-out infinite;
}

.live-pulse {
    width: 8px;
    height: 8px;
    background: var(--live-red);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-live 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* =============================================
   SLIDER
   ============================================= */
.slider {
    position: relative;
}

.slider__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px;
}

.slider__track::-webkit-scrollbar { display: none; }

.slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.slider__arrow:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.slider__arrow--prev { left: -14px; }
.slider__arrow--next { right: -14px; }

@media (max-width: 767px) {
    .slider__arrow { display: none; }
}

/* =============================================
   MATCH CARD (.mcard) for horizontal scroll
   ============================================= */
.mcard {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    max-width: 230px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 14px;
    transition: all var(--transition);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.mcard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background var(--transition);
}

.mcard:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.mcard:hover::before {
    background: var(--accent-primary);
}

.mcard--live {
    border-color: rgba(239,68,68,0.3);
    animation: glow-live 2s ease-in-out infinite;
}

.mcard--live::before {
    background: var(--live-red);
}

.mcard__badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 6px;
}

.mcard__channel {
    font-size: 0.68rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.mcard__teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.mcard__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.mcard__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.mcard__logo--ph {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.mcard__team-name {
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    color: var(--text-primary);
}

.mcard__score-area {
    flex-shrink: 0;
    text-align: center;
    min-width: 50px;
}

.mcard__score {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.mcard__time {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--upcoming-amber);
}

.mcard__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-primary);
    gap: 4px;
}

.mcard__league {
    font-size: 0.68rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mcard__date {
    font-size: 0.68rem;
    color: var(--text-dim);
    white-space: nowrap;
}

@media (max-width: 599px) {
    .mcard { min-width: 175px; max-width: 195px; padding: 10px; }
    .mcard__logo { width: 36px; height: 36px; }
    .mcard__score { font-size: 1rem; }
}

/* =============================================
   SIDEBAR
   ============================================= */
.home-layout__sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: background var(--transition), border var(--transition);
}

.sidebar-widget__title {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-primary);
    color: var(--text-primary);
}

.sidebar-links { list-style: none; }

.sidebar-links li a {
    display: block;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-primary);
    transition: all var(--transition-fast);
}

.sidebar-links li:last-child a { border-bottom: none; }

.sidebar-links li a:hover {
    color: var(--accent-primary);
    padding-left: 8px;
}

/* =============================================
   LEAGUES LIST (sidebar)
   ============================================= */
.leagues-list {
    list-style: none;
    padding: 0;
}

.leagues-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 4px;
    border-bottom: 1px solid var(--border-primary);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

.leagues-list__item:hover {
    color: var(--accent-primary);
}

.leagues-list__logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.leagues-list__logo-ph {
    width: 22px;
    height: 22px;
    background: var(--bg-elevated);
    border-radius: 50%;
    flex-shrink: 0;
}

.leagues-list__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leagues-list__arrow {
    margin-inline-start: auto;
    color: var(--text-dim);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
    display: flex;
    align-items: center;
}

.leagues-list__item:hover .leagues-list__arrow {
    transform: translateX(3px);
    color: var(--accent-primary);
}

[dir="rtl"] .leagues-list__item:hover .leagues-list__arrow {
    transform: translateX(-3px);
}

/* =============================================
   CINEMA HOME WRAPPER
   ============================================= */
.cinema-home {
    padding: 0 0 16px;
}

/* =============================================
   HOME SECTIONS (EgyBest-style horizontal rows)
   ============================================= */
.home-section {
    padding: 20px 0 8px;
    border-bottom: 1px solid var(--border-primary);
}

.home-section:first-child {
    padding-top: 24px;
}

.home-section:last-of-type {
    border-bottom: none;
    margin-bottom: 8px;
}

.home-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}

.home-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
}

.home-section__title svg {
    flex-shrink: 0;
    color: var(--accent-primary);
}

.home-section__title .live-pulse {
    width: 10px;
    height: 10px;
    background: var(--live-red);
    border-radius: 50%;
    animation: pulse-live 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.home-section__more {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    white-space: nowrap;
    transition: color var(--transition-fast);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-glow);
}

.home-section__more:hover {
    color: var(--accent-primary-hover);
    background: rgba(59,130,246,0.2);
}

/* Live section special glow */
.home-section--live {
    background: linear-gradient(180deg, rgba(239,68,68,0.04) 0%, transparent 100%);
}

.home-section--live .home-section__title {
    color: var(--live-red);
}

/* =============================================
   LEAGUE CARD (horizontal slider)
   ============================================= */
.league-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    max-width: 140px;
    padding: 16px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.league-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background var(--transition);
}

.league-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.league-card:hover::before {
    background: var(--accent-primary);
}

.league-card__logo-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.league-card__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.league-card__logo--ph {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--text-muted);
    background: none;
    border: none;
}

.league-card__name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    line-height: 1.3;
}

.league-card__count {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 599px) {
    .league-card {
        min-width: 100px;
        max-width: 120px;
        padding: 12px 8px;
    }
    .league-card__logo-wrap {
        width: 44px;
        height: 44px;
    }
    .league-card__logo {
        width: 32px;
        height: 32px;
    }
}

/* =============================================
   NEWS CARD (horizontal slider)
   ============================================= */
.news-card {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    max-width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    flex-shrink: 0;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.news-card__thumb {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.news-card:hover .news-card__img {
    transform: scale(1.05);
}

.news-card__img--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

.news-card__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-card__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.news-card__date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

@media (max-width: 599px) {
    .news-card {
        min-width: 180px;
        max-width: 210px;
    }
    .news-card__thumb { height: 100px; }
    .news-card__body { padding: 10px; }
    .news-card__title { font-size: 0.78rem; }
}

/* =============================================
   STANDINGS TABLE
   ============================================= */
.standings-table-wrap {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.standings-table th {
    padding: 6px 4px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    border-bottom: 1px solid var(--border-primary);
    font-size: 0.72rem;
    text-transform: uppercase;
    background: var(--bg-elevated);
}

.standings-table th:nth-child(2) {
    text-align: start;
}

.standings-table td {
    padding: 7px 4px;
    text-align: center;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

.standings-table tbody tr:last-child td { border-bottom: none; }

.standings-table tbody tr:hover td {
    background: var(--bg-card-hover);
}

.standings-table__rank {
    font-weight: 700;
    color: var(--text-primary) !important;
    width: 24px;
}

.standings-table__team {
    text-align: start !important;
    font-weight: 600;
    color: var(--text-primary) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.standings-table__w { color: var(--accent-green) !important; }
.standings-table__l { color: var(--accent-red) !important; }
.standings-table__pts { font-weight: 700; color: var(--accent-primary) !important; }

.standings-table__gd--pos { color: var(--accent-green); font-weight: 700; }
.standings-table__gd--neg { color: var(--accent-red); font-weight: 700; }

.standings-table__zone--champions td:first-child,
.standings-table__zone--champions {
    border-inline-start: 3px solid var(--accent-green);
}

.standings-table__zone--europa td:first-child,
.standings-table__zone--europa {
    border-inline-start: 3px solid var(--accent-primary);
}

.standings-table__zone--relegation td:first-child,
.standings-table__zone--relegation {
    border-inline-start: 3px solid var(--accent-red);
}

.standings-table__highlight {
    background: var(--accent-glow) !important;
}

.standings-table__highlight td {
    font-weight: 700;
}

.standings-more {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    border-top: 1px solid var(--border-primary);
    margin-top: 8px;
    transition: color var(--transition-fast);
}

.standings-more:hover { color: var(--accent-primary-hover); }

/* Full table enhancements */
.standings-table--full {
    width: 100%;
}

.standings-table--full th {
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Compact variant for sidebar */
.standings-table--compact {
    width: 100%;
}

.standings-table--compact th,
.standings-table--compact td {
    padding: 8px 12px;
    font-size: 0.82em;
}

/* =============================================
   STANDINGS PAGE
   ============================================= */
.standings-page {
    padding: 30px 0 50px;
}

.standings-page__header {
    margin-bottom: 24px;
}

.standings-page__title {
    font-size: 1.6em;
    font-weight: 800;
    color: var(--text-primary);
}

.standings-page__subtitle {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 4px;
}

.standings-page__empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.standings-page__empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.standings-page__empty h3 {
    font-size: 1.2em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.standings-page__empty p {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* Standings Page Grid */
.standings-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
}

.standings-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-primary);
}

.standings-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.standings-card__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.standings-card__name {
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.92em;
}

.standings-card__name:hover {
    color: var(--accent-primary);
}

.standings-card__more {
    display: block;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.82em;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
    border-top: 1px solid var(--border-primary);
}

.standings-card__more:hover {
    background: var(--accent-glow);
}

/* Full View */
.standings-full-view {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-primary);
}

.standings-full-view__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    flex-wrap: wrap;
    gap: 12px;
}

.standings-full-view__back {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
}

.standings-full-view__back:hover {
    text-decoration: underline;
}

.standings-full-view__league {
    display: flex;
    align-items: center;
    gap: 12px;
}

.standings-full-view__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.standings-full-view__name {
    font-size: 1.15em;
    font-weight: 800;
    color: var(--text-primary);
}

/* Standings Legend */
.standings-legend {
    display: flex;
    gap: 20px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-primary);
    flex-wrap: wrap;
}

.standings-legend__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    color: var(--text-secondary);
}

.standings-legend__item::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.standings-legend__item--champions::before { background: var(--accent-green); }
.standings-legend__item--europa::before { background: var(--accent-primary); }
.standings-legend__item--relegation::before { background: var(--accent-red); }

/* =============================================
   LEAGUES GRID
   ============================================= */
.leagues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 600px) { .leagues-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .leagues-grid { grid-template-columns: repeat(4, 1fr); } }

.league-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.league-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-primary);
}

.league-card__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.league-card__logo--ph {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 50%;
}

.league-card__name {
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
}

.league-card__count {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* =============================================
   NEWS GRID
   ============================================= */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.news-card__img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-card__body { padding: 14px; }

.news-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 6px;
}

.news-card__title a:hover { color: var(--accent-primary); }

.news-card__date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* =============================================
   MATCH HERO (Single Match)
   ============================================= */
.match-hero {
    padding: 40px 0 30px;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-deepest) 100%);
    border-bottom: 1px solid var(--border-primary);
}

.match-hero__top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.match-hero__league {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.match-hero__league:hover { color: var(--accent-primary); }

.match-hero__league img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.match-hero__teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

.match-hero__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 200px;
}

.match-hero__logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.match-hero__logo--ph {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.match-hero__name {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
}

.match-hero__center { flex-shrink: 0; }

.match-hero__vs {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
}

.match-hero__score {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.match-hero__sep {
    color: var(--text-muted);
    font-size: 2rem;
}

.match-hero__info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.match-hero__info-sep {
    color: var(--border-hover);
}

.match-hero__notify {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.notify-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.notify-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.notify-btn--active {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

@media (max-width: 599px) {
    .match-hero__teams { gap: 16px; }
    .match-hero__logo { width: 56px; height: 56px; }
    .match-hero__score { font-size: 2rem; }
    .match-hero__vs { font-size: 1.2rem; }
    .match-hero__name { font-size: 0.85rem; }
}

/* =============================================
   MATCH CONTENT LAYOUT
   ============================================= */
.match-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
}

@media (min-width: 960px) {
    .match-content {
        grid-template-columns: 1fr 300px;
    }
}

.match-content__main { min-width: 0; }

.match-content__sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Match Section */
.match-section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 20px;
}

.match-section__title {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-primary);
    color: var(--text-primary);
}

.match-section__body.prose {
    line-height: 1.8;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.match-section__body.prose p { margin-bottom: 12px; }
.match-section__body.prose img { border-radius: var(--radius-sm); margin: 12px 0; }

/* =============================================
   MATCH PAGE - Tabs System
   ============================================= */
.match-tabs {
    display: flex;
    gap: 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin-top: 16px;
    overflow-x: auto;
}

.match-tabs__tab {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.85em;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.match-tabs__tab:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.match-tabs__tab--active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: var(--bg-card);
}

.match-tab-panel {
    display: none;
}

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

/* Match Info Grid */
.match-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.match-info-item {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.match-info-item__label {
    display: block;
    font-size: 0.75em;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.match-info-item__value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9em;
}

.match-info-item__value a {
    color: var(--accent-primary);
    text-decoration: none;
}

/* =============================================
   BROADCAST INFO
   ============================================= */
.broadcast-info {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.broadcast-info__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 150px;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
}

.broadcast-info__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.broadcast-info__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* =============================================
   STREAMING SERVER TABS
   ============================================= */
.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.server-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.server-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.server-tab--active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.server-tab--active:hover { color: #fff; }

.server-tab__name { white-space: nowrap; }

.server-tab__quality {
    font-size: 0.62rem;
    font-weight: 700;
    background: rgba(0,0,0,0.15);
    padding: 2px 6px;
    border-radius: 3px;
}

.server-tab--active .server-tab__quality {
    background: rgba(255,255,255,0.2);
}

/* Player Container */
.player-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}

.player-iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

.player-video {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    background: #000;
}

.player-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =============================================
   H2H Section
   ============================================= */
.h2h-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.h2h-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.h2h-row:hover {
    background: var(--accent-glow);
}

.h2h-row__date {
    font-size: 0.78em;
    color: var(--text-dim);
    min-width: 75px;
}

.h2h-row__team {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85em;
}

.h2h-row__score {
    font-weight: 800;
    color: var(--accent-primary);
    min-width: 50px;
    text-align: center;
}

/* =============================================
   SIDEBAR MATCHES
   ============================================= */
.sidebar-matches-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border-bottom: 1px solid var(--border-primary);
    transition: background var(--transition-fast);
}

.sidebar-match:hover {
    background: var(--accent-glow);
}

.sidebar-match--live {
    border-inline-start: 2px solid var(--live-red);
}

.sidebar-match__teams {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-match__teams span {
    font-size: 0.82em;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.sidebar-match__result {
    text-align: center;
}

.sidebar-match__score {
    font-weight: 800;
    font-size: 0.9em;
    color: var(--text-primary);
    display: block;
}

.sidebar-match__time {
    font-size: 0.8em;
    color: var(--text-muted);
    display: block;
}

/* =============================================
   LEAGUE HEADER (taxonomy)
   ============================================= */
.league-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
}

.league-header__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
}

.league-header__name {
    font-size: 1.5rem;
    font-weight: 700;
}

.league-header__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* =============================================
   LEAGUE PAGE (Enhanced with Tabs)
   ============================================= */
.league-hero {
    background: var(--bg-card);
    padding: 30px 0;
    margin-bottom: 0;
}

.league-hero__inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.league-hero__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.league-hero__name {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.league-hero__desc {
    color: var(--text-secondary);
    font-size: 0.88em;
}

.league-hero__stats {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.league-hero__stat {
    font-size: 0.82em;
    color: var(--text-secondary);
}

.league-hero__stat--live {
    color: var(--live-red);
    font-weight: 700;
}

/* League Tabs */
.league-tabs {
    display: flex;
    gap: 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin-top: 16px;
    overflow: hidden;
}

.league-tabs__tab {
    padding: 14px 24px;
    font-weight: 600;
    font-size: 0.88em;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
}

.league-tabs__tab:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.league-tabs__tab--active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: var(--bg-card);
}

.league-tab-content {
    background: var(--bg-card);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

/* League Stats Grid */
.league-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.league-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-align: center;
}

.league-stat-card__icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.league-stat-card__value {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--text-primary);
}

.league-stat-card__label {
    font-size: 0.78em;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Top Teams List */
.top-teams-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.top-team-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.top-team-row__rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75em;
    font-weight: 800;
}

.top-team-row__name {
    flex: 1;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9em;
}

.top-team-row__pts {
    font-weight: 800;
    color: var(--accent-primary);
    font-size: 0.85em;
}

.top-team-row__record {
    font-size: 0.78em;
    color: var(--text-secondary);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    margin-top: 32px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.pagination .current {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--footer-bg, var(--bg-primary));
    color: var(--text-secondary);
    padding: 48px 0 0;
    margin-top: 48px;
    border-top: 1px solid var(--border-primary);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
    .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .site-footer__grid--cols-2 { grid-template-columns: 1fr 1fr; }
    .site-footer__grid--cols-3 { grid-template-columns: 2fr 1fr 1fr; }
    .site-footer__grid--cols-4 { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.site-footer__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.site-footer__about {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links { list-style: none; }

.footer-links li a {
    display: block;
    padding: 5px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links li a:hover { color: #fff; }

.site-footer .sidebar-widget__title,
.site-footer .footer-widget__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.site-footer .sidebar-widget {
    background: transparent;
    border: none;
    padding: 0;
}

.site-footer .sidebar-links li a {
    color: var(--text-secondary);
    border-color: var(--border-primary);
}

.site-footer .sidebar-links li a:hover {
    color: #fff;
}

.site-footer__bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 36px;
    border-top: 1px solid var(--border-primary);
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* =============================================
   NOTIFICATION DROPDOWN
   ============================================= */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 400px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
}

[dir="rtl"] .notif-dropdown {
    right: auto;
    left: 0;
}

.notif-dropdown__header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
}

.notif-dropdown__list {
    max-height: 340px;
    overflow-y: auto;
}

.notif-dropdown__empty {
    padding: 30px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-primary);
    text-decoration: none;
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

.notif-item:hover {
    background: var(--bg-card-hover);
}

.notif-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.notif-item__dot--live { background: var(--live-red); }
.notif-item__dot--soon { background: var(--upcoming-amber); }

.notif-item__text {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
}

.notif-item__dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
}

.notif-item__dismiss:hover { color: var(--accent-red); }

/* =============================================
   COMMENTS SECTION
   ============================================= */
.match-comments {
    margin-top: 20px;
}

.match-comments__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-comments__count {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

/* Social Login Buttons */
.social-login-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.social-btn--google:hover { border-color: #4285F4; }
.social-btn--facebook:hover { border-color: #1877F2; }
.social-btn--guest:hover { border-color: var(--accent-primary); }
.social-btn svg { flex-shrink: 0; }

/* Social User Info */
.social-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.social-user-info__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.social-user-info__name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-primary);
}

.social-user-info__logout {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.social-user-info__logout:hover { color: var(--accent-red); }

/* Guest Fields */
.guest-fields {
    margin-bottom: 12px;
}

.guest-fields__row {
    display: flex;
    gap: 10px;
}

.guest-fields__row input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.guest-fields__row input:focus {
    border-color: var(--accent-primary);
}

.guest-fields__row input::placeholder {
    color: var(--text-dim);
}

/* Comment Textarea */
.comment-input-area {
    position: relative;
}

.comment-input-area textarea {
    width: 100%;
    padding: 12px 14px;
    padding-bottom: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.comment-input-area textarea:focus {
    border-color: var(--accent-primary);
}

.comment-input-area textarea::placeholder {
    color: var(--text-dim);
}

.comment-submit-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 6px 18px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast);
}

[dir="rtl"] .comment-submit-btn {
    right: auto;
    left: 10px;
}

.comment-submit-btn:hover {
    background: var(--accent-primary-hover);
}

.comment-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Comment Message */
.comment-message {
    margin-top: 10px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: none;
}

.comment-message--success {
    display: block;
    background: rgba(34,197,94,0.1);
    color: var(--accent-green);
    border: 1px solid rgba(34,197,94,0.2);
}

.comment-message--error {
    display: block;
    background: rgba(239,68,68,0.1);
    color: var(--accent-red);
    border: 1px solid rgba(239,68,68,0.2);
}

/* Comments List */
.comments-list {
    margin-top: 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-primary);
}

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

.comment-item__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.comment-item__body {
    flex: 1;
    min-width: 0;
}

.comment-item__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-item__author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-item__provider {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    text-transform: capitalize;
}

.comment-item__provider--google { background: rgba(66,133,244,0.15); color: #4285F4; }
.comment-item__provider--facebook { background: rgba(24,119,242,0.15); color: #1877F2; }

.comment-item__date {
    font-size: 12px;
    color: var(--text-dim);
    margin-inline-start: auto;
}

.comment-item__content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    word-wrap: break-word;
}

.comments-loading {
    padding: 30px;
    text-align: center;
}

.comments-load-more {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.comments-load-more:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* =============================================
   CHANNEL PAGES
   ============================================= */
.channel-hero {
    background: var(--bg-card);
    padding: 30px 0;
    margin-bottom: 24px;
}

.channel-hero__inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.channel-hero__logo-wrap {
    flex-shrink: 0;
}

.channel-hero__logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    padding: 10px;
}

.channel-hero__logo--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--text-muted);
}

.channel-hero__name {
    font-size: 1.6em;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.channel-hero__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.channel-hero__country {
    font-size: 0.85em;
    color: var(--text-secondary);
}

/* Channel Content Layout */
.channel-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    padding-bottom: 40px;
}

.channel-content__sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Frequency Table */
.freq-table-wrap {
    overflow-x: auto;
}

.freq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88em;
}

.freq-table th {
    background: var(--bg-secondary);
    padding: 10px 14px;
    text-align: start;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
}

.freq-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

.freq-table__sat {
    font-weight: 600;
    color: var(--text-primary);
}

.freq-table__freq {
    font-weight: 700;
    color: var(--accent-primary);
    font-family: monospace;
}

.freq-table tr:hover td {
    background: var(--accent-glow);
}

/* Channels Sidebar List */
.channels-sidebar-list {
    list-style: none;
    padding: 0;
}

.channels-sidebar-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-primary);
    text-decoration: none;
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

.channels-sidebar-list__item:hover {
    background: var(--accent-glow);
}

.channels-sidebar-list__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

.channels-sidebar-list__logo-ph {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 14px;
}

.channels-sidebar-list__name {
    flex: 1;
    font-weight: 600;
    font-size: 0.88em;
}

/* Channels Archive Page */
.channels-page-header {
    margin-bottom: 20px;
}

.channels-page-header__title {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--text-primary);
}

.channels-page-header__sub {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-top: 4px;
}

/* Channel Filters */
.channels-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.channels-filters__search {
    display: flex;
    max-width: 400px;
}

.channels-filters__search input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--border-primary);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    outline: none;
    font-size: 0.88em;
}

.channels-filters__search button {
    padding: 8px 14px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
}

.channels-filters__types,
.channels-filters__cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.channels-filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82em;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.channels-filter-btn:hover {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.channels-filter-btn--active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

/* Channel Cards Grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1px solid var(--border-primary);
    transition: all var(--transition);
}

.channel-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.channel-card__logo-wrap {
    position: relative;
    flex-shrink: 0;
}

.channel-card__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    padding: 6px;
}

.channel-card__logo--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-dim);
}

.channel-card__live-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--live-red);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.channel-card__info {
    flex: 1;
    min-width: 0;
}

.channel-card__name {
    font-size: 0.95em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-card__badges {
    display: flex;
    gap: 4px;
}

.channel-card__matches {
    flex-shrink: 0;
    text-align: center;
}

.channel-card__match-count {
    display: block;
    font-size: 1.3em;
    font-weight: 800;
    color: var(--accent-primary);
}

.channel-card__match-label {
    display: block;
    font-size: 0.68em;
    color: var(--text-dim);
}

/* =============================================
   SITE MAIN
   ============================================= */
.site-main {
    min-height: 60vh;
}

/* =============================================
   LOADING SPINNER
   ============================================= */
.loading-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-primary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.loading-spinner--sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.loading-spinner--lg {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

/* =============================================
   MOBILE BOTTOM NAVIGATION
   ============================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-primary);
    padding: 6px 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    body {
        padding-bottom: 60px;
    }
}

.mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item--active,
.mobile-bottom-nav__item.is-active {
    color: var(--accent-primary);
}

.mobile-bottom-nav__icon {
    font-size: 1.25rem;
    line-height: 1;
}

.mobile-bottom-nav__label {
    line-height: 1;
}

.mobile-bottom-nav__item--active::before,
.mobile-bottom-nav__item.is-active::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
}

/* =============================================
   TRANSITIONS for theme switch
   ============================================= */
.site-header,
.site-footer,
.mcard,
.sidebar-widget,
.league-card,
.news-card,
.match-section,
.broadcast-info__item,
.server-tab,
.badge,
.search-form input[type="search"],
.theme-toggle,
.header-bell {
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* 768px-959px: collapse to 1 column */
@media (max-width: 768px) {
    .channel-hero__inner {
        flex-direction: column;
        text-align: center;
    }
    .channel-hero__meta {
        justify-content: center;
    }
    .channel-content {
        grid-template-columns: 1fr;
    }
    .channels-grid {
        grid-template-columns: 1fr;
    }
    .league-hero__inner {
        flex-direction: column;
        text-align: center;
    }
    .league-tabs {
        overflow-x: auto;
    }
    .match-info-grid {
        grid-template-columns: 1fr;
    }
    .standings-page-grid {
        grid-template-columns: 1fr;
    }
    .h2h-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .match-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .standings-full-view__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 480px: compact mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* Responsive: Comments */
@media (max-width: 600px) {
    .social-login-buttons {
        flex-direction: column;
    }
    .social-btn {
        justify-content: center;
    }
    .guest-fields__row {
        flex-direction: column;
    }
    .notif-dropdown {
        width: 280px;
        right: -40px;
    }
    [dir="rtl"] .notif-dropdown {
        right: auto;
        left: -40px;
    }
}

/* =============================================
   RESPONSIVE: Home Sections
   ============================================= */
@media (max-width: 767px) {
    .home-section {
        padding: 16px 0 6px;
    }
    .home-section__header {
        margin-bottom: 10px;
    }
    .home-section__title {
        font-size: 0.95rem;
    }
    .home-section__more {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .home-section {
        padding: 12px 0 4px;
    }
    .home-section__title {
        font-size: 0.88rem;
    }
}

/* =============================================
   SINGLE POST (Blog/News)
   ============================================= */
.single-post {
    padding: 0 0 40px;
}

.post-breadcrumb {
    padding: 16px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 24px;
}

.post-breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.post-breadcrumb__list a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.post-breadcrumb__list a:hover {
    color: var(--accent-primary);
}

.post-breadcrumb__sep {
    color: var(--text-dim);
    font-size: 0.7rem;
}

.post-breadcrumb__current {
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.single-post__layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 960px) {
    .single-post__layout {
        grid-template-columns: 1fr;
    }
}

.single-post__main {
    min-width: 0;
}

.post-header {
    margin-bottom: 24px;
}

.post-header__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0 0 12px;
}

.post-header__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.post-header__meta > span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-header__meta svg {
    color: var(--text-dim);
}

.post-thumbnail {
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-primary);
}

.post-thumbnail__img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 24px 0 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.post-content h2 { font-size: 1.35rem; }
.post-content h3 { font-size: 1.15rem; }
.post-content h4 { font-size: 1rem; }

.post-content p {
    margin: 0 0 16px;
}

.post-content img {
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.post-content a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--accent-primary-hover);
}

.post-content blockquote {
    border-inline-start: 4px solid var(--accent-primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--bg-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-content ul,
.post-content ol {
    padding-inline-start: 24px;
    margin: 12px 0;
}

.post-content li {
    margin-bottom: 6px;
    list-style: disc;
}

.post-content ol li {
    list-style: decimal;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid var(--border-primary);
    margin-bottom: 20px;
}

.post-tags__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.post-tags__tag {
    font-size: 0.78rem;
    color: var(--accent-primary);
    background: var(--accent-glow);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.post-tags__tag:hover {
    background: rgba(59,130,246,0.2);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border-primary);
    margin-bottom: 20px;
}

.post-share__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.post-share__btns {
    display: flex;
    gap: 8px;
}

.post-share__btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.post-share__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.post-share__btn--fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.post-share__btn--tw:hover { background: #1da1f2; color: #fff; border-color: #1da1f2; }
.post-share__btn--wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.post-share__btn--tg:hover { background: #0088cc; color: #fff; border-color: #0088cc; }

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border-primary);
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .post-nav { grid-template-columns: 1fr; }
}

.post-nav__link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.post-nav__link:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.post-nav__link--next {
    text-align: end;
}

.post-nav__label {
    font-size: 0.72rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.post-nav__title {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .post-header__title { font-size: 1.3rem; }
    .post-content { font-size: 0.9rem; }
}

/* =============================================
   BLOG ARCHIVE (News)
   ============================================= */
.blog-archive {
    padding: 0 0 40px;
}

.blog-archive__header {
    padding: 24px 0 20px;
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 24px;
}

.blog-archive__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.blog-archive__title svg {
    color: var(--accent-primary);
}

.blog-archive__layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 960px) {
    .blog-archive__layout {
        grid-template-columns: 1fr;
    }
}

.blog-archive__main {
    min-width: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Post Card */
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.post-card__thumb {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.post-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.post-card:hover .post-card__img {
    transform: scale(1.05);
}

.post-card__img--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

.post-card__category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

[dir="rtl"] .post-card__category {
    right: auto;
    left: 10px;
}

.post-card__body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.post-card__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__excerpt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-primary);
}

/* Blog Pagination */
.blog-pagination {
    margin-top: 30px;
    text-align: center;
}

.blog-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.blog-pagination .page-numbers.dots {
    background: none;
    border: none;
    color: var(--text-muted);
}

.blog-pagination .page-numbers.dots:hover {
    color: var(--text-muted);
    background: none;
}

/* =============================================
   404 PAGE
   ============================================= */
.error-404 {
    padding: 80px 0;
}

.error-404__content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-404__code {
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-404__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.error-404__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 30px;
    line-height: 1.7;
}

.error-404__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
