:root {
    /* Athletic Emerald Pitch Palette (Dark Mode - Carbon Stadium) */
    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dim: #059669;
    --primary-dark: #064e3b;
    --primary-glow: rgba(16, 185, 129, 0.25);
    --primary-subtle: rgba(16, 185, 129, 0.1);
    --primary-border: rgba(16, 185, 129, 0.3);
    
    --live-red: #f43f5e;
    --live-red-glow: rgba(244, 63, 94, 0.35);
    --live-red-subtle: rgba(244, 63, 94, 0.12);
    
    --accent-sky: #38bdf8;
    --accent-amber: #f59e0b;
    --accent-purple: #a855f7;
    
    /* Clean Graphite Dark Canvas & Surfaces */
    --bg-universe: #0b0f19;
    --bg-stadium: #0f172a;
    --bg-surface: #111827;
    --bg-card: #131d2f;
    --bg-card-hover: #18253b;
    --bg-elevated: #1a2538;
    --bg-glass: rgba(15, 23, 42, 0.88);
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(16, 185, 129, 0.35);
    --border-subtle: rgba(255, 255, 255, 0.05);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-emerald: #10b981;
    
    --header-glass: rgba(11, 15, 25, 0.94);
    --dock-glass: rgba(15, 23, 42, 0.96);
    --hero-stadium-bg: linear-gradient(135deg, #131c31 0%, #0d1322 100%);
    
    --shadow-quantum: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
    --shadow-neon-card: 0 8px 24px -4px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.2);
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;

    /* Backward compatibility aliases */
    --text-main: var(--text-primary);
    --text-muted: var(--text-secondary);
    --text-light: var(--text-tertiary);
    --border-color: var(--border-glass);
    --card-shadow: var(--shadow-quantum);
    --hero-gradient: var(--hero-stadium-bg);
    --bg-main: var(--bg-universe);
    --neon-green: var(--primary);
    --neon-red: var(--live-red);
    --neon-amber: var(--accent-amber);
    --neon-cyan: var(--accent-sky);
    --neon-purple: var(--accent-purple);
}

[data-theme="light"] {
    /* Crisp Daylight Athletic Palette (Light Mode - Clear High-Contrast) */
    --primary: #059669;
    --primary-light: #047857;
    --primary-dim: #047857;
    --primary-dark: #064e3b;
    --primary-glow: rgba(5, 150, 105, 0.2);
    --primary-subtle: rgba(5, 150, 105, 0.08);
    --primary-border: rgba(5, 150, 105, 0.25);
    
    --live-red: #e11d48;
    --live-red-glow: rgba(225, 29, 72, 0.25);
    --live-red-subtle: rgba(225, 29, 72, 0.08);
    
    --accent-sky: #0284c7;
    --accent-amber: #d97706;
    --accent-purple: #7c3aed;
    
    /* Clean Daylight Surfaces */
    --bg-universe: #f1f5f9;
    --bg-stadium: #ffffff;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-elevated: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.94);
    
    --border-glass: #e2e8f0;
    --border-highlight: rgba(5, 150, 105, 0.35);
    --border-subtle: #edf2f7;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #475569;
    --text-emerald: #059669;
    
    --header-glass: rgba(255, 255, 255, 0.95);
    --dock-glass: rgba(255, 255, 255, 0.96);
    --hero-stadium-bg: #ffffff;
    
    --shadow-quantum: 0 2px 10px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-neon-card: 0 4px 16px rgba(5, 150, 105, 0.12), 0 0 0 1px rgba(5, 150, 105, 0.2);

    /* Backward compatibility aliases */
    --text-main: var(--text-primary);
    --text-muted: var(--text-secondary);
    --text-light: var(--text-tertiary);
    --border-color: var(--border-glass);
    --card-shadow: var(--shadow-quantum);
    --hero-gradient: var(--hero-stadium-bg);
    --bg-main: var(--bg-universe);
    --neon-green: var(--primary);
    --neon-red: var(--live-red);
    --neon-amber: var(--accent-amber);
    --neon-cyan: var(--accent-sky);
    --neon-purple: var(--accent-purple);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Kufi Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-universe);
    color: var(--text-primary);
    direction: rtl;
    text-align: right;
    line-height: 1.5;
    transition: background-color 0.25s ease, color 0.25s ease;
    overflow-x: hidden;
    max-width: 100%;
    padding-bottom: 90px;
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
}

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

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

/* Master Layout Container (Anti-Stretch Grid) */
.jl-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 3-Column Desktop Grid Layout */
.jl-pro-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    margin-top: 16px;
    width: 100%;
}

@media (min-width: 1024px) {
    .jl-pro-layout {
        grid-template-columns: 240px minmax(0, 1fr) 280px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .jl-pro-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

.jl-sidebar-left, .jl-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

@media (max-width: 1023px) {
    .jl-sidebar-left {
        display: none;
    }
}

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

.jl-main-content {
    min-width: 0;
    width: 100%;
}

/* =========================================
   Top Navigation Header (Bespoke Glass Bar)
   ========================================= */
.jl-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-glass);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.jl-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 12px;
    min-height: 64px;
    box-sizing: border-box;
}

.jl-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 900;
    position: relative;
}

.jl-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.jl-brand-icon::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(30deg);
    animation: shineSweep 4s infinite;
}

@keyframes shineSweep {
    0% { transform: translateX(-100%) rotate(30deg); }
    30%, 100% { transform: translateX(100%) rotate(30deg); }
}

.jl-brand-name {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.jl-brand-main {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.jl-brand-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 900;
    background: var(--primary-subtle);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.jl-brand-custom-logo {
    height: 44px;
    max-height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.jl-brand-custom-logo:hover {
    transform: scale(1.02);
}

[data-theme="light"] .jl-brand-custom-logo {
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.08));
}

@media (max-width: 768px) {
    .jl-header-inner {
        padding: 8px 0;
        gap: 8px;
        min-height: 52px;
    }
    .jl-brand-custom-logo {
        height: 38px;
        max-width: 175px;
    }
    .jl-chip-btn {
        padding: 6px 10px;
        font-size: 11px;
        gap: 5px;
        min-height: 32px;
    }
    .jl-chip-btn .jl-tz-name {
        display: none;
    }
}

@media (max-width: 400px) {
    .jl-header-inner {
        min-height: 46px;
    }
    .jl-brand-custom-logo {
        height: 34px;
        max-width: 150px;
    }
    .jl-chip-btn {
        padding: 4px 6px;
        font-size: 10.5px;
        gap: 4px;
        min-height: 28px;
    }
}

.jl-header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 36px;
}

.jl-chip-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 12px;
    flex-shrink: 0;
    min-height: 36px;
    box-sizing: border-box;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-quantum);
}

.jl-chip-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.jl-chip-btn.is-tz {
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 700;
}

.jl-chip-btn.is-tz:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    color: var(--text-primary);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.jl-chip-btn.is-tz [data-jl-time] {
    color: var(--text-primary);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    display: inline-block;
    min-width: 38px;
    text-align: center;
}

.jl-chip-btn.is-tz .jl-tz-name {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Desktop Navigation Links */
.jl-desktop-nav {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 0 12px 0;
    border-top: 1px solid var(--border-subtle);
    overflow-x: auto;
}

@media (min-width: 769px) {
    .jl-desktop-nav {
        display: flex;
    }
}

.jl-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.jl-nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.jl-nav-item.active {
    color: #ffffff !important;
    background: var(--primary) !important;
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* =========================================
   Haptic Mobile Floating Island Dock
   ========================================= */
.jl-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 14px;
    left: 14px;
    right: 14px;
    z-index: 1100;
    background: var(--dock-glass);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 22px;
    padding: 8px;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.08);
}

@media (min-width: 769px) {
    .jl-bottom-nav {
        display: none;
    }
}

.jl-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    border-radius: 14px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 800;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex: 1;
    text-align: center;
    position: relative;
}

.jl-bottom-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.jl-bottom-link:active {
    transform: scale(0.88);
}

.jl-bottom-link.active {
    color: var(--primary);
}

.jl-bottom-link.active svg {
    transform: translateY(-2px);
    stroke: var(--primary);
    filter: drop-shadow(0 2px 8px var(--primary-glow));
}

.jl-bottom-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 14px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    box-shadow: 0 0 8px var(--primary);
}

/* =========================================
   Quantum Horizon Date Picker Reel
   ========================================= */
.jl-days-reel {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 0 14px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    width: 100%;
}

.jl-days-reel::-webkit-scrollbar {
    display: none;
}

.jl-day-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    box-shadow: var(--shadow-quantum);
    position: relative;
    overflow: hidden;
    color: var(--text-secondary);
    scroll-snap-align: start;
    user-select: none;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 480px) {
    .jl-day-card {
        padding: 8px 12px;
        min-width: 76px;
    }
}

