/* ==========================================================================
   YACINE TV PRO BROADCAST DESIGN SYSTEM (v4.0)
   Ultra-Modern Sports & Live TV Streaming Interface (RTL Arabic)
   ========================================================================== */

:root {
    --bg-deep: #05060b;
    --bg-elevated: #0b0e17;
    --surface-1: rgba(15, 19, 31, 0.82);
    --surface-2: rgba(22, 27, 44, 0.88);
    --surface-3: rgba(30, 37, 58, 0.72);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-bright: rgba(255, 255, 255, 0.14);
    --border-accent: rgba(255, 38, 68, 0.42);

    --primary: #ff2442;
    --primary-dark: #c90a29;
    --primary-light: #ff6b81;
    --primary-glow: rgba(255, 36, 66, 0.35);
    --accent-gold: #f59e0b;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;

    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --shadow-hover: 0 20px 42px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 36, 66, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    --nav-h: 68px;
    --plyr-color-main: #ff2442;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(circle at 85% -10%, rgba(255, 36, 66, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.09) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(255, 36, 66, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #05060b 0%, #080b14 50%, #05060b 100%);
    color: var(--text-main);
    line-height: 1.65;
    padding-bottom: calc(var(--nav-h) + 28px);
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

/* Subtle Stadium Mesh Overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 20%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 20%, black 20%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 18px;
    position: relative;
    z-index: 5;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   TOP BROADCAST STATUS BAR & STICKY HEADER
   ========================================================================== */
.top-broadcast-bar {
    background: linear-gradient(90deg, rgba(255, 36, 66, 0.14), rgba(6, 182, 212, 0.08), rgba(255, 36, 66, 0.14));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 0;
    font-size: 12px;
    color: var(--text-secondary);
    position: relative;
    z-index: 510;
}

.top-broadcast-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.broadcast-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #fff;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(255, 36, 66, 0.7);
    animation: pulseRadar 1.8s infinite;
    display: inline-block;
}

@keyframes pulseRadar {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 36, 66, 0.75); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 36, 66, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 36, 66, 0); }
}

.broadcast-meta-links {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.broadcast-meta-links span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.broadcast-meta-links i {
    color: var(--primary-light);
}

@media (max-width: 640px) {
    .broadcast-meta-links { display: none; }
    .top-broadcast-inner { justify-content: center; }
}

header.site-header {
    padding: 13px 0;
    background: rgba(7, 9, 16, 0.86);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 500;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-icon {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), #ff7eb3, var(--primary-dark));
    box-shadow: 0 6px 20px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-icon img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    background: #0b0e17;
}

.brand-logo-text strong {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.15;
    letter-spacing: -0.2px;
}

.brand-verified {
    font-size: 11px;
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 1px 7px;
    border-radius: 50px;
    font-weight: 800;
}

.brand-logo-text small {
    font-size: 11.5px;
    color: var(--text-muted);
    display: block;
    font-weight: 600;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 5px;
    border-radius: 14px;
}

.top-nav a.nav-link {
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.top-nav a.nav-link i {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.top-nav a.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.top-nav a.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 36, 66, 0.22), rgba(201, 10, 41, 0.14));
    border: 1px solid rgba(255, 36, 66, 0.38);
    box-shadow: 0 4px 14px rgba(255, 36, 66, 0.18);
}

