/* =========================================================
   Stream24 - Main Stylesheet (Dark Sports Theme)
   Path: /assets/css/style.css
   Version: 1.1.0
   ========================================================= */


/* =========================================================
   1. CSS VARIABLES
   ========================================================= */

:root {
    /* Base - Dark */
    --background: #0a0a0b;
    --foreground: #fafafa;
    
    /* Card & Popover */
    --card: #141416;
    --card-foreground: #fafafa;
    --popover: #18181b;
    --popover-foreground: #fafafa;
    
    /* Primary (Sports Red/Pink) */
    --primary: #fe3a68;
    --primary-foreground: #ffffff;
    --primary-hover: #e11d48;
    --primary-glow: rgba(254, 58, 104, 0.4);
    --primary-soft: rgba(254, 58, 104, 0.12);
    
    /* Secondary (Blue-Gray) */
    --secondary: #1e2a35;
    --secondary-foreground: #fafafa;
    
    /* Muted */
    --muted: #1f1f23;
    --muted-foreground: #a1a1aa;
    
    /* Accent */
    --accent: #241a1f;
    --accent-foreground: #fe3a68;
    
    /* Status */
    --success: #10b981;
    --success-foreground: #ffffff;
    --destructive: #ef4444;
    --destructive-foreground: #ffffff;
    --warning: #f59e0b;
    --warning-foreground: #ffffff;
    
    /* Live */
    --live: #fe3a68;
    --live-foreground: #ffffff;
    --live-glow: rgba(254, 58, 104, 0.6);
    
    /* Upcoming */
    --upcoming: #f59e0b;
    --upcoming-foreground: #0a0a0b;
    
    /* Finished */
    --finished: #52525b;
    --finished-foreground: #e4e4e7;
    
    /* Borders & Inputs */
    --border: #27272a;
    --input: #27272a;
    --ring: #fe3a68;
    
    /* Radii */
    --radius: 0.5rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --shadow-primary: 0 4px 14px -4px var(--primary-glow);
    --shadow-live: 0 0 12px -2px var(--live-glow);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --container-max: 80rem;
    
    color-scheme: dark;
}


/* =========================================================
   2. RESET & BASE
   ========================================================= */

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}


/* =========================================================
   3. SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: var(--radius-full);
    border: 2px solid var(--muted);
}

::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}


/* =========================================================
   4. TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--foreground);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin: 0; }


/* =========================================================
   5. SITE HEADER
   ========================================================= */

.site-header {
    background: 
        linear-gradient(90deg, 
            rgba(254, 58, 104, 0.12) 0%, 
            rgba(37, 55, 69, 0.35) 50%,
            rgba(10, 10, 11, 0.95) 100%),
        var(--background);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}


/* =========================================================
   6. STATUS BADGES
   ========================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    line-height: 1;
}

.status-badge.status-live {
    background-color: var(--live);
    color: var(--live-foreground);
    box-shadow: var(--shadow-live);
}

.status-badge.status-live::before {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse-live 1.5s ease-in-out infinite;
}

.status-badge.status-upcoming {
    background-color: var(--upcoming);
    color: var(--upcoming-foreground);
}

.status-badge.status-finished {
    background-color: var(--finished);
    color: var(--finished-foreground);
}

@keyframes pulse-live {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% { 
        opacity: 0.85; 
        transform: scale(0.9);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0);
    }
}


/* =========================================================
   7. BADGES (Team / League / Flag)
   ========================================================= */

.team-badge {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    object-fit: contain;
    background-color: var(--muted);
    padding: 0.25rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.team-badge-lg {
    width: 4rem;
    height: 4rem;
    padding: 0.5rem;
}

.league-badge {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.9;
}

.flag-icon {
    width: 1.5rem;
    height: 1rem;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1);
    flex-shrink: 0;
}


/* =========================================================
   8. CARD
   ========================================================= */

.card-base {
    background-color: var(--card);
    color: var(--card-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card-base:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px -4px var(--primary-glow);
    transform: translateY(-2px);
}


/* =========================================================
   9. CHANNEL ITEM
   ========================================================= */

.channel-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
    background-color: transparent;
}

.channel-item:hover {
    background-color: var(--accent);
    border-color: var(--primary);
    color: var(--accent-foreground);
}

.channel-item.dead {
    opacity: 0.4;
    pointer-events: none;
}


/* =========================================================
   10. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -4px var(--primary-glow);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--foreground);
}

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

.btn-ghost {
    background-color: transparent;
    color: var(--muted-foreground);
}

.btn-ghost:hover {
    background-color: var(--accent);
    color: var(--foreground);
}


/* =========================================================
   11. SPINNER
   ========================================================= */

.spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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


/* =========================================================
   12. UTILITIES
   ========================================================= */

.container-custom {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (min-width: 640px) {
    .container-custom { padding-inline: 1.5rem; }
}

@media (min-width: 1024px) {
    .container-custom { padding-inline: 2rem; }
}

.truncate-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* =========================================================
   13. ANIMATIONS
   ========================================================= */

.fade-in {
    animation: fade-in var(--transition-base) ease-out;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* =========================================================
   14. GLOW EFFECTS
   ========================================================= */

.glow-primary {
    box-shadow: 0 0 20px -4px var(--primary-glow);
}

.glow-live {
    box-shadow: 0 0 16px -2px var(--live-glow);
}

.text-gradient {
    background: linear-gradient(135deg, #fafafa 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}




/* =========================================================
   15. NAVIGATION - ENHANCED (Slim)
   ========================================================= */

/* --- Desktop Nav Link --- */
.nav-link {
    position: relative;
    padding: 0.4rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border-radius: var(--radius-md);
    transition: 
        color var(--transition-base),
        background-color var(--transition-base);
}

.nav-link:hover {
    color: var(--foreground);
    background-color: rgba(254, 58, 104, 0.08);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff4d7d, #c81e4a);
    border-radius: var(--radius-full);
    transform: translateX(-50%);
    transition: width var(--transition-base) ease;
}

.nav-link:hover::after {
    width: 60%;
}

/* --- Active Link --- */
.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    width: calc(100% - 1.75rem);
    background: linear-gradient(90deg, #ff4d7d, #c81e4a);
    box-shadow: 0 0 8px -1px var(--primary-glow);
}

/* --- Mobile Nav Link --- */
.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border-radius: var(--radius-md);
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--foreground);
    background-color: var(--accent);
}

.mobile-nav-link.active {
    color: var(--primary);
    background-color: rgba(254, 58, 104, 0.1);
    border-left-color: var(--primary);
    font-weight: 600;
}

/* --- Mobile Menu Animation --- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
}

#mobile-menu.open {
    max-height: 350px;
}

/* --- Header Scroll Shadow --- */
.site-header.scrolled {
    box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.6);
    border-bottom-color: rgba(254, 58, 104, 0.15);
}

/* --- Header Glow Line (Top) --- */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(254, 58, 104, 0.6) 50%, 
        transparent 100%
    );
    opacity: 0.4;
}

