/* ========================================
   КАСПИЙСКАЯ ФЛОТИЛИЯ - Custom Styles
   ФК Динамо Махачкала Fan Site
   ======================================== */

/* ========== CSS Variables ========== */
:root {
    /* Primary Colors - Blue Theme */
    --primary-dark: #0a1628;
    --primary-blue: #0d47a1;
    --primary-light: #1565c0;
    --accent-blue: #2196f3;
    --accent-cyan: #00bcd4;
    --accent-teal: #26c6da;
    
    /* Secondary Colors */
    --white: #ffffff;
    --off-white: #f5f7fa;
    --light-gray: #e8edf3;
    --medium-gray: #94a3b8;
    --dark-gray: #475569;
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
    --gradient-dark: linear-gradient(180deg, #0a1628 0%, #0d2137 100%);
    --gradient-accent: linear-gradient(135deg, #00bcd4 0%, #2196f3 100%);
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0d3a6e 50%, #0d47a1 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.1);
    --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.15);
    --shadow-lg: 0 8px 40px rgba(10, 22, 40, 0.2);
    --shadow-glow: 0 0 30px rgba(33, 150, 243, 0.3);
    
    /* Typography */
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Theme-specific - Light Theme (default) */
    --bg-body: #f5f7fa;
    --bg-card: #ffffff;
    --bg-section-alt: #ffffff;
    --text-primary: #0a1628;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e8edf3;
}

/* ========== Dark Theme ========== */
[data-theme="dark"] {
    --bg-body: #0a1628;
    --bg-card: #0d2137;
    --bg-section-alt: #0f2744;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #b8c5d6;
    --border-color: #1e3a5f;
    --off-white: #0d2137;
    --white: #0f2744;
    --light-gray: #1e3a5f;
    --dark-gray: #b8c5d6;
}

/* Global text colors for dark theme */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .section-title,
[data-theme="dark"] .page-title,
[data-theme="dark"] .page-subtitle,
[data-theme="dark"] .lead,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] .stats-value,
[data-theme="dark"] .stat-value,
[data-theme="dark"] .player-stat-value,
[data-theme="dark"] .match-score-value,
[data-theme="dark"] .news-title,
[data-theme="dark"] .news-excerpt,
[data-theme="dark"] .timeline-title,
[data-theme="dark"] .timeline-text,
[data-theme="dark"] .achievement-title,
[data-theme="dark"] .legend-name,
[data-theme="dark"] .player-name,
[data-theme="dark"] .staff-name,
[data-theme="dark"] .benefit-title,
[data-theme="dark"] .benefit-text,
[data-theme="dark"] .event-title,
[data-theme="dark"] .chant-title,
[data-theme="dark"] .chant-text,
[data-theme="dark"] .faq-question,
[data-theme="dark"] .faq-answer,
[data-theme="dark"] .video-title,
[data-theme="dark"] .news-compact-title,
[data-theme="dark"] .popular-item-title,
[data-theme="dark"] .sidebar-title,
[data-theme="dark"] .cat-item a,
[data-theme="dark"] .stats-box-title,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .stat-value,
[data-theme="dark"] .scorer-name,
[data-theme="dark"] .match-team-name,
[data-theme="dark"] .breadcrumb-item,
[data-theme="dark"] .breadcrumb-item a,
[data-theme="dark"] .table-mini,
[data-theme="dark"] .table-mini td,
[data-theme="dark"] .table-mini th,
[data-theme="dark"] .league-table,
[data-theme="dark"] .league-table td,
[data-theme="dark"] .league-table th {
    color: #ffffff !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .news-meta,
[data-theme="dark"] .news-compact-meta,
[data-theme="dark"] .popular-item-meta,
[data-theme="dark"] .video-meta,
[data-theme="dark"] .player-role,
[data-theme="dark"] .staff-role,
[data-theme="dark"] .legend-role,
[data-theme="dark"] .event-meta,
[data-theme="dark"] .match-info-row,
[data-theme="dark"] .match-venue-col,
[data-theme="dark"] .match-date-month,
[data-theme="dark"] .scorer-position,
[data-theme="dark"] .legend-years,
[data-theme="dark"] .achievement-year {
    color: #b8c5d6 !important;
}

/* Numbers and statistics in dark theme */
[data-theme="dark"] [style*="color: var(--primary-blue)"],
[data-theme="dark"] [style*="color: var(--accent-blue)"],
[data-theme="dark"] [style*="font-family: var(--font-primary)"][style*="font-size"][style*="font-weight: 700"],
[data-theme="dark"] .timeline-year,
[data-theme="dark"] .scorer-goals,
[data-theme="dark"] .scorer-rank,
[data-theme="dark"] .player-stat-value,
[data-theme="dark"] .match-score-value,
[data-theme="dark"] .match-score-time,
[data-theme="dark"] .match-date-day,
[data-theme="dark"] .next-match-vs,
[data-theme="dark"] .result-badge,
[data-theme="dark"] .badge-win,
[data-theme="dark"] .badge-loss,
[data-theme="dark"] .badge-draw,
[data-theme="dark"] .badge-upcoming,
[data-theme="dark"] .stats-header h3,
[data-theme="dark"] .section-badge {
    color: #00e5ff !important;
}

[data-theme="dark"] .month-header,
[data-theme="dark"] .calendar-month,
[data-theme="dark"] .section-position {
    color: #ffffff !important;
}

/* Large numbers and statistics text */
[data-theme="dark"] div[style*="font-size: 36px"],
[data-theme="dark"] div[style*="font-size: 48px"],
[data-theme="dark"] div[style*="font-size: 32px"],
[data-theme="dark"] div[style*="font-size: 28px"],
[data-theme="dark"] div[style*="font-size: 24px"],
[data-theme="dark"] .hero-stats .stat-value,
[data-theme="dark"] .hero-stats .stat-label,
[data-theme="dark"] .news-meta span,
[data-theme="dark"] .news-hero-meta {
    color: #ffffff !important;
}

/* Links and buttons text in dark theme */
[data-theme="dark"] a:not(.social-link):not(.nav-link):not(.footer-links a):not(.btn-light),
[data-theme="dark"] .btn:not(.btn-outline-primary):not(.btn-outline-secondary):not(.btn-light) {
    color: #ffffff !important;
}

/* Keep btn-light text and icon black in dark theme */
[data-theme="dark"] .btn-light,
[data-theme="dark"] .btn-light *,
[data-theme="dark"] .btn-light i {
    color: #000000 !important;
}

[data-theme="dark"] .btn-outline-primary,
[data-theme="dark"] .btn-outline-secondary {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .btn-outline-primary:hover,
[data-theme="dark"] .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Pagination in dark theme */
[data-theme="dark"] .pagination,
[data-theme="dark"] .page-link,
[data-theme="dark"] .page-item .page-link {
    color: #ffffff !important;
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .page-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .page-item.active .page-link {
    background-color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .page-item.disabled .page-link {
    color: rgba(255, 255, 255, 0.3) !important;
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Ensure all text in cards and containers is white */
[data-theme="dark"] .card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .match-card,
[data-theme="dark"] .player-card,
[data-theme="dark"] .staff-card,
[data-theme="dark"] .achievement-card,
[data-theme="dark"] .legend-card,
[data-theme="dark"] .event-card,
[data-theme="dark"] .benefit-card,
[data-theme="dark"] .video-card,
[data-theme="dark"] .news-compact,
[data-theme="dark"] .stats-card,
[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .stats-box {
    color: #ffffff !important;
}

[data-theme="dark"] .card *:not(.btn-light):not(.btn-light *),
[data-theme="dark"] .news-card *:not(.btn-light):not(.btn-light *),
[data-theme="dark"] .match-card *:not(.btn-light):not(.btn-light *),
[data-theme="dark"] .player-card *:not(.btn-light):not(.btn-light *),
[data-theme="dark"] .staff-card *:not(.btn-light):not(.btn-light *),
[data-theme="dark"] .achievement-card *:not(.btn-light):not(.btn-light *),
[data-theme="dark"] .legend-card *:not(.btn-light):not(.btn-light *),
[data-theme="dark"] .event-card *:not(.btn-light):not(.btn-light *),
[data-theme="dark"] .benefit-card *:not(.btn-light):not(.btn-light *),
[data-theme="dark"] .video-card *:not(.btn-light):not(.btn-light *),
[data-theme="dark"] .news-compact *:not(.btn-light):not(.btn-light *),
[data-theme="dark"] .stats-card *:not(.btn-light):not(.btn-light *),
[data-theme="dark"] .sidebar-widget *:not(.btn-light):not(.btn-light *),
[data-theme="dark"] .stats-box *:not(.btn-light):not(.btn-light *),
[data-theme="dark"] .fanzone-content *:not(.btn-light):not(.btn-light *) {
    color: inherit;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-cyan);
    transform: scale(1.1);
}

.theme-toggle-btn i {
    font-size: 18px;
    position: absolute;
    transition: var(--transition-normal);
}

.theme-icon-light {
    color: #ffc107;
    opacity: 1;
    transform: rotate(0deg);
}

.theme-icon-dark {
    color: #7c8db5;
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="dark"] .theme-icon-light {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg);
}

/* ========== Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-body);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > section:last-of-type {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    transition: color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== Preloader ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 80px;
    animation: float 2s ease-in-out infinite;
}

.preloader-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(33, 150, 243, 0.5));
}

.preloader-text {
    font-family: var(--font-primary);
    font-size: 24px;
    color: var(--white);
    letter-spacing: 8px;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin: 30px auto 0;
    overflow: hidden;
}

.preloader-progress {
    width: 0;
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 3px;
    animation: loading 2s ease forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes loading {
    to { width: 100%; }
}

/* ========== Header & Navigation ========== */
.main-header {
    position: relative;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal), background-color 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

[data-theme="dark"] .navbar {
    background: rgba(5, 13, 24, 0.8);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(5, 13, 24, 0.98);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 36px;
    filter: drop-shadow(0 0 10px rgba(33, 150, 243, 0.5));
}

.brand-logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(33, 150, 243, 0.5));
    transition: all 0.3s ease;
}

.navbar-brand:hover .brand-logo-img {
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.8))
            drop-shadow(0 0 30px rgba(0, 229, 255, 0.5))
            drop-shadow(0 0 45px rgba(0, 229, 255, 0.3));
    transform: scale(1.1) rotate(5deg);
    animation: logoPulse 1.5s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1.1) rotate(5deg);
    }
    50% {
        transform: scale(1.15) rotate(-5deg);
    }
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--white) !important;
    letter-spacing: 2px;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--accent-cyan) !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

