@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    /* Light theme variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #dbeafe;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --live-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

[data-theme="dark"] {
    /* Dark theme variables */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-color: #60a5fa;
    --accent-hover: #3b82f6;
    --accent-light: #1e3a8a;
    --border-color: #334155;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    transition: all 0.3s ease;
    font-weight: 400;
}

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

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

/* Search loading indicator */
.search-loading {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@media (max-width: 768px) {
    .search-loading {
        right: 20px;
        width: 28px;
        height: 28px;
        border-width: 3px;
    }
}

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

/* Header Section */
header {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

header h1 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.025em;
}

header p {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    margin-bottom: 24px;
}

/* Top Navigation Bar */
.top-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.nav-item {
    display: flex;
    align-items: center;
}

.broadcasting-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.broadcasting-label:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.region-header {
    padding: 8px 15px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.country-dropdown-item {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-dropdown-item:hover {
    background: var(--accent-color);
    color: white;
    padding-left: 25px;
}

.country-dropdown-item:last-child {
    border-bottom: none;
}

/* Improve scrollbar for country dropdown */
.country-dropdown::-webkit-scrollbar {
    width: 6px;
}

.country-dropdown::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.country-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.country-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.nav-item {
    position: relative;
}

.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-secondary);
}

.nav-icon-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.refresh-nav-btn {
    font-family: inherit;
}

.refresh-nav-btn:hover {
    transform: translateY(-1px) rotate(180deg);
}

.site-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.admin-nav-btn {
    color: var(--text-secondary);
}

.admin-nav-btn:hover {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

/* Adjust container padding for top nav */
.container {
    padding-top: 80px;
}

/* Theme Toggle Button in Navigation */
.theme-toggle-nav {
    color: var(--text-secondary);
}

.theme-toggle-nav:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Search Container */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 24px auto;
}

/* Mobile Sticky Search */
@media (max-width: 768px) {
    .search-container {
        position: sticky;
        top: 0;
        z-index: 999;
        background: var(--bg-card);
        padding: 12px 16px;
        margin: 0 -12px 20px -12px;
        border-bottom: 2px solid var(--border-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        max-width: none;
    }

    .search-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-card);
        opacity: 0.95;
        z-index: -1;
    }
}

#teamSearch {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    font-weight: 400;
}

/* Mobile-optimized search input */
@media (max-width: 768px) {
    #teamSearch {
        padding: 16px 20px;
        font-size: 18px;
        border-radius: var(--radius-xl);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-width: 3px;
    }

    #teamSearch:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: none;
    }
}

#teamSearch:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

#teamSearch::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 8px;
    display: none;
    border: 1px solid var(--border-color);
}