.jl-day-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.jl-day-card.active {
    background: linear-gradient(135deg, var(--primary-dim, #059669), var(--primary-dark, #064e3b)) !important;
    border-color: var(--primary-light, #34d399) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px var(--primary-glow);
    transform: scale(1.03);
}

.jl-day-name {
    font-size: 11px;
    font-weight: 800;
}

.jl-day-date {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 900;
    margin-top: 2px;
}

.jl-day-card.active .jl-day-name,
.jl-day-card.active .jl-day-date {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.jl-day-badge {
    font-size: 9.5px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 6px;
    margin-top: 4px;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.jl-day-card.active .jl-day-badge {
    background: rgba(0, 0, 0, 0.45) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* =========================================
   Holographic Arena Hero Spotlight Slider
   ========================================= */
.jl-hero-spotlight {
    background: var(--hero-stadium-bg);
    color: var(--text-primary);
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-quantum);
    border: 1px solid var(--border-glass);
    width: 100%;
}

.jl-hero-spotlight::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

.jl-hero-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--live-red-subtle);
    color: var(--live-red);
    border: 1px solid var(--live-red);
    font-size: 11px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    animation: livePulseRing 1.8s infinite;
}

@keyframes livePulseRing {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.96); opacity: 0.85; }
}

.jl-hero-duel {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    text-align: center;
    width: 100%;
}

.jl-hero-team-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.jl-hero-crest-pedestal {
    width: 64px;
    height: 64px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: var(--shadow-quantum);
    flex-shrink: 0;
}

.jl-hero-crest {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jl-hero-team-title {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.jl-hero-mid-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.jl-hero-score-pill {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 4px;
    background: #090e18;
    color: #ffffff;
    border: 1px solid var(--border-glass);
    padding: 4px 22px;
    border-radius: 16px;
    line-height: 1.2;
    box-shadow: var(--shadow-quantum);
}

.jl-hero-clock-tag {
    font-size: 12px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.jl-hero-time-val {
    color: var(--primary);
}

.jl-hero-date-val {
    color: var(--primary);
    font-weight: 800;
}

.jl-hero-status-ft {
    color: var(--text-secondary);
    font-weight: 800;
}

.jl-hero-tab-time {
    color: var(--primary);
}

.jl-hero-top-badge.is-derby-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    animation: none;
}

.jl-hero-league-tag {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 700;
}

.jl-hero-action-btn {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 900;
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    padding: 5px 16px;
    border-radius: 20px;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.jl-hero-action-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* =========================================
   Sleek Quantum Match Deck & Schedule
   ========================================= */

/* =========================================
   Quantum Schedule Multi-Tier Toolbar & Scope
   ========================================= */
.jl-schedule-master-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0 18px 0;
}

/* Dual Scope Switcher (Top vs All Matches) */
.jl-schedule-scope-bar {
    display: inline-flex;
    align-items: center;
    background: var(--bg-elevated);
    padding: 3px;
    border-radius: 14px;
    border: 1px solid var(--border-glass);
    gap: 4px;
    width: fit-content;
    max-width: 100%;
}

.jl-scope-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.jl-scope-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.jl-scope-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 900;
    border-color: var(--border-highlight);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.jl-scope-btn.active[data-jl-scope="top"] {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.12);
}

.jl-scope-icon {
    font-size: 13px;
    line-height: 1;
}

.jl-filter-pill.is-gold {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fef08a !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    font-weight: 900 !important;
}

/* Timing Slots Filter Chips */
.jl-schedule-time-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.jl-schedule-time-bar::-webkit-scrollbar {
    display: none;
}

.jl-time-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--bg-card);
    border: 1px dashed var(--border-glass);
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.jl-time-chip:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

.jl-time-chip.active {
    background: var(--primary-subtle) !important;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    font-weight: 800;
}

.jl-time-chip.active .jl-filter-pill {
    background: var(--primary);
    color: #ffffff;
}

/* Empty filter state notice */
.jl-filter-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-glass);
    border-radius: var(--radius-xl);
    text-align: center;
}

/* Secondary League Tag & Collapsible Indicators */
.jl-secondary-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.jl-league-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.jl-league-toggle-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

.jl-chevron-icon {
    transition: transform 0.2s ease;
}

.jl-league-bar.is-collapsed .jl-chevron-icon {
    transform: rotate(-90deg);
}

[dir="rtl"] .jl-league-bar.is-collapsed .jl-chevron-icon {
    transform: rotate(90deg);
}

/* Quick Status Filter Toolbar */
.jl-schedule-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.jl-schedule-filter-bar::-webkit-scrollbar {
    display: none;
}

.jl-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.jl-filter-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

