/* =========================
   FOOTYMIND - UPDATED VERSION
   Time above teams, Score at end
   ========================= */

:root {
    --primary-red: #dc143c;
    --primary-red-dark: #b01030;
    --primary-red-light: #ff1744;
    --black: #000000;
    --dark-bg: #0a0a0a;
    --darker-bg: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-gray: #e0e0e0;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --success-green: #28a745;
    --error-red: #dc3545;
    
    --spacing-xs: 3px;
    --spacing-sm: 6px;
    --spacing-md: 12px;
    --spacing-lg: 18px;
    --spacing-xl: 24px;
    
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 3px 8px rgba(0, 0, 0, 0.2);
    
    --transition: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--light-gray);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    font-size: 14px;
}

body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* =========================
   HEADER
   ========================= */

.header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    padding: 12px 24px;
    border-bottom: 2px solid var(--primary-red);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: transform var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(220, 20, 60, 0.4);
    color: var(--white);
}

.header-right {
    display: flex;
    gap: 12px;
}

.header-btn {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
    text-decoration: none;
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.5);
}

.fav-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* =========================
   NAVIGATION
   ========================= */

.nav {
    background: var(--darker-bg);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 999;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: all 0.2s ease;
    z-index: 10001;
    position: relative;
}

.mobile-menu-btn:hover {
    color: var(--primary-red);
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-lg);
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 180px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 1000;
    border: 1px solid var(--border-gray);
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 12px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-size: 0.8rem;
}

.dropdown-item:hover {
    background: rgba(220, 20, 60, 0.1);
    color: var(--primary-red);
    padding-left: calc(12px + 4px);
}

/* =========================
   CONTAINER & LAYOUT
   ========================= */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

.page-header {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gray);
}

.page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.page-title i {
    color: var(--primary-red);
    font-size: 1.2rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.main-content {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: var(--spacing-lg);
    align-items: start;
}

.content {
    min-width: 0;
    order: 2;
}

/* =========================
   COUNTRIES SIDEBAR (LEFT)
   ========================= */

.countries-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gray);
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    order: 1;
}

.countries-sidebar::-webkit-scrollbar {
    width: 6px;
}

.countries-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.countries-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 3px;
}

.sidebar-section {
    margin-bottom: var(--spacing-lg);
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-red);
}

.sidebar-title i {
    color: var(--primary-red);
}

.country-stats-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.country-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    background: #fafafa;
}

.country-stat-item:hover {
    background: rgba(220, 20, 60, 0.05);
    border-color: var(--primary-red);
    transform: translateX(2px);
}

.country-flag {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
}

.country-info {
    flex: 1;
    min-width: 0;
}

.country-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.expand-country {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: all var(--transition);
    flex-shrink: 0;
}

.expand-country:hover {
    color: var(--primary-red);
    transform: rotate(180deg);
}

.country-leagues {
    display: none;
    margin-top: 6px;
    margin-left: 34px;
    padding-left: 10px;
    border-left: 2px solid var(--border-gray);
}

.league-item-compact {
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition);
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    font-size: 0.8rem;
}

.league-item-compact:hover {
    background: rgba(220, 20, 60, 0.1);
    padding-left: 12px;
}

.league-name-text {
    color: var(--text-primary);
    font-size: 0.75rem;
}