.top-nav a.nav-link.active i {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-dl-pro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    color: #fff !important;
    font-weight: 800;
    font-size: 13.5px;
    box-shadow: 0 6px 20px rgba(255, 36, 66, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.btn-dl-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 36, 66, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

@media (max-width: 860px) {
    .top-nav { display: none; }
}

/* ==========================================================================
   HERO STADIUM ARENA (SPLIT LAYOUT + FEATURED MATCH SPOTLIGHT)
   ========================================================================== */
.hero-arena {
    position: relative;
    margin: 22px 0 28px;
    padding: 32px 28px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 36, 66, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        linear-gradient(145deg, rgba(19, 24, 39, 0.94) 0%, rgba(10, 13, 22, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.hero-arena::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(255, 36, 66, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-arena-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 28px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 960px) {
    .hero-arena-grid {
        grid-template-columns: 1fr;
    }
    .hero-arena {
        padding: 24px 18px;
    }
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 36, 66, 0.14);
    border: 1px solid rgba(255, 36, 66, 0.35);
    color: #ff8a9b;
    font-size: 12.5px;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero-content h1 {
    font-size: clamp(23px, 3.8vw, 36px);
    font-weight: 900;
    line-height: 1.32;
    color: #fff;
    margin-bottom: 12px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, #ff3352 0%, #ff8598 55%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 640px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff !important;
    font-weight: 900;
    font-size: 14.5px;
    box-shadow: 0 10px 28px rgba(255, 36, 66, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(255, 36, 66, 0.52);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-bright);
    color: #fff !important;
    font-weight: 800;
    font-size: 14px;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.hero-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: 13px;
}

.hero-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 36, 66, 0.14);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.hero-stat-text strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

.hero-stat-text span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

@media (max-width: 560px) {
    .hero-stats-strip {
        grid-template-columns: 1fr;
    }
}

/* Featured Spotlight Match Card inside Hero */
.spotlight-card {
    background: linear-gradient(160deg, rgba(24, 30, 48, 0.92) 0%, rgba(12, 15, 26, 0.95) 100%);
    border: 1px solid rgba(255, 36, 66, 0.35);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 36, 66, 0.14);
    position: relative;
    overflow: hidden;
}

.spotlight-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.spotlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 11px;
    border-radius: 50px;
}

.spotlight-league {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotlight-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.spotlight-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.spotlight-crest-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-bottom: 9px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.spotlight-crest-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.spotlight-team-name {
    font-size: 14.5px;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.spotlight-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.spotlight-vs {
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.spotlight-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 11px;
    margin-bottom: 14px;
}

.spotlight-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.spotlight-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff !important;
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 22px rgba(255, 36, 66, 0.35);
}

.spotlight-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 36, 66, 0.5);
}

/* ==========================================================================
   SECTION HEADERS & FILTER TOOLBARS
   ========================================================================== */
.section-head-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 30px 0 16px;
    padding: 14px 18px;
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
}

.section-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(255, 36, 66, 0.2), rgba(255, 36, 66, 0.06));
    border: 1px solid rgba(255, 36, 66, 0.35);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.section-title-wrap h2 {
    font-size: clamp(17px, 2.5vw, 21px);
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
}

.section-title-wrap small {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.32);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.filter-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 800;
    padding: 6px 13px;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.filter-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.filter-tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 3px 12px rgba(255, 36, 66, 0.35);
}

.search-box-inline {
    position: relative;
    min-width: 220px;
}

.search-box-inline input {
    width: 100%;
    background: rgba(0, 0, 0, 0.36);
    border: 1px solid var(--border-bright);
    color: #fff;
    padding: 8px 36px 8px 14px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box-inline input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.18);
}

.search-box-inline i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

.view-all-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    background: rgba(255, 36, 66, 0.12);
    border: 1px solid rgba(255, 36, 66, 0.3);
    color: #ff8598 !important;
    font-size: 12.5px;
    font-weight: 800;
}

.view-all-pill:hover {
    background: var(--primary);
    color: #fff !important;
}

/* ==========================================================================
   BROADCAST SCOREBOARD MATCH CARDS
   ========================================================================== */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

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

.match-card {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: background 0.25s ease;
}

.match-card.is-live-card {
    border-color: rgba(255, 36, 66, 0.38);
    background: linear-gradient(165deg, rgba(28, 17, 29, 0.88) 0%, rgba(15, 19, 31, 0.92) 100%);
}

.match-card.is-live-card::before {
    background: linear-gradient(90deg, var(--primary), #ff7eb3, var(--primary));
}

.match-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-hover);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    gap: 8px;
}

.match-champ {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 8px;
    max-width: 62%;
}

.match-champ span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-champ i {
    color: var(--accent-gold);
    font-size: 12px;
}