.jl-filter-btn.active {
    background: linear-gradient(135deg, var(--primary-dim, #059669), var(--primary-dark, #064e3b)) !important;
    color: #ffffff !important;
    border-color: var(--primary-light, #34d399) !important;
    font-weight: 900;
    box-shadow: 0 4px 14px var(--primary-glow);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.jl-filter-btn.active .jl-filter-pill {
    background: rgba(0, 0, 0, 0.45) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.jl-filter-pill {
    font-size: 10.5px;
    font-weight: 900;
    padding: 1px 7px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.jl-filter-btn.is-live {
    border-color: var(--live-red);
}

.jl-filter-btn.is-live.active {
    background: var(--live-red) !important;
    color: #ffffff !important;
    border-color: var(--live-red) !important;
    box-shadow: 0 4px 14px var(--live-red-glow);
}

.jl-filter-btn.is-live.active .jl-filter-pill {
    background: rgba(0, 0, 0, 0.25) !important;
    color: #ffffff !important;
}

.jl-filter-text-full {
    display: inline;
}

.jl-filter-text-short {
    display: none;
}

@media (max-width: 640px) {
    .jl-schedule-filter-bar {
        display: flex;
        gap: 5px;
        width: 100%;
        margin: 10px 0 14px 0;
        padding: 4px;
        background: var(--bg-card);
        border: 1px solid var(--border-glass);
        border-radius: 14px;
        overflow-x: visible;
        box-shadow: var(--shadow-soft, 0 2px 8px rgba(0,0,0,0.03));
    }

    .jl-filter-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 8px 3px;
        border-radius: 10px;
        font-size: 11.5px;
        justify-content: center;
        gap: 4px;
        border: none;
        background: transparent;
    }

    .jl-filter-btn:not(.active) {
        color: var(--text-secondary);
    }

    .jl-filter-btn.active {
        background: var(--primary) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px var(--primary-glow);
    }

    .jl-filter-btn.is-live:not(.active) {
        color: var(--live-red);
    }

    .jl-filter-text-full {
        display: none !important;
    }

    .jl-filter-text-short {
        display: inline !important;
    }

    .jl-filter-pill {
        font-size: 9.5px;
        padding: 1px 5px;
    }
}


.jl-filter-pill.is-live-pill {
    background: var(--live-red-subtle);
    color: var(--live-red);
}

/* Pulsing Live Dot Animation */
@keyframes jlLivePulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

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

/* League Card Container */
.jl-league-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-quantum);
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jl-league-card:hover {
    border-color: var(--border-highlight);
}

/* League Bar Header */
.jl-league-bar {
    background: var(--bg-elevated);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    gap: 12px;
    width: 100%;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.jl-league-bar:hover {
    background: var(--bg-card-hover);
}

.jl-league-bar.is-collapsed {
    border-bottom: none;
    opacity: 0.85;
}

.jl-league-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.jl-league-emblem-wrap {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    flex-shrink: 0;
}

.jl-league-bar-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jl-league-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.jl-league-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.jl-league-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.jl-league-flag-badge {
    font-size: 11px;
    line-height: 1;
}

.jl-league-live-tag {
    background: var(--live-red-subtle);
    color: var(--live-red);
    border: 1px solid var(--live-red);
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.jl-league-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.jl-league-match-count {
    font-size: 11px;
    font-weight: 800;
    color: #cbd5e1;
    background: var(--bg-card);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.jl-league-standings-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-subtle);
    border: 1px solid var(--primary-border);
    padding: 4px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.jl-league-standings-btn:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 12px var(--primary-glow);
    transform: translateY(-1px);
}

/* Match Items List Wrapper */
.jl-league-matches-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Match Card Deck */
.jl-match-app-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    width: 100%;
}

.jl-match-app-card:last-child {
    border-bottom: none;
}

.jl-match-app-card:hover {
    background-color: var(--bg-card-hover);
}

@media (min-width: 768px) {
    .jl-match-app-card:hover {
        transform: translateY(-1px);
    }
}

/* Live Match Ambient Accent */
.jl-match-app-card.is-live {
    border-inline-start: 4px solid var(--live-red);
    background: linear-gradient(90deg, var(--live-red-subtle) 0%, transparent 40%);
}

.jl-match-app-card.is-live:hover {
    background: linear-gradient(90deg, var(--live-red-subtle) 0%, var(--bg-card-hover) 50%);
}

/* Top Strip (Status & Round) */
.jl-match-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    width: 100%;
    min-height: 20px;
}

.jl-top-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.jl-live-tv-pill {
    background: var(--live-red-subtle);
    color: var(--live-red);
    border: 1px solid var(--live-red);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.jl-derby-badge {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fde047 !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.jl-top-round {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 700;
}

/* Teams Duel Arena */
.jl-match-teams-block {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.jl-match-side {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.jl-match-side.is-home {
    justify-content: flex-start;
}

.jl-match-side.is-away {
    justify-content: flex-end;
}

.jl-crest-pedestal-sm {
    width: 34px;
    height: 34px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}

.jl-match-app-card:hover .jl-crest-pedestal-sm {
    transform: scale(1.06);
}

.jl-crest-sm {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

[data-theme="dark"] .jl-crest-sm,
[data-theme="dark"] .jl-spotlight-crest,
[data-theme="dark"] img[src*="/uploads/teams/"],
[data-theme="dark"] img[src*="/uploads/leagues/"] {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.18));
}

[data-theme="light"] .jl-crest-sm,
[data-theme="light"] .jl-spotlight-crest,
[data-theme="light"] img[src*="/uploads/teams/"],
[data-theme="light"] img[src*="/uploads/leagues/"] {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.14));
}

.jl-team-name {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.jl-match-side.is-winner .jl-team-name {
    color: var(--text-primary);
    font-weight: 900;
}

.jl-match-side.is-loser .jl-team-name {
    color: var(--text-tertiary);
    opacity: 0.65;
}

/* Center Scoreboard / Time Deck */
.jl-arena-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 82px;
    flex-shrink: 0;
}

.jl-score-digital {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 900;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    padding: 5px 14px;
    border-radius: 12px;
    min-width: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.8px;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.jl-score-digital.is-live-score {
    border-color: var(--live-red);
    box-shadow: 0 0 12px var(--live-red-subtle);
}

.jl-sc-num {
    display: inline-block;
    min-width: 12px;
    text-align: center;
}

.jl-sc-num.is-win {
    color: var(--primary);
    font-weight: 900;
}

.jl-sc-num.is-loss {
    color: var(--text-tertiary);
    opacity: 0.65;
}

.jl-sc-sep {
    opacity: 0.4;
    font-weight: 700;
}

.jl-time-digital {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: var(--primary);
    background: var(--primary-subtle);
    border: 1px solid var(--primary-border);
    padding: 4px 12px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

/* Footer Info Meta */
.jl-match-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-tertiary);
    border-top: 1px dashed var(--border-subtle);
    padding-top: 9px;
    width: 100%;
    gap: 8px;
}

.jl-meta-badges {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.jl-meta-chip {
    background: var(--bg-elevated);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
}

.jl-match-cta {
    font-weight: 800;
    color: var(--primary);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.jl-match-app-card:hover .jl-match-cta {
    transform: translateX(-3px);
}

/* Kinetic Badges */
.jl-badge {
    font-size: 10px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
}

.badge-live {
    background: var(--live-red-subtle);
    color: var(--live-red);
    border: 1px solid var(--live-red);
    box-shadow: 0 0 10px var(--live-red-subtle);
}

.badge-finished {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.badge-scheduled {
    background: var(--primary-subtle);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}

.badge-postponed {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-cancelled {
    background: var(--live-red-subtle);
    color: var(--live-red);
    border: 1px solid var(--live-red);
}

/* Empty State */
.jl-empty-schedule {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 48px 20px;
    text-align: center;
    color: var(--text-secondary);
    box-shadow: var(--shadow-quantum);
}

.jl-empty-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.jl-empty-title {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.jl-empty-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Mobile Responsive Optimization */
@media (max-width: 640px) {
    .jl-container {
        padding: 0 12px;
    }

    .jl-league-bar {
        padding: 10px 12px;
    }
    
    .jl-league-title {
        font-size: 13px;
    }

    .jl-league-emblem-wrap {
        width: 28px;
        height: 28px;
    }

    .jl-league-standings-btn span {
        display: none;
    }

    .jl-league-standings-btn {
        padding: 4px 6px;
    }

    .jl-match-app-card {
        padding: 11px 12px;
        gap: 8px;
    }

    .jl-crest-pedestal-sm {
        width: 28px;
        height: 28px;
        padding: 3px;
    }

    .jl-team-name {
        font-size: 12.5px;
    }

    .jl-score-digital {
        font-size: 15px;
        padding: 4px 10px;
        min-width: 66px;
        gap: 5px;
    }

    .jl-time-digital {
        font-size: 12px;
        padding: 4px 10px;
    }

    .jl-arena-center {
        min-width: 70px;
    }

    .jl-match-footer-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 6px;
    }

    .jl-meta-badges {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-wrap: wrap;
    }

    .jl-meta-chip {
        font-size: 10.5px;
        padding: 2px 7px;
    }

    .jl-match-cta {
        font-size: 10.5px;
        padding: 2px 6px;
        margin-inline-start: auto;
    }
}

@media (max-width: 480px) {
    .jl-container {
        padding: 0 10px;
    }

    .jl-match-app-card {
        padding: 10px;
        gap: 7px;
    }

    .jl-match-teams-block {
        gap: 6px;
    }

    .jl-crest-pedestal-sm {
        width: 25px;
        height: 25px;
        padding: 2px;
    }

    .jl-team-name {
        font-size: 12px;
    }

    .jl-score-digital {
        font-size: 14px;
        padding: 3px 8px;
        min-width: 58px;
        gap: 4px;
    }

    .jl-arena-center {
        min-width: 60px;
    }
}

@media (max-width: 360px) {
    .jl-team-name {
        font-size: 11px;
    }

    .jl-crest-pedestal-sm {
        width: 22px;
        height: 22px;
    }

    .jl-score-digital {
        font-size: 13px;
        padding: 2px 6px;
        min-width: 50px;
    }

    .jl-match-cta span {
        display: none;
    }
}

/* =========================================
   News & AI Cards
   ========================================= */
.jl-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin: 18px 0;
    width: 100%;
}

.jl-news-app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-quantum);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
    width: 100%;
}

.jl-news-app-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-neon-card);
}

.jl-news-cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--bg-elevated);
}

/* Matchup Hero Cover for News Grid Cards */
.jl-news-match-cover {
    width: 100%;
    height: 160px;
    background: radial-gradient(circle at 50% 30%, rgba(0, 240, 144, 0.1) 0%, transparent 65%),
                linear-gradient(135deg, #070d19 0%, #0f172a 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 24px 14px 16px 14px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-glass);
}

[data-theme="light"] .jl-news-match-cover {
    background: radial-gradient(circle at 50% 30%, rgba(0, 240, 144, 0.15) 0%, transparent 65%),
                linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.jl-nmc-league-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-theme="light"] .jl-nmc-league-badge {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

.jl-nmc-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1;
    width: 78px;
    text-align: center;
}

.jl-nmc-crest-box {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1.5px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.jl-news-app-card:hover .jl-nmc-crest-box {
    transform: scale(1.1);
    border-color: var(--primary);
}

.jl-nmc-crest-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jl-nmc-name {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.jl-nmc-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 1;
}

.jl-nmc-vs {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 240, 144, 0.2) 0%, rgba(56, 189, 248, 0.2) 100%);
    border: 1.5px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 240, 144, 0.3);
}

.jl-nmc-score {
    font-size: 16px;
    font-weight: 900;
    color: var(--primary);
    background: rgba(0, 0, 0, 0.55);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
}

.jl-nmc-time {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 1px 6px;
    border-radius: 6px;
}

/* Sidebar & Small Row Duo Crest Box */
.jl-mini-duo-thumb {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #090e1a 0%, #162036 100%);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

[data-theme="light"] .jl-mini-duo-thumb {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.jl-mini-duo-thumb .mini-crest-home,
.jl-mini-duo-thumb .mini-crest-away {
    width: 28px;
    height: 28px;
    object-fit: contain;
    position: absolute;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.jl-mini-duo-thumb .mini-crest-home {
    top: 5px;
    right: 5px;
}

.jl-mini-duo-thumb .mini-crest-away {
    bottom: 5px;
    left: 5px;
}

.jl-mini-duo-thumb .mini-vs {
    font-size: 8.5px;
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    z-index: 2;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--primary-border);
    padding: 1px 4px;
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(0, 240, 144, 0.3);
}

/* Related Row 88px Duo Box */
.jl-medium-duo-thumb {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #090e1a 0%, #162036 100%);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

[data-theme="light"] .jl-medium-duo-thumb {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.jl-medium-duo-thumb .med-crest-home,
.jl-medium-duo-thumb .med-crest-away {
    width: 40px;
    height: 40px;
    object-fit: contain;
    position: absolute;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.jl-medium-duo-thumb .med-crest-home {
    top: 6px;
    right: 6px;
}

.jl-medium-duo-thumb .med-crest-away {
    bottom: 6px;
    left: 6px;
}

.jl-medium-duo-thumb .med-vs {
    font-size: 10px;
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    z-index: 2;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-border);
    padding: 2px 6px;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0, 240, 144, 0.3);
}

.jl-news-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.jl-news-headline {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.4;
}

.jl-ai-tag {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
}

/* Section Headings */
.jl-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 22px 0 14px 0;
    width: 100%;
}

.jl-heading-title {
    font-size: 17px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jl-heading-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary);
}

/* Modal */
.jl-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 6, 13, 0.85);
    backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.jl-modal-overlay.is-visible {
    display: flex;
}

.jl-modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 460px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 1px 1px rgba(255,255,255,0.1);
}

.jl-countries-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.jl-country-pick {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    transition: all 0.15s ease;
}

.jl-country-pick:hover, .jl-country-pick.active {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary);
}

/* Tables */
.jl-app-table-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    overflow-x: auto;
    margin: 16px 0;
    box-shadow: var(--shadow-quantum);
    width: 100%;
}

.jl-app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: center;
}

.jl-app-table th {
    background: var(--bg-elevated);
    padding: 14px 12px;
    font-weight: 900;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-glass);
}

.jl-app-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.jl-app-table tr:last-child td {
    border-bottom: none;
}

/* =========================================
   Light Mode Component Refinements
   ========================================= */
