:root {
    --bg-color: #05080c;
    --card-bg: #0b1118;
    --primary: #FFD700;
    --secondary: #E10600;
    --accent: #00BFFF;
    --text-main: #FFFFFF;
    --text-muted: #8a96a3;
    
    --glass-border: rgba(255, 215, 0, 0.1);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    
    --bottom-nav-height: 65px;
}

body.light-mode {
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Sleek Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
body.light-mode ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}
* {
    scrollbar-width: thin;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.05), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(0, 191, 255, 0.03), transparent 30%),
        url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M54.627 0l1.196 1.197-30 30L0 5.824 1.197 4.627l24.627 24.627L54.627 0zM0 54.176l1.197-1.197 24.627-24.627L55.824 58.35l-1.197 1.197-30-30L0 54.176z" fill="rgba(255,215,0,0.015)" fill-rule="evenodd"/></svg>');
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
}

/* Force App Container to Overlay Blogger Theme */
.app-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background-color: var(--bg-color) !important;
    color: var(--text-main) !important;
}
.app-container a {
    text-decoration: none !important;
    color: inherit;
}
.app-container img {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
body.light-mode .app-container {
    --bg-color: #f3f4f6 !important;
    --card-bg: #ffffff !important;
    --text-main: #111827 !important;
    --text-muted: #6b7280 !important;
    --glass-border: rgba(0, 0, 0, 0.1) !important;
    --glass-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
    background-color: var(--bg-color) !important;
    color: var(--text-main) !important;
}

body.light-mode {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.1), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(0, 191, 255, 0.1), transparent 30%),
        url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M54.627 0l1.196 1.197-30 30L0 5.824 1.197 4.627l24.627 24.627L54.627 0zM0 54.176l1.197-1.197 24.627-24.627L55.824 58.35l-1.197 1.197-30-30L0 54.176z" fill="rgba(0,0,0,0.03)" fill-rule="evenodd"/></svg>');
}

/* Security Layer Overlay */
.devtools-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(15px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.devtools-overlay.active { display: flex; }

.overlay-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 15px;
}

.overlay-content i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Typography & Utilities */
.primary-text { color: var(--primary); }
.secondary-text { color: var(--secondary); }
.muted-text { color: var(--text-muted); }
.text-center { text-align: center; }

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

/* Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

body.light-mode .sticky-header {
    background: rgba(255, 255, 255, 0.9);
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    justify-self: start;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main) !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
}

.desktop-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-self: center;
}
.desktop-nav .nav-link {
    color: var(--text-main) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.desktop-nav .nav-link:hover, .desktop-nav .nav-link.active {
    color: var(--primary) !important;
}

.header-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}
.header-icon:hover { color: var(--text-main); }
.header-icon.primary-text { color: var(--secondary); }

.mobile-menu-btn {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

/* Search Results Overlay */
.search-results-container {
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--glass-border);
    z-index: 999;
    padding: 20px;
    box-shadow: var(--glass-shadow);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-side-menu {
    position: fixed;
    top: 0; right: -300px; width: 280px; height: 100%;
    background: var(--card-bg);
    z-index: 1002;
    transition: right 0.3s ease;
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}
.mobile-side-menu.active { right: 0; }

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}
.menu-header h3 { font-family: var(--font-heading); }
.close-menu { font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }

.menu-links { list-style: none; padding: 20px 0; }
.menu-links li a {
    display: flex; align-items: center; gap: 15px;
    padding: 15px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.menu-links li a:hover { background: rgba(255,255,255,0.05); color: var(--secondary); }
.menu-links li a i { width: 20px; text-align: center; color: var(--text-muted); }

/* Hero Banner */
.hero-banner {
    position: relative;
    padding: 10px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(5,8,12,0.9), rgba(11,17,24,0.85)), url('https://imagecache.365scores.com/image/upload/f_png,w_1200,h_600,c_limit,q_auto:eco/v1/Competitions/5930') no-repeat center center;
    background-size: cover;
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

body.light-mode .hero-banner {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(243,244,246,0.9)), url('https://imagecache.365scores.com/image/upload/f_png,w_1200,h_600,c_limit,q_auto:eco/v1/Competitions/5930') no-repeat center center;
    background-size: cover;
}

.hero-stadium-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(5,8,12,1) 100%);
    z-index: 1;
}

body.light-mode .hero-stadium-overlay {
    background: radial-gradient(circle at center, transparent 0%, rgba(243,244,246,1) 100%);
}

body.light-mode .hero-headline {
    background: linear-gradient(to right, #000000, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 2px;
    background: linear-gradient(to right, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 1px;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary), #b30000);
    color: var(--text-main);
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.4);
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 6, 0, 0.6);
}