.match-ch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: #67e8f9;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 11.5px;
    white-space: nowrap;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 8px;
    padding: 10px 6px;
    background: rgba(0, 0, 0, 0.24);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.team-logo-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-bottom: 8px;
    transition: transform 0.25s ease;
}

.match-card:hover .team-logo-wrap {
    transform: scale(1.06);
}

.team-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.match-mid {
    flex-shrink: 0;
    min-width: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.vs-badge {
    font-size: 11px;
    font-weight: 900;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    letter-spacing: 0.5px;
}

.status-badge {
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 50px;
    text-align: center;
    white-space: nowrap;
}

.st-upcoming {
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.st-live {
    background: rgba(255, 36, 66, 0.2);
    color: #ff5c72;
    border: 1px solid rgba(255, 36, 66, 0.5);
    box-shadow: 0 0 14px rgba(255, 36, 66, 0.3);
    animation: livePulseBorder 2s infinite;
}

@keyframes livePulseBorder {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 36, 66, 0.25); }
    50% { box-shadow: 0 0 20px rgba(255, 36, 66, 0.55); }
}

.st-ended {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.match-footer {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.match-commentary {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 9px;
    font-weight: 600;
}

.btn-watch {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(30, 37, 58, 0.9), rgba(18, 23, 38, 0.95));
    color: #fff !important;
    font-weight: 800;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.match-card.is-live-card .btn-watch,
.btn-watch.active-stream:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 18px rgba(255, 36, 66, 0.35);
}

/* ==========================================================================
   CATEGORY PILLS & LIVE TV CHANNELS GRID
   ========================================================================== */
.categories-bar {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.22s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cat-pill i {
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.22s ease;
}

.cat-pill:hover {
    border-color: rgba(255, 36, 66, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

.cat-pill.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 36, 66, 0.38);
}

.cat-pill.active i {
    color: #fff;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px;
    padding: 4px 0 18px;
    transition: opacity 0.2s ease;
}

@media (max-width: 480px) {
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
        gap: 11px;
    }
}

.channel-card {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.channel-card::after {
    content: 'LIVE HD';
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 50px;
    background: rgba(255, 36, 66, 0.16);
    color: #ff6b81;
    border: 1px solid rgba(255, 36, 66, 0.32);
}

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

.channel-logo-box {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: transform 0.25s ease;
}

.channel-card:hover .channel-logo-box {
    transform: scale(1.07);
}

.channel-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.channel-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
}

.channel-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 9px;
    border-radius: 50px;
}

/* ==========================================================================
   APP SHOWCASE BANNER & GUIDES & SEO SECTION
   ========================================================================== */
.app-showcase-banner {
    margin: 28px 0;
    padding: 28px 26px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 85% 50%, rgba(255, 36, 66, 0.24) 0%, transparent 55%),
        linear-gradient(135deg, rgba(20, 26, 44, 0.95) 0%, rgba(11, 14, 24, 0.98) 100%);
    border: 1px solid rgba(255, 36, 66, 0.32);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.app-showcase-info {
    flex: 1;
    min-width: 260px;
}

.app-showcase-info h2 {
    font-size: clamp(19px, 3vw, 25px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}

.app-showcase-info p {
    color: var(--text-secondary);
    font-size: 14.5px;
    margin-bottom: 14px;
}

.app-perks {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.app-perks span {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.app-perks i {
    color: var(--accent-emerald);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 15px;
}

.guide-card {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    box-shadow: var(--shadow-card);
}

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

.guide-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-light);
    background: rgba(255, 36, 66, 0.12);
    padding: 3px 10px;
    border-radius: 50px;
    width: fit-content;
}

.guide-card h3 {
    font-size: 15.5px;
    font-weight: 800;
    color: #fff;
    line-height: 1.45;
}

.guide-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
}

.guide-card-more {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.seo-section {
    margin: 34px 0 24px;
    padding: 30px;
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.9;
    box-shadow: var(--shadow-card);
}

.seo-section h2 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 900;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}

.seo-section h3 {
    color: #fff;
    margin: 20px 0 10px;
    font-size: 17px;
    font-weight: 800;
}