.league-match-count {
    background: var(--primary-red);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.show-more-countries {
    width: 100%;
    background: var(--white);
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    padding: 8px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 8px;
}

.show-more-countries:hover {
    background: var(--primary-red);
    color: var(--white);
}

.hidden-countries {
    display: none;
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #fafafa;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.favorite-item:hover {
    background: rgba(220, 20, 60, 0.05);
    border-color: var(--primary-red);
}

.favorite-flag {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 2px;
}

.favorite-info {
    flex: 1;
    min-width: 0;
}

.favorite-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-country {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.remove-favorite {
    background: none;
    border: none;
    color: var(--error-red);
    cursor: pointer;
    padding: 4px;
    transition: all var(--transition);
    flex-shrink: 0;
}

.remove-favorite:hover {
    color: #a00;
    transform: scale(1.1);
}

.view-favorites-btn {
    width: 100%;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 8px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.view-favorites-btn:hover {
    background: var(--primary-red-dark);
}

/* =========================
   FILTER BAR - COMPLETE REPLACEMENT
   Desktop + Mobile Optimized
   Replace your existing filter-bar section with this
   ========================= */

/* =========================
   DESKTOP FILTER BAR STYLES
   ========================= */

.filter-bar {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.date-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.date-tabs::-webkit-scrollbar {
    height: 4px;
}

.date-tabs::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

.date-tab {
    flex: 0 0 auto;
    background: #fafafa;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    min-width: 65px;
}

.date-tab:hover {
    background: rgba(220, 20, 60, 0.1);
    border-color: var(--primary-red);
}

.date-tab.active {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.date-tab.live {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: var(--white);
    border-color: #ff0000;
}

.date-number {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.date-day {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    margin: 4px auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-options label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.sort-dropdown {
    padding: 6px 28px 6px 10px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: all var(--transition);
}

.sort-dropdown:hover,
.sort-dropdown:focus {
    border-color: var(--primary-red);
    outline: none;
}

.search-box {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.1);
}

.show-all-btn {
    background: var(--white);
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.show-all-btn:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* =========================
   MOBILE OPTIMIZED (768px and below)
   Ultra-compact, space-efficient design
   ========================= */

@media (max-width: 768px) {
    .filter-bar {
        padding: 6px;
        gap: 6px;
        border-radius: 10px;
        margin-bottom: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
        border: 1px solid #f0f0f0;
    }

    /* Horizontal swipe-friendly date carousel */
    .date-tabs {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }

    .date-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Compact date chips */
    .date-tab {
        flex: 0 0 auto;
        min-width: 44px;
        height: 44px;
        background: #fafafa;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.15s ease;
        scroll-snap-align: center;
        padding: 4px;
    }

    .date-tab:active {
        transform: scale(0.92);
    }

    .date-tab.active {
        background: var(--primary-red);
        color: var(--white);
        border-color: var(--primary-red);
        box-shadow: 0 2px 6px rgba(220, 20, 60, 0.25);
        transform: scale(1.05);
    }

    /* Live badge with indicator */
    .date-tab.live {
        background: linear-gradient(135deg, #ff0000 0%, #d00000 100%);
        color: var(--white);
        border-color: #ff0000;
        min-width: 52px;
        position: relative;
    }

    .date-tab.live::before {
        content: '';
        position: absolute;
        top: -2px;
        right: -2px;
        width: 8px;
        height: 8px;
        background: #00ff00;
        border-radius: 50%;
        border: 2px solid white;
        animation: pulse 2s infinite;
    }

    /* Compact date text */
    .date-number {
        font-size: 0.9rem;
        font-weight: 800;
        line-height: 1;
        margin: 0;
    }

    .date-day {
        font-size: 0.55rem;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        opacity: 0.85;
        margin-top: 2px;
    }

    .live-indicator {
        display: none;
    }

    /* Single-line compact filter controls */
    .filter-options {
        display: flex;
        gap: 4px;
        align-items: center;
        padding: 0;
    }

    .filter-options label {
        font-size: 0.7rem;
        color: var(--text-secondary);
        white-space: nowrap;
        font-weight: 600;
    }

    .sort-dropdown {
        flex: 0 0 auto;
        padding: 5px 22px 5px 8px;
        border: 1px solid #e8e8e8;
        border-radius: 6px;
        font-size: 0.75rem;
        background: #fafafa;
        min-width: 75px;
        height: 30px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
        background-position: right 6px center;
    }

    .search-box {
        flex: 1;
        padding: 5px 8px;
        border: 1px solid #e8e8e8;
        border-radius: 6px;
        font-size: 0.75rem;
        background: #fafafa;
        height: 30px;
        min-width: 0;
    }

    .search-box::placeholder {
        font-size: 0.7rem;
        color: #999;
    }

    /* Hide Show All button on mobile */
    .show-all-btn {
        display: none;
    }

    /* Focus states for accessibility */
    .date-tab:focus-visible {
        outline: 2px solid var(--primary-red);
        outline-offset: 2px;
        z-index: 1;
    }

    .sort-dropdown:focus-visible,
    .search-box:focus-visible {
        border-color: var(--primary-red);
        box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.1);
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .filter-bar {
        padding: 5px;
        gap: 5px;
    }

    .date-tab {
        min-width: 40px;
        height: 40px;
    }

    .date-tab.live {
        min-width: 48px;
    }

    .date-number {
        font-size: 0.8rem;
    }

    .date-day {
        font-size: 0.5rem;
    }

    .filter-options label {
        font-size: 0.65rem;
    }

    .sort-dropdown,
    .search-box {
        font-size: 0.7rem;
        height: 28px;
    }
}

/* Extra small (Galaxy Fold, iPhone SE landscape) */
@media (max-width: 320px) {
    .date-tab {
        min-width: 38px;
        height: 38px;
    }

    .date-tab.live {
        min-width: 44px;
    }

    .filter-options {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-dropdown {
        width: 100%;
    }
}

/* Landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .filter-bar {
        padding: 4px;
    }

    .date-tab {
        min-width: 40px;
        height: 38px;
    }

    .date-number {
        font-size: 0.85rem;
    }

    .date-day {
        font-size: 0.5rem;
    }
}

/* Optional: Sticky filter bar on mobile */
@media (max-width: 768px) {
    .filter-bar.sticky {
        position: sticky;
        top: 56px; /* Adjust based on your header height */
        z-index: 98;
        background: var(--white);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Optional: Scroll fade indicators */
@media (max-width: 768px) {
    .filter-bar {
        position: relative;
    }

    .date-tabs.has-scroll::before {
        content: '';
        position: absolute;
        left: 6px;
        top: 6px;
        bottom: 14px;
        width: 16px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
        pointer-events: none;
        z-index: 1;
        border-radius: 8px 0 0 8px;
    }

    .date-tabs.has-scroll::after {
        content: '';
        position: absolute;
        right: 6px;
        top: 6px;
        bottom: 14px;
        width: 16px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
        pointer-events: none;
        z-index: 1;
        border-radius: 0 8px 8px 0;
    }
}

/* Touch feedback */
@media (max-width: 768px) {
    .date-tab:active,
    .sort-dropdown:active,
    .search-box:active {
        opacity: 0.8;
    }
}

/* Dark mode support (optional) */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .filter-bar {
        background: #1a1a1a;
        border-color: #333;
    }

    .date-tab {
        background: #2a2a2a;
        border-color: #404040;
        color: #fff;
    }

    .date-tab.active {
        background: var(--primary-red);
        border-color: var(--primary-red);
    }

    .sort-dropdown,
    .search-box {
        background: #2a2a2a;
        border-color: #404040;
        color: #fff;
    }

    .date-tabs.has-scroll::before {
        background: linear-gradient(to right, rgba(26, 26, 26, 0.95), transparent);
    }

    .date-tabs.has-scroll::after {
        background: linear-gradient(to left, rgba(26, 26, 26, 0.95), transparent);
    }
}

/* =========================
   ALTERNATIVE: ULTRA-COMPACT DATE PICKER
   Modern card-style with minimal vertical space
   ========================= */

@media (max-width: 768px) {
    /* Redesigned filter bar - super compact */
    .filter-bar {
        padding: 6px;
        gap: 6px;
        background: var(--white);
        border-radius: 10px;
        margin-bottom: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
        border: 1px solid #f0f0f0;
    }

    /* Horizontal date scroller - minimal style */
    .date-tabs {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }

    .date-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Minimal date chips */
    .date-tab {
        flex: 0 0 auto;
        min-width: 44px;
        height: 44px;
        background: #fafafa;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.15s ease;
        scroll-snap-align: center;
        padding: 4px;
    }

    .date-tab:active {
        transform: scale(0.92);
    }

    .date-tab.active {
        background: var(--primary-red);
        color: var(--white);
        border-color: var(--primary-red);
        box-shadow: 0 2px 6px rgba(220, 20, 60, 0.25);
        transform: scale(1.05);
    }

    /* Live badge - compact circle */
    .date-tab.live {
        background: linear-gradient(135deg, #ff0000 0%, #d00000 100%);
        color: var(--white);
        border-color: #ff0000;
        min-width: 52px;
        position: relative;
    }

    .date-tab.live::before {
        content: '';
        position: absolute;
        top: -2px;
        right: -2px;
        width: 8px;
        height: 8px;
        background: #00ff00;
        border-radius: 50%;
        border: 2px solid white;
        animation: pulse 2s infinite;
    }

    /* Ultra-compact date text */
    .date-number {
        font-size: 0.9rem;
        font-weight: 800;
        line-height: 1;
        margin: 0;
    }

    .date-day {
        font-size: 0.55rem;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        opacity: 0.85;
        margin-top: 2px;
    }

    .live-indicator {
        display: none; /* Removed for compactness */
    }

    /* Single-line compact controls */
    .filter-options {
        display: flex;
        gap: 4px;
        align-items: center;
        padding: 0;
    }

    .filter-options label {
        font-size: 0.7rem;
        color: var(--text-secondary);
        white-space: nowrap;
        font-weight: 600;
    }

    .sort-dropdown {
        flex: 0 0 auto;
        padding: 5px 22px 5px 8px;
        border: 1px solid #e8e8e8;
        border-radius: 6px;
        font-size: 0.75rem;
        background: #fafafa;
        min-width: 75px;
        height: 30px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
        background-position: right 6px center;
    }

    .search-box {
        flex: 1;
        padding: 5px 8px;
        border: 1px solid #e8e8e8;
        border-radius: 6px;
        font-size: 0.75rem;
        background: #fafafa;
        height: 30px;
        min-width: 0;
    }

    .search-box::placeholder {
        font-size: 0.7rem;
        color: #999;
    }

    /* Remove Show All button entirely */
    .show-all-btn {
        display: none;
    }
}

/* iPhone SE / Very small screens */
@media (max-width: 375px) {
    .filter-bar {
        padding: 5px;
        gap: 5px;
    }

    .date-tab {
        min-width: 40px;
        height: 40px;
    }

    .date-tab.live {
        min-width: 48px;
    }

    .date-number {
        font-size: 0.8rem;
    }

    .date-day {
        font-size: 0.5rem;
    }

    .filter-options label {
        font-size: 0.65rem;
    }

    .sort-dropdown,
    .search-box {
        font-size: 0.7rem;
        height: 28px;
    }
}

/* Landscape mode optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .filter-bar {
        padding: 4px;
    }

    .date-tab {
        min-width: 40px;
        height: 38px;
    }

    .date-number {
        font-size: 0.85rem;
    }

    .date-day {
        font-size: 0.5rem;
    }
}

/* Touch-friendly active states */
@media (max-width: 768px) {
    .date-tab:active,
    .sort-dropdown:active,
    .search-box:active {
        opacity: 0.8;
    }

    /* Better focus states for accessibility */
    .date-tab:focus-visible {
        outline: 2px solid var(--primary-red);
        outline-offset: 2px;
        z-index: 1;
    }

    .sort-dropdown:focus-visible,
    .search-box:focus-visible {
        border-color: var(--primary-red);
        box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.1);
    }
}

/* Smooth fade indicators for scrollable dates */
@media (max-width: 768px) {
    .filter-bar {
        position: relative;
    }

    /* Left fade */
    .date-tabs.has-scroll::before {
        content: '';
        position: absolute;
        left: 6px;
        top: 6px;
        bottom: 14px;
        width: 16px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
        pointer-events: none;
        z-index: 1;
        border-radius: 8px 0 0 8px;
    }

    /* Right fade */
    .date-tabs.has-scroll::after {
        content: '';
        position: absolute;
        right: 6px;
        top: 6px;
        bottom: 14px;
        width: 16px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
        pointer-events: none;
        z-index: 1;
        border-radius: 0 8px 8px 0;
    }
}

/* Optional: Sticky behavior for filter bar */
@media (max-width: 768px) {
    .filter-bar.sticky-mobile {
        position: sticky;
        top: 56px; /* Adjust based on your header height */
        z-index: 98;
        background: var(--white);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Dark mode support (optional) */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .filter-bar {
        background: #1a1a1a;
        border-color: #333;
    }

    .date-tab {
        background: #2a2a2a;
        border-color: #404040;
        color: #fff;
    }

    .date-tab.active {
        background: var(--primary-red);
        border-color: var(--primary-red);
    }

    .sort-dropdown,
    .search-box {
        background: #2a2a2a;
        border-color: #404040;
        color: #fff;
    }
}
/* =========================
   MATCHES CONTAINER
   ========================= */

#matches-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.matches-section,
.league-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gray);
    overflow: hidden;
}

.matches-section.hidden,
.league-section.hidden {
    display: none !important;
}

.league-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 2px solid var(--primary-red);
    border-left: 3px solid var(--primary-red);
}

.league-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.league-flag {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
}

.league-actions {
    display: flex;
    gap: 8px;
}

.star-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition);
    padding: 4px 8px;
}

.star-btn:hover {
    color: #FFD700;
    transform: scale(1.15);
}

.star-btn i.fas {
    color: #FFD700;
}

/* =========================
   TABLE HEADER & MATCH ROWS
   ✅ UPDATED: Time above teams, Score at end
   ========================= */

.table-header {
    display: grid;
    grid-template-columns: 2fr 70px 70px 70px 80px 90px;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-items: center;
}

.table-header > div {
    text-align: center;
}

.table-header > div:nth-child(1) {
    text-align: left;
}

.match-row {
    display: grid;
    grid-template-columns: 2fr 70px 70px 70px 80px 90px;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    background: var(--white);
    border-bottom: 1px solid #f0f0f0;
    transition: all var(--transition);
    font-size: 0.85rem;
}

.match-row:hover {
    background: #fafafa;
    box-shadow: inset 3px 0 0 var(--primary-red);
}

.match-row:last-child {
    border-bottom: none;
}

/* ✅ TIME + TEAMS COLUMN (Combined) */
.match-row .time-teams-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.match-row .match-time {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1.2;
}

.match-row .teams {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.match-row .team {
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-row .team-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ✅ ODDS COLUMNS */
.match-row .odd-value {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 5px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: all var(--transition);
    cursor: pointer;
}

.match-row .odd-value:hover {
    background: rgba(220, 20, 60, 0.1);
    color: var(--primary-red);
    transform: scale(1.05);
}

/* ✅ PICK COLUMN */
.match-row .pick-column {
    text-align: center;
}

.match-row .pick-badge {
    background: var(--primary-red);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.8rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(220, 20, 60, 0.2);
}

.match-row .pick-badge.won {
    background: var(--success-green);
}

.match-row .pick-badge.lost {
    background: var(--error-red);
}

.match-row .pick-badge.pending {
    background: var(--primary-red);
}

/* ✅ SCORE COLUMN (Now at the end) */
.match-row .score-column {
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.match-row .live-badge {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 2s infinite;
    display: inline-block;
    margin-bottom: 4px;
}

/* Over/Under & BTTS specific styles */
.match-row .ou-odd,
.match-row .dc-odd {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: all var(--transition);
}

.match-row .ou-odd.best-pick,
.match-row .dc-odd.best-pick {
    background: rgba(220, 20, 60, 0.15);
    border: 2px solid var(--primary-red);
}

.match-row .ou-percent,
.match-row .dc-percent {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-red);
}

.match-row .ou-odd-value,
.match-row .dc-odd-value {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.match-row .ht-result,
.match-row .ft-result {
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    padding: 6px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
}

/* =========================
   SIDEBAR (RIGHT)
   ========================= */

.sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gray);
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    order: 3;
}

.sidebar-item {
    padding: 10px;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.85rem;
}

.sidebar-item:hover {
    background: rgba(220, 20, 60, 0.05);
    padding-left: 14px;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item.expandable {
    cursor: pointer;
}

/* =========================
   LOAD MORE SECTION
   ========================= */

.load-more-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gray);
    text-align: center;
}

.load-more-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.load-more-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shown-count {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.remaining-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.load-more-btn,
.show-all-matches-btn {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}

.load-more-btn:hover,
.show-all-matches-btn:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.show-all-matches-btn {
    background: var(--white);
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    margin-top: 10px;
}

.show-all-matches-btn:hover {
    background: var(--primary-red);
    color: var(--white);
}

.load-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
}

/* =========================
   NOTIFICATIONS
   ========================= */

.footymind-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    background: var(--white);
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    border-left: 4px solid var(--primary-red);
    transition: right 0.3s ease;
}

.footymind-notification.show {
    right: 20px;
}

.footymind-notification.success {
    border-left-color: var(--success-green);
}

.footymind-notification.success i {
    color: var(--success-green);
}

.footymind-notification.error {
    border-left-color: var(--error-red);
}

.footymind-notification.error i {
    color: var(--error-red);
}

.footymind-notification.info {
    border-left-color: #17a2b8;
}

.footymind-notification.info i {
    color: #17a2b8;
}

.footymind-notification i {
    font-size: 1.2rem;
}

.footymind-notification span {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

/* =========================
   SEO ARTICLES
   ========================= */

.articles-section,
.seo-article-section {
    background: var(--light-gray);
    padding: 40px 0;
    margin-top: 40px;
}

.seo-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.seo-article {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-left: 3px solid var(--primary-red);
    border: 1px solid var(--border-gray);
}

.seo-article:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.seo-article h1,
.seo-article h2,
.seo-article h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 700;
}

.seo-article h1 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

.seo-article h2 {
    font-size: 1.2rem;
    color: var(--primary-red);
    margin-top: var(--spacing-lg);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-gray);
}

.seo-article h3 {
    font-size: 1rem;
    margin-top: var(--spacing-md);
}

.seo-article p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.seo-article strong,
.seo-article b {
    color: var(--primary-red);
    font-weight: 600;
}

/* =========================
   FOOTER - COMPLETE
   ========================= */

.footer {
    background: linear-gradient(180deg, #0d0d0d 0%, #000000 100%);
    color: #b8b8b8;
    padding: 0;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(220, 20, 60, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 20, 60, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.footer-border-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-red) 20%, 
        #ff1744 50%, 
        var(--primary-red) 80%, 
        transparent 100%
    );
    animation: borderSlide 3s linear infinite;
    z-index: 2;
}

@keyframes borderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-about {
    grid-column: 1;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red) 0%, transparent 100%);
}

.footer-section h3 i {
    color: var(--primary-red);
    filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.4));
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-logo:hover .footer-logo-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
}

