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

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --accent-color: #8b5cf6;
    --accent-secondary: #a855f7;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #8c8c8c;
    --border-color: #333333;
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #ec4899 100%);
    --gradient-hero: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.7);
}

/* Theme: Cyan & Light Green */
[data-theme="cyan-green"] {
    --accent-color: #06b6d4;
    --accent-secondary: #10b981;
    --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #10b981 50%, #34d399 100%);
}

/* Theme: Yellow & Orange */
[data-theme="yellow-orange"] {
    --accent-color: #f59e0b;
    --accent-secondary: #f97316;
    --gradient-primary: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
}

/* Theme: Pink & Baby Blue */
[data-theme="pink-blue"] {
    --accent-color: #ec4899;
    --accent-secondary: #60a5fa;
    --gradient-primary: linear-gradient(135deg, #ec4899 0%, #f472b6 50%, #60a5fa 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.app {
    min-height: 100vh;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo-svg {
    height: 2.5rem;
    width: auto;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(246deg) brightness(104%) contrast(97%);
    transition: filter 0.3s ease;
}

/* Theme-based SVG color filters */
[data-theme="cyan-green"] .logo-svg {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(162deg) brightness(118%) contrast(119%);
}

[data-theme="yellow-orange"] .logo-svg {
    filter: brightness(0) saturate(100%) invert(64%) sepia(88%) saturate(1534%) hue-rotate(21deg) brightness(100%) contrast(101%);
}

[data-theme="pink-blue"] .logo-svg {
    filter: brightness(0) saturate(100%) invert(11%) sepia(100%) saturate(4456%) hue-rotate(309deg) brightness(100%) contrast(92%);
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

.nav-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(70%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    transition: filter 0.3s ease;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(246deg) brightness(104%) contrast(97%);
}

/* Theme-based nav icon color filters */
[data-theme="cyan-green"] .nav-item:hover .nav-icon,
[data-theme="cyan-green"] .nav-item.active .nav-icon {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(162deg) brightness(118%) contrast(119%);
}

[data-theme="yellow-orange"] .nav-item:hover .nav-icon,
[data-theme="yellow-orange"] .nav-item.active .nav-icon {
    filter: brightness(0) saturate(100%) invert(64%) sepia(88%) saturate(1534%) hue-rotate(21deg) brightness(100%) contrast(101%);
}

[data-theme="pink-blue"] .nav-item:hover .nav-icon,
[data-theme="pink-blue"] .nav-item.active .nav-icon {
    filter: brightness(0) saturate(100%) invert(11%) sepia(100%) saturate(4456%) hue-rotate(309deg) brightness(100%) contrast(92%);
}

/* Mobile hamburger menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary-bg);
    z-index: 1000;
    transition: left 0.3s ease;
    padding-top: 80px;
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
    text-align: left;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

.mobile-nav-item .nav-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(70%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    transition: filter 0.3s ease;
}

.mobile-nav-item:hover .nav-icon,
.mobile-nav-item.active .nav-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(246deg) brightness(104%) contrast(97%);
}

/* Theme-based mobile nav icon color filters */
[data-theme="cyan-green"] .mobile-nav-item:hover .nav-icon,
[data-theme="cyan-green"] .mobile-nav-item.active .nav-icon {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(162deg) brightness(118%) contrast(119%);
}

[data-theme="yellow-orange"] .mobile-nav-item:hover .nav-icon,
[data-theme="yellow-orange"] .mobile-nav-item.active .nav-icon {
    filter: brightness(0) saturate(100%) invert(64%) sepia(88%) saturate(1534%) hue-rotate(21deg) brightness(100%) contrast(101%);
}

[data-theme="pink-blue"] .mobile-nav-item:hover .nav-icon,
[data-theme="pink-blue"] .mobile-nav-item.active .nav-icon {
    filter: brightness(0) saturate(100%) invert(11%) sepia(100%) saturate(4456%) hue-rotate(309deg) brightness(100%) contrast(92%);
}

.mobile-search-container {
    width: 100%;
    max-width: 300px;
    margin-top: 1rem;
}

.mobile-search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s ease;
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.mobile-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 300px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        var(--gradient-hero),
        var(--gradient-primary);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(0.5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

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

/* Main Content */
.main-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.content-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.content-scroll::-webkit-scrollbar {
    height: 6px;
}

.content-scroll::-webkit-scrollbar-track {
    background: transparent;
}

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

.content-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
    position: relative;
    min-width: 200px;
}

.content-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.content-card:hover .card-image {
    filter: brightness(1.1);
}

.card-content {
    padding: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(139, 92, 246, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    color: var(--accent-color);
}

/* AI Recommendation Styles */
.ai-explanation {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.ai-response h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ai-suggestion {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.ai-suggestion strong {
    color: var(--text-primary);
}

/* Settings Modal Styles */
.settings-modal-content {
    width: 90%;
    max-width: 700px;
    height: auto;
    max-height: 85vh;
    margin: 5vh auto;
    border-radius: 16px;
    overflow: hidden;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.settings-header {
    padding: 2.5rem 2.5rem 1.5rem;
    background: linear-gradient(135deg, var(--card-bg), var(--secondary-bg));
    border-bottom: 1px solid var(--border-color);
}

.settings-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-container {
    padding: 2rem 2.5rem;
    overflow-y: auto;
    max-height: calc(85vh - 140px);
}

.settings-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.settings-section:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.settings-select {
    background: var(--primary-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.settings-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.settings-select:hover {
    border-color: var(--accent-color);
}

.settings-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.toggle-checkbox {
    display: none;
}

.toggle-label {
    position: relative;
    width: 60px;
    height: 32px;
    background: var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-label:hover {
    background: var(--text-muted);
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-checkbox:checked + .toggle-label {
    background: var(--accent-color);
}

.toggle-checkbox:checked + .toggle-label .toggle-slider {
    transform: translateX(28px);
}

.toggle-text {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.font-upload-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.font-upload-input {
    display: none;
}

.font-upload-label {
    background: var(--primary-bg);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.font-upload-label::before {
    content: '📁';
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.font-upload-label:hover {
    border-color: var(--accent-color);
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-2px);
}

.font-upload-label.dragging {
    border-color: var(--accent-color);
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.02);
}

.font-preview {
    background: var(--primary-bg);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    display: none;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.font-preview.active {
    display: block;
}

.font-preview-text {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.font-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.font-action-btn {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.font-action-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.font-action-btn.secondary {
    background: var(--border-color);
    color: var(--text-primary);
}

.font-action-btn.secondary:hover {
    background: var(--text-muted);
}

.current-font-display {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-font-display::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
}

.settings-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.settings-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-text {
    color: #ffb347;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Sports-specific styles */
.sports-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.sports-categories {
    margin-bottom: 2rem;
}

.sports-section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.sport-category-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

.sport-category-btn:hover {
    border-color: var(--accent-color);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.sport-icon {
    font-size: 2rem;
}

.sport-name {
    font-weight: 600;
}

.matches-section {
    margin-bottom: 2rem;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.matches-scroll {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    overflow: visible;
    padding-bottom: 0;
}

.matches-scroll::-webkit-scrollbar {
    display: none;
}

.matches-scroll::-webkit-scrollbar-track {
    display: none;
}

.matches-scroll::-webkit-scrollbar-thumb {
    display: none;
}

.sports-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
    position: relative;
    min-width: 280px;
    border: 2px solid transparent;
}

.sports-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.sports-card.live {
    border-color: #ef4444;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.sports-card.live:hover {
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
}

.match-poster {
    display: none;
}

.sports-card-content {
    padding: 1.25rem;
}

.live-indicator {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

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

.match-time {
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.team-badge {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 4px;
}

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

.vs {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.match-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.match-category {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.sources-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sources-count::before {
    content: '📺';
    font-size: 0.9rem;
}

.sport-matches {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sport-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.back-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateX(-2px);
}

.sport-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: block;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--primary-bg);
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.modal-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.player-header {
    padding: 1.5rem 2rem;
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.player-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.player-controls {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.source-selector,
#season-select,
#episode-select {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 180px;
    transition: all 0.3s ease;
}

.source-selector:focus,
#season-select:focus,
#episode-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.episode-selector {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.player-container {
    flex: 1;
    position: relative;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

#player-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--primary-bg);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: row;
        gap: 1rem;
    }
    
    .nav-left {
        gap: 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .search-container {
        display: none;
    }
    
    .search-input {
        width: 250px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .content-card {
        min-width: 150px;
    }
    
    .card-image {
        height: 225px;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    
    .player-header {
        padding: 1rem;
    }
    
    .player-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .player-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .source-selector,
    #season-select,
    #episode-select {
        min-width: auto;
        width: 100%;
    }
    
    .episode-selector {
        flex-direction: column;
        gap: 1rem;
    }

    .settings-modal-content {
        width: 95%;
        margin: 2vh auto;
        max-height: 95vh;
        border-radius: 12px;
    }

    .settings-header {
        padding: 2rem 1.5rem 1rem;
    }

    .settings-title {
        font-size: 1.8rem;
    }

    .settings-container {
        padding: 1.5rem;
        max-height: calc(95vh - 120px);
    }

    .settings-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .settings-section-title {
        font-size: 1.2rem;
    }

    .font-upload-label {
        padding: 1.5rem;
    }

    .font-actions {
        flex-direction: column;
    }

    .font-action-btn {
        flex: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .content-card {
        min-width: 120px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .player-header {
        padding: 0.75rem;
    }
    
    .player-title {
        font-size: 1.3rem;
    }
}