.seo-section p { margin-bottom: 12px; }
.seo-section ul, .seo-section ol { margin-right: 22px; margin-bottom: 16px; }
.seo-section li { margin-bottom: 7px; }
.seo-section a { color: var(--primary-light); font-weight: 800; }

/* ==========================================================================
   PRO FOOTER & MOBILE BOTTOM NAVIGATION DOCK
   ========================================================================== */
.site-footer-pro {
    background: rgba(6, 8, 14, 0.94);
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0 28px;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 13.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 26px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 420px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(-3px);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: rgba(8, 10, 18, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-bright);
    display: flex;
    z-index: 900;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.6);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    position: relative;
}

.nav-item i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.nav-item.active, .nav-item:hover {
    color: var(--primary-light);
}

.nav-item.active i {
    transform: translateY(-2px);
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 32px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--primary);
    box-shadow: 0 2px 10px var(--primary);
}


/* ==========================================================================
   MULTI-SITE DISTINCT VISUAL THEMES & LAYOUT GEOMETRIES (8 SITES)
   ========================================================================== */

/* 2. yacinetv.digital -> Cyber Emerald Arena (theme-emerald-cyber) */
body.theme-emerald-cyber {
    --bg-obsidian: #030b08;
    --bg-deep: #06140f;
    --surface-1: rgba(8, 25, 19, 0.88);
    --surface-2: rgba(12, 36, 27, 0.94);
    --primary: #10b981;
    --primary-dark: #047857;
    --primary-light: #34d399;
    --primary-glow: rgba(16, 185, 129, 0.35);
    --brand-red: #10b981;
    --accent-cyan: #eab308;
    --border-accent: rgba(16, 185, 129, 0.45);
}
body.theme-emerald-cyber .hero-arena-grid {
    grid-template-columns: 1fr;
    text-align: center;
}
body.theme-emerald-cyber .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
}
body.theme-emerald-cyber .hero-desc {
    max-width: 780px;
}
body.theme-emerald-cyber .hero-actions,
body.theme-emerald-cyber .hero-stats-strip {
    justify-content: center;
}
body.theme-emerald-cyber .matches-grid {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}
body.theme-emerald-cyber .match-card {
    border-radius: 22px;
    border-top: 3px solid rgba(16, 185, 129, 0.4);
}
body.theme-emerald-cyber .channel-card::after {
    content: 'DIGITAL 4K';
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}

/* 3. yacinetv.store -> Royal Sapphire Storefront (theme-sapphire-store) */
body.theme-sapphire-store {
    --bg-obsidian: #040814;
    --bg-deep: #081026;
    --surface-1: rgba(11, 21, 44, 0.88);
    --surface-2: rgba(16, 30, 62, 0.95);
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --primary-glow: rgba(59, 130, 246, 0.36);
    --brand-red: #3b82f6;
    --accent-cyan: #38bdf8;
    --border-accent: rgba(59, 130, 246, 0.45);
}
body.theme-sapphire-store .match-card {
    border-radius: 14px;
    border-right: 4px solid #3b82f6;
}
body.theme-sapphire-store .match-teams {
    border-style: dashed;
    border-color: rgba(59, 130, 246, 0.22);
}
body.theme-sapphire-store .channel-card::after {
    content: 'STORE HD';
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.4);
}

/* 4. yacine.store -> Championship Gold & Onyx VIP (theme-gold-vip) */
body.theme-gold-vip {
    --bg-obsidian: #090805;
    --bg-deep: #120f08;
    --surface-1: rgba(24, 20, 12, 0.9);
    --surface-2: rgba(34, 28, 16, 0.96);
    --primary: #f59e0b;
    --primary-dark: #b45309;
    --primary-light: #fbbf24;
    --primary-glow: rgba(245, 158, 11, 0.35);
    --brand-red: #f59e0b;
    --accent-cyan: #fde047;
    --border-accent: rgba(245, 158, 11, 0.45);
}
body.theme-gold-vip .matches-grid {
    grid-template-columns: 1fr;
}
body.theme-gold-vip .match-card {
    border-radius: 18px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    padding: 16px 22px;
}
body.theme-gold-vip .channel-card::after {
    content: 'VIP GOLD';
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.42);
}