.header-accent {
    height: 2px;
    background: linear-gradient(
        90deg,
        #ff4d7d 0%,
        #c81e4a 50%,
        #f59e0b 100%
    );
    opacity: 0.7;
}

.nav-link + .nav-link::before {
    content: '•';
    color: var(--muted-foreground);
    opacity: 0.3;
    margin: 0 0.5rem;
}

/* =========================================================
   16. SITE FOOTER
   ========================================================= */

.site-footer {
    position: relative;
    background-color: var(--background);
    border-top: 1px solid var(--border);
}

/* Top glow line (matches header) */
.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(254, 58, 104, 0.4) 50%,
        transparent 100%
    );
    opacity: 0.5;
}

/* Subtle radial glow */
.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100px;
    background: radial-gradient(
        ellipse at top,
        rgba(254, 58, 104, 0.06) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* =========================================================
   17. HERO SLIDESHOW
   ========================================================= */

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: var(--card);
}

@media (min-width: 640px) {
    .hero-slideshow { height: 160px; }
}

@media (min-width: 1024px) {
    .hero-slideshow { height: 180px; }
}

/* Slides */
.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 10, 11, 0.95) 0%,
        rgba(10, 10, 11, 0.75) 50%,
        rgba(10, 10, 11, 0.6) 100%
    );
    z-index: 1;
}

/* Content */
.hero-content {
    position: relative;
    z-index: 2;
   
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .hero-content { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .hero-content { padding: 0 2rem; }
}

/* Text Container */
.hero-text {
    position: absolute;
    left: 1rem;
    right: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: 
        opacity 0.6s ease,
        transform 0.6s ease;
    pointer-events: none;
}

@media (min-width: 640px) {
    .hero-text {
        left: 1.5rem;
        right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-text {
        left: 2rem;
        right: 2rem;
    }
}

.hero-text.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Title */
.hero-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fafafa;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .hero-title { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 1.75rem; }
}

.hero-icon {
    font-size: 1.5em;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(254, 58, 104, 0.4));
}

/* Divider */
.hero-divider {
    width: 50px;
    height: 3px;
    margin: 0.5rem 0 0.625rem;
    background: linear-gradient(90deg, #ff4d7d, #c81e4a);
    border-radius: var(--radius-full);
    box-shadow: 0 0 12px -2px rgba(254, 58, 104, 0.6);
}

/* Subtitle */
.hero-subtitle {
    font-size: 0.8125rem;
    color: rgba(250, 250, 250, 0.8);
    max-width: 32rem;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .hero-subtitle { font-size: 0.875rem; }
}

/* CTA Button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--primary);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px -4px var(--primary-glow);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.hero-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -4px var(--primary-glow);
}

.hero-cta svg {
    transition: transform var(--transition-fast);
}

.hero-cta:hover svg {
    transform: translateX(3px);
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
}

.hero-dot {
    width: 24px;
    height: 3px;
    border-radius: var(--radius-full);
    background-color: rgba(250, 250, 250, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-base);
}

.hero-dot:hover {
    background-color: rgba(250, 250, 250, 0.5);
}

.hero-dot.active {
    width: 32px;
    background-color: var(--primary);
    box-shadow: 0 0 8px -1px var(--primary-glow);
}

/* Hide dots on very small screens */
@media (max-width: 480px) {
    .hero-dots { bottom: 0.5rem; }
    .hero-dot { width: 18px; }
    .hero-dot.active { width: 24px; }
}



.hero-slideshow {
    margin-top: 2px;
}



/* =========================================================
   18. SIDEBAR
   ========================================================= */

/* Sidebar block (container) */
.sidebar-block {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;              /* ← لإخفاء الحواف */
    margin-bottom: 1rem;
}

/* =========================================================
   SIDEBAR HEADER (رأس الـ Sidebar)
   ========================================================= */

.sidebar-title {
    /* Reset */
    margin: 0;
    padding: 0.75rem 1rem;
    
    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    
    /* Style */
    background: linear-gradient(90deg,
    #ff4d7d 0%,       /* أحمر كامل */
    #c81e4a 50%,      /* أحمر داكن */
    #1e2a35 100%      /* رمادي مزرق */
);
    color: #ffffff;
    
    /* Typography */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    
    /* No border-radius — لأن الأب عنده overflow:hidden */
    border-radius: 0;
    
    /* Shadow (subtle) */
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    
    /* Position */
    position: relative;
}

/* Inner highlight (لمعة في الأعلى) */
.sidebar-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    pointer-events: none;
}

/* =========================================================
   SIDEBAR BODY (المحتوى)
   ========================================================= */

.sidebar-body {
    padding: 1rem;
}

/* =========================================================
   SIDEBAR LIST
   ========================================================= */

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
}

/* Item */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-md);
    color: var(--muted-foreground);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
}

.sidebar-item:hover {
    background-color: var(--accent);
    color: var(--foreground);
    border-left-color: var(--primary);
}

/* Live item */
.sidebar-item.live {
    color: var(--foreground);
    font-weight: 500;
}

.sidebar-item.live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--live);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px -1px var(--live-glow);
    animation: pulse-live-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-live-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}

/* Name */
.sidebar-item-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Count */
.sidebar-item-count {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    background-color: var(--muted);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    min-width: 22px;
    text-align: center;
    transition: all var(--transition-fast);
}

.sidebar-item:hover .sidebar-item-count {
    background-color: var(--primary);
    color: #fff;
}

.sidebar-item.live .sidebar-item-count {
    background-color: rgba(254, 58, 104, 0.15);
    color: var(--live);
}

.sidebar-item.live:hover .sidebar-item-count {
    background-color: var(--live);
    color: #fff;
}

/* Remove old divider */
.sidebar-divider {
    display: none;
}


/* =========================================================
   19. CONTENT LAYOUT
   ========================================================= */

.content-section {
    background-color: var(--background);
}

/* Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 200px 1fr;
        gap: 1.5rem;
    }
}

/* Desktop: wider sidebar */
@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 300px 1fr;
        gap: 2rem;
    }
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

/* Main Content */
.main-content {
    min-width: 0;
}

/* Empty Placeholder */
.empty-placeholder {
    padding: 3rem 1.5rem;
    text-align: center;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--muted-foreground);
    font-size: 0.875rem;
}