[data-theme="light"] .jl-hero-spotlight {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .jl-hero-crest-pedestal {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .jl-hero-team-title {
    color: #0f172a;
}

[data-theme="light"] .jl-hero-score-pill {
    background: #f1f5f9;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .jl-hero-score-pill * {
    color: #0f172a !important;
}

[data-theme="light"] .jl-hero-score-pill .jl-hero-time-val {
    color: #0f172a !important;
    font-weight: 800;
}

[data-theme="light"] .jl-hero-score-pill.is-starting-soon-hero,
[data-theme="light"] .jl-hero-score-pill.is-starting-soon-hero * {
    color: #e11d48 !important;
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
}

[data-theme="light"] .jl-hero-score-pill .jl-hero-score-val {
    color: #0f172a !important;
}

[data-theme="light"] .jl-hero-clock-tag .jl-hero-date-val {
    color: #475569;
    font-weight: 700;
}

[data-theme="light"] .jl-hero-clock-tag .jl-hero-status-ft {
    color: #64748b;
    font-weight: 700;
}

[data-theme="light"] .jl-hero-league-tag {
    color: #64748b;
    font-weight: 700;
}

[data-theme="light"] .jl-hero-action-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
    font-weight: 800;
}

[data-theme="light"] .jl-hero-action-btn:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
    transform: translateY(-1px);
}

[data-theme="light"] .jl-hero-action-btn.is-live-btn {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

[data-theme="light"] .jl-hero-action-btn.is-live-btn:hover {
    background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
    color: #ffffff;
}

[data-theme="light"] .jl-hero-top-badge.is-derby-badge {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.12);
    animation: none;
}

[data-theme="light"] .jl-hero-top-badge.is-live-badge {
    background: #ffe4e6;
    color: #e11d48;
    border: 1px solid #fda4af;
}

[data-theme="light"] .jl-hero-tab-time {
    color: #065f46;
}

[data-theme="light"] .jl-hero-quick-edit-btn {
    background: #f0fdf4;
    color: #059669;
    border: 1px solid #bbf7d0;
}

[data-theme="light"] .jl-hero-quick-edit-btn:hover {
    background: #059669;
    color: #ffffff;
}