[data-theme="dark"] .brand-name {
    color: #ffffff !important;
}

[data-theme="dark"] .brand-subtitle {
    color: var(--accent-cyan) !important;
}

.navbar-nav {
    gap: 5px;
}

.nav-link {
    font-family: var(--font-primary);
    font-size: 14px;
    color: rgba(255,255,255,0.8) !important;
    padding: 10px 18px !important;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.4), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
    background: rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.5),
                0 0 20px rgba(33, 150, 243, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link:hover i,
.nav-link.active i {
    color: #ffffff !important;
    transform: scale(1.15) rotate(5deg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .nav-link.active {
    color: #ffffff !important;
    background: rgba(33, 150, 243, 0.5);
}

[data-theme="dark"] .nav-link.active i {
    color: #ffffff !important;
}

.nav-link i {
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover i,
.nav-link.active i {
    color: #ffffff !important;
    transform: scale(1.15) rotate(5deg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-section.hero-reduced {
    min-height: 70vh;
}

.hero-min-height {
    min-height: 70vh;
    padding-top: 80px;
    padding-bottom: 60px;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/background/photo-1522778119026-d647f0596c20.jpg') center center / cover no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.6) 0%, rgba(10, 22, 40, 0.4) 50%, rgba(10, 22, 40, 0.5) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(33, 150, 243, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(13, 71, 161, 0.2) 0%, transparent 70%);
}

.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
}

.waves {
    width: 100%;
    height: 100%;
}

.wave-parallax > use {
    animation: wave 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.wave-parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.wave-parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.wave-parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.wave-parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes wave {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    color: var(--accent-cyan);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-icon {
    font-size: 20px;
}

.badge-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.hero-title {
    font-size: clamp(48px, 10vw, 100px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), text-shadow 0.7s ease-in-out, letter-spacing 0.7s ease-in-out;
}

.hero-title:hover {
    transform: scale(1.05) translateY(-5px);
    text-shadow: 0 0 30px rgba(33, 150, 243, 0.6),
                 0 0 50px rgba(0, 188, 212, 0.4),
                 0 0 70px rgba(33, 150, 243, 0.3);
    letter-spacing: 2px;
}

.title-line {
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-title:hover .title-line {
    transform: translateX(10px);
}

.hero-title:hover .title-line.title-accent {
    transform: translateX(-10px);
}

.title-accent {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 2px #ffffff;
    -webkit-text-stroke-width: 2px;
    paint-order: stroke fill;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-buttons .btn {
    padding: 15px 30px;
    font-family: var(--font-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    border: none;
    box-shadow: 0 0 30px rgba(13, 71, 161, 0.4);
    color: #ffffff;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    box-shadow: 0 10px 30px rgba(13, 71, 161, 0.6);
    color: #ffffff;
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(13, 71, 161, 0.3);
    border-color: rgba(13, 71, 161, 0.8);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.4),
                0 0 15px rgba(13, 71, 161, 0.25);
    text-shadow: 0 0 8px rgba(13, 71, 161, 0.5);
    color: #ffffff;
}

.hero-buttons .btn-outline-light:hover i {
    transform: translateX(3px) scale(1.1);
    text-shadow: 0 0 8px rgba(13, 71, 161, 0.6);
    color: #ffffff;
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat-item {
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
    cursor: default;
    padding: 15px;
    border-radius: var(--radius-sm);
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.05);
}

.stat-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), text-shadow 0.5s ease, color 0.5s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.15);
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.8),
                 0 0 30px rgba(0, 188, 212, 0.6);
    color: #2196f3;
}

.stat-label {
    font-size: 13px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.5s ease, letter-spacing 0.5s ease;
}

.stat-item:hover .stat-label {
    transform: translateY(-3px);
    color: #00bcd4;
    letter-spacing: 3px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    z-index: 1;
    min-height: 350px;
}

.hero-emblem {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emblem-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(13, 71, 161, 0.5);
    transition: filter 0.4s ease;
}

.emblem-ring::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 188, 212, 0);
    transition: border-color 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.hero-emblem:hover .emblem-ring::after {
    border-color: rgba(0, 188, 212, 0.8);
    opacity: 1;
}

.hero-emblem:hover .emblem-ring {
    filter: drop-shadow(0 0 8px rgba(0, 188, 212, 0.3));
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-style: dashed;
    border-width: 6px;
    animation: rotate 40s linear infinite;
    transition: animation-duration 0.4s ease;
}

.hero-emblem:hover .ring-1 {
    animation-duration: 8s;
}

.ring-2 {
    width: 85%;
    height: 85%;
    border-style: dashed;
    border-width: 4px;
    animation: rotate 60s linear infinite reverse;
    transition: animation-duration 0.4s ease;
}

.hero-emblem:hover .ring-2 {
    animation-duration: 12s;
}

.ring-3 {
    width: 70%;
    height: 70%;
    border-style: dashed;
    border-width: 2px;
    animation: rotate 50s linear infinite;
    transition: animation-duration 0.4s ease;
}

.hero-emblem:hover .ring-3 {
    animation-duration: 10s;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.emblem-center {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
    width: 55%;
    height: 55%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(13, 71, 161, 0.4);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.hero-emblem:hover .emblem-center {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(13, 71, 161, 0.4),
                0 0 40px rgba(0, 188, 212, 0.5),
                0 0 50px rgba(33, 150, 243, 0.4);
}

.emblem-icon {
    font-size: 50px;
}

.emblem-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    display: block;
    max-width: 100%;
    position: relative;
    z-index: 1;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-emblem:hover .emblem-logo-img {
    transform: scale(1.15) rotate(360deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 30px rgba(33, 150, 243, 0.6));
}

.emblem-text {
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--white);
    letter-spacing: 3px;
    margin-top: 5px;
}

.emblem-city {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator i {
    font-size: 24px;
    margin-top: 10px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========== Section Styles ========== */
section {
    position: relative;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 12px;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: default;
}

.news-section .section-badge:hover {
    transform: translateX(3px);
    color: var(--accent-blue);
    letter-spacing: 3.5px;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5),
                 0 0 20px rgba(33, 150, 243, 0.3);
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: default;
    width: fit-content;
}

.news-section .section-title:hover {
    transform: translateX(3px) scale(1.02);
    color: var(--accent-blue);
    text-shadow: 0 0 20px rgba(0, 188, 212, 0.6),
                 0 0 30px rgba(33, 150, 243, 0.4);
}

/* Animation for section-badge and section-title on news page */
#news-content-section .section-header .section-badge:hover {
    transform: translateX(5px);
    color: #00e5ff;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.6),
                 0 0 40px rgba(0, 229, 255, 0.4);
    letter-spacing: 1px;
}

/* Reduced animation for section-title */
#news-content-section .section-header .section-title:hover {
    transform: translateX(3px);
    color: #00e5ff;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.5),
                 0 0 30px rgba(0, 229, 255, 0.3);
    letter-spacing: 0.5px;
}

/* ========== Next Match Section ========== */
.next-match-section {
    background: var(--bg-section-alt);
    transition: background-color 0.3s ease;
}

.match-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease;
}

.featured-match {
    border: 2px solid var(--accent-blue);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}


.featured-match:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: #00e5ff;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.25),
                0 0 20px rgba(0, 229, 255, 0.15);
}

/* Dark blue glow for light theme */
body:not([data-theme="dark"]) .featured-match:hover {
    border-color: #004d73;
    box-shadow: 0 10px 30px rgba(0, 77, 115, 0.35),
                0 0 20px rgba(0, 77, 115, 0.25);
}

/* Animate match-time on featured-match hover */
.featured-match:hover .match-time {
    transform: scale(1.1);
    color: #00e5ff;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.6),
                 0 0 30px rgba(0, 229, 255, 0.4);
}

/* Dark blue for light theme */
body:not([data-theme="dark"]) .featured-match:hover .match-time {
    color: #004d73;
    text-shadow: 0 0 15px rgba(0, 77, 115, 0.5),
                 0 0 30px rgba(0, 77, 115, 0.35);
}

.match-header {
    background: var(--gradient-primary);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    font-size: 14px;
}

.match-league {
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.team-logo {
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.team-logo::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.team-logo:hover {
    transform: scale(1.1) rotate(8deg);
    animation: logoBounce 0.6s ease;
}

.team-logo:hover::after {
    border-color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4),
                0 0 30px rgba(0, 229, 255, 0.25),
                inset 0 0 15px rgba(0, 229, 255, 0.1);
}

/* Dark blue glow for light theme */
body:not([data-theme="dark"]) .team-logo:hover::after {
    border-color: #004d73;
    box-shadow: 0 0 15px rgba(0, 77, 115, 0.5),
                0 0 30px rgba(0, 77, 115, 0.35),
                inset 0 0 15px rgba(0, 77, 115, 0.15);
}

@keyframes logoBounce {
    0%, 100% { transform: scale(1.1) rotate(8deg); }
    50% { transform: scale(1.12) rotate(-8deg); }
}

.team-logo.opponent {
    background: var(--light-gray);
}

.team-logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(33, 150, 243, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-logo:hover .team-logo-img {
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.5))
            drop-shadow(0 0 30px rgba(0, 229, 255, 0.35))
            drop-shadow(0 0 45px rgba(0, 229, 255, 0.2));
    transform: scale(1.05);
}

/* Dark blue glow for light theme */
body:not([data-theme="dark"]) .team-logo:hover .team-logo-img {
    filter: drop-shadow(0 0 15px rgba(0, 77, 115, 0.6))
            drop-shadow(0 0 30px rgba(0, 77, 115, 0.45))
            drop-shadow(0 0 45px rgba(0, 77, 115, 0.3));
}

.table-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 5px;
}

.match-list-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.team-name {
    font-family: var(--font-primary);
    font-size: 22px;
    cursor: default;
    transition: text-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                font-size 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team .team-logo:hover ~ .team-name,
.team-name:hover {
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.6),
                 0 0 20px rgba(33, 150, 243, 0.4);
    color: #2196f3;
    transform: translateY(-2px) scale(1.02);
    font-size: 23px;
}

.match-info {
    text-align: center;
    padding: 0 30px;
}

.match-time {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    transition: all 0.3s ease;
    color: var(--primary-blue);
}

.match-vs {
    font-family: var(--font-primary);
    font-size: 24px;
    color: var(--medium-gray);
    margin: 10px 0;
}

.match-stadium {
    font-size: 14px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.match-footer {
    background: var(--bg-body);
    padding: 20px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-match {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* Dark button for light theme */
body:not([data-theme="dark"]) .btn-match {
    color: var(--text-primary);
    border-color: rgba(10, 22, 40, 0.3);
}

body:not([data-theme="dark"]) .btn-match:hover {
    color: #004d73;
    border-color: #004d73;
    background: rgba(0, 77, 115, 0.05);
    box-shadow: 0 5px 20px rgba(0, 77, 115, 0.25),
                0 0 30px rgba(0, 77, 115, 0.15);
    text-shadow: 0 0 8px rgba(0, 77, 115, 0.4);
}

/* Light button for dark theme */
[data-theme="dark"] .btn-match {
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.btn-match::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.btn-match:hover::before {
    left: 100%;
}

.btn-match:hover {
    color: #00e5ff;
    border-color: #00e5ff;
    background: rgba(0, 229, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.3),
                0 0 30px rgba(0, 229, 255, 0.2);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.btn-match i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-match:hover i {
    transform: translateX(3px) scale(1.1);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.btn-match span,
.btn-match {
    position: relative;
    z-index: 1;
}

/* ========== News Section ========== */
.news-section {
    background: var(--bg-body);
    transition: background-color 0.3s ease;
}


.news-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.news-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #004d73;
    box-shadow: 0 10px 30px rgba(0, 77, 115, 0.25),
                0 0 20px rgba(0, 77, 115, 0.15),
                inset 0 0 30px rgba(0, 77, 115, 0.05);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-placeholder-img {
    height: 250px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.3);
}

.news-placeholder-img.small {
    height: 100px;
    font-size: 30px;
}

.news-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-img-small {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

/* Выравнивание высоты новостей */
.news-list {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-featured {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-featured .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-featured .news-excerpt {
    flex: 1;
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-blue);
    color: var(--white);
    padding: 5px 15px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--medium-gray);
    margin-bottom: 15px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: var(--transition-fast);
}

.news-title a {
    transition: all 0.3s ease;
    display: inline-block;
}

.news-title a:hover {
    transform: translateX(5px);
    color: #004d73;
    text-shadow: 0 0 10px rgba(0, 77, 115, 0.5),
                 0 0 20px rgba(0, 77, 115, 0.3);
}

/* Light blue glow for dark theme */
[data-theme="dark"] .news-title a:hover {
    color: #00e5ff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.6),
                 0 0 20px rgba(0, 229, 255, 0.4);
}

.news-excerpt {
    color: var(--dark-gray);
    font-size: 15px;
    margin-bottom: 20px;
}

.news-link {
    font-family: var(--font-primary);
    color: var(--accent-blue);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-link:hover {
    color: var(--primary-blue);
    gap: 12px;
}

/* News Horizontal Card */
.news-horizontal {
    display: flex;
    height: auto;
    margin-bottom: 15px;
}

.news-horizontal:last-child {
    margin-bottom: 0;
}

.news-horizontal .news-image {
    flex-shrink: 0;
    width: 120px;
}

.news-horizontal .news-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-horizontal .news-title {
    font-size: 16px;
    margin-bottom: 0;
}

.news-horizontal .news-meta {
    margin-bottom: 8px;
}

/* ========== Stats Section ========== */
.stats-section {
    background: var(--bg-section-alt);
    transition: background-color 0.3s ease;
}

.stats-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stats-card .table-responsive {
    margin-bottom: -1px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    padding-bottom: 1px;
}

.stats-card .table-responsive .league-table {
    margin-bottom: 0;
}

.stats-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #004d73;
    box-shadow: 0 10px 30px rgba(0, 77, 115, 0.25),
                0 0 20px rgba(0, 77, 115, 0.15),
                inset 0 0 30px rgba(0, 77, 115, 0.05);
}

/* Light blue glow for dark theme */
[data-theme="dark"] .stats-card:hover {
    border-color: #00e5ff;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.25),
                0 0 20px rgba(0, 229, 255, 0.15),
                inset 0 0 30px rgba(0, 229, 255, 0.05);
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.stats-header h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.stats-header h3 i {
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.stats-card:hover .stats-header h3 {
    transform: translateX(5px);
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.4);
}

.stats-card:hover .stats-header h3 i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(0, 77, 115, 0.5));
}

/* Light blue glow for dark theme */
[data-theme="dark"] .stats-card:hover .stats-header h3 {
    color: #2196f3;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

[data-theme="dark"] .stats-card:hover .stats-header h3 i {
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}

.league-name {
    font-size: 12px;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* League Table */
.league-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    background: var(--bg-card);
}

.league-table tbody {
    background: var(--bg-card);
}


.league-table th,
.league-table td {
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
}

.league-table th {
    background: var(--bg-body);
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.league-table td:nth-child(2) {
    text-align: left;
}

.league-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.league-table tbody tr:last-child {
    border-bottom: none;
}

.league-table tbody tr:hover {
    background: rgba(0, 77, 115, 0.08);
    transform: translateX(3px);
    box-shadow: -3px 0 10px rgba(0, 77, 115, 0.15);
}

/* Light blue for dark theme */
[data-theme="dark"] .league-table tbody tr:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: -3px 0 10px rgba(0, 229, 255, 0.15);
}

.league-table tbody tr.highlighted {
    background: rgba(33, 150, 243, 0.1);
}

.league-table tbody tr.highlighted:hover {
    background: rgba(0, 77, 115, 0.15);
    transform: translateX(3px);
    box-shadow: -3px 0 10px rgba(0, 77, 115, 0.2);
}

/* Light blue for dark theme */
[data-theme="dark"] .league-table tbody tr.highlighted:hover {
    background: rgba(0, 229, 255, 0.15);
    box-shadow: -3px 0 10px rgba(0, 229, 255, 0.2);
}

.position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 12px;
    background: var(--light-gray);
}

.position.pos-1 {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #000;
}

.position.pos-2 {
    background: var(--gradient-accent);
    color: var(--white);
}

.position.pos-3 {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
    color: var(--white);
}

/* Scorers List */
.scorers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scorer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    margin-bottom: 8px;
}

.scorer-item:hover {
    background: rgba(0, 77, 115, 0.1);
    border-color: #004d73;
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 77, 115, 0.2),
                0 0 10px rgba(0, 77, 115, 0.1);
}

/* Light blue for dark theme */
[data-theme="dark"] .scorer-item:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: #00e5ff;
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.2),
                0 0 10px rgba(0, 229, 255, 0.1);
}

.scorer-rank {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-blue);
    width: 25px;
}

.scorer-avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    transition: all 0.3s ease;
}