/* =========================================================
   SIDEBAR: LEAGUES SPECIFIC
   ========================================================= */

/* Hide leagues sidebar on mobile only */
.sidebar-leagues {
    display: none;
}

/* Show on tablet & desktop (>= 640px) */
@media (min-width: 640px) {
    .sidebar-leagues {
        display: block;
    }
}

/* Compact spacing for leagues (more items) */
.sidebar-leagues .sidebar-body {
    padding: 0.5rem;
}

.sidebar-leagues .sidebar-list {
    gap: 0;
}

.sidebar-leagues .sidebar-item {
    padding: 0.475rem 0.7rem;
    font-size: 0.9125rem;
}

/* League badge image */
.sidebar-item-badge {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
    background-color: var(--muted);
    padding: 1px;
}

/* Compact count */
.sidebar-leagues .sidebar-item-count {
    font-size: 0.625rem;
    padding: 0.0625rem 0.3125rem;
    min-width: 18px;
}

/* Truncate long league names */
.sidebar-leagues .sidebar-item-name {
    font-size: 0.8125rem;
    line-height: 1.3;
}


/* =========================================================
   20. SCHEDULE
   ========================================================= */

.schedule-block {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Header */
.schedule-title {
    margin: 0;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(
        90deg,
        #ff4d7d 0%,
        #c81e4a 50%,
        #1e2a35 100%
    );
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    position: relative;
}

.schedule-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    pointer-events: none;
}

/* Tabs */
.schedule-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.schedule-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.5rem 0.25rem;
  
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.schedule-tab.active {
    background: linear-gradient(135deg, #ff4d7d, #c81e4a);
    border-color: transparent;
    box-shadow: 0 4px 14px -4px var(--primary-glow);
}

.schedule-tab-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

.schedule-tab.active .schedule-tab-label {
    color: rgba(255, 255, 255, 0.85);
}

.schedule-tab-number {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1;
}

.schedule-tab.active .schedule-tab-number {
    color: #ffffff;
}

/* Content & Days */
.schedule-content {
    padding: 0.35rem;
}

.schedule-day {
    display: none;
    flex-direction: column;
    gap: 0.1rem;
}

.schedule-day.active {
    display: flex;
}

/* Empty state */
.schedule-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.match-card {
    display: block;
    padding: 0.375rem 0.625rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-radius: var(--radius-md);
    color: inherit;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.match-card:hover {
    border-left-color: var(--primary);
    transform: translateX(3px);
    background-color: var(--accent);
}

.match-card.live {
    border-left-color: var(--live);
}

/* Top */
.match-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.match-card-league {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.match-card-league-badge {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.match-card-league-name {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.1875rem;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    white-space: nowrap;
}

.match-card-status.live {
    color: var(--live);
    background-color: rgba(254, 58, 104, 0.12);
}

.match-card-status.upcoming {
    color: var(--muted-foreground);
    background-color: var(--muted);
}

.live-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: var(--live);
    border-radius: 50%;
    box-shadow: 0 0 6px -1px var(--live-glow);
    animation: pulse-live-dot 1.5s ease-in-out infinite;
}

/* Body */
.match-card-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    min-width: 0;
}

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

.match-team-away {
    justify-content: flex-start;
    text-align: left;
}

.match-team-badge {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.match-team-name {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.match-vs {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    opacity: 0.6;
    flex-shrink: 0;
    padding: 0 0.25rem;
}

/* Event */
.match-card-event {
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--foreground);
    line-height: 1.3;
    padding: 0.125rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile */
@media (max-width: 640px) {
    .match-team-name { font-size: 0.625rem; }
    .match-team-badge { width: 16px; height: 16px; }
}

/* =========================================================
   21. TV GUIDE
   ========================================================= */

.tv-guide-section {
    padding: 1.5rem 0;
}

@media (min-width: 768px) {
    .tv-guide-section { padding: 2rem 0; }
}

.tv-guide-block {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ─── Header ─── */
.tv-guide-title {
    margin: 0;
    padding: 0.75rem 1rem;
    text-align: center;
    background: linear-gradient(90deg, #ff4d7d 0%, #c81e4a 50%, #1e2a35 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    position: relative;
}

.tv-guide-title::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

/* ─── Tabs ─── */
.tv-guide-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.tv-guide-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.5rem 0.25rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tv-guide-tab:hover {
    border-color: var(--primary);
    background-color: var(--accent);
}

.tv-guide-tab.active {
    background: linear-gradient(135deg, #ff4d7d, #c81e4a);
    border-color: transparent;
    box-shadow: 0 4px 14px -4px var(--primary-glow);
}

.tv-tab-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground);
}

.tv-guide-tab.active .tv-tab-label {
    color: #ffffff;
}

.tv-tab-range {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.tv-guide-tab.active .tv-tab-range {
    color: rgba(255, 255, 255, 0.75);
}

.tv-tab-stats {
    display: flex;
    align-items: center;
    gap: 0.1875rem;
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--muted-foreground);
    margin-top: 0.0625rem;
}

.tv-guide-tab.active .tv-tab-stats {
    color: rgba(255, 255, 255, 0.9);
}

.tv-stat-sep {
    opacity: 0.5;
}

/* ─── Contents ─── */
.tv-guide-contents {
    padding: 0.75rem;
}

.tv-guide-content {
    display: none;
}

.tv-guide-content.active {
    display: block;
}

/* ─── Empty ─── */
.tv-guide-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
}

/* ─── Masonry Grid ─── */
.tv-guide-grid {
    columns: 1;
    column-gap: 0.5rem;
}

@media (min-width: 640px) {
    .tv-guide-grid { columns: 2; }
}

@media (min-width: 1024px) {
    .tv-guide-grid { columns: 3; }
}

/* ─── Channel Card ─── */
.tv-channel-card {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 0.5rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tv-channel-card:hover {
    border-left-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 20px -8px rgba(254, 58, 104, 0.3);
}

.tv-channel-card.has-live {
    border-left-color: var(--live);
}

/* ─── Channel Header ─── */
.tv-channel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    padding: 0.4375rem 0.625rem;
    background-color: var(--muted);
    border-bottom: 1px solid var(--border);
    transition: background-color var(--transition-fast);
}

.tv-channel-header:hover {
    background-color: var(--accent);
}

.tv-channel-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
    flex: 1;
}

.tv-channel-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.tv-channel-name {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tv-channel-header:hover .tv-channel-name {
    color: var(--primary);
}

.tv-channel-live {
    max-width: 100px;      /* حد أقصى */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── Matches ─── */
.tv-channel-matches {
    display: flex;
    flex-direction: column;
}

.tv-match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-bottom: 1px solid var(--border);
    transition: background-color var(--transition-fast);
}

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

.tv-match:hover {
    background-color: var(--accent);
}

/* Teams */
.tv-team {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.tv-team-home { text-align: right; }
.tv-team-away { text-align: left; }

/* Time */
.tv-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.1875rem;
    font-size: 0.5625rem;
    font-weight: 700;
    color: var(--muted-foreground);
    background-color: var(--muted);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 32px;
    height: 16px;
}

.tv-time.live {
    color: var(--live);
    background-color: rgba(254, 58, 104, 0.12);
}

/* Event */
.tv-match-event {
    grid-template-columns: 1fr auto;
}

.tv-event-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    text-align: left;
}

/* Live dot */
.live-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: var(--live);
    border-radius: 50%;
    box-shadow: 0 0 6px -1px var(--live-glow);
    animation: pulse-live-dot 1.5s ease-in-out infinite;
}

/* Mobile */
@media (max-width: 640px) {
    .tv-team { font-size: 0.625rem; }
    .tv-time { font-size: 0.5rem; min-width: 28px; }
    .tv-tab-stats { font-size: 0.5rem; }
}


/* Channels inside match card */
.tv-match-channel {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-bottom: 1px solid var(--border);
    transition: background-color var(--transition-fast);
    grid-template-columns: none;  /* Override grid */
}

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

.tv-match-channel:hover {
    background-color: var(--accent);
}

.tv-ch-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.tv-ch-name {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.tv-match-channel:hover .tv-ch-name {
    color: var(--primary);
}

/* Time badge in header */
.tv-match-time {
    display: inline-flex;
    align-items: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--muted-foreground);
    background-color: var(--muted);
    padding: 0.125rem 0.4375rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Channel item inside match card ─── */
.tv-channel-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-bottom: 1px solid var(--border);
    transition: background-color var(--transition-fast);
}

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

.tv-channel-item:hover {
    background-color: var(--accent);
}

.tv-ch-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.tv-ch-name {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.tv-channel-item:hover .tv-ch-name {
    color: var(--primary);
}

/* ─── Time badge in header ─── */
.tv-match-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--muted-foreground);
    background-color: var(--muted);
    padding: 0.125rem 0.4375rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    flex-shrink: 0;
}


/* Default (Mobile + Tablet): no sticky */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Desktop only (≥1024px): sticky */
@media (min-width: 640px) {
    .sidebar {
        position: sticky;
        top: 80px;
        align-self: start;
    }
}


/* =========================================================
   22. ABOUT SECTION (SEO Content)
   ========================================================= */

.about-section {
    padding: 2rem 0;
   
    border-top: 1px solid var(--border);
}

.about-block {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0 0 0.5rem;
}

.about-divider {
    width: 60px;
    height: 3px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(90deg, #ff4d7d, #c81e4a);
    border-radius: 9999px;
}

.about-block p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--muted-foreground);
    margin: 0 0 0.875rem;
}

