/* Satta King Fast Replica - Premium CSS Style sheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-color: #080a13;
    --card-bg: rgba(18, 24, 43, 0.55);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #ffd700;
    --primary-glow: rgba(255, 215, 0, 0.35);
    --text-color: #ffffff;
    --text-muted: #8e9cb0;
    --accent-gold: #ffd700;
    --accent-teal: #00f5d4;
    --accent-teal-glow: rgba(0, 245, 212, 0.25);
    --accent-red: #ff5b5b;
    --glass-grad: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    overflow-x: clip;
    width: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(26, 32, 60, 0.7) 0%, rgba(8, 10, 19, 1) 90%),
        radial-gradient(circle at 90% 80%, rgba(0, 245, 212, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.02) 0%, transparent 60%);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 0;
}

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

/* Header */
header {
    background: rgba(10, 13, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

.logo i {
    font-size: 2.2rem;
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.logo span {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-admin-link {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-admin-link:hover {
    background: var(--primary);
    color: #080a13;
    box-shadow: 0 0 20px var(--primary-glow);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 40%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    color: var(--primary);
    -webkit-text-fill-color: initial;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 30px;
}

.disclaimer-banner {
    background: rgba(255, 91, 91, 0.04);
    border: 1px solid rgba(255, 91, 91, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 25px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #ffb0b0;
    backdrop-filter: blur(10px);
    text-align: left;
}

.disclaimer-banner i {
    font-size: 1.2rem;
    color: var(--accent-red);
    flex-shrink: 0;
}

/* Featured Draws Cards */
.quick-board {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.board-header {
    background: rgba(10, 13, 26, 0.5);
    padding: 20px 24px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.board-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.board-header h2 i {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid var(--accent-teal);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent-teal);
    text-transform: uppercase;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(0, 245, 212, 0.1); }
    to { box-shadow: 0 0 15px rgba(0, 245, 212, 0.4); }
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: var(--accent-teal);
    border-radius: 50%;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    50% { opacity: 0.3; }
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: var(--card-border);
}

.result-card {
    background: rgba(22, 28, 45, 0.35);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    background: rgba(22, 28, 45, 0.6);
}

.result-card .game-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.result-card .game-time {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.results-grid .flash-declared {
    color: var(--accent-teal) !important;
    text-shadow: 0 0 10px var(--accent-teal-glow);
    animation: blinkGlow 1.5s infinite alternate;
}

@keyframes blinkGlow {
    from { opacity: 0.7; text-shadow: 0 0 5px rgba(0, 245, 212, 0.2); }
    to { opacity: 1; text-shadow: 0 0 15px var(--accent-teal); }
}

.result-values {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.val-box {
    flex: 1;
    max-width: 95px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 10px;
    transition: transform 0.3s;
}

.val-box:hover {
    transform: translateY(-2px);
}

.val-box .day-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.val-box .num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.val-box.today {
    border-color: rgba(0, 245, 212, 0.25);
    background: rgba(0, 245, 212, 0.02);
}

.val-box.today .num {
    color: var(--accent-teal);
    text-shadow: 0 0 10px var(--accent-teal-glow);
}

.btn-chart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 7px 18px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-chart:hover {
    background: var(--primary);
    color: #080a13;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.25);
}

/* Satta King Games Directory Table Card (100+ Games layout) */
.directory-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.directory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 20px;
}

.directory-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.directory-header h2 i {
    color: var(--accent-teal);
}

/* Search bar styling */
.search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.3s;
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    padding: 12px 15px 12px 40px;
    border-radius: 20px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-teal);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.25);
}

.search-box input:focus + .search-icon {
    color: var(--accent-teal);
}

/* Compact list table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
}

.compact-table th {
    padding: 14px 16px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--card-border);
}

.compact-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.95rem;
}

.compact-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.table-val-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    min-width: 50px;
    text-align: center;
}

.table-val-badge.today.active {
    background: rgba(0, 245, 212, 0.08);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

@keyframes pulseLive {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}

.table-chart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
}

.table-chart-btn:hover {
    background: var(--accent-teal);
    color: #080a13;
    border-color: var(--accent-teal);
    box-shadow: 0 4px 12px var(--accent-teal-glow);
}

/* Combined Monthly Result Chart styling */
.combined-chart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.combined-chart-table th {
    padding: 16px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-color);
    background: rgba(10, 13, 26, 0.4);
    border: 1px solid var(--card-border);
}

.combined-chart-table td {
    padding: 12px;
    border: 1px solid var(--card-border);
    font-size: 1rem;
}

.combined-chart-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.combined-val {
    font-weight: 700;
    color: var(--text-muted);
}

.combined-val.active {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Combined Chart filter dropdowns */
.chart-filter-form {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.chart-filter-form h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    background: rgba(8, 10, 19, 0.8);
    border: 1px solid var(--card-border);
    padding: 10px 20px;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    min-width: 150px;
}

.filter-select:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 10px var(--accent-teal-glow);
}

.filter-btn {
    background: var(--accent-teal);
    color: #080a13;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--accent-teal-glow);
}

/* Chart page grid */
.chart-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.chart-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.chart-cell {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
}

.chart-cell .date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.chart-cell .val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .chart-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .directory-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-box {
        max-width: 100%;
    }
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-select {
        width: 100%;
    }
}

/* --- Premium Live Features --- */
.countdown-banner {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.08) 0%, rgba(255, 215, 0, 0.03) 100%);
    border: 1px solid rgba(0, 245, 212, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(0, 245, 212, 0.05);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.countdown-label {
    display: flex;
    align-items: center;
    gap: 10px;
}
.countdown-label i {
    font-size: 1.6rem;
    color: var(--accent-teal);
    animation: rotateHourglass 4s infinite linear;
}
@keyframes rotateHourglass {
    0%, 90% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}
.countdown-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}
.countdown-text strong {
    color: #fff;
    font-size: 1.05rem;
}
.countdown-timer-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(8, 10, 19, 0.6);
    border: 1px solid var(--card-border);
    padding: 8px 16px;
    border-radius: 12px;
}
.countdown-timer {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

/* Sharing buttons */
.share-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    transition: all 0.2s ease;
}
.share-btn.wa:hover {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.4);
}
.share-btn.tg:hover {
    background: #0088cc;
    border-color: #0088cc;
    box-shadow: 0 0 10px rgba(0, 136, 204, 0.4);
}