/* 5. yacinetv.lol -> Violet Pulse Live (theme-violet-pulse) */
body.theme-violet-pulse {
    --bg-obsidian: #070410;
    --bg-deep: #0e0820;
    --surface-1: rgba(19, 12, 38, 0.88);
    --surface-2: rgba(28, 18, 54, 0.94);
    --primary: #8b5cf6;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --primary-glow: rgba(139, 92, 246, 0.38);
    --brand-red: #8b5cf6;
    --accent-cyan: #ec4899;
    --border-accent: rgba(139, 92, 246, 0.48);
}
@media (min-width: 961px) {
    body.theme-violet-pulse .hero-arena-grid {
        direction: ltr;
    }
    body.theme-violet-pulse .hero-arena-grid > * {
        direction: rtl;
    }
}
body.theme-violet-pulse .match-card {
    border-radius: 26px;
}
body.theme-violet-pulse .btn-watch {
    border-radius: 999px;
}
body.theme-violet-pulse .channel-card::after {
    content: 'LIVE LOL';
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.42);
}

/* 6. yasintv.website -> Broadcast Teal Studio (theme-teal-studio) */
body.theme-teal-studio {
    --bg-obsidian: #040b0e;
    --bg-deep: #07151b;
    --surface-1: rgba(10, 27, 34, 0.88);
    --surface-2: rgba(14, 38, 47, 0.94);
    --primary: #14b8a6;
    --primary-dark: #0f766e;
    --primary-light: #2dd4bf;
    --primary-glow: rgba(20, 184, 166, 0.35);
    --brand-red: #14b8a6;
    --accent-cyan: #f43f5e;
    --border-accent: rgba(20, 184, 166, 0.45);
}
body.theme-teal-studio .match-card {
    border-radius: 12px;
    border-left: 3px solid #14b8a6;
    border-right: 3px solid #14b8a6;
}
body.theme-teal-studio .channel-card::after {
    content: 'STUDIO HD';
    background: rgba(20, 184, 166, 0.18);
    color: #5eead4;
    border-color: rgba(20, 184, 166, 0.4);
}

/* 7. yassinetv.website -> Sunset Blaze Arena (theme-sunset-blaze) */
body.theme-sunset-blaze {
    --bg-obsidian: #0b0604;
    --bg-deep: #160c08;
    --surface-1: rgba(28, 15, 11, 0.88);
    --surface-2: rgba(40, 21, 15, 0.94);
    --primary: #f97316;
    --primary-dark: #c2410c;
    --primary-light: #fb923c;
    --primary-glow: rgba(249, 115, 22, 0.36);
    --brand-red: #f97316;
    --accent-cyan: #ef4444;
    --border-accent: rgba(249, 115, 22, 0.45);
}
body.theme-sunset-blaze .hero-arena-grid {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 960px) {
    body.theme-sunset-blaze .hero-arena-grid {
        grid-template-columns: 1fr;
    }
}
body.theme-sunset-blaze .match-card {
    border-radius: 20px;
    border-bottom: 3px solid rgba(249, 115, 22, 0.45);
}
body.theme-sunset-blaze .channel-card::after {
    content: 'ARENA LIVE';
    background: rgba(249, 115, 22, 0.18);
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.4);
}

/* 8. yacien.website -> Arctic Cobalt & Ice Cyan (theme-cobalt-ice) */
body.theme-cobalt-ice {
    --bg-obsidian: #050811;
    --bg-deep: #090f21;
    --surface-1: rgba(14, 21, 43, 0.88);
    --surface-2: rgba(20, 30, 58, 0.94);
    --primary: #6366f1;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.36);
    --brand-red: #6366f1;
    --accent-cyan: #22d3ee;
    --border-accent: rgba(99, 102, 241, 0.45);
}
body.theme-cobalt-ice .matches-grid {
    grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
}
body.theme-cobalt-ice .channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
body.theme-cobalt-ice .channel-card::after {
    content: 'PORTAL HD';
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.4);
}