.about-block p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   23. EVENT PAGE
   ========================================================= */

/* ─── Breadcrumb ─── */
.event-breadcrumb {
    margin-bottom: 0.75rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
}

.breadcrumb-item a {
    color: var(--muted-foreground);
    transition: color 150ms ease;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.current {
    color: var(--foreground);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.breadcrumb-sep {
    color: var(--muted-foreground);
    opacity: 0.5;
    font-size: 0.875rem;
}

/* ─── Event Hero ─── */
.event-hero {
    position: relative;
    padding: 1.25rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
}

.event-hero.live {
    border-color: rgba(254, 58, 104, 0.3);
    box-shadow: 0 0 30px -10px rgba(254, 58, 104, 0.3);
}

/* Top: League + Status */
.event-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-league {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    transition: color 150ms ease;
}

.event-league:hover {
    color: var(--primary);
}

.event-league-badge {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.event-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
}

.event-status.live {
    color: var(--live);
    background-color: rgba(254, 58, 104, 0.12);
}

.event-status.upcoming {
    color: var(--muted-foreground);
    background-color: var(--muted);
}

.event-status.finished {
    color: var(--muted-foreground);
    background-color: var(--muted);
    opacity: 0.7;
}

/* Teams */
.event-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    min-width: 0;
}

.event-team-badge {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background-color: var(--muted);
    border-radius: var(--radius-full);
    padding: 0.375rem;
    border: 1px solid var(--border);
}

.event-team-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.3;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.event-vs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    opacity: 0.6;
}

/* Event title (UFC/F1) */
.event-title-block {
    text-align: center;
    margin-bottom: 1rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.3;
    margin: 0;
}

/* Meta: Date + Time */
.event-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.event-meta-sep {
    opacity: 0.5;
}

/* ─── Player + Channels ─── */
.event-player-section {
    margin-bottom: 1rem;
}

.event-player-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .event-player-grid {
        grid-template-columns: 1fr 300px;
    }
}

/* Player */
.event-player {
    
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.event-player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
}

.event-player-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.event-player-message {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    text-align: center;
    padding: 1rem;
}

.event-player-message svg {
    opacity: 0.5;
}

.event-player-message span {
    font-size: 0.875rem;
    font-weight: 600;
}

.event-player-message small {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Now Watching Bar */
.event-player-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--muted);
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
}

.event-player-label {
    color: var(--muted-foreground);
}

.event-player-channel {
    color: var(--foreground);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Channels List */
.event-channels {
    
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.event-channels-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--foreground);
    background-color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.event-channels-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 0.375rem;
    font-size: 0.625rem;
    font-weight: 800;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-sm);
}

.event-channels-list {
    display: flex;
    flex-direction: column;
    max-height: 300px;
    overflow-y: auto;
}

@media (min-width: 1024px) {
    .event-channels-list {
        max-height: 250px;
    }
}

.event-channels-list::-webkit-scrollbar {
    width: 4px;
}

.event-channels-list::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 9999px;
}

/* Channel Item */
.event-channel-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    color: var(--foreground);
    font-size: 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: all 150ms ease;
    width: 100%;
}

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

.event-channel-item:hover {
    background-color: var(--accent);
}

.event-channel-item.active {
    background-color: rgba(254, 58, 104, 0.08);
    border-left-color: var(--primary);
}

.event-channel-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.event-channel-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.event-channel-item.active .event-channel-name {
    color: var(--primary);
    font-weight: 700;
}

.event-channel-lang {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    background-color: var(--muted);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    line-height: 1;
}