/* Live updating result styling */
.flash-declared-live {
    animation: flashLiveResult 2.5s ease-out;
}
@keyframes flashLiveResult {
    0% {
        transform: scale(1.3);
        color: var(--accent-teal);
        text-shadow: 0 0 20px var(--accent-teal);
    }
    20% {
        transform: scale(1.3);
        color: var(--primary);
        text-shadow: 0 0 25px var(--primary);
    }
    100% {
        transform: scale(1);
        text-shadow: none;
    }
}


/* ==========================================
   COMPREHENSIVE MOBILE-FIRST REDESIGN
   Target: 99% mobile users — make them say WOW
   ========================================== */
@media (max-width: 768px) {
    /* ---- Base layout ---- */
    /* NOTE: Do NOT use overflow-x: clip on html or body on mobile — it breaks position:sticky
       and prevents touch events from reaching fixed/sticky elements on iOS Safari */
    html {
        overflow-x: visible !important;
    }
    body {
        overflow-x: visible !important;
        width: 100%;
    }
    .container {
        padding: 8px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: visible !important;
    }
    
    /* ---- Compact Sticky Header ---- */
    header nav {
        display: none !important;
    }
    .header-inner {
        flex-direction: row !important;
        justify-content: center !important;
        height: 50px !important;
        padding: 0 15px !important;
    }
    .logo i {
        font-size: 1.6rem !important;
    }
    .logo span {
        font-size: 1.15rem !important;
    }
    
    .container {
        padding: 8px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: clip;
    }
    
    /* ---- Hero Section — Premium Gradient Title ---- */
    .hero {
        padding: 14px 4px 10px !important;
        text-align: center !important;
    }
    .hero h1 {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        font-weight: 900 !important;
        background: linear-gradient(135deg, #ffffff 40%, var(--primary) 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        margin-bottom: 4px !important;
        letter-spacing: -0.3px !important;
    }
    .hero-subtitle {
        display: none !important;
    }
    
    /* ---- Disclaimer — Moved to bottom, made extremely clean and muted ---- */
    .disclaimer-banner {
        background: rgba(255, 91, 91, 0.04) !important;
        border: 1px solid rgba(255, 91, 91, 0.15) !important;
        color: #ffb0b0 !important;
        font-size: 0.76rem !important;
        line-height: 1.5 !important;
        text-align: center !important;
        padding: 12px 16px !important;
        margin-top: 20px !important;
        margin-bottom: 0 !important;
        border-radius: 12px !important;
        flex-direction: column !important;
        gap: 8px !important;
        align-items: center !important;
    }
    .disclaimer-banner i {
        color: var(--accent-red) !important;
        font-size: 1.1rem !important;
    }
    
    /* ---- Countdown Banner — Sleek Live Match Widget Design ---- */
    .countdown-banner {
        background: linear-gradient(135deg, rgba(0, 245, 212, 0.06) 0%, rgba(8, 10, 19, 0.8) 100%) !important;
        border: 1px solid rgba(0, 245, 212, 0.25) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 245, 212, 0.05) !important;
        border-radius: 16px !important;
        padding: 12px 16px !important;
        margin-bottom: 12px !important;
        gap: 12px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .countdown-label {
        gap: 8px !important;
    }
    .countdown-label i {
        font-size: 1.25rem !important;
        color: var(--accent-teal) !important;
        background: rgba(0, 245, 212, 0.1);
        padding: 8px;
        border-radius: 50%;
    }
    .countdown-text {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
    }
    .countdown-text strong {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: #fff !important;
    }
    .countdown-timer-wrap {
        background: rgba(0, 245, 212, 0.08) !important;
        border: 1px solid rgba(0, 245, 212, 0.25) !important;
        padding: 6px 14px !important;
        border-radius: 12px !important;
        box-shadow: 0 0 12px rgba(0, 245, 212, 0.1) !important;
    }
    .countdown-timer {
        font-size: 1.15rem !important;
        font-weight: 900 !important;
        color: var(--accent-teal) !important;
        letter-spacing: 0.5px !important;
    }
    
    /* ---- Featured Cards — 2-column premium grid ---- */
    .quick-board {
        margin-bottom: 12px !important;
        border-radius: 18px !important;
    }
    .board-header {
        padding: 12px 16px !important;
    }
    .board-header h2 {
        font-size: 1rem !important;
    }
    .results-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1px !important;
    }
    .result-card {
        padding: 16px 10px !important;
    }
    .result-card .game-name {
        font-size: 0.85rem !important;
        letter-spacing: 0.3px !important;
    }
    .result-card .game-time {
        font-size: 0.72rem !important;
        margin-bottom: 10px !important;
    }
    .result-values {
        gap: 8px !important;
        margin-bottom: 12px !important;
    }
    .val-box {
        padding: 8px 6px !important;
        border-radius: 10px !important;
    }
    .val-box .day-lbl {
        font-size: 0.65rem !important;
    }
    .val-box .num {
        font-size: 2rem !important;
        font-weight: 900 !important;
    }
    .btn-chart {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        border-radius: 14px !important;
    }
    
    /* ---- Directory Card ---- */
    .directory-card, .card {
        padding: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
    }
    
    /* ---- Game Rows — Native Mobile Card Layout ---- */
    /* Hide table header completely */
    .compact-table thead {
        display: none !important;
    }
    /* Show mobile column label row */
    .mobile-col-labels {
        display: flex !important;
        align-items: center !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        padding: 8px 14px 4px 14px !important;
        background: rgba(255,255,255,0.01) !important;
    }
    .mobile-col-labels td {
        display: block !important;
        border: none !important;
        background: transparent !important;
        font-size: 0.65rem !important;
        color: var(--text-muted) !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    .mobile-col-labels td.col-lbl-name {
        flex: 1 1 auto !important;
        text-align: left !important;
        padding: 0 !important;
    }
    .mobile-col-labels td.col-lbl-yday {
        flex: 0 0 60px !important;
        text-align: center !important;
        padding: 0 !important;
        margin-left: 6px !important;
    }
    .mobile-col-labels td.col-lbl-today {
        flex: 0 0 66px !important;
        text-align: center !important;
        padding: 0 !important;
        margin-left: 6px !important;
    }
    
    /* Convert each row to a horizontal flex card */
    .compact-table tr.game-row {
        display: flex !important;
        align-items: center !important;
        padding: 10px 14px !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        gap: 0 !important;
        min-height: 56px !important;
        transition: background 0.2s ease !important;
    }
    .compact-table tr.game-row:active {
        background: rgba(255,255,255,0.03) !important;
    }
    
    /* All tds become flex items */
    .compact-table td {
        display: block !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        text-align: left !important;
    }
    
    /* Column 1: Game name — grows to fill space */
    .compact-table tr.game-row td:nth-child(1) {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 2px !important;
    }
    .compact-table tr.game-row td:nth-child(1) .game-link-name {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }
    .row-time {
        display: block !important;
    }
    
    /* Column 2: Draw time — hidden, merged into col 1 visually via flex-wrap */
    .compact-table tr.game-row td:nth-child(2) {
        display: none !important;
    }
    
    /* Column 3: Yesterday result */
    .compact-table tr.game-row td:nth-child(3) {
        flex: 0 0 60px !important;
        text-align: center !important;
        margin-left: 6px !important;
    }
    .compact-table tr.game-row td:nth-child(3) .table-val-badge {
        font-size: 1.1rem !important;
        padding: 5px 10px !important;
        font-weight: 800 !important;
        min-width: 48px !important;
        display: block !important;
        text-align: center !important;
        border-radius: 10px !important;
    }
    
    /* Column 4: Today result — the STAR of the row */
    .compact-table tr.game-row td:nth-child(4) {
        flex: 0 0 66px !important;
        text-align: center !important;
        margin-left: 6px !important;
    }
    .compact-table tr.game-row td:nth-child(4) .table-val-badge {
        font-size: 1.25rem !important;
        padding: 5px 10px !important;
        font-weight: 900 !important;
        min-width: 54px !important;
        display: block !important;
        text-align: center !important;
        border-radius: 10px !important;
    }
    
    /* Column 5: Chart button — hidden on mobile (name is a link to chart) */
    .compact-table tr.game-row td:nth-child(5) {
        display: none !important;
    }
    
    /* Section divider rows */
    .compact-table tr.section-divider-row {
        display: flex !important;
        width: 100% !important;
    }
    .compact-table tr.section-divider-row td {
        width: 100% !important;
        padding: 8px 14px !important;
        font-size: 0.78rem !important;
    }
    
    /* Monthly chart */
    .combined-chart-table th,
    .combined-chart-table td {
        padding: 8px 6px !important;
        font-size: 0.82rem !important;
    }
    
    /* Blog layout pages */
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .post-container {
        padding: 15px !important;
    }
    .post-title {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }
    .cta-btn-wrap {
        flex-direction: column !important;
        width: 100% !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .cta-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Calculator Page Tab adjustments */
    .calc-tabs {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .tab-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Heading & typography tweaks */
    .hero h1 {
        font-size: 1.55rem !important;
        line-height: 1.3 !important;
    }
}

/* Row time — shown below game name on mobile only */
.row-time {
    display: none; /* hidden on desktop */
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.game-link-name:hover {
    color: var(--accent-teal) !important;
}

.sticky-filter-wrapper {
    position: relative !important;
    top: 0 !important;
    background: #080a13 !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    padding: 12px 0 8px 0;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 20px;
}

.filter-pills-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0 10px 0;
    margin-top: 15px;
    scrollbar-width: none;
}
.filter-pills-container::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.filter-pill i {
    font-size: 0.85rem;
}
.filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.filter-pill.active {
    background: var(--primary);
    color: #080b16;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
}

@media (max-width: 768px) {
    .sticky-filter-wrapper {
        position: relative !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        padding: 10px 12px 6px 12px !important;
        margin-bottom: 10px !important;
        z-index: 10 !important;
        pointer-events: auto !important;
        touch-action: auto !important;
    }
    .sticky-filter-wrapper h2 {
        display: none !important;
    }
    .sticky-filter-wrapper .directory-header {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
    .sticky-filter-wrapper .search-box {
        max-width: 100% !important;
        width: 100% !important;
    }
    .sticky-filter-wrapper .filter-pills-container {
        margin-top: 5px !important;
        padding-bottom: 3px !important;
    }
    .filter-pill {
        padding: 7px 13px !important;
        font-size: 0.8rem !important;
    }
}

/* --- App-like Mobile Bottom Navigation Bar --- */
.mobile-bottom-nav {
    display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
    /* Add padding to body to prevent bottom bar from overlapping content */
    body {
        padding-bottom: 75px !important;
    }
    
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: rgba(10, 13, 26, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--card-border);
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.6);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
    }
    
    .nav-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.72rem;
        font-weight: 600;
        gap: 4px;
        flex: 1;
        transition: all 0.25s ease;
        height: 100%;
        padding-top: 6px;
    }
    .nav-tab i {
        font-size: 1.25rem;
    }
    .nav-tab:hover {
        color: #fff;
    }
    .nav-tab.active {
        color: var(--primary);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
    }
    .nav-tab.tg-alert-tab {
        color: #0088cc;
    }
    .nav-tab.tg-alert-tab.active {
        color: #0088cc;
    }
    .nav-tab.tg-alert-tab:hover {
        color: #33a3fc;
    }
}

/* --- Header Search Box Layout overrides --- */
.header-search-wrap {
    flex: 1;
    max-width: 420px;
    margin: 0 30px;
    min-width: 180px;
}
.header-search-wrap .search-box {
    width: 100%;
    position: relative;
}
.header-search-wrap .search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px 10px 42px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.header-search-wrap .search-box input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
    outline: none;
}
.header-search-wrap .search-box .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

