/* ============================================
   🏆 فوتبال‌یاب - طراحی نسخه 6.0
   هدر شیشه‌ای، منوی پایین گرد، لوگوی مستطیلی
   ============================================ */

/* ============================================
   ریست و متغیرها
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2332;
    --bg-hover: #243447;
    --bg-elevated: #1e2a3d;
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent: #fbbf24;
    --accent-dark: #f59e0b;
    --accent-glow: rgba(251, 191, 36, 0.12);
    
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --border-color: #2d3a4f;
    --border-light: #374559;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.5);
    --glass-border: rgba(255,255,255,0.08);
    --glass-bg: rgba(17, 24, 39, 0.75);
    
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-full: 9999px;
    
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --bottom-nav-height: 0px;
}

[data-theme="light"] {
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-card: #f8fafc;
    --bg-hover: #eef2f6;
    --bg-elevated: #f1f4f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0,0,0,0.06);
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.12);
}

/* ============================================
   پایه‌ها
   ============================================ */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, 'Segoe UI', 'Roboto', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--transition), color var(--transition);
    padding-bottom: var(--bottom-nav-height);
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================================
   انیمیشن‌ها
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.1); }
    50% { box-shadow: 0 0 50px rgba(239, 68, 68, 0.2); }
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-on-load {
    animation: fadeUp 0.5s ease forwards;
    opacity: 0;
}

.animate-on-load:nth-child(1) { animation-delay: 0.05s; }
.animate-on-load:nth-child(2) { animation-delay: 0.10s; }
.animate-on-load:nth-child(3) { animation-delay: 0.15s; }
.animate-on-load:nth-child(4) { animation-delay: 0.20s; }
.animate-on-load:nth-child(5) { animation-delay: 0.25s; }
.animate-on-load:nth-child(6) { animation-delay: 0.30s; }
.animate-on-load:nth-child(7) { animation-delay: 0.35s; }
.animate-on-load:nth-child(8) { animation-delay: 0.40s; }
.animate-on-load:nth-child(9) { animation-delay: 0.45s; }
.animate-on-load:nth-child(10) { animation-delay: 0.50s; }

/* ============================================
   هدر - طراحی شیشه‌ای خفن
   ============================================ */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background var(--transition), border-color var(--transition);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.logo a {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo .logo-icon {
    font-size: 28px;
    -webkit-text-fill-color: initial;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.2));
}

.logo .logo-text {
    background: linear-gradient(135deg, var(--accent), #f59e0b, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: 800;
}

.logo .logo-badge {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #0a0e1a;
    padding: 2px 12px;
    border-radius: var(--radius-full);
    font-size: 9px;
    font-weight: 700;
    -webkit-text-fill-color: #0a0e1a;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-time {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4px 16px;
    border-radius: var(--radius-full);
    text-align: center;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    min-width: 70px;
    transition: background var(--transition), border-color var(--transition);
}

.header-time small {
    font-size: 9px;
    color: var(--text-muted);
    display: block;
    font-weight: 400;
}

.theme-toggle {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: rotate(20deg) scale(1.05);
    border-color: var(--accent);
}

.desktop-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.desktop-nav a {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-secondary);
    position: relative;
}

.desktop-nav a:hover {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.desktop-nav a.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #0a0e1a;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.25);
}

.desktop-nav a .nav-icon {
    margin-left: 4px;
    font-size: 14px;
}

/* ============================================
   منوی پایین - طراحی شیشه‌ای با لبه‌های گرد
   ============================================ */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 6px 12px;
    z-index: 999;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
    max-width: 450px;
    width: calc(100% - 32px);
    transition: background var(--transition), border-color var(--transition);
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
    transition: var(--transition);
    min-width: 50px;
    position: relative;
}

.bottom-nav a .nav-icon {
    font-size: 22px;
    transition: var(--transition);
}

.bottom-nav a .nav-label {
    font-size: 9px;
}

.bottom-nav a.active {
    color: var(--accent);
}

.bottom-nav a.active .nav-icon {
    transform: scale(1.1);
}

.bottom-nav a.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-full);
}

.bottom-nav a:hover {
    color: var(--text-primary);
}