/* ─── Event Info ─── */
.event-info {
    padding: 1rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.event-info-title {
    margin: 0 0 0.875rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
}

@media (min-width: 640px) {
    .event-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .event-info-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.event-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
    min-width: 0;
}

.event-info-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

.event-info-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-info-value.link {
    color: var(--primary);
    transition: opacity 150ms ease;
}

.event-info-value.link:hover {
    opacity: 0.8;
}

.event-info-value.live {
    color: var(--live);
}

.event-info-value.finished {
    color: var(--muted-foreground);
}

/* ─── Related ─── */
.related-section {
    padding: 1rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.related-title {
    margin: 0 0 0.875rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Related Card */
.related-card {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-radius: var(--radius-md);
    transition: all 150ms ease;
}

.related-card:hover {
    border-left-color: var(--primary);
    transform: translateX(3px);
    background-color: var(--accent);
}

.related-card.live {
    border-left-color: var(--live);
}

/* Top: League + Status */
.related-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.related-league {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-time {
    font-size: 0.5625rem;
    font-weight: 700;
    color: var(--muted-foreground);
    background-color: var(--muted);
    padding: 0.0625rem 0.3125rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    flex-shrink: 0;
}

.related-live {
    display: inline-flex;
    align-items: center;
    gap: 0.1875rem;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--live);
    flex-shrink: 0;
}

/* Teams */
.related-teams {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Event About (SEO) ─── */
.event-about {
    padding: 1rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.event-about-title {
    margin: 0 0 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

.event-about-divider {
    width: 40px;
    height: 2px;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, #ff4d7d, #c81e4a);
    border-radius: 9999px;
}

.event-about p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--muted-foreground);
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
    .event-team-badge {
        width: 48px;
        height: 48px;
        padding: 0.375rem;
    }
    
    .event-team-name {
        font-size: 0.75rem;
        max-width: 120px;
    }
    
    .event-title {
        font-size: 1rem;
    }
    
    .event-hero-top {
        flex-wrap: wrap;
    }
    
    .breadcrumb-item.current {
        max-width: 180px;
    }
}










/* =========================================================
   24. CHANNELS PAGE
   ========================================================= */

/* ─── Hero ─── */
.channels-hero {
    padding: 1.5rem 1rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 1rem;
}

.channels-hero-title {
    margin: 0 0 0.375rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

.channels-hero-subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ─── Filters ─── */
.channels-filters {
    padding: 0.75rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.channels-filters-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .channels-filters-form {
        grid-template-columns: 2fr 1fr 1fr 1fr auto;
        align-items: end;
    }
}

.filters-field {
    display: flex;
    flex-direction: column;
}

.filters-input,
.filters-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--foreground);
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 150ms ease;
}

.filters-input:focus,
.filters-select:focus {
    border-color: var(--primary);
}

.filters-input::placeholder {
    color: var(--muted-foreground);
    opacity: 0.7;
}

.filters-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
    padding-right: 1.75rem;
}

.filters-actions {
    display: flex;
    gap: 0.375rem;
}

.filters-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
}

.filters-btn-apply {
    background-color: var(--primary);
    color: #ffffff;
}

.filters-btn-apply:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.filters-btn-reset {
    background-color: transparent;
    border-color: var(--border);
    color: var(--muted-foreground);
}

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

/* ─── Grid ─── */
.channels-grid-section {
    margin-bottom: 1rem;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .channels-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .channels-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .channels-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ─── Empty ─── */
.channels-empty {
    padding: 3rem 1rem;
    text-align: center;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.channels-empty p {
    margin: 0 0 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--foreground);
}

.channels-empty small {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* ─── Channel Card ─── */
.channel-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.625rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-radius: var(--radius-md);
    transition: all 150ms ease;
}

.channel-card:hover {
    border-left-color: var(--primary);
    transform: translateX(3px);
    background-color: var(--accent);
}

/* Top: Flag + Country + Lang */
.channel-card-top {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

.channel-card-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.channel-card-country {
    flex-shrink: 0;
}

.channel-card-lang {
    margin-left: auto;
    padding: 0.0625rem 0.3125rem;
    background-color: var(--muted);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* Name */
.channel-card-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.3;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 150ms ease;
}

.channel-card:hover .channel-card-name {
    color: var(--primary);
}

/* Button */
.channel-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3125rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground);
    background-color: var(--muted);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 150ms ease;
    margin-top: auto;
}

.channel-card-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.channel-card-btn svg {
    transition: transform 150ms ease;
}

.channel-card-btn:hover svg {
    transform: translateX(2px);
}

/* ─── Pagination ─── */
.channels-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4375rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 150ms ease;
}

.pagination-btn:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--foreground);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 150ms ease;
}

.pagination-page:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-page.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    cursor: default;
}

.pagination-ellipsis {
    padding: 0 0.25rem;
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

/* ─── About (SEO) ─── */
.channels-about {
    padding: 1rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-top: 10px;
}

.channels-about-title {
    margin: 0 0 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

.channels-about-divider {
    width: 40px;
    height: 2px;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, #ff4d7d, #c81e4a);
    border-radius: 9999px;
}

.channels-about p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--muted-foreground);
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
    .channels-hero-title {
        font-size: 1.25rem;
    }

    .filters-actions {
        flex-direction: column;
    }

    .filters-btn {
        width: 100%;
    }

    .pagination-pages {
        display: none;
    }
}



/* =========================================================
   Custom Dropdown (Language Filter)
   ========================================================= */

.filters-dropdown {
    position: relative;
}

.filters-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 150ms ease;
    text-align: left;
}

.filters-dropdown-btn:hover,
.filters-dropdown.open .filters-dropdown-btn {
    border-color: var(--primary);
}

.filters-dropdown-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.filters-dropdown-caret {
    margin-left: auto;
    transition: transform 150ms ease;
    flex-shrink: 0;
    opacity: 0.6;
}

.filters-dropdown.open .filters-dropdown-caret {
    transform: rotate(180deg);
}

/* Menu */
.filters-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.25rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 150ms ease;
}

.filters-dropdown.open .filters-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Scrollbar */
.filters-dropdown-menu::-webkit-scrollbar {
    width: 4px;
}

.filters-dropdown-menu::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 9999px;
}

/* Item */
.filters-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4375rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--foreground);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color 150ms ease;
}

.filters-dropdown-item:hover {
    background-color: var(--accent);
}

.filters-dropdown-item.active {
    background-color: rgba(254, 58, 104, 0.08);
    color: var(--primary);
    font-weight: 700;
}

.filters-dropdown-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   25. PLAY PAGE (Channel Stream)
   ========================================================= */