[data-theme="light"] .jl-chip-btn.is-tz {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

[data-theme="light"] .jl-score-digital {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #e2e8f0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .jl-league-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .jl-league-bar {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .jl-league-emblem-wrap {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .jl-league-match-count {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

[data-theme="light"] .jl-match-app-card {
    border-bottom-color: #f1f5f9;
}

[data-theme="light"] .jl-match-app-card:hover {
    background-color: #f8fafc;
}

[data-theme="light"] .jl-crest-pedestal-sm {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .jl-day-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    color: #475569;
}

[data-theme="light"] .jl-day-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .jl-day-card.active {
    background: #065f46 !important;
    border-color: #065f46 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(6, 95, 70, 0.28);
}

[data-theme="light"] .jl-day-card.active .jl-day-name,
[data-theme="light"] .jl-day-card.active .jl-day-date {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .jl-day-card.active .jl-day-badge {
    background: rgba(0, 0, 0, 0.35) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

[data-theme="light"] .jl-filter-btn {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .jl-filter-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

[data-theme="light"] .jl-filter-btn.active {
    background: #065f46 !important;
    color: #ffffff !important;
    border-color: #065f46 !important;
    box-shadow: 0 4px 14px rgba(6, 95, 70, 0.28);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .jl-filter-btn.active .jl-filter-pill {
    background: rgba(0, 0, 0, 0.35) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

[data-theme="light"] .jl-filter-pill {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    font-weight: 800;
}

[data-theme="light"] .jl-filter-pill.is-gold {
    background: #fef3c7 !important;
    color: #78350f !important;
    border: 1px solid #fde68a !important;
    font-weight: 900 !important;
}

[data-theme="light"] .jl-derby-badge {
    background: #fef3c7 !important;
    color: #78350f !important;
    border: 1px solid #fcd34d !important;
    font-weight: 800 !important;
}

[data-theme="light"] .is-studio-pill {
    background: #ffe4e6 !important;
    color: #9f1239 !important;
    border: 1px solid #fecdd3 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .is-starting-soon-time {
    color: #9f1239 !important;
    border-color: #fecdd3 !important;
    background: #fff1f2 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .jl-lineup-status-confirmed {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

[data-theme="light"] .jl-lineup-team-home {
    color: #047857 !important;
}

[data-theme="light"] .jl-lineup-team-away {
    color: #0369a1 !important;
}

[data-theme="light"] .jl-chip-btn {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    color: #0f172a;
}

[data-theme="light"] .jl-bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    border-color: #e2e8f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Light Mode Match Details & Spotlight Card */
[data-theme="light"] .jl-spotlight-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .jl-spotlight-header {
    color: #475569 !important;
}

[data-theme="light"] .jl-spotlight-name {
    color: #0f172a !important;
}

[data-theme="light"] .jl-spotlight-crest {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08)) !important;
}

[data-theme="light"] .jl-spotlight-score {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #1e293b !important;
}

[data-theme="light"] .jl-spotlight-time {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}

[data-theme="light"] .jl-spotlight-meta {
    border-top-color: #e2e8f0 !important;
}

[data-theme="light"] .jl-spotlight-meta span {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

/* Light Mode Cinema Deck & Controls */
[data-theme="light"] .jl-cinema-deck {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .jl-stream-header {
    border-bottom-color: #e2e8f0 !important;
}

[data-theme="light"] .jl-stream-title {
    color: #0f172a !important;
}

[data-theme="light"] .jl-server-label {
    color: #475569 !important;
}

[data-theme="light"] .stream-server-tab {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .stream-server-tab:hover {
    color: #0f172a !important;
    border-color: #059669 !important;
    background: #ffffff !important;
}

[data-theme="light"] .stream-server-tab.active {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 0 14px rgba(5, 150, 105, 0.3) !important;
}

[data-theme="light"] .stream-server-tab .server-badge {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

[data-theme="light"] .stream-server-tab.active .server-badge {
    background: rgba(0, 0, 0, 0.25) !important;
    color: #ffffff !important;
}

[data-theme="light"] .jl-stream-action-btn {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .jl-stream-action-btn:hover {
    background: #e2e8f0 !important;
    border-color: #059669 !important;
    color: #059669 !important;
}

[data-theme="light"] .jl-ad-banner-slot {
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    color: #475569 !important;
}

/* =========================================
   Universal Modern Footer
   ========================================= */
.jl-footer {
    margin-top: 50px;
    padding: 48px 0 24px 0;
    background: var(--bg-stadium);
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 10;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

[data-theme="light"] .jl-footer {
    background: #ffffff;
    border-top-color: #e2e8f0;
}

.jl-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 36px;
    margin-bottom: 36px;
}

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

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

.jl-footer-col {
    display: flex;
    flex-direction: column;
}

.jl-footer-brand-col {
    padding-inline-end: 16px;
}

.jl-footer-bio {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 18px;
}

[data-theme="light"] .jl-footer-bio {
    color: #334155;
}

.jl-footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.jl-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.25s ease;
}

[data-theme="light"] .jl-social-btn {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #334155;
}

.jl-social-btn:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.jl-footer-title {
    font-size: 14.5px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.jl-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

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

.jl-footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

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

.jl-footer-pill-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jl-feature-tag {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    padding: 7px 12px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

[data-theme="light"] .jl-feature-tag {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

.jl-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    border-top: 1px solid var(--border-glass);
    flex-wrap: wrap;
    gap: 12px;
}

[data-theme="light"] .jl-footer-bottom {
    border-top-color: #e2e8f0;
}

.jl-footer-copy {
    font-size: 12.5px;
    color: #cbd5e1;
}

[data-theme="light"] .jl-footer-copy {
    color: #334155;
}

.jl-footer-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    padding: 4px 12px;
    border-radius: 20px;
}

[data-theme="light"] .jl-footer-live-badge {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

/* ==========================================================================
   Modern Country Timezone Picker Modal
   ========================================================================== */
.jl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

.jl-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.jl-modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 22px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.55);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
}

[data-theme="light"] .jl-modal-box {
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    border-color: var(--border-glass);
}

.jl-modal-overlay.is-visible .jl-modal-box {
    transform: scale(1) translateY(0);
}

.jl-countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.jl-country-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.jl-country-pick:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.jl-country-pick.active {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

/* ==========================================================================
   Live Stream Cinema Deck & Spotlight (اسكربت البث المباشر وعرض المباريات)
   ========================================================================== */

/* Match Spotlight Duel Card */
.jl-spotlight-card {
    background: var(--hero-gradient);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--shadow-neon-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    min-height: 185px;
    contain: layout;
}

.jl-spotlight-header {
    font-size: 12px;
    font-weight: 800;
    opacity: 0.9;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.jl-spotlight-duel {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    max-width: 620px;
    margin: 0 auto;
}

.jl-spotlight-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.jl-spotlight-crest {
    width: 58px;
    height: 58px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    padding: 6px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease;
}

.jl-spotlight-crest:hover {
    transform: scale(1.08);
}

.jl-spotlight-name {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    word-break: break-word;
}

.jl-spotlight-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.jl-spotlight-score {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.45);
    padding: 6px 20px;
    border-radius: 14px;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    color: #fff;
    min-width: 90px;
    text-align: center;
}

.jl-spotlight-time {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--primary);
}

.jl-spotlight-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11.5px;
    opacity: 0.92;
}

.jl-spotlight-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Live Cinema Deck (مشغل البث المباشر)
   ========================================================================== */
.jl-cinema-deck {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 18px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-quantum);
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.jl-stream-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.jl-stream-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
}

.jl-live-dot-ping {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--live-red);
    box-shadow: 0 0 12px var(--live-red);
    animation: pulseLive 1.5s infinite;
    flex-shrink: 0;
}

.jl-stream-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.jl-stream-action-btn {
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 11.5px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    user-select: none;
}

.jl-stream-action-btn:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.jl-stream-action-btn:active {
    transform: scale(0.96);
}

/* Server Switcher Reel */
.jl-server-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 10px 2px;
    margin-bottom: 12px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.jl-server-label {
    font-size: 12px;
    font-weight: 900;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-inline-end: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stream-server-tab {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.stream-server-tab:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.stream-server-tab.active {
    background: var(--primary) !important;
    color: #030712 !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 16px var(--primary-glow) !important;
    font-weight: 900;
}

.stream-server-tab .server-badge {
    font-size: 9.5px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    font-weight: 900;
}

.stream-server-tab.active .server-badge {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* ==========================================================================
   The 16:9 Player Viewport & Responsive Embed Frames
   (التمدد داخل جميع الاطارات في الجوال)
   ========================================================================== */
.jl-player-viewport {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.jl-player-viewport:fullscreen,
.jl-player-viewport:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    padding-top: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background: #000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jl-stream-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* Force ANY embed (iframe, video, object, embed) to stretch 100% cleanly */
.jl-stream-screen iframe,
.jl-stream-screen video,
.jl-stream-screen embed,
.jl-stream-screen object {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    outline: none !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.jl-stream-screen > div:not(.jl-stream-placeholder) {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* Base Ad Banner Slot */
.jl-ad-banner-slot {
    margin: 12px 0;
    min-height: 48px;
    background: var(--bg-elevated);
    border: 1px dashed var(--border-glass);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

/* ==========================================================================
   Stream Screen Waiting Placeholder (توسيط وتنسيق عالي التباين لشاشة الانتظار)
   ========================================================================== */
.jl-stream-placeholder {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 520px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px 16px !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.jl-stream-placeholder-icon {
    font-size: 44px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.5));
    animation: jlPulseHourglass 2s infinite ease-in-out;
}

@keyframes jlPulseHourglass {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.jl-stream-placeholder-title {
    font-size: 19px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0 0 10px 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
    letter-spacing: -0.3px;
}

.jl-stream-placeholder-desc {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #e2e8f0 !important; /* Bright silver slate, 100% readable on dark cinema screen */
    line-height: 1.7 !important;
    margin: 0 auto 16px auto !important;
    max-width: 460px !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

.jl-stream-placeholder-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #10b981 !important;
    background: rgba(16, 185, 129, 0.14) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    padding: 8px 22px !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25), inset 0 0 10px rgba(16, 185, 129, 0.1) !important;
    direction: rtl !important;
}

.jl-stream-placeholder-pill strong {
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    margin-inline-start: 4px !important;
}

@media (max-width: 480px) {
    .jl-stream-placeholder-icon {
        font-size: 36px;
        margin-bottom: 8px;
    }
    .jl-stream-placeholder-title {
        font-size: 16px !important;
    }
    .jl-stream-placeholder-desc {
        font-size: 12px !important;
        line-height: 1.6 !important;
        margin-bottom: 12px !important;
    }
    .jl-stream-placeholder-pill {
        font-size: 12px !important;
        padding: 6px 16px !important;
    }
}

/* Cinema Dim Backdrop */
.cinema-dim-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(10px);
    z-index: 9990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cinema-dim-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.jl-cinema-deck.cinema-highlight {
    position: relative;
    z-index: 9999 !important;
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.3) !important;
    border-color: var(--primary) !important;
}

/* ==========================================================================
   Comprehensive Mobile Optimization for Match View & Deck
   ========================================================================== */
@media (max-width: 640px) {
    .jl-spotlight-card {
        padding: 16px 12px;
        border-radius: var(--radius-lg);
        min-height: 165px;
    }
    .jl-spotlight-duel {
        gap: 8px;
    }
    .jl-spotlight-crest {
        width: 44px;
        height: 44px;
        aspect-ratio: 1 / 1;
        padding: 4px;
    }
    .jl-spotlight-name {
        font-size: 12.5px;
    }
    .jl-spotlight-score {
        font-size: 24px;
        padding: 4px 14px;
        min-width: 72px;
    }
    .jl-spotlight-time {
        font-size: 17px;
        padding: 4px 12px;
    }
    .jl-spotlight-meta {
        font-size: 10.5px;
        gap: 6px;
        margin-top: 14px;
        padding-top: 10px;
    }
    .jl-spotlight-meta span {
        padding: 3px 8px;
    }
    .jl-cinema-deck {
        padding: 14px 10px;
        border-radius: var(--radius-lg);
    }
    .jl-stream-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .jl-stream-title {
        font-size: 13.5px;
    }
    .jl-stream-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .jl-stream-action-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    .stream-server-tab {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .jl-spotlight-duel {
        gap: 4px;
    }
    .jl-spotlight-crest {
        width: 38px;
        height: 38px;
    }
    .jl-spotlight-name {
        font-size: 11.5px;
    }
    .jl-spotlight-score {
        font-size: 20px;
        padding: 3px 10px;
        min-width: 60px;
    }
    .jl-spotlight-time {
        font-size: 15px;
        padding: 3px 10px;
    }
    .jl-stream-action-btn span:last-child {
        display: none;
    }
    .jl-stream-action-btn {
        padding: 6px 8px;
    }
}

/* Mobile Timeline Rules */
@media (max-width: 560px) {
    .match-timeline-container {
        padding: 4px 0;
    }
    .jl-timeline-grid {
        grid-template-columns: 1fr 44px 1fr !important;
        gap: 6px !important;
    }
    .jl-timeline-bubble {
        padding: 6px 10px !important;
        max-width: 100% !important;
        border-radius: 10px !important;
    }
    .jl-timeline-bubble .jl-ev-title {
        font-size: 11.5px !important;
        gap: 4px !important;
    }
    .jl-timeline-minute-pill {
        width: 32px !important;
        height: 22px !important;
        line-height: 22px !important;
        font-size: 10.5px !important;
    }
}

/* ==========================================================================
   PWA Smart Install Banner & iOS Sheet
   ========================================================================== */
.jl-pwa-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 9999;
    width: calc(100% - 32px);
    max-width: 480px;
    background: rgba(11, 15, 25, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 240, 144, 0.25);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 144, 0.1);
    border-radius: 18px;
    padding: 14px 16px;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    direction: rtl;
}

[data-theme="light"] .jl-pwa-banner {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(4, 120, 87, 0.3);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15), 0 0 20px rgba(4, 120, 87, 0.08);
}

.jl-pwa-banner.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.jl-pwa-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
}

.jl-pwa-close {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="light"] .jl-pwa-close {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}

.jl-pwa-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.jl-pwa-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.jl-pwa-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.jl-pwa-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.jl-pwa-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jl-pwa-sub {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.jl-pwa-install-btn {
    background: linear-gradient(135deg, #00f090 0%, #00b4d8 100%);
    color: #050b17;
    border: none;
    border-radius: 12px;
    padding: 9px 16px;
    font-size: 12.5px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 240, 144, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.jl-pwa-install-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 240, 144, 0.4);
}

.jl-ios-sheet {
    border-color: rgba(56, 189, 248, 0.3);
    max-width: 520px;
}

.jl-ios-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.jl-ios-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.jl-ios-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   Editorial Match Poster Hero & Matchup Banners
   ========================================================================== */
.jl-article-match-hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 24px;
    background: radial-gradient(ellipse at center, #132238 0%, #070d18 100%);
    border: 1px solid rgba(0, 240, 144, 0.25);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 240, 144, 0.08);
    padding: 30px 20px 22px 20px;
}

[data-theme="light"] .jl-article-match-hero {
    background: radial-gradient(ellipse at center, #f0fdf4 0%, #e2e8f0 100%);
    border-color: rgba(4, 120, 87, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 0 20px rgba(4, 120, 87, 0.05);
}

.jl-article-match-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 240, 144, 0.12) 0%, transparent 60%),
                radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.jl-amh-league-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.jl-amh-league-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 240, 144, 0.12);
    border: 1px solid rgba(0, 240, 144, 0.3);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    backdrop-filter: blur(8px);
}

.jl-amh-matchup {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.jl-amh-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.jl-amh-crest-wrap {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(11, 15, 25, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

[data-theme="light"] .jl-amh-crest-wrap {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.jl-amh-team:hover .jl-amh-crest-wrap {
    transform: scale(1.06);
    border-color: var(--primary);
}

.jl-amh-crest {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.jl-amh-team-name {
    font-size: 15px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jl-amh-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.jl-amh-score-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid rgba(0, 240, 144, 0.4);
    padding: 6px 18px;
    border-radius: 14px;
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    box-shadow: 0 4px 16px rgba(0, 240, 144, 0.2);
}

[data-theme="light"] .jl-amh-score-badge {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(4, 120, 87, 0.4);
}

.jl-amh-vs-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 240, 144, 0.2) 0%, rgba(56, 189, 248, 0.2) 100%);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    color: var(--primary);
    box-shadow: 0 0 16px rgba(0, 240, 144, 0.3);
}

.jl-amh-time-tag {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 3px 12px;
    border-radius: 12px;
}

.jl-amh-footer-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 700;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

[data-theme="light"] .jl-amh-footer-meta {
    border-top-color: rgba(0, 0, 0, 0.08);
}

.jl-amh-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #050b17 !important;
    font-weight: 900;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.jl-amh-action-link:hover {
    transform: translateY(-1px);
}

/* Quick Match Info Strip */
.jl-article-quick-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 24px;
}

.jl-spec-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.jl-spec-label {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 700;
}

.jl-spec-val {
    font-size: 12.5px;
    color: var(--text-primary);
    font-weight: 800;
}

@media (max-width: 580px) {
    .jl-article-match-hero {
        padding: 20px 12px 16px 12px;
    }
    .jl-amh-crest-wrap {
        width: 62px;
        height: 62px;
        padding: 8px;
    }
    .jl-amh-team-name {
        font-size: 13px;
    }
    .jl-amh-score-badge {
        font-size: 20px;
        padding: 4px 12px;
    }
    .jl-amh-vs-badge {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Real-Time Match Live Updates & Event Notifications (Toasts)
   ========================================================================== */
.jl-live-toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 440px;
    pointer-events: none;
}

.jl-live-toast {
    pointer-events: auto;
    background: rgba(10, 19, 36, 0.95);
    backdrop-filter: blur(16px);
    border: 1.5px solid var(--primary);
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 144, 0.35);
    display: flex;
    align-items: center;
    gap: 14px;
    animation: jlToastEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

[data-theme="light"] .jl-live-toast {
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), 0 0 15px rgba(5, 150, 105, 0.2);
}

.jl-live-toast.is-leaving {
    animation: jlToastLeave 0.35s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

.jl-toast-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.jl-toast-icon-box.is-goal {
    background: linear-gradient(135deg, rgba(0, 240, 144, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%);
    border: 1px solid var(--primary);
}

.jl-toast-icon-box.is-red-card {
    background: linear-gradient(135deg, rgba(255, 42, 95, 0.25) 0%, rgba(225, 29, 72, 0.35) 100%);
    border: 1px solid var(--accent-red);
}

.jl-toast-icon-box.is-yellow-card {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
    border: 1px solid var(--accent-amber);
}

.jl-toast-icon-box.is-var {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(147, 51, 234, 0.35) 100%);
    border: 1px solid #a855f7;
}

.jl-toast-icon-box.is-sub {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(2, 132, 199, 0.35) 100%);
    border: 1px solid #38bdf8;
}

.jl-toast-content {
    flex: 1;
    min-width: 0;
}

.jl-toast-title {
    font-size: 13px;
    font-weight: 900;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.jl-toast-minute {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.15);
    padding: 1px 7px;
    border-radius: 6px;
}

.jl-toast-body {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 3px;
    line-height: 1.4;
}

.jl-toast-score {
    font-size: 12px;
    font-weight: 900;
    color: var(--primary);
    margin-top: 4px;
}

@keyframes jlToastEnter {
    0% {
        opacity: 0;
        transform: translateY(-24px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes jlToastLeave {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-24px) scale(0.92);
    }
}

/* Score Pulse Animation */
@keyframes jlScorePulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.35); color: var(--primary); text-shadow: 0 0 24px var(--primary); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.jl-score-pulse {
    animation: jlScorePulse 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Newly added timeline event slide-in */
@keyframes jlEventSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.94);
        background: rgba(0, 240, 144, 0.25);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.jl-timeline-new-event {
    animation: jlEventSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Sound Alert Toggle Button */
.jl-sound-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    user-select: none;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}

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

.jl-sound-btn.is-active {
    border-color: var(--border-highlight);
    background: var(--bg-surface);
    color: var(--text-primary) !important;
}

.jl-sound-btn.is-active #jlSoundText {
    color: var(--text-primary) !important;
    font-weight: 800;
}

.jl-sound-btn.is-active .jl-sound-icon-svg {
    color: var(--primary-text, var(--primary-light, #10b981));
}

.jl-sound-btn.is-muted,
.jl-sound-btn.muted {
    opacity: 0.85;
    border-color: var(--border-glass);
    color: var(--text-secondary);
    background: var(--bg-surface);
}

.jl-sound-btn.is-muted #jlSoundText,
.jl-sound-btn.muted #jlSoundText {
    color: var(--text-secondary);
}

.jl-sound-btn .jl-sound-icon-svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    display: block;
    transition: transform 0.2s ease;
}

.jl-sound-btn:hover .jl-sound-icon-svg {
    transform: scale(1.1);
}

/* Live Pulse Pill - High Contrast Broadcaster Badge (WCAG AAA) */
.jl-live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff !important;
    background: #dc2626 !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
    letter-spacing: 0.3px;
}

.jl-live-status-pill span {
    color: #ffffff !important;
}

.jl-live-status-pill .jl-pulse-dot {
    background: #ffffff !important;
    box-shadow: 0 0 6px #ffffff !important;
}

/* ==========================================================================
   Comprehensive Ad Management & Zero-CLS Layout Engine
   ========================================================================== */
.jl-header-below-ad-wrap {
    padding-top: 4px;
    padding-bottom: 4px;
    contain: layout;
    min-height: 120px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .jl-header-below-ad-wrap {
        min-height: 110px;
    }
}

.jl-no-stream-banner {
    min-height: 80px;
    contain: layout;
}

.jl-ad-container {
    margin: 10px auto;
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 100%;
    clear: both;
    display: block;
    box-sizing: border-box;
    overflow: hidden !important;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    contain: layout paint;
    direction: ltr !important;
}

.jl-ad-tag {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding-top: 6px;
    margin-bottom: 4px;
    text-transform: uppercase;
    opacity: 0.6;
    display: block;
    text-align: center;
    direction: rtl;
}

.jl-ad-viewport {
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden !important;
    direction: ltr !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.jl-ad-banner-link {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;
    line-height: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.jl-ad-banner-link:hover {
    transform: scale(1.01);
    opacity: 0.95;
}

.jl-ad-banner-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

.jl-ad-code-box {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden !important;
    direction: ltr !important;
    position: relative;
    display: block;
}

/* Force all AdSense wrappers, ad units, and block elements to stay strictly inside 100% width and frame */
.jl-ad-code-box > div,
.jl-ad-code-box .ad,
.jl-ad-code-box .ad-inner,
.jl-ad-code-box .adsense-unit,
.jl-ad-code-box ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.jl-ad-code-box * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.jl-ad-code-box iframe,
.jl-ad-code-box div[id^="aswift_"],
.jl-ad-code-box div[id^="google_ads_iframe"] {
    max-width: 100% !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Auto-collapse unfilled AdSense containers cleanly */
.jl-ad-container:has(ins[data-ad-status="unfilled"]) {
    display: none !important;
}

/* Zero-CLS Min-Height Pre-reservations (Desktop: Leaderboard 90px-100px) */
.jl-ad-slot-stream_above,
.jl-ad-slot-stream_below,
.jl-ad-slot-header_top,
.jl-ad-slot-header_below {
    min-height: 96px;
    max-height: 120px;
}

.jl-ad-slot-footer_above,
.jl-ad-slot-home_below_hero {
    min-height: 96px;
}

.jl-ad-slot-article_inside {
    min-height: 250px;
    margin: 24px auto;
}

/* Device Targeting Rules & Mobile Zero-CLS Pre-reservations */
@media (max-width: 768px) {
    .jl-ad-desktop-only {
        display: none !important;
    }
    
    /* On mobile, under-header and stream slots serve standard 320x100 mobile banners */
    .jl-ad-slot-header_below,
    .jl-ad-slot-header_top,
    .jl-ad-slot-stream_above,
    .jl-ad-slot-stream_below {
        min-height: 96px;
        max-height: 120px;
    }

    .jl-ad-slot-footer_above,
    .jl-ad-slot-home_below_hero,
    .jl-ad-slot-article_inside {
        min-height: 250px;
    }
}

@media (min-width: 769px) {
    .jl-ad-mobile-only {
        display: none !important;
    }
}

/* Sticky Mobile Bottom Floating Bar (320x50 / 300x50) */
.jl-sticky-mobile-ad {
    position: fixed;
    bottom: 60px; /* Sits directly above the bottom app nav dock */
    left: 0;
    right: 0;
    z-index: 995;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease;
}

[data-theme="light"] .jl-sticky-mobile-ad {
    background: rgba(255, 255, 255, 0.94);
    border-top-color: #e2e8f0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.1);
}

.jl-sticky-ad-close {
    position: absolute;
    top: -11px;
    left: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 999;
    padding: 0;
    line-height: 1;
}

.jl-sticky-ad-inner {
    max-width: 320px;
    max-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.jl-sticky-ad-inner img {
    max-height: 50px;
    max-width: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ==========================================================================
   Hero Match Carousel Navigation Arrows
   ========================================================================== */
.jl-hero-tabs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.jl-hero-nav-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 3;
    padding: 0;
    user-select: none;
}

.jl-hero-nav-arrow:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    transform: scale(1.12);
    box-shadow: 0 0 14px var(--primary-glow);
}

.jl-hero-nav-arrow:active {
    transform: scale(0.92);
}

.jl-hero-nav-arrow.is-disabled {
    opacity: 0.28;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.jl-hero-tabs-reel {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.jl-hero-tabs-reel::-webkit-scrollbar {
    display: none;
}

/* =========================================
   Pre-Match Starting-Soon Mode (30 mins before kickoff)
   ========================================= */
.badge-starting-soon {
    background: rgba(255, 42, 95, 0.14) !important;
    color: #ff2a5f !important;
    border: 1px solid rgba(255, 42, 95, 0.45) !important;
    box-shadow: 0 0 10px rgba(255, 42, 95, 0.22);
    animation: pulseStartingSoon 2s infinite ease-in-out;
}

@keyframes pulseStartingSoon {
    0%, 100% { box-shadow: 0 0 6px rgba(255, 42, 95, 0.2); }
    50% { box-shadow: 0 0 16px rgba(255, 42, 95, 0.5); }
}

.jl-match-app-card.is-starting-soon {
    border-inline-start: 4px solid #ff2a5f;
    background: linear-gradient(90deg, rgba(255, 42, 95, 0.08) 0%, transparent 45%);
}

.jl-match-app-card.is-finished {
    opacity: 0.82;
}

.jl-match-app-card.is-finished:hover {
    opacity: 1;
}

.is-studio-pill {
    background: rgba(244, 63, 94, 0.2) !important;
    color: #fda4af !important;
    border: 1px solid rgba(244, 63, 94, 0.45) !important;
    font-weight: 800;
}

.is-starting-soon-time {
    color: #fda4af !important;
    border-color: rgba(244, 63, 94, 0.45) !important;
    background: rgba(244, 63, 94, 0.12) !important;
    font-weight: 800;
}

.jl-lineup-status-confirmed {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #6ee7b7 !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.jl-lineup-team-home {
    color: #6ee7b7 !important;
    font-weight: 800;
}

.jl-lineup-team-away {
    color: #7dd3fc !important;
    font-weight: 800;
}

.jl-lineup-crest {
    max-width: 18px;
    max-height: 18px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.jl-hero-score-pill.is-starting-soon-hero {
    border-color: rgba(255, 42, 95, 0.4) !important;
    box-shadow: 0 0 14px rgba(255, 42, 95, 0.25) !important;
}

.jl-hero-action-btn.is-live-btn {
    background: linear-gradient(135deg, #ff2a5f 0%, #d91b4c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 0 14px rgba(255, 42, 95, 0.45) !important;
}

/* =========================================
   2D Tactical Football Pitch & Lineups
   ========================================= */
.jl-lineups-deck {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
}

.jl-pitch-wrapper {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin: 0 auto 24px auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.jl-tactical-pitch {
    position: relative;
    width: 100%;
    height: 640px;
    background: #14532d;
    background-image: 
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.06) 0px, rgba(0, 0, 0, 0.06) 40px, transparent 40px, transparent 80px),
        radial-gradient(ellipse at center, #15803d 0%, #166534 60%, #14532d 100%);
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Field Markings */
.jl-pitch-halfway-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.65);
    z-index: 1;
}

.jl-pitch-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 110px;
    margin-top: -55px;
    margin-left: -55px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.jl-pitch-center-spot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    margin-left: -4px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    z-index: 2;
}

.jl-pitch-penalty-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 70px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top: none;
    z-index: 1;
    pointer-events: none;
}

.jl-pitch-penalty-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 70px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: none;
    z-index: 1;
    pointer-events: none;
}

/* Halves & Player Formation Rows */
.jl-pitch-half {
    position: relative;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 10px 14px;
    box-sizing: border-box;
    z-index: 3;
}

.jl-pitch-half.is-away-half {
    justify-content: flex-start;
    gap: 8px;
}

.jl-pitch-half.is-home-half {
    justify-content: flex-end;
    gap: 8px;
}

.jl-pitch-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    flex: 1;
}

/* Player Node on Pitch */
.jl-pitch-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    user-select: none;
    max-width: 80px;
}

.jl-pitch-player:hover {
    transform: scale(1.15);
    z-index: 10;
}

.jl-player-node-jersey {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.95);
    transition: all 0.2s ease;
    background: #0f172a;
    color: #ffffff;
}

.jl-pitch-player.is-home-player .jl-player-node-jersey {
    background: #00e585;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 229, 133, 0.5);
}

.jl-pitch-player.is-away-player .jl-player-node-jersey {
    background: #0369a1;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(3, 105, 161, 0.55);
}

.jl-player-node-jersey.is-gk {
    background: #f59e0b !important;
    color: #000000 !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6) !important;
}

.jl-player-node-name {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    margin-top: 3px;
    white-space: nowrap;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Bench & Squad Lists */
.jl-squad-bench-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .jl-squad-bench-grid {
        grid-template-columns: 1fr;
    }
    .jl-tactical-pitch {
        height: 560px;
    }
    .jl-player-node-jersey {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    .jl-player-node-name {
        font-size: 9.5px;
        max-width: 65px;
        padding: 1px 5px;
    }
}

.jl-bench-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
}

.jl-bench-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.jl-bench-card-title {
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jl-bench-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jl-bench-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 12px;
}

.jl-bench-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-weight: 900;
    font-size: 11px;
}

/* =========================================
   Quick Edit Controls (Admin & Editors only)
   ========================================= */
.jl-quick-edit-btn {
    background: rgba(0, 240, 144, 0.12) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(0, 240, 144, 0.35) !important;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    text-decoration: none;
    line-height: 1.2;
}

.jl-quick-edit-btn:hover {
    background: var(--primary) !important;
    color: #000000 !important;
    box-shadow: 0 0 10px var(--primary-glow) !important;
    transform: scale(1.06);
}

.jl-quick-edit-badge-link {
    background: rgba(0, 240, 144, 0.12) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(0, 240, 144, 0.35) !important;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.jl-quick-edit-badge-link:hover {
    background: var(--primary) !important;
    color: #000000 !important;
    box-shadow: 0 0 12px var(--primary-glow) !important;
    transform: translateY(-1px);
}

.jl-hero-quick-edit-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(0, 240, 144, 0.12);
    color: var(--primary);
    border: 1px solid rgba(0, 240, 144, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.jl-hero-quick-edit-btn:hover {
    background: var(--primary);
    color: #000000;
    transform: scale(1.08);
    box-shadow: 0 0 14px var(--primary-glow);
}

/* Table Image Aspect-Ratio & Distortion Safeguards (Lighthouse Compliance) */
.jl-app-table td img,
.jl-table td img {
    max-width: 20px;
    max-height: 20px;
    width: auto;
    height: auto;
    object-fit: contain;
    aspect-ratio: auto;
}

/* ==========================================================================
   Protected Stream Video Player CTA Card (المشغل التفاعلي المحمي)
   ========================================================================== */
.jl-stream-cta-player {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    transition: transform 0.2s ease;
}
.jl-stream-cta-player::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
}
.jl-cta-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    max-width: 90%;
}
.jl-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.jl-cta-ping {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: ctaPulse 1.5s infinite;
}
@keyframes ctaPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.jl-cta-play-ring {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.2);
    border: 2px solid rgba(59, 130, 246, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.3);
}
.jl-stream-cta-player:hover .jl-cta-play-ring {
    transform: scale(1.12);
    background: rgba(37, 99, 235, 0.4);
    border-color: #60a5fa;
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.6);
}
.jl-cta-play-icon {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -3px;
}
.jl-cta-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    max-width: 500px;
    line-height: 1.4;
}
.jl-cta-btn-wrap {
    margin-bottom: 0.75rem;
}
.jl-cta-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
}
.jl-cta-action-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}
.jl-cta-subtext {
    font-size: 0.75rem;
    color: #94a3b8;
}
@media (max-width: 640px) {
    .jl-cta-play-ring { width: 60px; height: 60px; }
    .jl-cta-play-ring svg { width: 26px; height: 26px; }
    .jl-cta-title { font-size: 0.95rem; margin-bottom: 0.8rem; }
    .jl-cta-action-btn { font-size: 0.85rem; padding: 8px 18px; }
}