/* ============================================
   ریسپانسیو هدر و منو
   ============================================ */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .bottom-nav {
        display: block;
    }
    
    :root {
        --bottom-nav-height: 80px;
    }
    
    .header {
        padding: 8px 0;
    }
    
    .logo a {
        font-size: 18px;
    }
    .logo .logo-text {
        font-size: 20px;
    }
    .logo .logo-icon {
        font-size: 22px;
    }
    .logo .logo-badge {
        font-size: 8px;
        padding: 1px 10px;
    }
    
    .header-time {
        font-size: 12px;
        padding: 3px 12px;
        min-width: 60px;
    }
    .header-time small {
        font-size: 8px;
    }
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .bottom-nav {
        bottom: 12px;
        padding: 4px 8px;
        border-radius: var(--radius-md);
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 6px 0;
    }
    .container {
        padding: 0 12px;
    }
    .logo a {
        font-size: 16px;
        gap: 6px;
    }
    .logo .logo-text {
        font-size: 17px;
    }
    .logo .logo-icon {
        font-size: 20px;
    }
    .logo .logo-badge {
        font-size: 7px;
        padding: 1px 8px;
    }
    .header-time {
        font-size: 10px;
        padding: 2px 10px;
        min-width: 50px;
    }
    .header-time small {
        font-size: 7px;
    }
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .bottom-nav {
        bottom: 10px;
        padding: 4px 6px;
        border-radius: var(--radius-md);
        max-width: 360px;
        width: calc(100% - 20px);
    }
    .bottom-nav a {
        padding: 4px 8px;
        min-width: 40px;
    }
    .bottom-nav a .nav-icon {
        font-size: 20px;
    }
    .bottom-nav a .nav-label {
        font-size: 8px;
    }
    .bottom-nav a.active::after {
        width: 18px;
        height: 2px;
    }
    :root {
        --bottom-nav-height: 70px;
    }
}

/* ============================================
   صفحه اصلی - هدر بدون آمار
   ============================================ */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-header h1 .highlight {
    background: linear-gradient(135deg, var(--accent), var(--warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 2px;
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 22px;
    }
    .page-header .subtitle {
        font-size: 13px;
    }
}

/* ============================================
   کارت‌های مسابقات - طراحی جدید با لوگوی مستطیلی
   ============================================ */
.matches-grid {
    display: grid;
    gap: 14px;
}

.match-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    display: block;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
    transition: var(--transition);
}

.match-card:hover::before {
    opacity: 1;
    height: 4px;
}