.scorer-item:hover .scorer-avatar {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 15px rgba(0, 77, 115, 0.4);
}

/* Light blue for dark theme */
[data-theme="dark"] .scorer-item:hover .scorer-avatar {
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.scorer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scorer-name {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
}

.scorer-position {
    font-size: 12px;
    color: var(--medium-gray);
}

.scorer-goals {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.scorer-item:hover .scorer-goals {
    transform: scale(1.15);
    color: #004d73;
    text-shadow: 0 0 10px rgba(0, 77, 115, 0.4);
}

/* Light blue for dark theme */
[data-theme="dark"] .scorer-item:hover .scorer-goals {
    color: #00e5ff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* ========== Fan Zone Preview ========== */
.fanzone-preview {
    background: var(--bg-body);
    transition: background-color 0.3s ease;
}

.fanzone-banner {
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    position: relative;
}

.fanzone-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.fanzone-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.fanzone-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    color: var(--accent-cyan);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: default;
}

.fanzone-badge:hover {
    transform: translateX(5px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    color: #00e5ff;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.2);
}

.fanzone-title {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--white);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: default;
    width: fit-content;
}

.fanzone-title:hover {
    transform: translateX(5px);
    color: #00e5ff;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.6),
                 0 0 40px rgba(0, 229, 255, 0.4);
    letter-spacing: 1px;
}

.fanzone-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.fanzone-features {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white);
    transition: all 0.3s ease;
    cursor: default;
    padding: 10px;
    border-radius: var(--radius-sm);
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.feature-item i {
    font-size: 28px;
    color: var(--accent-cyan);
    transition: all 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #00e5ff;
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.6))
            drop-shadow(0 0 25px rgba(0, 229, 255, 0.4));
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.feature-item:hover span {
    color: #00e5ff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.feature-item span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Animate fanzone-content button */
.fanzone-content .btn-light {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.fanzone-content .btn-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.fanzone-content .btn-light:hover::before {
    left: 100%;
}

.fanzone-content .btn-light:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.fanzone-content .btn-light i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.fanzone-content .btn-light:hover i {
    transform: translateX(5px) scale(1.1);
}

.fanzone-content .btn-light span,
.fanzone-content .btn-light {
    position: relative;
    z-index: 1;
}

.fanzone-visual {
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fanzone-visual:hover {
    transform: translateY(-10px) scale(1.05);
}

.fanzone-visual img {
    transition: filter 0.4s ease;
    display: block;
    max-width: 100%;
    height: auto;
}

.fanzone-visual:hover img {
    filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.6))
            drop-shadow(0 0 50px rgba(0, 229, 255, 0.4))
            drop-shadow(0 0 70px rgba(0, 229, 255, 0.2));
}

/* Dark blue glow for light theme */
body:not([data-theme="dark"]) .fanzone-visual:hover img {
    filter: drop-shadow(0 0 30px rgba(0, 77, 115, 0.5))
            drop-shadow(0 0 50px rgba(0, 77, 115, 0.35))
            drop-shadow(0 0 70px rgba(0, 77, 115, 0.2));
}

.fan-crowd {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 200px;
}

.fan-silhouette {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    animation: fanWave 2s ease-in-out infinite;
}

.fan-silhouette.s1 { width: 40px; height: 120px; animation-delay: 0s; }
.fan-silhouette.s2 { width: 40px; height: 150px; animation-delay: 0.2s; }
.fan-silhouette.s3 { width: 40px; height: 180px; animation-delay: 0.4s; }
.fan-silhouette.s4 { width: 40px; height: 140px; animation-delay: 0.6s; }
.fan-silhouette.s5 { width: 40px; height: 160px; animation-delay: 0.8s; }

@keyframes fanWave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.1); }
}