/* ─── Channel Header ─── */
.channel-header {
    padding: 1rem 1.25rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.channel-header-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.channel-header-flag {
    width: 40px;
    height: 27px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.channel-header-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.channel-header-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
}

.channel-header-meta-sep {
    opacity: 0.5;
}

/* ─── Player ─── */
.channel-player-section {
    margin-bottom: 1rem;
}

.channel-player {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.channel-player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
}

.channel-player-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.channel-player-message {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    text-align: center;
    padding: 1rem;
}

.channel-player-message svg {
    opacity: 0.5;
}

.channel-player-message span {
    font-size: 0.875rem;
    font-weight: 600;
}

.channel-player-message small {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Player Bar */
.channel-player-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--muted);
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
}

.channel-player-label {
    color: var(--muted-foreground);
    white-space: nowrap;
}

.channel-player-channel {
    color: var(--foreground);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.channel-player-open {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground);
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 150ms ease;
    flex-shrink: 0;
}

.channel-player-open:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.channel-player-open svg {
    transition: transform 150ms ease;
}

.channel-player-open:hover svg {
    transform: translate(1px, -1px);
}

/* ─── Channel Info ─── */
.channel-info {
    padding: 1rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.channel-info-title {
    margin: 0 0 0.875rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

.channel-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
}

@media (min-width: 640px) {
    .channel-info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.channel-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
    min-width: 0;
}

.channel-info-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

.channel-info-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-info-value.link {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 150ms ease;
}

.channel-info-value.link:hover {
    opacity: 0.8;
}

.channel-info-count {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

/* ─── Related (Reuses existing .related-* classes) ─── */
.related-flag {
    width: 16px;
    height: 11px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    margin-right: 0.25rem;
}

.related-card-top .related-league {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ─── Channel About (SEO) ─── */
.channel-about {
    padding: 1rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.channel-about-title {
    margin: 0 0 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

.channel-about-divider {
    width: 40px;
    height: 2px;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, #ff4d7d, #c81e4a);
    border-radius: 9999px;
}

.channel-about p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--muted-foreground);
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
    .channel-header {
        padding: 0.875rem 1rem;
    }

    .channel-header-flag {
        width: 32px;
        height: 21px;
    }

    .channel-header-name {
        font-size: 1.25rem;
    }

    .channel-player-bar {
        flex-wrap: wrap;
    }

    .channel-player-open {
        margin-left: auto;
    }
}

/* League card adjustments */
.league-card-badge {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background-color: transparent;
    box-shadow: none;
}

.channel-card-live {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.channel-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--muted-foreground);
    background-color: var(--muted);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.channel-card.has-live {
    border-left-color: var(--live);
}

.channel-card.has-live .channel-card-count {
    background-color: rgba(254, 58, 104, 0.15);
    color: var(--live);
}

/* =========================================================
   26. LEAGUES PAGE (Extra styles)
   ========================================================= */

/* League badge in cards (square-ish instead of flag) */
.league-card-badge {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

/* Live indicator in top */
.channel-card-live {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    margin-right: 0.375rem;
}

/* Count badge */
.channel-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 18px;
    padding: 0 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--muted-foreground);
    background-color: var(--muted);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    line-height: 1;
}

/* Live card adjustments */
.channel-card.has-live {
    border-left-color: var(--live);
}

.channel-card.has-live .channel-card-count {
    background-color: rgba(254, 58, 104, 0.15);
    color: var(--live);
}

/* When has live, count pushed right */
.channel-card.has-live .channel-card-live + .channel-card-count {
    margin-left: 0;
}

/* When no live, count pushed to right */
.channel-card:not(.has-live) .channel-card-count {
    margin-left: auto;
}

/* =========================================================
   27. LEAGUES PAGE (New Design)
   ========================================================= */

/* ─── Compact Hero ─── */
.leagues-hero {
    padding: 1.25rem 1rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 1rem;
}

.leagues-hero-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

.leagues-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.leagues-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.leagues-hero-stat strong {
    color: var(--foreground);
    font-weight: 700;
    font-size: 0.9375rem;
}

.leagues-hero-stat-live {
    color: var(--live);
}

.leagues-hero-stat-live strong {
    color: var(--live);
}

.leagues-hero-sep {
    opacity: 0.4;
}

/* ─── Search Only ─── */
.leagues-search {
    margin-bottom: 1rem;
}

.leagues-search-form {
    display: flex;
    gap: 0.375rem;
    max-width: 500px;
    margin: 0 auto;
}

.leagues-search-form .filters-input {
    flex: 1;
}

.leagues-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #ffffff;
    background-color: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 150ms ease;
    flex-shrink: 0;
}

.leagues-search-btn:hover {
    background-color: var(--primary-hover);
}

/* ─── Leagues List ─── */
.leagues-list-section {
    margin-bottom: 1rem;
}

.leagues-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Row */
.league-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    color: var(--foreground);
    text-decoration: none;
    transition: all 150ms ease;
}

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

.league-row:hover {
    background-color: var(--accent);
    border-left-color: var(--primary);
    transform: translateX(3px);
}

.league-row.has-live {
    border-left-color: var(--live);
}

/* Badge */
.league-row-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background-color: var(--muted);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.league-row-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Name */
.league-row-name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Live */
.league-row-live {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--live);
    flex-shrink: 0;
}

/* Count */
.league-row-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 22px;
    padding: 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--muted-foreground);
    background-color: var(--muted);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    line-height: 1;
}

.league-row.has-live .league-row-count {
    background-color: rgba(254, 58, 104, 0.15);
    color: var(--live);
}

/* Arrow */
.league-row-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    opacity: 0.5;
    transition: all 150ms ease;
    flex-shrink: 0;
}