.footer-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
    position: relative;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #c0c0c0;
    margin-bottom: 24px;
}

.social-section {
    margin-bottom: 24px;
}

.social-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8b8b8;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.4);
}

.responsible-gambling {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(220, 20, 60, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-top: 28px;
    backdrop-filter: blur(10px);
}

.responsible-gambling-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.responsible-gambling-header i {
    color: var(--primary-red);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.5));
}

.gambling-badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.age-badge-modern {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.2);
    transition: all 0.3s ease;
}

.age-badge-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.3);
    border-color: #ff1744;
}

.age-badge-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-red);
    line-height: 1;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.age-badge-text {
    font-size: 0.7rem;
    color: #c0c0c0;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.gambling-badge-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    color: var(--white);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gambling-badge-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.gambling-badge-card:hover::before {
    left: 100%;
}

.gambling-badge-card:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.15) 0%, rgba(220, 20, 60, 0.05) 100%);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.2);
}

.gambling-badge-card i {
    font-size: 1.5rem;
    color: var(--primary-red);
    filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.4));
}

.gambling-badge-card span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.gambling-warning-modern {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 152, 0, 0.08) 100%);
    border-left: 4px solid #ffc107;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.warning-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc107;
    font-size: 1rem;
}

.warning-content strong {
    color: #ffc107;
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.warning-content p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #c0c0c0;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b8b8b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    padding-left: 0;
}