/* ========== Gallery Preview ========== */
.gallery-preview {
    background: var(--bg-section-alt);
    transition: background-color 0.3s ease;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 15px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item.gi-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition-normal);
}

.gallery-placeholder i {
    font-size: 40px;
}

.gallery-placeholder span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-item:hover .gallery-placeholder {
    background: var(--gradient-accent);
    color: var(--white);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-item {
    position: relative;
}

.gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.9), transparent);
    color: var(--white);
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item .gallery-overlay span {
    font-family: var(--font-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

.gallery-overlay-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 15px;
}

.gallery-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--white);
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.gallery-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gallery-icon-btn:active {
    transform: scale(0.95);
}

/* ========== Footer ========== */
.main-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding-top: 80px;
    position: relative;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .main-footer {
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a1628 100%);
    border-top: 1px solid rgba(33, 150, 243, 0.15);
}


/* Footer text should remain white in both themes */
.main-footer,
.main-footer h4,
.main-footer h5,
.main-footer p,
.main-footer a,
.footer-brand h4,
.footer-title,
.footer-links a,
.footer-about,
.footer-bottom p {
    color: var(--white) !important;
}

.footer-brand p {
    color: var(--accent-cyan) !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Dark theme footer - all text white except subtitle */
[data-theme="dark"] .main-footer,
[data-theme="dark"] .main-footer h4,
[data-theme="dark"] .main-footer h5,
[data-theme="dark"] .footer-brand h4,
[data-theme="dark"] .footer-title,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-about,
[data-theme="dark"] .footer-newsletter-text,
[data-theme="dark"] .footer-bottom p {
    color: #ffffff !important;
}

/* Keep subtitle cyan in dark theme */
[data-theme="dark"] .footer-brand p {
    color: var(--accent-cyan) !important;
}

/* Social links icons white in dark theme */
[data-theme="dark"] .social-link,
[data-theme="dark"] .social-link i {
    color: #ffffff !important;
}

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

[data-theme="dark"] .social-link {
    background: rgba(33, 150, 243, 0.25);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #ffffff !important;
}

[data-theme="dark"] .social-link i {
    color: #ffffff !important;
}

[data-theme="dark"] .social-link:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff !important;
}

[data-theme="dark"] .social-link:hover i {
    color: #ffffff !important;
}