.match-card:hover {
    background: var(--bg-hover);
    transform: translateY(-3px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.match-card.live {
    border-color: var(--danger);
    border-width: 2px;
}

.match-card.live::before {
    background: linear-gradient(90deg, var(--danger), var(--accent), var(--danger));
    opacity: 1;
    height: 3px;
    animation: shimmer 2s ease-in-out infinite;
    background-size: 200% 100%;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 4px;
}

.match-league {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    background: var(--bg-card);
    padding: 2px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid var(--border-color);
}

.match-date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.match-status {
    font-size: 10px;
    padding: 2px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.status-scheduled {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.status-live {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: #fff;
    animation: pulse 1.5s ease-in-out infinite;
}

.status-finished {
    background: linear-gradient(135deg, var(--success), #059669);
    color: #fff;
}

.status-canceled {
    background: linear-gradient(135deg, var(--danger), #b91c1c);
    color: #fff;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.team {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.team.home {
    justify-content: flex-start;
}

.team.away {
    justify-content: flex-end;
}

.team-logo {
    width: 48px;
    height: 36px;
    object-fit: contain;
    background: var(--bg-card);
    padding: 4px 6px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background-color: rgba(255,255,255,0.05);
}

.match-card:hover .team-logo {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(251, 191, 36, 0.15);
}

.team-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.match-vs {
    text-align: center;
    min-width: 70px;
    padding: 0 4px;
}

.match-score {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    background: var(--bg-card);
    padding: 2px 16px;
    border-radius: var(--radius-full);
    display: inline-block;
    border: 2px solid var(--border-color);
    font-variant-numeric: tabular-nums;
}

.match-time {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
    background: var(--bg-card);
    padding: 2px 16px;
    border-radius: var(--radius-full);
    display: inline-block;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .match-card {
        padding: 14px 16px;
    }
    .match-teams {
        gap: 8px;
    }
    .team-logo {
        width: 42px;
        height: 32px;
        padding: 3px 5px;
    }
    .team-name {
        font-size: 14px;
    }
    .match-score {
        font-size: 20px;
        padding: 2px 12px;
    }
    .match-time {
        font-size: 14px;
        padding: 2px 12px;
    }
}

@media (max-width: 480px) {
    .match-card {
        padding: 12px 12px;
        border-radius: var(--radius-sm);
    }
    .match-teams {
        flex-direction: column;
        gap: 6px;
    }
    .team {
        justify-content: center !important;
        width: 100%;
        gap: 10px;
    }
    .team-logo {
        width: 48px;
        height: 34px;
        padding: 4px 6px;
    }
    .team-name {
        font-size: 14px;
        font-weight: 700;
    }
    .match-vs {
        min-width: auto;
        width: 100%;
        padding: 4px 0;
    }
    .match-score {
        font-size: 22px;
        padding: 2px 16px;
    }
    .match-time {
        font-size: 15px;
        padding: 2px 16px;
    }
    .match-league {
        font-size: 9px;
        padding: 1px 10px;
    }
    .match-status {
        font-size: 9px;
        padding: 1px 10px;
    }
    .match-date {
        font-size: 9px;
    }
}

/* ============================================
   شمارش معکوس روی کارت بازی
   ============================================ */
.match-countdown {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.countdown-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.countdown-timer {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    background: var(--bg-card);
    padding: 2px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.countdown-timer.urgent {
    color: var(--danger);
    animation: countdownPulse 1s ease-in-out infinite;
}

/* ============================================
   نوار پیشرفت مسابقه زنده
   ============================================ */
.match-progress {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.progress-bar {
    height: 4px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--danger), var(--accent));
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 500;
}

/* ============================================
   آمار - در پایین صفحه یا جای دیگر
   ============================================ */
.stats-section {
    margin-top: 28px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stats-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    text-align: center;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.stat-card .stat-icon {
    font-size: 18px;
    display: block;
    margin-bottom: 2px;
}

.stat-card .stat-number {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-card.live-stat {
    border-color: var(--danger);
    animation: glowPulse 2s ease-in-out infinite;
}

.stat-card.live-stat .stat-number {
    background: linear-gradient(135deg, var(--danger), #fca5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card {
        padding: 12px 10px;
    }
    .stat-card .stat-number {
        font-size: 22px;
    }
    .stats-section {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        gap: 8px;
    }
    .stat-card {
        padding: 10px 8px;
        border-radius: var(--radius-sm);
    }
    .stat-card .stat-number {
        font-size: 18px;
    }
    .stat-card .stat-label {
        font-size: 10px;
    }
    .stat-card .stat-icon {
        font-size: 14px;
    }
    .stats-section {
        padding: 12px;
        margin-top: 20px;
    }
    .stats-section-title {
        font-size: 14px;
    }
}

/* ============================================
   جزئیات مسابقه
   ============================================ */
.match-detail {
    max-width: 850px;
    margin: 0 auto;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-header h1 {
    font-size: 24px;
    font-weight: 800;
}

.btn-back {
    background: var(--bg-card);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 14px;
    border: 1px solid var(--border-color);
    font-weight: 600;
}

.btn-back:hover {
    background: var(--accent);
    color: #0a0e1a;
    border-color: var(--accent);
    transform: translateX(-3px);
}

.detail-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.detail-league {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
}

.detail-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.detail-team {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.detail-team.home {
    justify-content: flex-start;
}

.detail-team.away {
    justify-content: flex-end;
}

.detail-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--bg-card);
    padding: 6px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.detail-team:hover .detail-logo {
    border-color: var(--accent);
    transform: scale(1.05);
}

.detail-team-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.detail-team.away .detail-team-info {
    align-items: flex-end;
}

.detail-team-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-team-score {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    background: var(--bg-card);
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    min-width: 50px;
    text-align: center;
}

.detail-team.away .detail-team-score {
    order: -1;
}

.detail-vs {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 8px;
    flex-shrink: 0;
}

.detail-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.detail-status {
    font-size: 14px;
    font-weight: 700;
    padding: 3px 20px;
    border-radius: var(--radius-full);
}

.detail-date, .detail-time-full {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .detail-card {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }
    .detail-logo {
        width: 50px;
        height: 50px;
        padding: 5px;
    }
    .detail-team-name {
        font-size: 16px;
    }
    .detail-team-score {
        font-size: 24px;
        padding: 0 12px;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .detail-card {
        padding: 14px 10px;
        border-radius: var(--radius-sm);
    }
    .detail-teams {
        flex-direction: row;
        gap: 8px;
    }
    .detail-team {
        gap: 8px;
        flex: 1;
    }
    .detail-logo {
        width: 42px;
        height: 42px;
        padding: 4px;
        border-width: 2px;
    }
    .detail-team-name {
        font-size: 13px;
        font-weight: 700;
        max-width: 80px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .detail-team-score {
        font-size: 20px;
        padding: 0 10px;
        min-width: 34px;
    }
    .detail-vs {
        font-size: 11px;
        padding: 0 4px;
    }
    .detail-league {
        font-size: 12px;
        margin-bottom: 12px;
    }
    .detail-info {
        gap: 8px;
        margin-top: 12px;
        padding-top: 10px;
    }
    .detail-status {
        font-size: 11px;
        padding: 2px 12px;
    }
    .detail-date, .detail-time-full {
        font-size: 11px;
    }
}

/* ============================================
   تایمر صفحه جزئیات
   ============================================ */
.detail-timer {
    margin: 16px 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    border: 2px solid var(--border-color);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.timer-icon {
    font-size: 36px;
}

.timer-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 600;
}

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.timer-block {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    min-width: 60px;
    text-align: center;
    transition: var(--transition);
}

.timer-block .timer-number {
    font-size: 34px;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    display: block;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.timer-block .timer-unit {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 1px;
}

.timer-separator {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-muted);
}

.timer-block.urgent .timer-number {
    color: var(--danger);
    animation: countdownPulse 0.8s ease-in-out infinite;
}

.timer-block.urgent {
    border-color: var(--danger);
}

@media (max-width: 768px) {
    .detail-timer {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }
    .timer-block {
        padding: 6px 10px;
        min-width: 48px;
    }
    .timer-block .timer-number {
        font-size: 28px;
    }
    .timer-block .timer-unit {
        font-size: 9px;
    }
    .timer-separator {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .detail-timer {
        padding: 14px 10px;
        border-radius: var(--radius-sm);
        margin: 12px 0;
    }
    .timer-block {
        padding: 4px 8px;
        min-width: 38px;
        border-width: 1.5px;
    }
    .timer-block .timer-number {
        font-size: 22px;
    }
    .timer-block .timer-unit {
        font-size: 8px;
    }
    .timer-separator {
        font-size: 18px;
    }
}

/* ============================================
   رویدادها
   ============================================ */
.detail-events {
    margin: 16px 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    border: 1px solid var(--border-color);
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.events-header h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.events-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.summary-item {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 2px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.events-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.events-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.column-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    padding-bottom: 6px;
    border-bottom: 2px solid var(--border-color);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-column .column-label { color: var(--success); }
.away-column .column-label { color: var(--danger); }

.event-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-size: 13px;
    flex-wrap: wrap;
    transition: var(--transition);
    border: 1px solid transparent;
}

.event-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
}

.event-minute {
    font-weight: 700;
    color: var(--accent);
    min-width: 30px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

@media (max-width: 768px) {
    .events-two-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .detail-events {
        padding: 16px 14px;
    }
}

@media (max-width: 480px) {
    .detail-events {
        padding: 12px 10px;
        border-radius: var(--radius-sm);
    }
    .event-item {
        font-size: 11px;
        padding: 3px 8px;
    }
    .event-minute {
        min-width: 24px;
        font-size: 10px;
    }
}

/* ============================================
   پیش‌بینی
   ============================================ */
.detail-prediction {
    margin: 16px 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    border: 1px solid var(--border-color);
}

.prediction-container h3 {
    color: var(--text-primary);
    margin-bottom: 2px;
    font-size: 18px;
    font-weight: 700;
}

.prediction-sub {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 14px;
}

.prediction-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pred-btn {
    padding: 8px 24px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-family: inherit;
}

.pred-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.pred-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.pred-btn.selected-home {
    background: linear-gradient(135deg, var(--success), #059669);
    color: #fff;
    border-color: var(--success);
}
.pred-btn.selected-draw {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: #fff;
    border-color: var(--warning);
}
.pred-btn.selected-away {
    background: linear-gradient(135deg, var(--danger), #b91c1c);
    color: #fff;
    border-color: var(--danger);
}

.prediction-result {
    margin-top: 14px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-weight: 600;
    display: none;
    font-size: 15px;
}

.prediction-result.show { display: block; }
.prediction-result.correct { color: var(--success); border: 1px solid var(--success); }
.prediction-result.wrong { color: var(--danger); border: 1px solid var(--danger); }

@media (max-width: 480px) {
    .detail-prediction {
        padding: 14px 12px;
        border-radius: var(--radius-sm);
    }
    .prediction-container h3 {
        font-size: 16px;
    }
    .pred-btn {
        font-size: 13px;
        padding: 6px 18px;
    }
}

/* ============================================
   آمار مسابقه
   ============================================ */
.detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 16px;
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-item { text-align: center; }
.stat-label { font-size: 11px; color: var(--text-secondary); display: block; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.stat-value { font-size: 18px; font-weight: 700; color: var(--text-primary); }

@media (max-width: 480px) {
    .detail-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
        border-radius: var(--radius-sm);
    }
    .stat-value {
        font-size: 16px;
    }
}

/* ============================================
   فوتر
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 20px 0 16px;
    margin-top: 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-brand .footer-logo {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.footer-brand .footer-logo .logo-text {
    background: linear-gradient(135deg, var(--accent), var(--warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 3px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 6px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: 16px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 12px;
}

.footer-bottom a {
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 16px 0 12px;
        margin-top: 20px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 12px;
    }
    .footer-brand {
        grid-column: 1;
    }
    .footer-brand .footer-logo {
        font-size: 16px;
    }
    .footer-brand p {
        font-size: 11px;
    }
    .footer-links h4 {
        font-size: 12px;
    }
    .footer-links a {
        font-size: 11px;
    }
    .footer-bottom p {
        font-size: 10px;
    }
}

/* ============================================
   حالت خالی
   ============================================ */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
}

.empty-icon { font-size: 52px; margin-bottom: 14px; opacity: 0.6; }
.empty-state h3 { font-size: 22px; color: var(--text-primary); margin-bottom: 4px; }
.empty-state p { color: var(--text-secondary); font-size: 15px; }

@media (max-width: 480px) {
    .empty-state {
        padding: 30px 14px;
        border-radius: var(--radius-sm);
    }
    .empty-icon { font-size: 40px; }
    .empty-state h3 { font-size: 18px; }
    .empty-state p { font-size: 13px; }
}

/* ============================================
   دکمه‌ها
   ============================================ */
.btn-primary {
    display: inline-block;
    padding: 10px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #0a0e1a;
    font-size: 15px;
    box-shadow: 0 4px 24px rgba(251, 191, 36, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 36px rgba(251, 191, 36, 0.35);
}

@media (max-width: 480px) {
    .btn-primary {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* ============================================
   بهینه‌سازی عملکرد
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 480px) {
    .match-card::before, .league-card::after {
        display: none;
    }
    .match-card.live::before {
        display: block;
        height: 2px;
    }
    .match-card:hover {
        transform: none;
    }
    .league-card:hover {
        transform: none;
    }
    .stat-card:hover {
        transform: none;
    }
    .theme-toggle:hover {
        transform: none;
    }
    .btn-primary:hover {
        transform: none;
    }
}

@supports not (backdrop-filter: blur(1px)) {
    .header, .bottom-nav {
        background: var(--bg-secondary);
    }
}

/* فونت با نمایش سریع */
@font-face {
    font-family: system-ui;
    font-display: swap;
}

/* ============================================
   حذف هایلایت آبی هنگام کلیک در موبایل
   ============================================ */
* {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* برای input ها و textarea ها این قضیه رو فعال نگه دار */
input, textarea, select {
    -webkit-user-select: auto !important;
    user-select: auto !important;
}

/* برای لینک‌ها و دکمه‌ها */
a, button {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

/* برای موبایل - حذف هایلایت هنگام کلیک */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: none !important;
}