.footer-links a i {
    color: var(--primary-red);
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 6px;
}

.footer-links a:hover i {
    transform: translateX(4px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #888;
}

.copyright i {
    color: var(--primary-red);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.link-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 6px;
}

.footer-bottom-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer-bottom-links a:hover {
    color: var(--primary-red);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
}

/* =========================
   MOBILE MENU STYLES
   ========================= */

.mobile-menu-section-title {
    padding: 12px 16px;
    background: rgba(220, 20, 60, 0.1);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-section-title i {
    color: var(--primary-red);
}

.countries-sidebar-mobile {
    display: none;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    max-height: 60vh;
    overflow-y: auto;
}

.countries-sidebar-mobile::-webkit-scrollbar {
    width: 4px;
}

.countries-sidebar-mobile::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.countries-sidebar-mobile::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 2px;
}

.countries-sidebar-mobile .sidebar-section {
    margin-bottom: 0;
    padding: 8px 16px;
}

.countries-sidebar-mobile .sidebar-title {
    font-size: 0.85rem;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    margin-bottom: 8px;
}

.countries-sidebar-mobile .country-stats-list {
    gap: 4px;
}

.countries-sidebar-mobile .country-stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 6px;
}

.countries-sidebar-mobile .country-stat-item:hover {
    background: rgba(220, 20, 60, 0.2);
}