.footer-brand-link {
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
}

.footer-logo {
    font-size: 40px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(33, 150, 243, 0.5));
    transition: all 0.3s ease;
}

.footer-brand-link:hover .footer-brand .footer-logo-img {
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.8))
            drop-shadow(0 0 30px rgba(0, 229, 255, 0.5))
            drop-shadow(0 0 45px rgba(0, 229, 255, 0.3));
    transform: scale(1.1) rotate(5deg);
    animation: logoPulse 1.5s ease-in-out infinite;
}

.footer-brand h4 {
    font-family: var(--font-primary);
    color: var(--white);
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.footer-brand p {
    font-size: 12px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    transition: var(--transition-fast);
    text-decoration: none;
    font-weight: 600;
}

.social-link svg {
    width: 20px;
    height: 20px;
    display: block;
}

[data-theme="dark"] .social-link svg {
    fill: #ffffff !important;
}

.social-link:hover {
    background: var(--accent-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.footer-newsletter-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-newsletter {
    display: flex;
    gap: 10px;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 14px;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.footer-newsletter button {
    padding: 12px 20px;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
}

.footer-newsletter button:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 50px;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 5px 0;
}

/* ========== Back to Top Button ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 0.6;
    visibility: visible;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ========== Buttons ========== */
.btn {
    font-family: var(--font-primary);
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition-normal);
    border-radius: var(--radius-sm) !important;
}

.btn-primary {
    background: var(--gradient-accent);
    border: none;
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.btn-outline-primary:hover::before {
    left: 100%;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover i {
    transform: translateX(3px);
}

.btn-outline-primary span,
.btn-outline-primary {
    position: relative;
    z-index: 1;
}

/* ========== Animations ========== */
.animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Fallback: если JavaScript не загрузился или анимация не сработала, показываем элементы через 3 секунды */
.no-js .animate-item,
.animate-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Дополнительный fallback для элементов, которые должны быть видны */
.hero-content .animate-item {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.1s;
}

/* Убедимся, что hero-visual виден даже без анимации */
.hero-visual.animate-item {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Responsive Styles ========== */
@media (max-width: 1199px) {
    .hero-emblem {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(10, 22, 40, 0.98);
        padding: 20px;
        border-radius: var(--radius-md);
        margin-top: 15px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .match-body {
        flex-direction: column;
        gap: 30px;
    }
    
    .team {
        flex-direction: row;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
    }
    
    .gallery-item.gi-1 {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .fanzone-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    
    .fanzone-features {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-item {
        flex: 1 0 calc(50% - 10px);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .news-horizontal {
        flex-direction: column;
    }
    
    .news-horizontal .news-image {
        width: 100%;
    }
    
    .news-horizontal .news-placeholder-img.small {
        height: 150px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 180px);
    }
    
    .gallery-item.gi-1 {
        grid-column: span 1;
    }
    
    .footer-newsletter {
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .brand-text {
        display: none;
    }
    
    .match-body {
        padding: 20px;
    }
    
    .team-logo {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    
    .match-time {
        font-size: 36px;
    }
    
    .fanzone-features {
        flex-wrap: wrap;
    }
    
    .feature-item {
        flex: 1 0 calc(50% - 12.5px);
    }
}

/* ========== Page-specific Styles ========== */
.page-header {
    background: var(--gradient-hero);
    padding: 150px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at 20% 80%, rgba(33, 150, 243, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 188, 212, 0.1) 0%, transparent 50%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(36px, 8vw, 64px);
    color: var(--white);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: default;
}

/* Animation for page-title on hover */
.page-title:hover {
    transform: translateX(5px);
    color: #00e5ff;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.6),
                 0 0 40px rgba(0, 229, 255, 0.4);
    letter-spacing: 1px;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

/* Breadcrumb */
.breadcrumb-nav {
    background: var(--bg-card);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.breadcrumb {
    margin: 0;
    background: none;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--accent-blue);
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* ========== Page: News ========== */
.news-compact { background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.4s ease; height: 100%; cursor: default; }
.news-compact:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); border: 1px solid rgba(33, 150, 243, 0.15); }
.news-compact-img { height: 180px; object-fit: cover; width: 100%; transition: transform 0.5s ease; }
.news-compact:hover .news-compact-img { transform: scale(1.08); }
.news-compact-body { padding: 20px; transition: all 0.3s ease; }
.news-compact:hover .news-compact-body { padding-top: 19px; }
.news-compact-cat-wrapper { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }
.news-compact-cat-label { color: var(--text-muted); }
.news-compact-cat { color: var(--text-secondary); }
.news-compact-cat-link { text-decoration: none; color: var(--text-secondary); transition: all 0.3s ease; }
.news-compact-cat-link:hover .news-compact-cat { color: var(--accent-blue); }
.news-compact-title { font-family: var(--font-primary); font-size: 16px; margin-bottom: 10px; color: var(--text-primary); line-height: 1.3; transition: all 0.3s ease; cursor: pointer; }
.news-compact-title:hover { 
    color: #00e5ff; 
    transform: translateX(5px) scale(1.02);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.6),
                 0 0 25px rgba(0, 229, 255, 0.4);
    letter-spacing: 0.5px;
}
.news-compact-title a { transition: all 0.3s ease; cursor: pointer; }
.news-compact-title a:hover { 
    color: #00e5ff !important;
    transform: translateX(5px) scale(1.02);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.6),
                 0 0 25px rgba(0, 229, 255, 0.4);
    letter-spacing: 0.5px;
}

/* Enhanced glow for dark theme */
[data-theme="dark"] .news-compact-title:hover,
[data-theme="dark"] .news-compact-title a:hover {
    color: #00d4ff !important;
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.6),
                 0 0 25px rgba(0, 212, 255, 0.4);
}

/* Dark blue for light theme only */
body:not([data-theme="dark"]) .news-compact-title:hover,
body:not([data-theme="dark"]) .news-compact-title a:hover {
    color: #006b9e !important;
    text-shadow: 0 0 8px rgba(0, 107, 158, 0.4),
                 0 0 15px rgba(0, 107, 158, 0.25);
}
.news-compact-meta { font-size: 12px; color: var(--text-muted); transition: all 0.3s ease; }
.news-compact:hover .news-compact-meta { color: var(--text-secondary); transform: translateX(2px); }
.news-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 300px; transition: all 0.4s ease; cursor: pointer; }
.news-hero:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); }
.news-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-hero:hover img { transform: scale(1.06); }
.news-hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(to top, rgba(10,22,40,0.95), transparent); color: white; transition: all 0.4s ease; }
.news-hero:hover .news-hero-overlay { background: linear-gradient(to top, rgba(10,22,40,0.97), rgba(10,22,40,0.4)); padding-bottom: 32px; }
.news-hero-cat { display: inline-block; background: var(--accent-blue); padding: 5px 15px; border-radius: 20px; font-size: 12px; margin-bottom: 15px; transition: all 0.3s ease; }
.news-hero:hover .news-hero-cat { background: var(--primary-blue); transform: translateX(3px); box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3); }
.news-hero-title { font-family: var(--font-primary); font-size: 24px; margin-bottom: 10px; transition: all 0.3s ease; }
.news-hero:hover .news-hero-title { transform: translateX(3px); }
.news-hero-title { transition: all 0.3s ease; }
.news-hero:hover .news-hero-title { color: var(--accent-cyan) !important; text-shadow: 0 0 8px rgba(0, 188, 212, 0.4); }
.news-hero-meta { font-size: 13px; opacity: 0.8; transition: all 0.3s ease; }
.news-hero:hover .news-hero-meta { opacity: 0.95; transform: translateX(3px); }
.sidebar-widget { background: var(--bg-card); border-radius: var(--radius-md); padding: 20px; margin-bottom: 20px; transition: all 0.3s ease; }
.sidebar-widget:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
.sidebar-title { font-family: var(--font-primary); font-size: 16px; color: var(--text-primary); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.sidebar-widget:hover .sidebar-title { color: var(--accent-blue); }
.popular-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-color); transition: all 0.3s ease; border-radius: var(--radius-sm); margin: 0 -5px; padding-left: 10px; padding-right: 10px; }
.popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-item:hover { background: rgba(33, 150, 243, 0.03); transform: translateX(3px); padding-left: 12px; }
[data-theme="dark"] .popular-item:hover { background: rgba(33, 150, 243, 0.08); }
.popular-item img { width: 70px; height: 50px; object-fit: cover; border-radius: 6px; flex-shrink: 0; transition: all 0.3s ease; }
.popular-item:hover img { transform: scale(1.05); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.popular-item-title { font-size: 13px; color: var(--text-primary); line-height: 1.4; margin-bottom: 5px; transition: all 0.3s ease; }
.popular-item:hover .popular-item-title { color: var(--accent-blue); font-weight: 500; }
.popular-item-meta { font-size: 11px; color: var(--text-muted); transition: all 0.3s ease; }
.popular-item:hover .popular-item-meta { color: var(--text-secondary); }

/* Social Widget Animation */
.sidebar-widget-social { transition: all 0.3s ease; }
.sidebar-widget-social:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); background: linear-gradient(135deg, var(--bg-card) 0%, rgba(33, 150, 243, 0.03) 100%); }
.sidebar-widget-social:hover .sidebar-title { color: var(--accent-blue); }
.sidebar-widget-social .btn { transition: all 0.3s ease; }
.sidebar-widget-social .btn:hover { transform: translateY(-3px) scale(1.15); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25); }
.sidebar-widget-social .btn-outline-primary:hover { background: var(--primary-blue); border-color: var(--primary-blue); color: white; }
.sidebar-widget-social .btn-outline-danger:hover { background: #dc3545; border-color: #dc3545; color: white; }
.sidebar-widget-social .btn-outline-info:hover { background: #0dcaf0; border-color: #0dcaf0; color: white; }
.sidebar-widget-social .btn-outline-secondary:hover { background: #6c757d; border-color: #6c757d; color: white; }

/* News Loading Indicator */
#news-loading { 
    display: none; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(255, 255, 255, 0.9); 
    z-index: 10; 
    align-items: center; 
    justify-content: center; 
    border-radius: var(--radius-md); 
    backdrop-filter: blur(2px);
    flex-direction: row;
}
#news-loading[style*="display: flex"] {
    display: flex !important;
}
[data-theme="dark"] #news-loading { 
    background: rgba(13, 33, 55, 0.95); 
}