/* Hide original directory search bar on desktop */
.directory-search-wrap {
    display: block; /* show by default on mobile/tablet */
}
@media (min-width: 769px) {
    .directory-search-wrap {
        display: none !important; /* hide in desktop mode */
    }
}
@media (max-width: 768px) {
    .header-search-wrap {
        display: none !important; /* hide header search in mobile mode */
    }
}

/* --- PWA Promo Install Banner Styles --- */
.pwa-banner {
    position: fixed;
    bottom: 80px; /* sit just above mobile bottom navigation (65px) with padding */
    left: 15px;
    right: 15px;
    background: rgba(18, 24, 43, 0.95);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2500;
    animation: slideUpPwa 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpPwa {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pwa-banner-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}
.pwa-banner-info strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}
.pwa-banner-info p {
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-top: 2px;
}
.pwa-banner-actions {
    display: flex;
    gap: 8px;
}
.btn-pwa-cancel, .btn-pwa-install {
    border: none;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-pwa-cancel {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.05);
}
.btn-pwa-cancel:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.btn-pwa-install {
    background: var(--primary);
    color: #080b16;
    box-shadow: 0 4px 10px rgba(255,215,0,0.15);
}
.btn-pwa-install:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,215,0,0.25);
}

/* Hide PWA banner on desktop viewports */
@media (min-width: 769px) {
    .pwa-banner {
        display: none !important;
    }
}