.league-row:hover .league-row-arrow {
    opacity: 1;
    color: var(--primary);
    transform: translateX(3px);
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
    .leagues-hero-title {
        font-size: 1.25rem;
    }

    .league-row {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .league-row-badge {
        width: 24px;
        height: 24px;
    }

    .league-row-name {
        font-size: 0.8125rem;
    }

    .league-row-live span:last-child {
        display: none;
    }
}

/* =========================================================
   28. LEAGUE PAGE
   ========================================================= */

/* ─── Hero ─── */
.league-hero {
    padding: 1.5rem 1rem 1.25rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 1rem;
}

.league-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 0.75rem;
    padding: 0.75rem;
    background-color: var(--muted);
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.league-hero-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.league-hero-title {
    margin: 0 0 0.625rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.league-hero-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.league-hero-sport {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 150ms ease;
}

.league-hero-sport:hover {
    opacity: 0.8;
}

.league-hero-sep {
    opacity: 0.4;
}

.league-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.league-hero-stat strong {
    color: var(--foreground);
    font-weight: 700;
}

.league-hero-stat-live {
    color: var(--live);
}

.league-hero-stat-live strong {
    color: var(--live);
}

/* ─── Tabs ─── */
.league-tabs {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

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

.league-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
    flex-shrink: 0;
}

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

.league-tab.active {
    color: #ffffff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.league-tab-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--live);
    border-radius: 50%;
    box-shadow: 0 0 6px -1px var(--live-glow);
    animation: pulse-live-dot 1.5s ease-in-out infinite;
}

.league-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 16px;
    padding: 0 0.3125rem;
    font-size: 0.5625rem;
    font-weight: 800;
    color: var(--muted-foreground);
    background-color: var(--muted);
    border-radius: var(--radius-sm);
    line-height: 1;
    transition: all 150ms ease;
}

.league-tab.active .league-tab-count {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ─── Matches List ─── */
.league-matches-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.league-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Empty filter state */
.league-empty {
    padding: 3rem 1rem;
    text-align: center;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
    .league-hero {
        padding: 1.25rem 1rem 1rem;
    }

    .league-hero-badge {
        width: 60px;
        height: 60px;
        padding: 0.625rem;
    }

    .league-hero-title {
        font-size: 1.25rem;
    }

    .league-tab {
        padding: 0.4375rem 0.625rem;
        font-size: 0.6875rem;
    }
}

/* =========================================================
   29. SPORTS PAGE
   ========================================================= */

/* ─── Grid ─── */
.sports-grid-section {
    margin-bottom: 1rem;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .sports-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .sports-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .sports-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ─── Sport Card ─── */
.sport-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--foreground);
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sport-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -8px rgba(254, 58, 104, 0.3);
}

/* Live card */
.sport-card.has-live {
    border-color: rgba(254, 58, 104, 0.3);
}

.sport-card.has-live::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--live), transparent);
}

/* ─── Circle (Initial) ─── */
.sport-card-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #ff4d7d 0%, #c81e4a 100%);
    border-radius: 50%;
    box-shadow: 
        0 4px 14px -4px rgba(254, 58, 104, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    letter-spacing: -0.02em;
    transition: transform 200ms ease;
}

.sport-card:hover .sport-card-circle {
    transform: scale(1.05);
}

/* Live circle pulse */
.sport-card.has-live .sport-card-circle {
    box-shadow: 
        0 4px 14px -4px rgba(254, 58, 104, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 4px rgba(254, 58, 104, 0.1);
}

/* ─── Name ─── */
.sport-card-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 150ms ease;
}

.sport-card:hover .sport-card-name {
    color: var(--primary);
}

/* ─── Stats ─── */
.sport-card-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--muted-foreground);
}

.sport-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 18px;
    padding: 0 0.375rem;
    background-color: var(--muted);
    border-radius: var(--radius-sm);
    line-height: 1;
    transition: all 150ms ease;
}

.sport-card:hover .sport-card-count {
    background-color: var(--primary);
    color: #ffffff;
}

.sport-card.has-live .sport-card-count {
    background-color: rgba(254, 58, 104, 0.15);
    color: var(--live);
}

.sport-card.has-live:hover .sport-card-count {
    background-color: var(--live);
    color: #ffffff;
}

.sport-card-live {
    display: inline-flex;
    align-items: center;
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
    .sport-card {
        padding: 0.875rem 0.5rem;
        gap: 0.375rem;
    }

    .sport-card-circle {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .sport-card-name {
        font-size: 0.75rem;
    }

    .sport-card-count {
        min-width: 20px;
        height: 16px;
        font-size: 0.625rem;
    }
}

/* =========================================================
   30. SPORT PAGE
   ========================================================= */

/* ─── Hero ─── */
.sport-hero {
    padding: 1.5rem 1rem 1.25rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 1rem;
}

.sport-hero-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 0.75rem;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #ff4d7d 0%, #c81e4a 100%);
    border-radius: 50%;
    box-shadow: 
        0 6px 20px -6px rgba(254, 58, 104, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    letter-spacing: -0.02em;
    line-height: 1;
}

.sport-hero-title {
    margin: 0 0 0.625rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.sport-hero-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.sport-hero-sep {
    opacity: 0.4;
}

.sport-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.sport-hero-stat strong {
    color: var(--foreground);
    font-weight: 700;
}

.sport-hero-stat-live {
    color: var(--live);
}

.sport-hero-stat-live strong {
    color: var(--live);
}

/* ─── Section Titles ─── */
.sport-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    
    margin-top: 5px;
}

.sport-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--border) 0%,
        transparent 100%
    );
}

.sport-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 0.375rem;
    font-size: 0.625rem;
    font-weight: 800;
    color: #ffffff;
    background-color: var(--primary);
    border-radius: var(--radius-sm);
    line-height: 1;
}

/* ─── Leagues Section ─── */
.sport-leagues-section {
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

/* ─── Matches Section ─── */
.sport-matches-section {
    margin-bottom: 1rem;
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
    .sport-hero {
        padding: 1.25rem 1rem 1rem;
    }

    .sport-hero-circle {
        width: 60px;
        height: 60px;
        font-size: 1.625rem;
    }

    .sport-hero-title {
        font-size: 1.25rem;
    }
}

/* =========================================================
   31. SEARCH PAGE
   ========================================================= */

/* ─── Search Box (Top) ─── */
.search-box {
    margin-bottom: 1.5rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: var(--foreground);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 150ms ease;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(254, 58, 104, 0.1);
}

.search-input::placeholder {
    color: var(--muted-foreground);
    opacity: 0.7;
}

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    background-color: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px -4px var(--primary-glow);
}

.search-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -4px var(--primary-glow);
}

/* ─── Results Header ─── */
.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.search-results-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
}

.search-results-count {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    background-color: var(--muted);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
}

/* ─── Empty State ─── */
.search-empty {
    padding: 3rem 1rem;
    text-align: center;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 700px;
    margin: 0 auto;
}

.search-empty-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.search-empty-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--muted-foreground);
}

.search-empty-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 150ms ease;
}

.search-empty-text a:hover {
    opacity: 0.8;
}

/* ─── Sections ─── */
.search-section {
    margin-bottom: 1.5rem;
}

.search-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

.search-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 0.375rem;
    font-size: 0.625rem;
    font-weight: 800;
    color: #ffffff;
    background-color: var(--primary);
    border-radius: var(--radius-sm);
    line-height: 1;
}

/* ─── Results List ─── */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ─── Search Item ─── */
.search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    color: var(--foreground);
    text-decoration: none;
    transition: all 150ms ease;
}

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