.cat-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-color); transition: all 0.3s ease; border-radius: var(--radius-sm); margin: 0 -5px; padding-left: 10px; padding-right: 10px; }
.cat-item:last-child { border-bottom: none; }
.cat-item:hover { background: rgba(33, 150, 243, 0.05); transform: translateX(5px); }
[data-theme="dark"] .cat-item:hover { background: rgba(33, 150, 243, 0.1); }
.cat-item a { color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: all 0.3s ease; flex: 1; }
.cat-item:hover a { 
    color: #00e5ff; 
    font-weight: 600;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.6),
                 0 0 30px rgba(0, 229, 255, 0.4);
}
.cat-item a.active { color: var(--accent-blue); font-weight: 600; }
.cat-item .badge { transition: all 0.3s ease; }
.cat-item:hover .badge { transform: scale(1.1); background: var(--accent-blue) !important; }

/* ========== Page: News Single Article ========== */
.article-single { background: var(--bg-card); border-radius: var(--radius-md); padding: 30px; transition: background-color 0.3s ease; }
.article-header { margin-bottom: 20px; }
.article-title { font-family: var(--font-primary); font-size: 32px; font-weight: 700; color: var(--text-primary); margin-bottom: 15px; line-height: 1.3; }
.article-meta-top { display: flex; gap: 20px; font-size: 14px; color: var(--text-muted); }
.article-meta-item { display: flex; align-items: center; gap: 6px; }
.article-meta-item i { font-size: 16px; }
.article-image-wrapper { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 25px; position: relative; }
.article-main-image { width: 100%; height: auto; display: block; max-height: 500px; object-fit: cover; transition: var(--transition-normal); }
.article-main-image:hover { transform: scale(1.02); opacity: 0.9; }
.image-zoom-hint { position: absolute; bottom: 15px; right: 15px; background: rgba(0, 0, 0, 0.7); color: white; padding: 8px 15px; border-radius: var(--radius-sm); font-size: 12px; display: flex; align-items: center; gap: 6px; opacity: 0; transition: var(--transition-normal); pointer-events: none; }
.article-image-wrapper:hover .image-zoom-hint { opacity: 1; }

