:root {
    --bg-color: #050507;
    --bg-glass: rgba(20, 20, 25, 0.6);
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --text-main: #f0f0f5;
    --text-muted: #9ba1b0;
    
    --accent-primary: #00ff88;
    --accent-primary-glow: rgba(0, 255, 136, 0.3);
    --accent-secondary: #00c3ff;
    --accent-danger: #ff3366;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

/* Typography Utilities */
.accent-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.pulse-text {
    color: var(--accent-danger);
    animation: pulse 2s infinite;
}

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

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Glassmorphism */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    transition: var(--transition);
}

.glass-card.interactive:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.live-badge {
    background-color: rgba(255, 51, 102, 0.15);
    color: var(--accent-danger);
    border: 1px solid rgba(255, 51, 102, 0.3);
    margin-bottom: 1rem;
}

.viewers-badge {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    backdrop-filter: blur(4px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 15px var(--accent-primary-glow);
}

.btn-primary:hover {
    background-color: #00e67a;
    box-shadow: 0 0 25px var(--accent-primary-glow);
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-accent {
    color: var(--accent-primary);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-danger);
    border-radius: 50%;
    margin-left: 6px;
    margin-bottom: 12px;
    box-shadow: 0 0 8px var(--accent-danger);
    animation: pulse 2s infinite;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 195, 255, 0.15) 0%, rgba(0, 255, 136, 0.05) 50%, rgba(5, 5, 7, 0) 70%);
    filter: blur(60px);
    z-index: -1;
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Match Cards */
.match-card, .hero-featured-match {
    padding: 1.5rem;
}

.hero-featured-match {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.05);
}

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

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

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 30%;
}

.team-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

/* Mock Logos using gradients/colors */
.rm-logo { background: linear-gradient(135deg, #fff 0%, #eee 100%); border: 3px solid #ffcc00; }
.mci-logo { background: linear-gradient(135deg, #6caddf 0%, #9bcbf1 100%); }
.ars-logo { background: linear-gradient(135deg, #ef0107 0%, #b30005 100%); }
.liv-logo { background: linear-gradient(135deg, #c8102e 0%, #900b21 100%); }
.bay-logo { background: linear-gradient(135deg, #dc052d 0%, #9c0320 100%); }
.psg-logo { background: linear-gradient(135deg, #004170 0%, #002d4f 100%); border: 2px solid #da291c; }

.team-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
}

.score {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    min-width: 60px;
    text-align: center;
    border: 1px solid var(--border-glass);
}

.score-divider {
    color: var(--text-muted);
}

.match-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

.scorer-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.25rem;
}

.view-all {
    color: var(--text-muted);
    font-weight: 500;
}

.view-all:hover {
    color: var(--accent-primary);
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Normal Match Card Tweaks */
.match-card .team-logo {
    width: 48px;
    height: 48px;
}

.match-card .team-name {
    font-size: 0.95rem;
}

.match-card .score-display {
    font-size: 2rem;
}

.match-card .score {
    padding: 0.25rem 0.75rem;
    min-width: 45px;
    border-radius: 8px;
}

/* Streams Grid */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.stream-thumbnail {
    height: 200px;
    background-color: #222;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 16px 16px 0 0;
}

/* Mock Thumbnails with Gradients */
.stream-1 { background: linear-gradient(45deg, #1a1a2e, #16213e); }
.stream-2 { background: linear-gradient(45deg, #0f2027, #203a43, #2c5364); }
.stream-3 { background: linear-gradient(45deg, #23074d, #cc5333); }

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.stream-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 136, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.8);
    transition: var(--transition);
}

.stream-card:hover .play-icon {
    transform: scale(1);
}

.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #000;
    margin-left: 5px;
}

.stream-thumbnail .badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.stream-info {
    padding: 1.25rem;
}

.stream-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.stream-channel {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: rgba(0,0,0,0.5);
    border-top: 1px solid var(--border-glass);
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-group a {
    color: var(--text-muted);
}

.link-group a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Score Animation Class */
.score-changed {
    animation: scoreFlash 1s ease-out;
}

@keyframes scoreFlash {
    0% { background-color: var(--accent-primary); color: #000; transform: scale(1.1); }
    100% { background-color: rgba(0, 0, 0, 0.4); color: var(--text-main); transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-bg-glow {
        top: 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

}

@media (max-width: 768px) {
    .nav-links, .navbar .btn-primary {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .score-display {
        font-size: 2.5rem;
    }
}

/* Player Section */
.player-section {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

.video-container {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
}

.player-controls-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-panel {
    padding: 1.5rem;
}

.control-panel h3 {
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-panel h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.option-btn.active {
    background: var(--accent-primary-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.15);
}

@media (max-width: 992px) {
    .player-section {
        grid-template-columns: 1fr;
    }
}