.countries-sidebar-mobile .country-name {
    color: var(--white);
    font-size: 0.8rem;
}

.countries-sidebar-mobile .country-meta {
    font-size: 0.65rem;
}

.countries-sidebar-mobile .expand-country {
    color: rgba(255, 255, 255, 0.6);
}

.countries-sidebar-mobile .expand-country:hover {
    color: var(--primary-red);
}

.countries-sidebar-mobile .country-leagues {
    margin-left: 24px;
    padding-left: 8px;
}

.countries-sidebar-mobile .league-item-compact {
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 8px;
    font-size: 0.75rem;
}

.countries-sidebar-mobile .league-item-compact:hover {
    background: rgba(220, 20, 60, 0.2);
}

.countries-sidebar-mobile .league-name-text {
    color: #ccc;
    font-size: 0.7rem;
}

.countries-sidebar-mobile .league-match-count {
    font-size: 0.6rem;
    padding: 1px 5px;
}

.countries-sidebar-mobile .show-more-countries {
    background: rgba(220, 20, 60, 0.15);
    color: var(--white);
    border-color: var(--primary-red);
    margin-top: 8px;
    font-size: 0.75rem;
    padding: 6px;
}

.countries-sidebar-mobile .show-more-countries:hover {
    background: var(--primary-red);
}