/* Mobile search results optimization */
@media (max-width: 768px) {
    .search-results {
        max-height: 50vh;
        border-radius: var(--radius-xl);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        margin-top: 12px;
        border-width: 2px;
    }

    .search-result-item {
        padding: 20px 16px;
        border-bottom: 2px solid var(--border-color);
    }

    .search-result-item:hover {
        background: var(--accent-light);
        transform: none;
        border-left: 4px solid var(--accent-color);
    }

    .teams-info {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .match-details {
        font-size: 14px;
        gap: 12px;
    }
}

.search-result-item {
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

/* Search Shortcuts */
.search-shortcuts {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-shortcut-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-shortcut-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

/* Quick Access Teams Container */
.quick-access-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.quick-access-container h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.quick-access-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quick-access-scroll::-webkit-scrollbar {
    display: none;
}

.quick-access-teams {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    min-width: max-content;
}

.quick-team-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    max-width: 90px;
    font-family: inherit;
}

.quick-team-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.quick-team-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.quick-team-btn.clear-filter {
    background: var(--warning-color);
    color: white;
    border-color: var(--warning-color);
}

.quick-team-btn.clear-filter:hover {
    background: #d97706;
    border-color: #d97706;
}

.team-logo {
    font-size: 24px;
    margin-bottom: 6px;
    display: block;
    height: 32px;
    line-height: 32px;
}

.team-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    word-wrap: break-word;
    margin: 0;
}

/* Enhanced Search Results */
.search-result-item {
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.match-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.league-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.league-logo {
    font-size: 16px;
}

.league-name {
    font-weight: 500;
}

.teams-info {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.match-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-secondary);
}

.match-time,
.match-channel {
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--live-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Team Filter Active State */
.match-row.filtered-out {
    display: none;
}

.team-filter-banner {
    background: var(--accent-color);
    color: white;
    text-align: center;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clear-filter-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.clear-filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Buttons */
.btn, .refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}

.btn:hover, .refresh-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:disabled, .refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Country Selector */
.country-selector-container {
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Advertisement Sections */
.ad-section {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 24px auto;
    max-width: 728px;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
}

.ad-section:hover {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.ad-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.7;
}

.ad-content {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.2s ease;
}

.ad-content:empty::before {
    content: "Advertisement space";
}

/* Ad sections between match cards */
.ad-section.inline-ad {
    margin: 32px auto;
    max-width: 100%;
    background: var(--bg-secondary);
}

.ad-section.inline-ad .ad-content {
    min-height: 120px;
    background: var(--bg-card);
}

.country-selector-container label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

#countrySelect {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
    font-weight: 400;
}

#countrySelect:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Filter Tabs/Chips */
.sport-filter-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.sport-filter-container h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.sport-filter-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sport-filter-scroll::-webkit-scrollbar {
    display: none;
}

.sport-filter-pills {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    min-width: max-content;
}

.sport-filter-pill {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sport-filter-pill:hover,
.sport-filter-pill.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Quick Favorites */
.quick-favorites {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin: 24px 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.quick-favorites h3 {
    color: var(--text-primary);
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.favorite-teams-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.quick-favorite-team {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-favorite-team:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.quick-team-logo {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.quick-team-name {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.quick-team-league {
    font-size: 11px;
    opacity: 0.7;
}

/* Team Logo Styles */
.team-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 8px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.team-logo-img.after {
    margin-right: 0;
    margin-left: 8px;
}

.team-logo-img.small {
    width: 20px;
    height: 20px;
    margin-right: 4px;
}

.team-logo-img.small.after {
    margin-right: 0;
    margin-left: 4px;
}

.team-with-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-with-logo.inline {
    display: inline-flex;
    align-items: center;
}

.team-name-with-logo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.team-logo-placeholder {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
}

.team-logo-placeholder.small {
    width: 20px;
    height: 20px;
    font-size: 12px;
    margin-right: 4px;
}

.team-logo-placeholder.after {
    margin-right: 0;
    margin-left: 8px;
}

.team-logo-placeholder.small.after {
    margin-right: 0;
    margin-left: 4px;
}

/* Search Results Team Logos */
.search-result-item .team-logo-img,
.search-result-item .team-logo-placeholder {
    width: 24px;
    height: 24px;
    margin-right: 6px;
}

/* Match Card Team Logos */
.match-teams-section .team-logo-img,
.match-teams-section .team-logo-placeholder {
    width: 32px;
    height: 32px;
}

/* Live indicator with logo spacing */
.live-indicator + .team-with-logo {
    margin-left: 8px;
}

/* View Controls */
.view-controls {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.view-toggle {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 4px;
    border: 1px solid var(--border-color);
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.view-btn.active {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.view-btn:hover:not(.active) {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.view-icon {
    font-size: 16px;
}

.view-label {
    font-size: 13px;
}

.sort-controls select {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.sort-controls select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Events Sections */
.events-section {
    margin-bottom: 32px;
}

/* Collapsible Sections */
.collapsible-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.collapsible-header {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 20px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid transparent;
}

.collapsible-header:hover {
    background: var(--bg-secondary);
    border-bottom-color: var(--border-color);
}

.collapsible-content {
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
}

.collapsible-content.expanded {
    max-height: 5000px;
    padding: 0 24px 24px 24px;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0;
    padding: 0 24px;
    opacity: 0;
}

.collapse-arrow {
    font-size: 14px;
    margin-left: 12px;
    transition: transform 0.3s ease;
    color: var(--accent-color);
    font-weight: bold;
}

.no-events-in-section {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin: 16px 0;
}

.section-header {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    width: 100%;
    justify-content: space-between;
}

.section-icon {
    font-size: 24px;
}

.section-text {
    flex: 1;
}

.section-count {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Events Grid */
.events-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.events-grid.card-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.events-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Match Cards */
.match-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.match-card.live {
    border-color: var(--live-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.match-card.live::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--live-color), #ff6b6b);
    animation: pulse 2s infinite;
}

/* Match Card Header */
.match-card-header {
    padding: 16px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-status-indicator {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.match-status-indicator.live {
    background: var(--live-color);
    color: white;
    animation: pulse 2s infinite;
}

.match-status-indicator.upcoming {
    background: var(--accent-color);
    color: white;
}

.match-status-indicator.finished {
    background: var(--text-muted);
    color: white;
}

.match-league {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.league-logo {
    font-size: 16px;
}

/* Match Teams Section */
.match-teams-section {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.team-logo {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid var(--border-color);
}

.team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
}

.match-score-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 60px;
}

.match-score {
    font-size: 20px;
    font-weight: 700;
    color: var(--live-color);
    text-align: center;
    line-height: 1;
}

.vs-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Match Details Section */
.match-details-section {
    padding: 0 20px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-time,
.match-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.time-icon,
.location-icon {
    font-size: 14px;
    color: var(--accent-color);
    width: 16px;
    text-align: center;
}

/* Match Broadcast Section */
.match-broadcast-section {
    padding: 0 20px 16px 20px;
}

.broadcast-channels {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.channel-pill {
    background: var(--accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.channel-pill:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Match Actions */
.match-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.expand-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.expand-icon {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.expand-btn.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Expanded Content */
.match-expanded-content {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    animation: expandDown 0.3s ease;
}

@keyframes expandDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 20px;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding: 20px;
    }
}

/* List View Styles */
.events-grid.list-view .match-card {
    border-radius: var(--radius-lg);
}

.events-grid.list-view .match-teams-section {
    padding: 16px 20px;
}

.events-grid.list-view .team-logo {
    width: 36px;
    height: 36px;
    font-size: 18px;
}

.events-grid.list-view .match-score {
    font-size: 16px;
}

.events-grid.list-view .team-name {
    font-size: 13px;
}

/* Loading States */
.skeleton-container {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.skeleton-card {
    height: 280px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-xl);
}

/* Empty States */
.no-events {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 2px dashed var(--border-color);
}

.no-events-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-events h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 600;
}

.no-events p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.refresh-events-btn {
    margin-top: 24px;
    padding: 14px 28px;
    font-size: 16px;
}

.btn-icon {
    font-size: 18px;
}

.btn-text {
    font-weight: 600;
}

/* Responsive Design */
/* Mobile optimizations for top navigation */
@media (max-width: 768px) {
    .top-nav-bar {
        padding: 10px 16px;
        gap: 12px;
    }

    .broadcasting-label {
        font-size: 12px;
        padding: 6px 10px;
    }

    .country-dropdown {
        min-width: 180px;
        max-height: 250px;
    }

    .country-dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
    }

    .nav-icon-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .logo-img {
        width: 28px;
        height: 28px;
    }

    .container {
        padding-top: 70px;
    }

    .theme-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .top-nav-bar {
        padding: 8px 12px;
        gap: 10px;
    }

    .broadcasting-label {
        font-size: 11px;
        padding: 5px 8px;
    }

    .country-dropdown {
        min-width: 160px;
        max-height: 200px;
    }

    .country-dropdown-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    .nav-icon-btn {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }

    .logo-img {
        width: 26px;
        height: 26px;
    }

    .container {
        padding-top: 60px;
    }

    .theme-icon {
        font-size: 13px;
    }
}

/* Mobile optimizations for ads */
@media (max-width: 768px) {
    .ad-section {
        margin: 16px auto;
        padding: 16px;
        max-width: calc(100% - 32px);
    }

    .ad-section.inline-ad {
        margin: 24px auto;
    }

    .ad-content {
        min-height: 80px;
        padding: 12px;
        font-size: 13px;
    }

    .ad-section.inline-ad .ad-content {
        min-height: 100px;
    }

    .ad-label {
        font-size: 9px;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .view-controls {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .collapsible-header {
        padding: 16px 20px;
    }

    .collapsible-content.expanded {
        padding: 0 20px 20px 20px;
    }

    .collapsible-content.collapsed {
        padding: 0 20px;
    }

    .section-title {
        font-size: 18px;
        gap: 10px;
    }

    .collapse-arrow {
        font-size: 12px;
        margin-left: 8px;
    }

    .events-grid.card-view {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .events-grid.list-view {
        gap: 8px;
    }

    .match-card-header {
        padding: 12px 16px 0 16px;
    }

    .match-teams-section {
        padding: 16px;
        gap: 12px;
    }

    .team-logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .team-name {
        font-size: 13px;
    }

    .match-score {
        font-size: 18px;
    }

    .match-details-section,
    .match-broadcast-section {
        padding: 0 16px 12px 16px;
    }

    .match-actions {
        padding: 12px 16px;
    }

    .section-title {
        font-size: 18px;
    }

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

    .no-events {
        padding: 40px 20px;
    }

    .no-events-icon {
        font-size: 48px;
    }

    .no-events h3 {
        font-size: 20px;
    }

    .skeleton-container {
        grid-template-columns: 1fr;
    }

    .skeleton-card {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .match-teams-section {
        gap: 8px;
    }

    .team-logo {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .team-name {
        font-size: 12px;
    }

    .match-score {
        font-size: 16px;
    }

    .view-toggle {
        width: 100%;
    }

    .view-btn {
        flex: 1;
        justify-content: center;
    }

    .match-card {
        min-height: 240px;
    }

    .match-card-header {
        padding: 10px 16px 0 16px;
    }

    .match-teams-section {
        padding: 16px;
    }

    .match-details-section,
    .match-broadcast-section {
        padding: 0 16px 12px 16px;
    }
}

/* Horizontal Match Row Layout */
.match-row {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    position: relative;
    margin-bottom: 8px;
}

.match-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.match-row.live-match {
    border-color: var(--live-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.match-teams-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.team-logo-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.match-score-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    margin: 0 12px;
}

.score {
    font-size: 18px;
    font-weight: 700;
    color: var(--live-color);
    text-align: center;
}

.vs-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.match-details-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.match-time,
.match-channel,
.match-stadium {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-weight: 500;
}

.match-time.live-time {
    color: var(--live-color);
    font-weight: 600;
}

.live-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--live-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Left Side: Team Info */
.match-teams {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.team-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.team-logo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.vs-separator {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.team-names {
    flex: 1;
    min-width: 0;
}

.match-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    line-height: 1.3;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.league-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.league-logo {
    font-size: 14px;
}

.league-name {
    font-weight: 500;
}

/* Right Side: Match Details */
.match-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
    min-width: 200px;
}

.match-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.live-indicator {
    background: var(--live-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upcoming-indicator {
    background: var(--accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score {
    font-size: 16px;
    font-weight: 700;
    color: var(--live-color);
}

.live-time {
    font-size: 12px;
    color: var(--success-color);
    font-weight: 600;
}

.countdown-timer {
    background: var(--accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 11px;
}

.match-datetime {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.match-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.location-icon {
    font-size: 14px;
}

.match-broadcast {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.broadcast-pill {
    background: var(--accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.broadcast-pill:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Live Badge */
.live-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--live-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upcoming-badge {
    position: absolute, do not add analysis.
top: 16px;
    right: 16px;
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Event Card Content */
.event-card h3 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    padding-right: 60px;
}

.event-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-card h3 a:hover {
    color: var(--accent-color);
}

.teams {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 16px;
    text-align: center;
}

/* Status Row */
.status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.live-score {
    color: var(--live-color);
    font-weight: 700;
    font-size: 16px;
}

.live-time {
    color: var(--success-color);
    font-weight: 600;
    font-size: 14px;
}

.countdown-timer {
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
}

/* Info Rows */
.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--accent-color);
}

/* Broadcast Info */
.broadcast-display {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.broadcast-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.broadcast-pill {
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.broadcast-pill:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.league {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 12px;
    margin-top: 16px;
    text-align: center;
}

/* Game Info Card (Event Detail) */
.game-info-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin: 0 auto 32px auto;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.match-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.game-detail-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
    font-size: 14px;
}

.game-detail-row:last-child {
    margin-bottom: 0;
}

.detail-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: var(--accent-color);
}

.detail-text {
    color: var(--text-secondary);
    font-weight: 500;
}

.live-status {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--live-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-top: 16px;
    text-align: center;
}

.live-indicator {
    background: var(--live-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 12px 0 8px 0;
    z-index: 1000;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 16px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    min-width: 60px;
}

.bottom-nav-item.active {
    color: var(--accent-color);
    background: var(--accent-light);
}

.bottom-nav-item:hover {
    color: var(--accent-color);
    background: var(--accent-light);
}

.bottom-nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.bottom-nav-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Floating Favorites Button */
.floating-favorites {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 999;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.floating-favorites:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
    color: white;
}

/* Comments Section */
.comments-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-top: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comments-header h2 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.comments-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.comment-form {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    font-family: inherit;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
}

.comment-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.comment-item.popular-comment {
    border-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.05);
}

.comment-item.hot-comment {
    border-color: var(--live-color);
    background: rgba(239, 68, 68, 0.05);
}

.comment-badge {
    position: absolute;
    top: -8px;
    right: 16px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popular-badge {
    background: var(--warning-color);
    color: white;
}

.hot-badge {
    background: var(--live-color);
    color: white;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-time {
    color: var(--text-muted);
    font-size: 12px;
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-actions {
    display: flex;
    gap: 12px;
}

.like-btn,
.comment-reaction-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.like-btn:hover,
.comment-reaction-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.comment-reactions {
    display: flex;
    gap: 8px;
}

/* No Events */
.no-events {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.no-events h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 12px 12px 100px 12px;
    }

    header {
        padding: 20px 16px;
    }

    header h1 {
        font-size: 24px;
    }

    .match-row {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        min-height: auto;
    }

    .match-teams-section {
        justify-content: center;
        gap: 12px;
    }

    .team-info {
        min-width: auto;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .team-logo-small {
        width: 24px;
        height: 24px;
    }

    .team-name {
        font-size: 12px;
        max-width: none;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }

    .match-score-section {
        margin: 8px 0;
    }

    .score {
        font-size: 16px;
    }

    .vs-text {
        font-size: 14px;
    }

    .match-details-section {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 12px;
    }

    .match-time,
    .match-channel,
    .match-stadium {
        justify-content: center;
        font-size: 12px;
    }

    .live-badge {
        position: static;
        align-self: center;
        margin-top: 8px;
    }

    .game-info-card {
        padding: 24px 20px;
        margin-bottom: 24px;
    }

    .match-title {
        font-size: 20px;
    }

    .country-selector-container {
        flex-direction: column;
        gap: 12px;
    }

    .status-row,
    .game-detail-row {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .favorite-teams-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }

    .sport-filter-pills {
        gap: 8px;
    }

    .sport-filter-pill {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .match-row {
        padding: 10px 12px;
    }

    .match-teams-section {
        gap: 8px;
    }

    .team-logo-small {
        width: 20px;
        height: 20px;
    }

    .team-name {
        font-size: 11px;
        max-width: 80px;
    }

    .score {
        font-size: 14px;
    }

    .vs-text {
        font-size: 12px;
    }

    .match-details-section {
        gap: 6px;
        font-size: 11px;
    }

    .match-time,
    .match-channel,
    .match-stadium {
        font-size: 11px;
        gap: 2px;
    }

    #teamSearch {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .theme-toggle {
        top: 8px;
        right: 12px;
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .theme-icon {
        font-size: 16px;
    }

    .floating-favorites {
        bottom: 80px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    /* Mobile optimizations for Quick Access */
    .quick-access-container {
        padding: 16px;
        margin-bottom: 16px;
    }

    .quick-access-container h3 {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .quick-team-btn {
        min-width: 70px;
        max-width: 75px;
        padding: 12px 8px;
    }

    .team-logo {
        font-size: 20px;
        height: 28px;
        line-height: 28px;
        margin-bottom: 4px;
    }

    .team-name {
        font-size: 10px;
        line-height: 1.1;
    }

    .search-shortcuts {
        gap: 6px;
        margin-top: 8px;
    }

    .search-shortcut-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .team-filter-banner {
        padding: 8px 16px;
        margin-bottom: 16px;
        font-size: 13px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .clear-filter-btn {
        padding: 4px 10px;
        font-size: 11px;
        align-self: center;
    }

    .search-results {
        max-height: 300px;
        margin-top: 6px;
    }

    .search-result-item {
        padding: 12px;
    }

    .match-details {
        gap: 12px;
        font-size: 11px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.match-row {
    animation: fadeInUp 0.3s ease forwards;
}

.match-row:nth-child(2) { animation-delay: 0.05s; }
.match-row:nth-child(3) { animation-delay: 0.1s; }
.match-row:nth-child(4) { animation-delay: 0.15s; }
.match-row:nth-child(5) { animation-delay: 0.2s; }
.match-row:nth-child(6) { animation-delay: 0.25s; }

/* Notification */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
}

.notification.success {
    background: var(--success-color);
}

.notification.error {
    background: var(--live-color);
}

.notification.warning {
    background: var(--warning-color);
}

.notification.info {
    background: var(--accent-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Match Event Notifications */
.match-event-notification {
    position: fixed;
    bottom: 100px;
    right: 20px;
    padding: 16px 20px;
    border-radius: var(--radius-xl);
    color: white;
    font-weight: 600;
    z-index: 10001;
    max-width: 320px;
    box-shadow: var(--shadow-lg);
    font-size: 15px;
    line-height: 1.4;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: slideInFromBottom 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    transition: all 0.3s ease;
}

.match-event-notification.goal {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: rgba(16, 185, 129, 0.5);
}

.match-event-notification.yellow-card {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: rgba(245, 158, 11, 0.5);
}

.match-event-notification.red-card {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: rgba(239, 68, 68, 0.5);
}

.match-event-notification.substitution {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: rgba(59, 130, 246, 0.5);
}

.match-event-notification .event-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.match-event-notification .event-icon {
    font-size: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.match-event-notification .event-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.match-event-notification .event-title {
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.match-event-notification .event-subtitle {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 500;
}

.match-event-notification .event-minute {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    min-width: 45px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.match-event-notification.fade-out {
    animation: fadeOutToBottom 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

/* Notification Queue Positioning */
.match-event-notification:nth-last-child(1) {
    bottom: 100px;
}

.match-event-notification:nth-last-child(2) {
    bottom: 190px;
    transform: scale(0.95);
    opacity: 0.9;
}

.match-event-notification:nth-last-child(3) {
    bottom: 270px;
    transform: scale(0.9);
    opacity: 0.8;
}

.match-event-notification:nth-last-child(4) {
    bottom: 340px;
    transform: scale(0.85);
    opacity: 0.7;
}

/* Animations */
@keyframes slideInFromBottom {
    from {
        transform: translateY(100%) translateX(20px);
        opacity: 0;
        scale: 0.8;
    }
    to {
        transform: translateY(0) translateX(0);
        opacity: 1;
        scale: 1;
    }
}

@keyframes fadeOutToBottom {
    from {
        transform: translateY(0) translateX(0);
        opacity: 1;
        scale: 1;
    }
    to {
        transform: translateY(50px) translateX(20px);
        opacity: 0;
        scale: 0.9;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .match-event-notification {
        bottom: 80px;
        right: 16px;
        left: 16px;
        max-width: calc(100vw - 32px);
        padding: 14px 16px;
        font-size: 14px;
    }

    .match-event-notification .event-icon {
        font-size: 22px;
    }

    .match-event-notification .event-title {
        font-size: 15px;
    }

    .match-event-notification .event-subtitle {
        font-size: 12px;
    }

    .match-event-notification .event-minute {
        font-size: 11px;
        padding: 3px 6px;
        min-width: 40px;
    }

    /* Mobile Queue Positioning */
    .match-event-notification:nth-last-child(1) {
        bottom: 80px;
    }

    .match-event-notification:nth-last-child(2) {
        bottom: 160px;
        transform: scale(0.95);
    }

    .match-event-notification:nth-last-child(3) {
        bottom: 230px;
        transform: scale(0.9);
    }

    .match-event-notification:nth-last-child(4) {
        bottom: 290px;
        transform: scale(0.85);
    }
}

@media (max-width: 480px) {
    .match-event-notification {
        padding: 12px 14px;
        font-size: 13px;
    }

    .match-event-notification .event-content {
        gap: 10px;
    }

    .match-event-notification .event-icon {
        font-size: 20px;
    }

    .match-event-notification .event-title {
        font-size: 14px;
    }

    .match-event-notification .event-minute {
        font-size: 10px;
        padding: 2px 5px;
        min-width: 35px;
    }
}

/* Match Events Timeline */
.match-events-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-top: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.match-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.match-events-header h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.events-last-updated {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-events-indicator {
    width: 8px;
    height: 8px;
    background: var(--live-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.match-events-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-event {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    font-size: 14px;
}

.timeline-event:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.timeline-event.home-team {
    border-left-color: var(--accent-color);
    justify-content: flex-start;
}

.timeline-event.away-team {
    border-left-color: var(--live-color);
    justify-content: flex-start;
    text-align: left;
}

.event-minute {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 45px;
    font-size: 13px;
}

.event-icon {
    font-size: 16px;
    margin: 0 12px;
    min-width: 20px;
    text-align: center;
}

.event-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-player {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.event-team {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.event-type {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: capitalize;
}

.no-events-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
}

.no-events-message .no-events-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.events-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--text-muted);
}

.events-loading .loading-spinner {
    margin-right: 12px;
}

/* Split Timeline Layout for Desktop */
@media (min-width: 768px) {
    .match-events-timeline.split-layout {
        display: grid;
        grid-template-columns: 1fr 4px 1fr;
        gap: 16px;
        position: relative;
    }

    .match-events-timeline.split-layout::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--border-color);
        transform: translateX(-50%);
    }

    .timeline-event.home-team {
        grid-column: 1;
        text-align: right;
        flex-direction: row-reverse;
    }

    .timeline-event.away-team {
        grid-column: 3;
        text-align: left;
    }

    .home-team .event-details {
        text-align: right;
    }

    .away-team .event-details {
        text-align: left;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .match-events-section {
        padding: 16px;
        margin-top: 20px;
    }

    .match-events-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .timeline-event {
        padding: 10px 12px;
        font-size: 13px;
    }

    .event-minute {
        min-width: 35px;
        font-size: 12px;
    }

    .event-icon {
        font-size: 14px;
        margin: 0 8px;
    }

    .event-player {
        font-size: 13px;
    }

    .event-team, .event-type {
        font-size: 11px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 16px;
}

.mt-4 {
    margin-top: 16px;
}

.hidden {
    display: none;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus States for Accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}