/* Layout */
.layout-container {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
    gap: 30px;
}

/* Sport Filters */
.sport-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}
.sport-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sport-pill i {
    font-size: 1rem;
}
.sport-pill.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}
body.light-mode .sport-pill {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}
body.light-mode .sport-pill.active {
    border-color: var(--primary);
    color: #b8860b;
    background: rgba(255, 215, 0, 0.2);
}

/* Date Filters */
.date-filters {
    display: flex;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 25px;
    border: 1px solid var(--glass-border);
}

.filter-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-main);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Match Cards */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.match-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: var(--glass-shadow);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-status {
    color: var(--text-muted);
    font-weight: 500;
}
.match-status.live { color: var(--primary); animation: pulseText 2s infinite; }

@keyframes pulseText {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.match-teams-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35%;
    gap: 10px;
}

.team img {
    width: 50px; height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.team-name {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.score-area {
    width: 30%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.countdown-pill {
    background-color: #1f2937;
    color: #f9fafb;
    border: 1px solid #374151;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.light-mode .countdown-pill {
    background-color: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}

.live-timer-pill {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 6px;
    display: inline-block;
}

.live-timer-pill.live {
    background-color: #EF4444;
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

.score-text {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.match-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Skeleton Loaders */
.skeleton-card {
    height: 150px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Standings Sidebar */
.standings-widget {
    position: relative;
}

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

.widget-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.group-selector {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}
.group-selector option { background: var(--card-bg); }

.table-responsive { overflow-x: hidden; }

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.standings-table th {
    text-align: left;
    padding: 12px 15px;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--glass-border);
}

.standings-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.standings-table tbody tr { transition: background 0.2s, transform 0.2s; }
.standings-table tbody tr:hover { background: rgba(255,255,255,0.05); transform: translateX(5px); }
.standings-table tbody tr.qualified-row { border-left: 3px solid var(--accent); }
.standings-table tbody tr.current-leader { background: rgba(255, 215, 0, 0.05); border-left: 3px solid var(--secondary); }

.form-badges { display: flex; gap: 4px; }
.badge { font-size: 0.65rem; font-weight: 800; padding: 2px 5px; border-radius: 4px; color: #fff; }
.badge.win { background: #10B981; }
.badge.loss { background: #EF4444; }
.badge.draw { background: #6B7280; }

/* Leaderboards */
.leaderboards-section { margin-top: 40px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header h3 { font-family: var(--font-heading); font-size: 1.3rem; }
.stats-filters { display: flex; background: var(--card-bg); border-radius: 8px; padding: 4px; border: 1px solid var(--glass-border); }
.stats-filters .filter-tab { padding: 6px 15px; font-size: 0.85rem; border-radius: 6px; white-space: nowrap !important; }

.leaderboard-list { display: flex; flex-direction: column; gap: 10px; }
.player-card { display: flex; align-items: center; padding: 12px 20px; transition: transform 0.3s, box-shadow 0.3s; position: relative; }
.player-card:hover { transform: translateX(10px); box-shadow: var(--glass-shadow); }

/* Background Flags */
.card-bg-flag {
    position: absolute;
    top: -15px;
    bottom: -15px;
    width: 40%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 1;
    filter: blur(4px) saturate(150%);
}
.card-bg-flag.left {
    left: -25px;
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}
.card-bg-flag.right {
    right: -25px;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

.player-rank { width: 40px; font-family: var(--font-heading); font-weight: 900; font-size: 1.2rem; }
.rank-badge { display: inline-flex; justify-content: center; align-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--text-muted); }
.rank-badge.gold { background: linear-gradient(135deg, #FFD700, #B8860B); color: #000; box-shadow: 0 0 10px rgba(255,215,0,0.5); }
.rank-badge.silver { background: linear-gradient(135deg, #E0E0E0, #9E9E9E); color: #000; }
.rank-badge.bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #fff; }

.player-photo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--glass-border); margin-right: 15px; background: rgba(255,255,255,0.05); }
.player-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.player-name { font-weight: 700; font-size: 1.05rem; }
.player-country { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; }

.player-stat-value {
    display: flex;
    align-items: center;
    gap: 12px;
}
.stat-number { font-size: 1.5rem; font-weight: 800; color: var(--text-main); }
.goal-icon { color: var(--primary); font-size: 1.2rem; }
.assist-img-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--primary);
    -webkit-mask: url('https://cdn-icons-png.flaticon.com/512/98/98611.png') no-repeat center / contain;
    mask: url('https://cdn-icons-png.flaticon.com/512/98/98611.png') no-repeat center / contain;
    display: inline-block;
    transform: rotate(50deg);
}

/* Animations */
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s;
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 { font-family: var(--font-heading); }
.close-modal { font-size: 1.5rem; cursor: pointer; color: var(--text-muted); transition: color 0.2s; }
.close-modal:hover { color: var(--primary); }

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

/* Mobile Bottom Nav */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(20, 27, 37, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
}

body.light-mode .bottom-nav {
    background: rgba(255, 255, 255, 0.95);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    gap: 4px;
}
.nav-item i { font-size: 1.2rem; }
.nav-item.active { color: var(--secondary); }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .layout-container { grid-template-columns: 1fr; }
    .standings-widget { position: static; }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-headline { font-size: 2rem; }
    .score-text { font-size: 2rem; }
    .team img { width: 40px; height: 40px; }
    .bottom-nav { display: flex; }
    .header-icon.fa-bell { display: none; }
}

@media (max-width: 430px) {
    .hero-headline { font-size: 1.8rem; }
    .team-name { font-size: 0.85rem; }
    .score-text { font-size: 1.5rem; }
    .filter-tab { font-size: 0.9rem; }
}

@media (max-width: 360px) {
    .hero-headline { font-size: 1.5rem; }
    .match-header { font-size: 0.75rem; }
    .team-name { font-size: 0.75rem; }
}

/* Footer Styles */
.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--glass-border);
    padding: 40px 20px;
    margin-top: 40px;
    text-align: center;
    padding-bottom: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-main) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary) !important;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .site-footer {
        padding-bottom: 20px;
    }
}

/* News Section Styles */
.news-scroll-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-bottom: 10px;
}
.news-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
body.light-mode .news-card {
    background: #ffffff;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow);
}
.news-image {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
    border-radius: 8px 8px 0 0 !important;
}
.news-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.news-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Community Join Buttons */
.community-btn { flex: 1; padding: 12px !important; border-radius: 8px !important; text-align: center !important; text-decoration: none !important; font-weight: 600 !important; color: #ffffff !important; font-size: 0.9rem !important; transition: transform 0.2s, box-shadow 0.2s; border: none !important; outline: none !important; }
.community-btn:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow); color: #ffffff !important; }
.telegram-btn { background: linear-gradient(135deg, #0088cc, #00aaff) !important; }
.whatsapp-btn { background: linear-gradient(135deg, #25D366, #128C7E) !important; }

/* Brute-force Light Mode Overrides */
body.light-mode .glass-card, 
body.light-mode .match-card, 
body.light-mode .news-card, 
body.light-mode .date-filters, 
body.light-mode .stats-filters {
    background-color: #ffffff !important;
    border-color: rgba(0,0,0,0.1) !important;
}

/* Explicit Hex Colors - Bypassing Variables */
body.light-mode .app-container,
body.light-mode .logo-text,
body.light-mode .score-text,
body.light-mode .team-name,
body.light-mode .match-header,
body.light-mode .news-title,
body.light-mode .widget-header h3,
body.light-mode .section-header h3,
body.light-mode .player-name,
body.light-mode .stat-number,
body.light-mode .menu-links li a,
body.light-mode .footer-links a,
body.light-mode .standings-table td {
    color: #111827 !important;
}

body.light-mode .hero-subtitle,
body.light-mode .match-status,
body.light-mode .match-footer,
body.light-mode .player-country,
body.light-mode .news-meta,
body.light-mode .standings-table th,
body.light-mode .footer-tagline,
body.light-mode .footer-copyright,
body.light-mode .muted-text,
body.light-mode .nav-link,
body.light-mode .filter-tab {
    color: #6b7280 !important;
}

body.light-mode .primary-text {
    color: #FFD700 !important;
}

body.light-mode .secondary-text {
    color: #E10600 !important;
}

body.light-mode .nav-link:hover, 
body.light-mode .filter-tab.active,
body.light-mode .footer-links a:hover {
    color: #b8860b !important;
}

/* SUPER LIGHT MODE OVERRIDES - High Contrast */
body.light-mode .sport-pill, 
body.light-mode .filter-tab {
    color: #4b5563 !important;
    background-color: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

body.light-mode .sport-pill.active,
body.light-mode .filter-tab.active {
    background-color: #111827 !important;
    color: #ffffff !important;
    border-color: #111827 !important;
}

body.light-mode .match-header span,
body.light-mode .match-header div {
    color: #111827 !important;
    opacity: 1 !important;
}

body.light-mode .widget-header h3,
body.light-mode .section-header h3 {
    color: #111827 !important;
}

body.light-mode .center-status-indicator.countdown-pill {
    background-color: #e5e7eb !important;
    color: #111827 !important;
}

/* SUPER LIGHT MODE OVERRIDES PART 2 - Standings & Players */
body.light-mode .standings-table th {
    color: #4b5563 !important;
    font-weight: 700 !important;
}

body.light-mode .standings-table td,
body.light-mode .standings-table td span,
body.light-mode .standings-table td div {
    color: #111827 !important;
}

body.light-mode .player-info .muted-text {
    color: #4b5563 !important;
}

body.light-mode .rank-badge {
    color: #111827 !important;
}

body.light-mode .rank-badge:not(.gold):not(.silver):not(.bronze) {
    background-color: #e5e7eb !important;
}

/* SUPER LIGHT MODE OVERRIDES PART 3 - Ended Matches & News */
body.light-mode .center-status-indicator:not(.live) {
    background-color: #e5e7eb !important;
    color: #111827 !important;
}

body.light-mode .news-meta,
body.light-mode .news-meta span {
    color: #4b5563 !important;
}

/* ========================================= */
/* ULTIMATE UNIFIED MOBILE OPTIMIZATION V3   */
/* ========================================= */
@media (max-width: 768px) {
    /* 1. Perfect Header Layout */
    .header-container {
        display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .logo-text {
        font-size: 0.9rem !important;
        white-space: nowrap !important;
    }
    .header-actions {
        margin-left: auto !important;
    }
    /* 2. Responsive Hero Banner */
    .hero-banner { padding: 10px 0 !important; }
    .hero-headline { font-size: 0.9rem !important; }
    .hero-subtitle { font-size: 0.7rem !important; }
    /* 3. Horizontal Scrolling Sport Filters */
    .sports-filters {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 10px !important;
        -webkit-overflow-scrolling: touch;
    }
    .sport-pill {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 5px 12px !important;
        font-size: 0.75rem !important;
        height: 32px !important;
    }
    .sport-pill i { font-size: 0.8rem !important; }
    /* 3.5 Smaller Yesterday/Today/Tomorrow Buttons */
    .date-filters { gap: 5px !important; margin-bottom: 15px !important; }
    .filter-tab { padding: 6px 10px !important; font-size: 0.75rem !important; }
    /* 4. MATCH CARD - MAXIMUM COMPRESSION & ALIGNMENT */
    .match-card {
        padding: 10px 12px !important;
        margin-bottom: 1px !important;
    }
    /* Fix Header Overlap */
    .match-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 8px !important;
        width: 100% !important;
    }
    .match-header > div { position: static !important; }
    .match-header div:nth-child(2) { display: none !important; }
    .match-header span, .match-header div { font-size: 0.6rem !important; }
    /* Teams & Flags Perfect Centering */
    .match-teams-score {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .team {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        flex: 1 !important;
    }
    .team img {
        width: 26px !important;
        height: 26px !important;
        margin-bottom: 4px !important;
    }
    .team-name {
        font-size: 0.75rem !important;
        margin-top: 0 !important;
        text-align: center !important;
        line-height: 1.1 !important;
    }
    /* Shrink Scores & Timers */
    .score-area {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 50px !important;
    }
    .score-text {
        font-size: 1.05rem !important;
        margin-bottom: 2px !important;
    }
    .center-status-indicator {
        font-size: 0.6rem !important;
        padding: 3px 5px !important;
        min-width: 45px !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
    }
    /* 5. Swipeable Standings Table */
    .standings-table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
    }
    .standings-table th, .standings-table td { padding: 10px 15px !important; }
    /* 6. Premium News Swipe Carousel */
    .news-scroll-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 15px !important;
        padding-bottom: 15px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .news-card {
        flex: 0 0 85% !important;
        scroll-snap-align: start;
    }
    .news-image { height: 180px !important; }
}

/* 7. Top Players List Compression */
.player-card {
    padding: 8px 12px !important;
    margin-bottom: 1px !important;
    border-radius: 12px !important;
}
.rank-badge {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.8rem !important;
    margin-right: 12px !important;
}
.player-photo {
    width: 36px !important;
    height: 36px !important;
    margin-right: 12px !important;
    border-width: 1px !important;
}
.player-name {
    font-size: 0.85rem !important;
}
.player-country {
    font-size: 0.65rem !important;
    gap: 4px !important;
}
.player-country img {
    width: 14px !important;
    height: 14px !important;
}
.player-stat-value {
    gap: 8px !important;
}
.stat-number {
    font-size: 1.1rem !important;
}
.player-stat-value i, .assist-img-icon {
    font-size: 0.9rem !important;
    width: 1.2rem !important;
    height: 1.2rem !important;
}

/* 8. Smaller Section Headings */
.widget-header h3,
.section-header h3 {
    font-size: 0.9rem !important;
}

.widget-header {
    padding: 12px 15px !important;
}
.section-header {
    margin-bottom: 12px !important;
}