/* =========================================
   Language Switcher Component
   ========================================= */
.jl-lang-wrap {
    position: relative;
}

.jl-chip-btn.is-lang {
    cursor: pointer;
    gap: 7px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.jl-chip-btn.is-lang.active {
    border-color: var(--primary);
    background: var(--primary-subtle);
    box-shadow: 0 0 14px var(--primary-glow);
    color: var(--text-primary);
}

.jl-lang-flag {
    font-size: 17px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.jl-lang-name {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
}

@media (max-width: 440px) {
    .jl-chip-btn.is-lang .jl-lang-name {
        display: none;
    }
}

.jl-lang-code {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.jl-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 165px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    padding: 6px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 3px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.jl-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.jl-lang-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.jl-lang-item.active {
    background: var(--primary-subtle);
    color: var(--primary);
    font-weight: 700;
}

.jl-lang-text {
    font-size: 13.5px;
    font-weight: 700;
}

/* =========================================
   LTR Directional Mirroring (English & Global)
   ========================================= */
html[dir="ltr"],
html[dir="ltr"] body,
body[dir="ltr"],
[dir="ltr"] {
    direction: ltr !important;
    text-align: left !important;
}

[dir="ltr"] body,
[dir="ltr"] * {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[dir="ltr"] .jl-breadcrumb {
    direction: ltr !important;
    text-align: left !important;
    justify-content: flex-start;
}

[dir="ltr"] .jl-brand-name {
    flex-direction: row;
}

[dir="ltr"] .jl-header-inner,
[dir="ltr"] .jl-desktop-nav,
[dir="ltr"] .jl-footer-grid {
    direction: ltr;
}

[dir="ltr"] .jl-footer-col {
    text-align: left;
}

[dir="ltr"] .jl-footer-links a {
    text-align: left;
}

[dir="ltr"] .jl-match-card-meta,
[dir="ltr"] .jl-match-info-strip {
    direction: ltr;
}

[dir="ltr"] .jl-ad-tag {
    direction: ltr;
    letter-spacing: 0.8px;
}

[dir="ltr"] .jl-tz-modal,
[dir="ltr"] .jl-modal-box {
    text-align: left;
    direction: ltr;
}

[dir="ltr"] .jl-pwa-info,
[dir="ltr"] .jl-ios-steps {
    text-align: left;
}

/* --- LTR Tables & Data Grids --- */
[dir="ltr"] .jl-app-table-box {
    direction: ltr;
}

[dir="ltr"] .jl-app-table {
    direction: ltr;
}

[dir="ltr"] .jl-app-table th,
[dir="ltr"] .jl-app-table td {
    text-align: center;
}

[dir="ltr"] .jl-app-table:not(.jl-team-standings-table) th:nth-child(2),
[dir="ltr"] .jl-app-table:not(.jl-team-standings-table) td:nth-child(2) {
    text-align: left;
}

[dir="ltr"] .jl-table-text-col,
[dir="ltr"] .jl-table-start {
    text-align: left !important;
}

/* --- LTR Match Hero, Duel & Cards --- */
[dir="ltr"] .jl-hero-slide,
[dir="ltr"] .jl-hero-duel,
[dir="ltr"] .jl-hero-top-strip,
[dir="ltr"] .jl-spotlight-card,
[dir="ltr"] .jl-spotlight-header,
[dir="ltr"] .jl-spotlight-duel,
[dir="ltr"] .jl-spotlight-meta,
[dir="ltr"] .jl-match-app-card,
[dir="ltr"] .jl-match-teams-block,
[dir="ltr"] .jl-match-top-row,
[dir="ltr"] .jl-match-footer-meta,
[dir="ltr"] .jl-meta-badges {
    direction: ltr;
}

[dir="ltr"] .jl-spotlight-header {
    text-align: left;
}

[dir="ltr"] .jl-match-side.is-home {
    justify-content: flex-start;
}

[dir="ltr"] .jl-match-side.is-away {
    justify-content: flex-end;
}

/* --- LTR Timeline & Live Events --- */
[dir="ltr"] .jl-timeline-grid {
    direction: ltr;
}

[dir="ltr"] .jl-timeline-bubble {
    text-align: left !important;
}

[dir="ltr"] .jl-timeline-bubble * {
    text-align: left !important;
}

[dir="ltr"] .jl-ev-title {
    flex-direction: row !important;
    justify-content: flex-start !important;
}

/* --- LTR Live Center, Banners & Toasts --- */
[dir="ltr"] .jl-live-center-banner,
[dir="ltr"] .jl-no-stream-banner,
[dir="ltr"] .jl-pre-match-studio-banner {
    direction: ltr;
    text-align: left;
}

[dir="ltr"] .jl-lineups-grid,
[dir="ltr"] .jl-lineups-box,
[dir="ltr"] .jl-lineup-team,
[dir="ltr"] .jl-bench-list {
    direction: ltr;
    text-align: left;
}

[dir="ltr"] .jl-live-toast {
    direction: ltr;
    text-align: left;
}

[dir="ltr"] .jl-live-toast-content {
    text-align: left;
}

[dir="ltr"] .jl-toast-close {
    right: 8px;
    left: auto;
}

/* --- Team Profile Page LTR Direction & Standings --- */
[dir="ltr"] .jl-team-profile-page {
    direction: ltr;
    text-align: left;
}

[dir="ltr"] .jl-team-standings-table th:first-child,
[dir="ltr"] .jl-team-standings-table td:first-child {
    text-align: left !important;
}

[dir="ltr"] .jl-team-standings-table th:not(:first-child),
[dir="ltr"] .jl-team-standings-table td:not(:first-child) {
    text-align: center !important;
}

/* ==========================================================================
   Modern Responsive Standings & Top Scorers (Mobile 2-Line Row View)
   ========================================================================== */
.jl-st-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.jl-st-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-subtle);
    border: 1px solid var(--border-highlight);
    padding: 5px 11px;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jl-st-refresh-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.jl-st-refresh-btn svg {
    transition: transform 0.4s ease;
}

.jl-st-refresh-btn:hover svg {
    transform: rotate(180deg);
}

.jl-st-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success, #10b981);
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: jlPulse 2s infinite;
}

@keyframes jlPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* View Switcher Tabs (Mobile) */
.jl-st-view-switch {
    display: none;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 3px;
    gap: 4px;
}

.jl-st-switch-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.jl-st-switch-btn.is-active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* Mobile 2-Line Cards Container */
.jl-st-mobile-cards {
    display: none;
    padding: 10px;
}

.jl-st-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    margin-bottom: 8px;
    padding: 10px 14px;
    position: relative;
    box-shadow: var(--shadow-soft, 0 2px 8px rgba(0,0,0,0.04));
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}

.jl-st-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-1px);
    box-shadow: var(--shadow-elevated);
}