/* Align Directory Header & Filter Pills inline on Desktop */
@media (min-width: 769px) {
    .sticky-filter-wrapper {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px !important;
        background: rgba(18, 24, 43, 0.4) !important;
        border: 1px solid var(--card-border) !important;
        border-radius: 16px;
        margin-bottom: 30px;
    }
    .sticky-filter-wrapper .directory-header {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }
    .sticky-filter-wrapper .filter-pills-container {
        margin-top: 0 !important;
        padding: 0 !important;
    }
}

/* --- Premium Footer --- */
.site-footer {
    background: rgba(10, 15, 30, 0.95);
    border-top: 1px solid var(--card-border);
    padding: 50px 0 120px 0; /* extra padding at bottom so it doesn't get hidden under mobile bottom nav */
    margin-top: 50px;
    font-size: 0.9rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-brand {
    max-width: 320px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 10px;
    line-height: 1.5;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-bottom {
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
}
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
        gap: 15px;
    }
}

/* ── 2026 Light Theme Premium Overrides ── */
[data-theme="light"] {
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
    --text-color: #1f2937;
    --text-muted: #4b5563;
    --primary: #d97706; /* rich gold/amber for light backgrounds */
    --primary-glow: rgba(217, 119, 6, 0.15);
    --glass-grad: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    --accent-teal: #0d9488;
    --accent-teal-glow: rgba(13, 148, 136, 0.15);
}