.countries-sidebar-mobile .hidden-countries {
    display: none;
}

.countries-sidebar-mobile .favorites-list {
    gap: 4px;
}

.countries-sidebar-mobile .favorite-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
}

.countries-sidebar-mobile .favorite-name {
    color: var(--white);
    font-size: 0.7rem;
}

/* =========================
   RESPONSIVE - MOBILE
   ========================= */

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .countries-sidebar,
    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding: var(--spacing-sm);
    }
    
    .header {
        padding: 10px 12px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .mobile-menu-btn {
        display: block !important;
    }
    
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: var(--darker-bg) !important;
        flex-direction: column !important;
        padding: 60px 0 16px !important;
        z-index: 10000 !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow-y: auto !important;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.8) !important;
        align-items: stretch !important;
        gap: 0 !important;
    }
    
    .nav-links.active {
        right: 0 !important;
    }
    
    .nav-links.active::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.7) !important;
        z-index: -1 !important;
        animation: fadeIn 0.4s ease !important;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .nav-links::after {
        content: '✕' !important;
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        width: 38px !important;
        height: 38px !important;
        background: var(--primary-red) !important;
        color: var(--white) !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        z-index: 10001 !important;
        transition: all 0.2s ease !important;
        line-height: 1 !important;
    }
    
    .nav-links::after:hover {
        background: var(--primary-red-dark) !important;
        transform: rotate(90deg) !important;
    }
    
    .nav-link {
        padding: 12px 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
        font-size: 0.85rem !important;
        display: block !important;
    }
    
    .nav-link::after {
        display: none !important;
    }
    
    .nav-dropdown .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
        margin-top: 8px !important;
        display: none !important;
        border: none !important;
    }
    
    .nav-dropdown.active .dropdown-content {
        display: block !important;
    }
    
    .dropdown-item {
        color: var(--white) !important;
        background: rgba(255, 255, 255, 0.03) !important;
        margin-bottom: 4px !important;
        font-size: 0.8rem !important;
        padding: 10px 16px !important;
    }
    
    .dropdown-item:hover {
        background: rgba(220, 20, 60, 0.2) !important;
    }
    
    /* ✅ Show mobile countries in nav */
    .countries-sidebar-mobile {
        display: block !important;
    }
    
    /* ✅ MOBILE TABLE - Time above teams, score at end */
    .table-header {
        display: none;
    }
    
    .match-row {
        display: grid !important;
        grid-template-columns: 1.6fr 46px 46px 46px 52px 62px;
        gap: 3px;
        align-items: center;
        padding: 8px 8px !important;
        font-size: 0.75rem;
    }
    
    .match-row:hover {
        background: #fafafa;
        box-shadow: inset 3px 0 0 var(--primary-red);
    }
    
    /* Time above teams */
    .match-row .time-teams-column {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .match-row .match-time {
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--primary-red);
        margin-bottom: 2px;
        line-height: 1;
    }
    
    .match-row .teams {
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }
    
    .match-row .team {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .match-row .team-name {
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }
    
    /* Odds columns - compact */
    .match-row .odd-value {
        text-align: center;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 4px 2px;
        background: #f8f9fa;
        border-radius: 3px;
    }
    
    .match-row .odd-value:active {
        background: rgba(220, 20, 60, 0.1);
        color: var(--primary-red);
    }
    
    /* Pick column */
    .match-row .pick-column {
        text-align: center;
    }
    
    .match-row .pick-badge {
        padding: 4px 6px;
        border-radius: 3px;
        font-weight: 800;
        font-size: 0.65rem;
        line-height: 1;
    }
    
    /* Score column (at end) */
    .match-row .score-column {
        text-align: center;
        font-weight: 700;
        font-size: 0.68rem;
        line-height: 1.2;
    }
    
    .match-row .live-badge {
        padding: 2px 4px;
        border-radius: 3px;
        font-size: 0.5rem;
        display: block;
        margin-bottom: 2px;
    }
    
    /* Over/Under & BTTS mobile */
    .match-row .ou-odd,
    .match-row .dc-odd {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1px;
        padding: 3px 2px;
        background: #f8f9fa;
        border-radius: 3px;
    }
    
    .match-row .ou-odd.best-pick,
    .match-row .dc-odd.best-pick {
        background: rgba(220, 20, 60, 0.15);
        border: 1px solid var(--primary-red);
    }
    
    .match-row .ou-percent,
    .match-row .dc-percent {
        font-size: 0.65rem;
        font-weight: 700;
        color: var(--primary-red);
        line-height: 1;
    }
    
    .match-row .ou-odd-value,
    .match-row .dc-odd-value {
        font-size: 0.6rem;
        color: var(--text-secondary);
        font-weight: 600;
        line-height: 1;
    }
    
    .match-row .ht-result,
    .match-row .ft-result {
        font-size: 0.7rem;
        padding: 4px 2px;
    }
    
    /* Mobile footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 16px 30px;
    }
    
    .footer-about {
        grid-column: 1;
    }
    
    .gambling-badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .age-badge-modern {
        padding: 12px 8px;
    }
    
    .age-badge-number {
        font-size: 1.6rem;
    }
    
    .gambling-badge-card {
        padding: 12px 8px;
    }
    
    .gambling-badge-card i {
        font-size: 1.2rem;
    }
    
    .gambling-badge-card span {
        font-size: 0.7rem;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-dropdown,
    .search-box {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-links {
        width: 90% !important;
    }
    
    /* Extra compact on very small screens - optimized for iPhone 7 & Flip 6 */
    .match-row {
        grid-template-columns: 2fr 38px 38px 38px 42px 50px !important;
        gap: 2px;
        padding: 6px 4px !important;
        font-size: 0.7rem;
    }
    
    .match-row .match-time {
        font-size: 0.62rem;
        margin-bottom: 2px;
    }
    
    .match-row .team-name {
        font-size: 0.68rem;
    }
    
    .match-row .odd-value {
        font-size: 0.58rem;
        padding: 2px 0px;
    }
    
    .match-row .pick-badge {
        padding: 2px 4px;
        font-size: 0.54rem;
    }
    
    .match-row .score-column {
        font-size: 0.58rem;
    }
    
    .gambling-badges-grid {
        grid-template-columns: 1fr;
    }
}