/* Qualification Zones */
.jl-st-card.is-zone-cl {
    border-inline-start: 4px solid #3b82f6;
}
.jl-st-card.is-zone-el {
    border-inline-start: 4px solid #f97316;
}
.jl-st-card.is-zone-ecl {
    border-inline-start: 4px solid #10b981;
}
.jl-st-card.is-zone-rel {
    border-inline-start: 4px solid #ef4444;
}

/* Line 1: Main Header (Rank, Team, Points) */
.jl-st-line1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.jl-st-rank-col {
    flex-shrink: 0;
}

.jl-st-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 900;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}

.jl-st-card.is-zone-cl .jl-st-rank-badge {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.jl-st-card.is-zone-el .jl-st-rank-badge {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.3);
}

.jl-st-card.is-zone-ecl .jl-st-rank-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.jl-st-card.is-zone-rel .jl-st-rank-badge {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.jl-st-team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.jl-st-team-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.jl-st-team-info:hover .jl-st-team-name {
    color: var(--primary);
}

/* Points Pill Badge */
.jl-st-pts-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 3px 8px;
    background: var(--primary-subtle);
    border: 1px solid var(--border-highlight);
    border-radius: 8px;
    flex-shrink: 0;
}

.jl-st-pts-val {
    font-size: 16px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.1;
}