.search-item:hover {
    background-color: var(--accent);
    border-left-color: var(--primary);
    transform: translateX(3px);
}

/* Circle (for sports) */
.search-item-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #ff4d7d 0%, #c81e4a 100%);
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* Badge (league) */
.search-item-badge {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    background-color: var(--muted);
    border-radius: var(--radius-sm);
    padding: 3px;
}

/* Flag (channel) */
.search-item-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Text wrapper */
.search-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    flex: 1;
    min-width: 0;
}

.search-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item:hover .search-item-name {
    color: var(--primary);
}

.search-item-type {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

/* Arrow */
.search-item-arrow {
    font-size: 1rem;
    color: var(--muted-foreground);
    opacity: 0.5;
    flex-shrink: 0;
    transition: all 150ms ease;
}

.search-item:hover .search-item-arrow {
    opacity: 1;
    color: var(--primary);
    transform: translateX(3px);
}

/* =========================================================
   32. HEADER SEARCH BUTTON
   ========================================================= */

.header-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--muted-foreground);
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 150ms ease;
    flex-shrink: 0;
}

.header-search-btn:hover {
    color: var(--foreground);
    background-color: var(--accent);
    border-color: var(--border);
}

.header-search-btn svg {
    display: block;
}

/* =========================================================
   33. SEARCH MODAL
   ========================================================= */

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 1rem 1rem;
    animation: search-modal-fade 200ms ease;
}

.search-modal[hidden] {
    display: none;
}

@keyframes search-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =========================================================
   36. SOCIAL SIDEBAR (Desktop + Tablet)
   ========================================================= */

.social-sidebar {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-sidebar-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--muted-foreground);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.social-sidebar-link svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* Tooltip */
.social-sidebar-tooltip {
    position: absolute;
    right: calc(100% + 0.5rem);
    top: 50%;
    transform: translateY(-50%);
    padding: 0.3125rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 200ms ease;
    pointer-events: none;
}

.social-sidebar-link:hover .social-sidebar-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Hover — Platform Colors */
.social-sidebar-link.social-telegram:hover {
    color: #ffffff;
    background-color: #0088cc;
    border-color: #0088cc;
    transform: translateX(-3px);
}

.social-sidebar-link.social-vk:hover {
    color: #ffffff;
    background-color: #4C75A3;
    border-color: #4C75A3;
    transform: translateX(-3px);
}

.social-sidebar-link.social-back-top {
    opacity: 0;
    visibility: hidden;
}

.social-sidebar-link.social-back-top.visible {
    opacity: 1;
    visibility: visible;
}

.social-sidebar-link.social-back-top:hover {
    color: #ffffff;
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateX(-3px);
}

/* Hide on mobile */
@media (max-width: 1023px) {
    .social-sidebar {
        display: none;
    }
}



/* Overlay */
.search-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Box */
.search-modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    padding: 1.25rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.6);
    animation: search-modal-slide 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes search-modal-slide {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button */
.search-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--muted-foreground);
    background-color: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 150ms ease;
}

.search-modal-close:hover {
    color: var(--foreground);
    background-color: var(--muted);
}

/* Input Wrap */
.search-modal-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 150ms ease;
}

.search-modal-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(254, 58, 104, 0.1);
}

.search-modal-icon {
    position: absolute;
    left: 1rem;
    color: var(--muted-foreground);
    pointer-events: none;
}

.search-modal-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    color: var(--foreground);
    background-color: transparent;
    border: none;
    outline: none;
    font-weight: 500;
}

.search-modal-input::placeholder {
    color: var(--muted-foreground);
    opacity: 0.7;
}

/* Hint */
.search-modal-hint {
    margin-top: 0.75rem;
    padding: 0 0.25rem;
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    text-align: center;
}

.search-modal-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 0.375rem;
    font-family: inherit;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--foreground);
    background-color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    line-height: 1;
    margin: 0 0.125rem;
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
    .search-form {
        flex-direction: column;
    }

    .search-btn {
        justify-content: center;
    }

    .search-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }

    .search-results-title {
        font-size: 1rem;
    }

    .search-modal {
        padding: 2rem 0.75rem 0.75rem;
    }

    .search-modal-box {
        padding: 1rem;
    }

    .search-modal-input {
        font-size: 0.9375rem;
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    }
}
/* =========================================================
   34. EVENTS PAGE
   ========================================================= */

/* ─── Sections ─── */
.events-section {
    margin-bottom: 2rem;
}

.events-section:last-child {
    margin-bottom: 0;
}

/* Section title (reuses sport-section-title, adds top gap) */
.events-section > .sport-section-title {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* ─── Leagues list inside events ─── */
.events-section .leagues-list {
    max-height: none;
}

/* ─── Schedule inside events ─── */
.events-section .schedule-block {
    margin-top: 0;
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
    .events-section {
        margin-bottom: 1.5rem;
    }
}



/* =========================================================
   37. SOCIAL BOTTOM BAR (Mobile)
   ========================================================= */

/* ─── Base ─── */
.social-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    padding: 0.5rem 0.75rem;
    background-color: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, 0.4);
    
    /* Initially hidden (below screen) */
    transform: translateY(100%);
    visibility: hidden;
    transition: 
        transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
        visibility 300ms ease;
}

.social-bottom-bar.visible {
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* When closed by user */
.social-bottom-bar.hidden {
    transform: translateY(100%);
    visibility: hidden;
    pointer-events: none;
}

/* ─── Inner ─── */
.social-bottom-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 640px;
    margin: 0 auto;
}

/* ─── Link ─── */
.social-bottom-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 42px;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 150ms ease;
    white-space: nowrap;
}

.social-bottom-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-bottom-link.social-telegram {
    background-color: #0088cc;
}

.social-bottom-link.social-telegram:hover {
    background-color: #0077b3;
    transform: translateY(-1px);
}

.social-bottom-link.social-vk {
    background-color: #4C75A3;
}

.social-bottom-link.social-vk:hover {
    background-color: #3d6189;
    transform: translateY(-1px);
}

/* ─── Close Button ─── */
.social-bottom-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--muted-foreground);
    background-color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 150ms ease;
}

.social-bottom-close:hover {
    color: var(--foreground);
    background-color: var(--accent);
    border-color: var(--primary);
}

.social-bottom-close svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* ─── Hide on Desktop ─── */
@media (min-width: 1024px) {
    .social-bottom-bar {
        display: none !important;
    }
}

/* ─── Padding for Body (Mobile) ─── */
@media (max-width: 1023px) {
    body {
        padding-bottom: 60px;
    }
    
    body.social-bottom-hidden {
        padding-bottom: 0;
    }
}