/* Mid-range small phones (401px - 480px) */
@media (min-width: 401px) and (max-width: 480px) {
    .match-row {
        grid-template-columns: 2.1fr 39px 39px 39px 43px 51px !important;
    }
    
    .match-row .team-name {
        font-size: 0.7rem !important;
    }
}

/* iPhone 7 and similar very small screens */
@media (max-width: 400px) {
    .match-row {
        grid-template-columns: 2.2fr 36px 36px 36px 40px 46px !important;
        gap: 1px;
        padding: 6px 3px !important;
    }
    
    .match-row .team-name {
        font-size: 0.66rem !important;
        font-weight: 700 !important;
    }
    
    .match-row .match-time {
        font-size: 0.59rem !important;
    }
    
    .match-row .odd-value {
        font-size: 0.56rem !important;
        padding: 2px 0px !important;
    }
    
    .match-row .pick-badge {
        padding: 2px 3px !important;
        font-size: 0.52rem !important;
    }
    
    .match-row .score-column {
        font-size: 0.56rem !important;
    }
}

/* =========================
   UTILITY CLASSES
   ========================= */

.hidden {
    display: none !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ===== Result-aware pick badge colors ===== */
.pick-badge {
  display: inline-block;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid transparent;
}

/* Won -> Green */
.pick-badge.won {
  background: #e8f7ee;
  color: #ffffff;
  border-color: rgba(14, 143, 59, 0.25);
}

/* Lost -> Red */
.pick-badge.lost {
  background: #fde9ec;
  color: #ffffff;             /* matches your --primary-red-dark vibe */
  border-color: rgba(176, 16, 48, 0.25);
}

/* Pending -> Gold */
.pick-badge.pending {
  background: #fff6d6;
  color: #8a6d00;
  border-color: rgba(255, 215, 0, 0.35);
}

/* Optional: subtle emphasis on best pick cells you already mark */
.best-pick .ou-percent,
.best-pick .dc-percent {
  font-weight: 800;
}
/* Ensure pending shows gold on NS/live */
.match-row .pick-column .pick-badge.pending {
  background: #fff6d6 !important;
  color: #8a6d00 !important;
  border: 1px solid rgba(255, 215, 0, 0.35) !important;
}

/* =========================
   SEO ARTICLE – BETTER LISTS (UL & OL)
   Works with your existing .seo-article markup
   ========================= */

/* Base spacing */
.seo-article ul,
.seo-article ol {
  margin: 10px 0 0;
  padding-left: 0;                 /* remove default indent */
}

/* ----- Unordered lists: card-style items with check icon ----- */
.seo-article ul li {
  list-style: none;
  position: relative;
  margin: 8px 0;
  padding: 10px 12px 10px 42px;    /* room for the icon */
  background: #fafafa;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  transition: box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.seo-article ul li::before {
  content: "\f00c";                /* Font Awesome check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--primary-red);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.12);
}

/* Fallback if FA isn't loaded */
@supports not (font-variation-settings: normal) {
  .seo-article ul li::before { content: "•"; font-family: inherit; background: transparent; color: var(--primary-red); box-shadow: none; }
}

.seo-article ul li:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* Make the leading <strong> in list items stand out neatly */
.seo-article ul li > strong,
.seo-article ol li > strong {
  display: inline-block;
  font-weight: 800;
  margin-right: 4px;
}

/* ----- Ordered lists: numbered badges ----- */
.seo-article ol {
  counter-reset: step;
}

.seo-article ol li {
  list-style: none;
  position: relative;
  margin: 8px 0;
  padding: 10px 12px 10px 46px;    /* room for the number badge */
  background: #ffffff;
  border: 1px dashed var(--border-gray);
  border-radius: var(--radius-md);
  transition: box-shadow .2s ease, transform .2s ease;
}

.seo-article ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #fff;
  font: 700 12px/24px inherit;
  text-align: center;
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.12);
}