[data-theme="light"] body {
    background-image: 
        radial-gradient(circle at 10% 20%, #f3f4f6 0%, #e5e7eb 90%),
        radial-gradient(circle at 90% 80%, rgba(13, 148, 136, 0.03) 0%, transparent 50%);
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .logo span {
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .quick-board,
[data-theme="light"] .game-directory,
[data-theme="light"] .chart-card,
[data-theme="light"] .sidebar-widget,
[data-theme="light"] .comment-form,
[data-theme="light"] .cta-box {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #111827;
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
    background: #ffffff;
    border-color: var(--primary);
    color: #111827;
}

[data-theme="light"] .game-row {
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .game-row:hover {
    background: #ffffff;
}

[data-theme="light"] th {
    background: rgba(0, 0, 0, 0.02) !important;
    color: #374151 !important;
}

[data-theme="light"] td {
    color: #1f2937 !important;
}

[data-theme="light"] .tg-alert-tab,
[data-theme="light"] .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .mobile-bottom-nav a {
    color: #4b5563;
}

[data-theme="light"] .mobile-bottom-nav a.active {
    color: var(--primary);
}

[data-theme="light"] .chart-grid .day-cell {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

[data-theme="light"] .chart-grid .day-cell.today {
    background: rgba(217, 119, 6, 0.1);
    border-color: var(--primary);
}

/* ── 2026 Interactive UX Animation Keyframes ── */
.skeleton-pulse {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.03) 75%) !important;
    background-size: 200% 100% !important;
    animation: skeletonPulse 1.6s infinite ease-in-out !important;
    border-radius: 6px;
    color: transparent !important;
}
[data-theme="light"] .skeleton-pulse {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.03) 25%, rgba(0, 0, 0, 0.09) 50%, rgba(0, 0, 0, 0.03) 75%) !important;
    background-size: 200% 100% !important;
}
@keyframes skeletonPulse {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

.fade-in-scale {
    animation: fadeInScale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes fadeInScale {
    0% { opacity: 0; transform: translateY(8px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.flash-declared-live {
    animation: neonGreenFlash 3s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}
@keyframes neonGreenFlash {
    0% {
        background: rgba(16, 185, 129, 0.4) !important;
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.7), inset 0 0 15px rgba(16, 185, 129, 0.4) !important;
        color: #10b981 !important;
        border-color: #10b981 !important;
        transform: scale(1.1);
    }
    40% {
        background: rgba(16, 185, 129, 0.15) !important;
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.3) !important;
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}
.chime-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
    outline: none;
}
.chime-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}
[data-theme="light"] .chime-toggle-btn {
    color: var(--primary);
}

/* Light Theme Fixes */
[data-theme="light"] .hero h1 {
    background: linear-gradient(135deg, #1f2937 40%, var(--primary) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .quick-board {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .board-header {
    background: rgba(0, 0, 0, 0.02) !important;
    border-bottom: 1px solid var(--card-border) !important;
}

[data-theme="light"] .board-header h2 {
    color: var(--text-color) !important;
}

[data-theme="light"] .result-card {
    background: #ffffff !important;
}

[data-theme="light"] .result-card:hover {
    background: #f9fafb !important;
}

[data-theme="light"] .val-box {
    background: #f9fafb !important;
    border-color: var(--card-border) !important;
}

[data-theme="light"] .val-box.today {
    background: rgba(13, 148, 136, 0.05) !important;
    border-color: rgba(13, 148, 136, 0.25) !important;
}

[data-theme="light"] .btn-chart {
    background: #f3f4f6 !important;
    border-color: var(--card-border) !important;
    color: var(--text-muted) !important;
}

[data-theme="light"] .btn-chart:hover {
    background: #e5e7eb !important;
    color: var(--text-color) !important;
}

[data-theme="light"] .countdown-banner {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .countdown-text strong {
    color: var(--text-color) !important;
}

[data-theme="light"] .countdown-timer-wrap {
    background: #ffffff !important;
    border-color: var(--card-border) !important;
}

/* Header link colors for light mode to override inline style="color:#fff" */
[data-theme="light"] header nav a:not(.btn-admin-link) {
    color: var(--text-color) !important;
}



/* ============================================================
   2026 PREMIUM ADDITIONS — Countdown · Stats Bar · Pill Counts
   ============================================================ */

/* ── Redesigned Countdown Banner ─────────────────────────────── */
.countdown-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}
.cd-icon-wrap {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,245,212,.18), rgba(0,245,212,.06));
    border: 1px solid rgba(0,245,212,.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-teal);
    flex-shrink: 0;
    animation: cdIconPulse 2s infinite alternate;
}
@keyframes cdIconPulse {
    from { box-shadow: 0 0 6px rgba(0,245,212,.2); }
    to   { box-shadow: 0 0 18px rgba(0,245,212,.5); }
}
.countdown-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.cd-label-top {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent-teal);
}
.cd-game-name {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.01em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}
.cd-draw-at {
    font-size: .78rem;
    color: var(--text-muted);
}
.cd-draw-at strong {
    color: var(--primary);
    font-weight: 800;
}
.countdown-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.cd-timer-label {
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.cd-share-wrap { display: flex; gap: 6px; align-items: center; }
.cd-chart-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .7rem; font-weight: 700;
    color: var(--accent-teal);
    text-decoration: none;
    background: rgba(0,245,212,.08);
    border: 1px solid rgba(0,245,212,.2);
    padding: 3px 10px; border-radius: 20px;
    transition: all .2s;
}
.cd-chart-link:hover { background: rgba(0,245,212,.18); }

/* Mobile countdown adjustments */
@media (max-width: 768px) {
    .cd-game-name { font-size: .95rem !important; max-width: 160px !important; }
    .countdown-right { align-items: flex-end !important; }
    .cd-timer-label { display: none !important; }
    .cd-share-wrap { display: none !important; }
}

/* ── Live Stats Bar ───────────────────────────────────────────── */
.live-stats-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 10px 20px;
    margin-bottom: 22px;
    overflow: hidden;
}
.lsb-item {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    justify-content: center;
}
.lsb-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: blink 1.5s infinite;
}
.lsb-num {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.lsb-lbl {
    font-size: .68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.lsb-sep {
    width: 1px;
    height: 28px;
    background: var(--card-border);
    flex-shrink: 0;
    margin: 0 4px;
}
.lsb-sep-right { margin-left: auto; }
.lsb-refresh {
    gap: 6px;
    flex: 0 0 auto;
}
.lsb-refresh i {
    color: var(--accent-teal);
    font-size: .85rem;
}
@keyframes spinning {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.spinning { animation: spinning .6s linear; }

@media (max-width: 768px) {
    .live-stats-bar {
        padding: 8px 12px !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
    }
    .lsb-num { font-size: .95rem !important; }
    .lsb-lbl { font-size: .58rem !important; }
    .lsb-item { gap: 4px !important; }
    .lsb-refresh .lsb-lbl span { display: none; }
}

/* ── Directory top row (title + search inline) ────────────────── */
.dir-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}
.dir-title {
    font-size: 1.1rem;
    font-weight: 800;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dir-title i { color: var(--primary); }

/* Search box with clear button */
.directory-search-wrap {
    position: relative;
    flex: 1;
    max-width: 340px;
}
.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: .8rem;
    transition: color .2s, background .2s;
    z-index: 2;
}
.search-clear-btn:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
}

@media (max-width: 768px) {
    .dir-top-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .directory-search-wrap {
        max-width: 100% !important;
    }
    /* Make sticky-filter-wrapper sticky on mobile */
    #stickyFilterWrap {
        position: sticky !important;
        top: 50px !important; /* header height on mobile */
        background: var(--bg-color) !important;
        z-index: 100 !important;
        padding: 10px 10px 4px !important;
        border-bottom: 1px solid var(--card-border) !important;
        margin-bottom: 0 !important;
    }
}

/* ── Filter Pill Count Badges ─────────────────────────────────── */
.pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: .65rem;
    font-weight: 800;
    background: rgba(255,255,255,.08);
    color: var(--text-muted);
    margin-left: 2px;
    line-height: 1;
}
.pill-count-red {
    background: rgba(239,68,68,.18) !important;
    color: #ff7e7e !important;
}
.pill-count-teal {
    background: rgba(0,245,212,.15) !important;
    color: var(--accent-teal) !important;
}
.filter-pill.active .pill-count {
    background: rgba(255,255,255,.2);
    color: #fff;
}

/* ── Light mode overrides ─────────────────────────────────────── */
[data-theme="light"] .live-stats-bar {
    background: #ffffff;
    border-color: var(--card-border);
}
[data-theme="light"] .lsb-num { color: var(--text-color); }
[data-theme="light"] .cd-game-name { color: var(--text-color); }
[data-theme="light"] #stickyFilterWrap {
    background: #f3f4f6 !important;
}
[data-theme="light"] .search-clear-btn:hover {
    color: var(--text-color);
    background: rgba(0,0,0,.06);
}