/* Image Modal Zoom Controls */
.image-zoom-controls { position: absolute; top: 15px; right: 15px; z-index: 1051; display: flex; gap: 8px; }
.zoom-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.2); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.zoom-btn:hover { background: rgba(33, 150, 243, 0.8); border-color: var(--accent-blue); transform: scale(1.1); }
.zoom-btn i { font-size: 18px; }
.zoom-close:hover { background: rgba(244, 67, 54, 0.8); border-color: #f44336; }
.image-modal-body { position: relative; }
#modalImage { user-select: none; }
.article-excerpt { background: linear-gradient(135deg, rgba(33, 150, 243, 0.08) 0%, rgba(0, 188, 212, 0.05) 100%); border-left: 4px solid var(--accent-blue); padding: 20px 25px; margin-bottom: 30px; border-radius: var(--radius-sm); position: relative; transition: all 0.3s ease; cursor: default; }
.article-excerpt:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(33, 150, 243, 0.15); border-left-width: 6px; background: linear-gradient(135deg, rgba(33, 150, 243, 0.12) 0%, rgba(0, 188, 212, 0.08) 100%); }
.article-excerpt::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232196f3' fill-opacity='0.03'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E"); opacity: 0.5; border-radius: var(--radius-sm); pointer-events: none; transition: opacity 0.3s ease; }
.article-excerpt:hover::before { opacity: 0.7; }
.article-excerpt-text { font-size: 18px; font-weight: 500; color: var(--text-primary); line-height: 1.7; margin: 0; font-style: italic; position: relative; z-index: 1; transition: all 0.3s ease; }
.article-excerpt:hover .article-excerpt-text { color: var(--accent-blue); font-weight: 600; transform: translateX(5px); }
[data-theme="dark"] .article-excerpt { background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(0, 188, 212, 0.1) 100%); }
[data-theme="dark"] .article-excerpt:hover { background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(0, 188, 212, 0.15) 100%); box-shadow: 0 8px 25px rgba(33, 150, 243, 0.25); }
.article-body { color: var(--text-secondary); line-height: 1.8; font-size: 16px; margin-bottom: 30px; }
.article-body p { margin-bottom: 15px; }
.article-body ul, .article-body ol { margin-bottom: 15px; padding-left: 25px; }
.article-body li { margin-bottom: 8px; }
.article-body h2, .article-body h3, .article-body h4 { font-family: var(--font-primary); color: var(--text-primary); margin-top: 25px; margin-bottom: 15px; }
.article-footer { background: #f5f5f5; padding: 15px 20px; border-radius: var(--radius-sm); margin-top: 30px; transition: all 0.3s ease; cursor: default; }
.article-footer:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%); }
[data-theme="dark"] .article-footer { background: #1e3a5f; }
[data-theme="dark"] .article-footer:hover { background: linear-gradient(135deg, #1e3a5f 0%, #2a4a6f 100%); box-shadow: 0 6px 20px rgba(33, 150, 243, 0.2); }
.article-footer-content { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-muted); transition: all 0.3s ease; }
.article-footer:hover .article-footer-content { color: var(--text-secondary); }
.article-footer-item { display: flex; align-items: center; gap: 6px; transition: all 0.3s ease; }
.article-footer-item:hover { transform: translateX(3px); }
.article-footer-item i { font-size: 16px; transition: all 0.3s ease; }
.article-footer-item:hover i { color: var(--accent-blue); transform: scale(1.2); }

/* Sidebar Navigation Buttons */
.sidebar-nav-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-nav-dark { background: #343a40; color: white; border: none; padding: 10px 15px; border-radius: var(--radius-sm); text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; transition: all 0.3s ease; }
.btn-nav-dark:hover { background: #495057; color: white; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
.btn-nav-light { background: #f8f9fa; color: var(--text-primary); border: 1px solid var(--border-color); padding: 10px 15px; border-radius: var(--radius-sm); text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; transition: all 0.3s ease; }
.btn-nav-light:hover { background: #e9ecef; color: var(--text-primary); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); border-color: var(--accent-blue); }
[data-theme="dark"] .btn-nav-light { background: #1e3a5f; color: var(--text-primary); border-color: var(--border-color); }
[data-theme="dark"] .btn-nav-light:hover { background: #2a4a6f; border-color: var(--accent-blue); }

/* Related News in Sidebar */
.related-news-list { display: flex; flex-direction: column; gap: 0; }
.related-news-item { border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 15px; }
.related-news-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.related-news-link { display: flex; gap: 12px; text-decoration: none; color: inherit; transition: var(--transition-fast); }
.related-news-link:hover { opacity: 0.8; }
.related-news-img { width: 100px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.related-news-content { flex: 1; display: flex; flex-direction: column; }
.related-news-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; line-height: 1.4; }
.related-news-date { font-size: 12px; color: var(--text-muted); }

/* Recent News in Sidebar */
.recent-news-list { display: flex; flex-direction: column; gap: 0; }
.recent-news-item { border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 15px; transition: var(--transition-normal); }
.recent-news-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.recent-news-item:hover { background: rgba(33, 150, 243, 0.05); border-radius: var(--radius-sm); padding: 10px; margin: 0 -10px 15px -10px; }
.recent-news-item:last-child:hover { margin-bottom: 0; }
.recent-news-link { display: flex; gap: 12px; text-decoration: none; color: inherit; transition: var(--transition-normal); }
.recent-news-link:hover { transform: translateX(5px); }
.recent-news-img { width: 100px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; transition: var(--transition-normal); }
.recent-news-link:hover .recent-news-img { transform: scale(1.05); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }
.recent-news-content { flex: 1; display: flex; flex-direction: column; }
.recent-news-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; line-height: 1.4; transition: var(--transition-fast); }
.recent-news-link:hover .recent-news-title { color: var(--accent-blue); }
.recent-news-date { font-size: 12px; color: var(--text-muted); }

/* Article Info in Sidebar */
.sidebar-widget:has(.article-info-list) { transition: all 0.3s ease; }
.sidebar-widget:has(.article-info-list):hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); background: linear-gradient(135deg, var(--bg-card) 0%, rgba(33, 150, 243, 0.05) 100%); }
[data-theme="dark"] .sidebar-widget:has(.article-info-list):hover { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(33, 150, 243, 0.1) 100%); }
.article-info-list { display: flex; flex-direction: column; gap: 0; }
.article-info-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border-color); font-size: 13px; color: var(--text-secondary); transition: all 0.3s ease; }
.article-info-item:last-child { border-bottom: none; }
.article-info-item:hover { padding-left: 10px; background: rgba(33, 150, 243, 0.05); border-radius: var(--radius-sm); margin: 0 -10px; padding-left: 20px; padding-right: 10px; }
[data-theme="dark"] .article-info-item:hover { background: rgba(33, 150, 243, 0.1); }
.article-info-item i { font-size: 16px; color: var(--text-muted); width: 20px; flex-shrink: 0; transition: all 0.3s ease; }
.article-info-item:hover i { color: var(--accent-blue); transform: scale(1.2); }
.article-info-item span { flex: 1; transition: color 0.3s ease; }
.article-info-item:hover span { color: var(--text-primary); font-weight: 500; }

/* ========== Page: Matches ========== */
.match-row { display: flex; align-items: center; background: var(--bg-card); border-radius: var(--radius-sm); padding: 15px 20px; margin-bottom: 10px; transition: var(--transition-normal), background-color 0.3s ease; border-left: 4px solid transparent; }
.match-row:hover { transform: translateX(5px); box-shadow: var(--shadow-sm); }
.match-row.win { border-left-color: #4caf50; }
.match-row.loss { border-left-color: #f44336; }
.match-row.draw { border-left-color: #ff9800; }
.match-row.upcoming { border-left-color: var(--accent-blue); }
.match-date-col { width: 80px; text-align: center; flex-shrink: 0; }
.match-date-day { font-family: var(--font-primary); font-size: 20px; font-weight: 700; color: var(--text-primary); }
.match-date-month { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.match-teams-col { flex: 1; display: flex; align-items: center; justify-content: center; gap: 15px; }
.match-team-name { font-family: var(--font-primary); font-size: 14px; color: var(--text-primary); width: 120px; }
.match-team-name.home { text-align: right; }
.match-team-name.away { text-align: left; }
.match-score-box { background: var(--bg-body); padding: 8px 15px; border-radius: 8px; font-family: var(--font-primary); font-size: 18px; font-weight: 700; color: var(--text-primary); min-width: 70px; text-align: center; }
.match-score-box.time { font-size: 14px; color: var(--accent-blue); font-weight: 600; }
.match-venue-col { width: 150px; font-size: 12px; color: var(--text-muted); text-align: right; flex-shrink: 0; }
.match-result-col { width: 90px; text-align: right; flex-shrink: 0; }
.result-badge { padding: 4px 12px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; min-width: 70px; text-align: center; display: inline-block; }
.result-badge.win { background: #4caf50; color: #ffffff; }
.result-badge.loss { background: #f44336; color: #ffffff; }
.result-badge.draw { background: #ff9800; color: #ffffff; }
.result-badge.upcoming { background: var(--accent-blue); color: #ffffff; }
.month-header { font-family: var(--font-primary); font-size: 16px; color: var(--accent-blue); margin: 25px 0 15px; padding-bottom: 8px; border-bottom: 2px solid var(--border-color); }
.next-match-card { background: var(--gradient-hero); border-radius: var(--radius-lg); padding: 30px; color: white; margin-bottom: 25px; }
.next-match-label { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; margin-bottom: 20px; }
.next-match-teams { display: flex; align-items: center; justify-content: center; gap: 30px; }
.next-match-team { text-align: center; }
.next-match-logo { width: 60px; height: 60px; margin-bottom: 10px; }
.next-match-logo img { width: 100%; height: 100%; object-fit: contain; }
.next-match-name { font-family: var(--font-primary); font-size: 14px; }
.next-match-vs { font-family: var(--font-primary); font-size: 28px; color: var(--accent-cyan); }
.next-match-info { text-align: center; margin-top: 20px; font-size: 13px; opacity: 0.9; }
.stats-box { background: var(--bg-card); border-radius: var(--radius-md); padding: 20px; margin-bottom: 15px; transition: background-color 0.3s ease; }
.stats-box-title { font-family: var(--font-primary); font-size: 14px; color: var(--text-primary); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-color); font-size: 13px; }
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--text-secondary); }
.stat-value { font-weight: 600; color: var(--text-primary); }
.table-mini { width: 100%; font-size: 12px; }
.table-mini th { padding: 8px 5px; color: var(--text-muted); font-weight: 500; text-align: center; }
.table-mini td { padding: 8px 5px; text-align: center; color: var(--text-secondary); }
.table-mini tr.us { background: rgba(33, 150, 243, 0.1); }
.table-mini tr.us td { color: var(--text-primary); font-weight: 600; }
.pos-badge { display: inline-block; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; line-height: 20px; text-align: center; }
.pos-badge.gold { background: #ffd700; color: #000; }
.pos-badge.silver { background: #c0c0c0; color: #000; }
.pos-badge.bronze { background: #cd7f32; color: #fff; }

@media (max-width: 768px) {
    .match-venue-col { display: none; }
    .match-team-name { width: 80px; font-size: 12px; }
}

/* ========== Page: Team ========== */
.player-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal), background-color 0.3s ease;
    height: 100%;
}
.player-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.player-photo {
    height: 280px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.player-photo i { font-size: 100px; color: rgba(255,255,255,0.3); }
.player-photo img { width: 100%; height: 100%; object-fit: cover; }
.player-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
}
.player-position-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--accent-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.player-info { padding: 25px; text-align: center; }
.player-name { font-family: var(--font-primary); font-size: 20px; font-weight: 600; margin-bottom: 5px; color: var(--text-primary); }
.player-role { color: var(--text-muted); font-size: 14px; margin-bottom: 15px; }
.player-stats { display: flex; justify-content: center; gap: 30px; padding-top: 15px; border-top: 1px solid var(--border-color); }
.player-stat { text-align: center; }
.player-stat-value { font-family: var(--font-primary); font-size: 24px; font-weight: 700; color: var(--primary-blue); }
.player-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.staff-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal), background-color 0.3s ease;
}
.staff-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.staff-avatar {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: rgba(255,255,255,0.5);
}
.staff-name { font-family: var(--font-primary); font-size: 18px; font-weight: 600; margin-bottom: 5px; color: var(--text-primary); }
.staff-role { color: var(--accent-blue); font-size: 14px; }
.position-filter { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.position-filter .btn { border-radius: var(--radius-sm); padding: 10px 25px; }
.section-position { font-family: var(--font-primary); color: var(--accent-blue); margin-bottom: 20px; }

/* ========== Page: History ========== */
.timeline { position: relative; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 4px; height: 100%; background: var(--gradient-primary); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 50px; }
.timeline-item:nth-child(odd) .timeline-content { margin-left: auto; padding-left: 50px; }
.timeline-item:nth-child(even) .timeline-content { margin-right: auto; padding-right: 50px; text-align: right; }
.timeline-content { width: 45%; background: var(--bg-card); padding: 30px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); position: relative; transition: background-color 0.3s ease; overflow: hidden; }
.timeline-content img { width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 15px; }
.timeline-dot { position: absolute; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; background: var(--accent-blue); border: 4px solid var(--bg-card); border-radius: 50%; box-shadow: var(--shadow-sm); transition: border-color 0.3s ease; }
.timeline-year { font-family: var(--font-primary); font-size: 24px; font-weight: 700; color: var(--accent-blue); margin-bottom: 10px; }
.timeline-title { font-family: var(--font-primary); font-size: 20px; margin-bottom: 15px; color: var(--text-primary); }
.timeline-text { color: var(--text-secondary); line-height: 1.8; }
.achievement-card { background: var(--bg-card); border-radius: var(--radius-md); padding: 30px; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition-normal), background-color 0.3s ease; height: 100%; }
.achievement-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.achievement-icon { width: 80px; height: 80px; background: var(--gradient-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 36px; color: var(--white); }
.achievement-title { font-family: var(--font-primary); font-size: 18px; margin-bottom: 10px; color: var(--text-primary); }
.achievement-year { color: var(--accent-blue); font-weight: 600; }
.legend-card { background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition-normal), background-color 0.3s ease; }
.legend-card:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.legend-photo { height: 220px; overflow: hidden; }
.legend-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.legend-card:hover .legend-photo img { transform: scale(1.1); }
.legend-info { padding: 20px; }
.legend-name { font-family: var(--font-primary); font-size: 18px; margin-bottom: 5px; color: var(--text-primary); }
.legend-role { color: var(--text-muted); font-size: 14px; margin-bottom: 10px; }
.legend-years { color: var(--accent-blue); font-size: 13px; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; height: 400px; position: relative; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(10,22,40,0.8) 0%, transparent 50%); }
.about-image-text { position: absolute; bottom: 30px; left: 30px; color: white; z-index: 1; }

@media (max-width: 991px) {
    .timeline::before { left: 30px; }
    .timeline-dot { left: 30px; }
    .timeline-item:nth-child(odd) .timeline-content, .timeline-item:nth-child(even) .timeline-content { width: calc(100% - 70px); margin-left: 70px; margin-right: 0; padding-left: 0; padding-right: 0; text-align: left; }
}

/* ========== Page: Gallery ========== */
.gallery-filter { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.gallery-filter .btn { border-radius: var(--radius-sm); padding: 10px 25px; }

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 200px);
    gap: 15px;
}

.bento-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition-normal);
}

.bento-item:hover { transform: scale(1.02); z-index: 2; }
.bento-item:hover .bento-overlay { opacity: 1; }

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.3) 50%, transparent 100%);
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
}