.jl-st-pts-lbl {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

/* Line 2: Secondary Stats & Form */
.jl-st-line2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-subtle);
}

.jl-st-stats-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--text-secondary);
}

.jl-st-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
}

.jl-st-stat-chip .jl-st-lbl {
    color: var(--text-secondary);
    opacity: 0.85;
}

.jl-st-stat-chip .jl-st-val {
    font-weight: 900;
    color: var(--text-primary);
}

.jl-st-form-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Legend Box */
.jl-st-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-glass);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.jl-st-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.jl-st-legend-color {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    display: inline-block;
}

/* Mobile Responsive Breakpoints */
@media (max-width: 768px) {
    .jl-st-view-switch {
        display: inline-flex;
    }

    .jl-st-mobile-cards {
        display: block;
    }

    .jl-st-desktop-table {
        display: none;
    }

    /* When user chooses classic table on mobile */
    .jl-app-table-box.force-table-view .jl-st-desktop-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .jl-app-table-box.force-table-view .jl-st-mobile-cards {
        display: none;
    }
}

/* ==========================================================================
   Team Profile Standings (Adaptive 2-Line Mobile Card)
   ========================================================================== */
.jl-team-st-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft, 0 2px 8px rgba(0,0,0,0.03));
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.jl-team-st-card.is-zone-cl {
    border-inline-start: 4px solid #3b82f6;
}
.jl-team-st-card.is-zone-el {
    border-inline-start: 4px solid #f97316;
}
.jl-team-st-card.is-zone-ecl {
    border-inline-start: 4px solid #10b981;
}
.jl-team-st-card.is-zone-rel {
    border-inline-start: 4px solid #ef4444;
}

.jl-team-st-line1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.jl-team-st-league-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.jl-team-st-league-title {
    font-size: 15px;
    font-weight: 900;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jl-team-st-line2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px dashed var(--border-subtle);
}

.jl-team-st-mobile {
    display: none;
}

.jl-team-st-desktop {
    display: block;
}

@media (max-width: 768px) {
    .jl-team-st-mobile {
        display: block;
    }
    .jl-team-st-desktop {
        display: none;
    }
}

/* ==========================================================================
   Curved Lateral Depth Flanks (3D Cylinder Edge Vignette)
   ========================================================================== */
.jl-flank-vignette {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 90;
    transition: opacity 0.25s ease;
}

@media (max-width: 991px) {
    .jl-flank-vignette {
        display: none !important;
    }
}

.jl-flank-left {
    left: 0;
    background: linear-gradient(90deg, 
        rgba(203, 213, 225, 0.65) 0%, 
        rgba(219, 226, 234, 0.4) 30%, 
        rgba(241, 245, 249, 0.1) 70%, 
        transparent 100%
    );
}

.jl-flank-right {
    right: 0;
    background: linear-gradient(270deg, 
        rgba(203, 213, 225, 0.65) 0%, 
        rgba(219, 226, 234, 0.4) 30%, 
        rgba(241, 245, 249, 0.1) 70%, 
        transparent 100%
    );
}

[data-theme="dark"] .jl-flank-left,
:root:not([data-theme="light"]) .jl-flank-left {
    background: linear-gradient(90deg, 
        rgba(3, 7, 18, 0.8) 0%, 
        rgba(8, 14, 26, 0.45) 30%, 
        rgba(15, 23, 42, 0.15) 70%, 
        transparent 100%
    );
}

[data-theme="dark"] .jl-flank-right,
:root:not([data-theme="light"]) .jl-flank-right {
    background: linear-gradient(270deg, 
        rgba(3, 7, 18, 0.8) 0%, 
        rgba(8, 14, 26, 0.45) 30%, 
        rgba(15, 23, 42, 0.15) 70%, 
        transparent 100%
    );
}