.seo-article ol li:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* Mobile refinements */
@media (max-width: 480px){
  .seo-article ul li,
  .seo-article ol li {
    padding: 9px 10px 9px 40px;
    margin: 6px 0;
  }
  .seo-article ul li::before,
  .seo-article ol li::before {
    left: 10px;
  }
}
/* =========================
   DESKTOP: Right-align main nav
   ========================= */
@media (min-width: 769px) {
  .nav-links {
    justify-content: flex-end;  /* push items to the right */
    margin-left: auto;          /* ensure it hugs the right edge */
  }

  /* Optional: a bit of right breathing room */
  .nav { padding-right: var(--spacing-lg); }

  /* Make dropdowns align under their right edge when near the right side */
  .nav-dropdown .dropdown-content {
    right: 0;
    left: auto;
  }
}

/* -------- Text-only Ad (no images) -------- */
.sidebar .text-ad {
  --ad-bg: linear-gradient(180deg, #ffffff, #fafafa);
  --ad-border: rgba(0,0,0,0.08);
  --ad-shadow: 0 6px 18px rgba(0,0,0,0.06);
  --ad-shadow-hover: 0 10px 24px rgba(0,0,0,0.10);
  --ad-accent: #dc143c;      /* matches your primary red */
  --ad-accent-dark: #b01030; /* darker hover */
  --ad-text: #111;
  --ad-sub: #555;

  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "badge cta"
    "headline cta"
    "copy cta";
  gap: 6px 12px;

  text-decoration: none;
  border: 1px solid var(--ad-border);
  border-radius: 14px;
  padding: 14px 14px 14px 16px;
  background: 
    /* subtle hatch texture */
    repeating-linear-gradient(135deg, rgba(220,20,60,0.04) 0 6px, transparent 6px 12px),
    var(--ad-bg);
  box-shadow: var(--ad-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sidebar .text-ad:hover,
.sidebar .text-ad:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--ad-shadow-hover);
  border-color: rgba(0,0,0,0.12);
  outline: none;
}

.sidebar .text-ad:active {
  transform: translateY(0);
}

.sidebar .text-ad .ad-badge {
  grid-area: badge;
  align-self: start;
  justify-self: start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ad-accent-dark);
  background: rgba(220,20,60,0.10);
  border: 1px solid rgba(220,20,60,0.22);
  padding: 3px 6px;
  border-radius: 999px;
}

.sidebar .text-ad .ad-headline {
  grid-area: headline;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ad-text);
}

.sidebar .text-ad .ad-copy {
  grid-area: copy;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ad-sub);
}

.sidebar .text-ad .ad-cta {
  grid-area: cta;
  align-self: center;
  justify-self: end;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 9px 12px;
  border-radius: 10px;
  background: var(--ad-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}

.sidebar .text-ad:hover .ad-cta,
.sidebar .text-ad:focus-visible .ad-cta {
  background: var(--ad-accent-dark);
  transform: translateX(1px);
}

/* Alternative skin (neutral) for variety */
.sidebar .text-ad--alt {
  --ad-bg: linear-gradient(180deg, #ffffff, #f6f7fb);
  --ad-accent: #111;
  --ad-accent-dark: #000;
  background:
    repeating-linear-gradient(135deg, rgba(17,17,17,0.04) 0 6px, transparent 6px 12px),
    var(--ad-bg);
}

.sidebar .text-ad--alt .ad-badge {
  color: #111;
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.18);
}

/* Responsiveness: keep it readable on narrow sidebars */
@media (max-width: 420px) {
  .sidebar .text-ad {
    grid-template-columns: 1fr;
    grid-template-areas:
      "badge"
      "headline"
      "copy"
      "cta";
    gap: 8px;
  }
  .sidebar .text-ad .ad-cta {
    justify-self: start;
  }
}

/* Optional: dark mode */
@media (prefers-color-scheme: dark) {
  .sidebar .text-ad {
    --ad-bg: linear-gradient(180deg, #1a1a1a, #121212);
    --ad-border: rgba(255,255,255,0.08);
    --ad-text: #fff;
    --ad-sub: #c9c9c9;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  }
  .sidebar .text-ad--alt {
    --ad-bg: linear-gradient(180deg, #1a1a1a, #17181c);
  }
}