.bento-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    transition: var(--transition-normal);
}

.bento-item:hover .bento-overlay-icon { opacity: 1; }

.bento-overlay-title {
    font-family: var(--font-primary);
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.bento-overlay-date {
    font-size: 13px;
    opacity: 0.8;
}

/* Bento positions */
.bento-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento-2 { grid-column: 3 / 4; grid-row: 1 / 2; }
.bento-3 { grid-column: 4 / 5; grid-row: 1 / 3; }
.bento-4 { grid-column: 3 / 4; grid-row: 2 / 3; }
.bento-5 { grid-column: 1 / 2; grid-row: 3 / 4; }
.bento-6 { grid-column: 2 / 4; grid-row: 3 / 4; }
.bento-7 { grid-column: 4 / 5; grid-row: 3 / 4; }

/* Responsive */
@media (max-width: 991px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(5, 180px); }
    .bento-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
    .bento-2 { grid-column: 1 / 2; grid-row: 3 / 4; }
    .bento-3 { grid-column: 2 / 3; grid-row: 3 / 5; }
    .bento-4 { grid-column: 1 / 2; grid-row: 4 / 5; }
    .bento-5 { grid-column: 1 / 2; grid-row: 5 / 6; }
    .bento-6 { grid-column: 2 / 3; grid-row: 5 / 6; }
    .bento-7 { grid-column: 1 / 3; grid-row: 6 / 7; }
}
@media (max-width: 576px) {
    .bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, 150px); gap: 10px; }
}

.video-card { background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition-normal), background-color 0.3s ease; }
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.video-thumbnail { position: relative; height: 200px; background: var(--gradient-hero); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.video-play-btn { position: absolute; width: 70px; height: 70px; background: var(--accent-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--white); transition: var(--transition-normal); }
.video-card:hover .video-play-btn { transform: scale(1.1); background: var(--primary-blue); }
.video-info { padding: 20px; }
.video-title { font-family: var(--font-primary); font-size: 16px; margin-bottom: 10px; color: var(--text-primary); }
.video-meta { font-size: 13px; color: var(--text-muted); }

/* ========== Page: Fanzone ========== */
.hero-fanzone { background: var(--gradient-hero); padding: 150px 0 100px; text-align: center; position: relative; overflow: hidden; }
.hero-fanzone::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.benefit-card { background: var(--bg-card); border-radius: var(--radius-md); padding: 40px 30px; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition-normal), background-color 0.3s ease; height: 100%; }
.benefit-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.benefit-icon { width: 80px; height: 80px; background: var(--gradient-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; font-size: 36px; color: var(--white); }
.benefit-title { font-family: var(--font-primary); font-size: 20px; margin-bottom: 15px; color: var(--text-primary); }
.benefit-text { color: var(--text-secondary); font-size: 15px; }
.event-card { background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition-normal), background-color 0.3s ease; }
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.event-image { height: 200px; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.event-image img { width: 100%; height: 100%; object-fit: cover; }
.event-image i { font-size: 60px; color: rgba(255,255,255,0.3); position: absolute; z-index: 0; }
.event-date { position: absolute; top: 15px; left: 15px; background: var(--accent-blue); color: var(--white); padding: 10px 15px; border-radius: var(--radius-sm); text-align: center; z-index: 2; }
.event-date-day { font-family: var(--font-primary); font-size: 24px; font-weight: 700; line-height: 1; }
.event-date-month { font-size: 11px; text-transform: uppercase; }
.event-info { padding: 25px; }
.event-title { font-family: var(--font-primary); font-size: 18px; margin-bottom: 10px; color: var(--text-primary); }
.event-meta { font-size: 14px; color: var(--text-muted); }
.join-form { background: var(--bg-card); border-radius: var(--radius-lg); padding: 50px; box-shadow: var(--shadow-lg); transition: background-color 0.3s ease; }
.join-form .form-control { padding: 15px 20px; border-radius: var(--radius-sm); border: 2px solid var(--border-color); font-size: 15px; background: var(--bg-body); color: var(--text-primary); transition: background-color 0.3s ease, border-color 0.3s ease; }
.join-form .form-control:focus { border-color: var(--accent-blue); box-shadow: none; }
.join-form .form-label { color: var(--text-primary); }
.chant-card { background: var(--gradient-hero); border-radius: var(--radius-md); padding: 30px; color: #ffffff !important; margin-bottom: 20px; }
.chant-title { font-family: var(--font-primary); font-size: 18px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; color: #ffffff !important; }
.chant-text { font-style: italic; line-height: 1.8; opacity: 0.9; color: #ffffff !important; }
.chant-card i { color: #ffffff !important; }
.faq-item { background: var(--bg-card); border-radius: var(--radius-sm); margin-bottom: 15px; overflow: hidden; transition: background-color 0.3s ease; }
.faq-question { padding: 20px 25px; font-family: var(--font-primary); font-size: 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition-fast); color: var(--text-primary); }
.faq-question:hover { background: var(--bg-body); }
.faq-answer { padding: 0 25px 20px; color: var(--text-secondary); display: none; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.fans-banner { height: auto; }

@media (min-width: 992px) {
    .row > .col-lg-6:first-child { display: flex; flex-direction: column; }
}

