:root {
    --primary: #00ffa3; /* Modern Neon Green */
    --primary-dark: #00cc82;
    --bg-dark: #0f172a; /* Deep Navy Blue/Black */
    --bg-card: #1e293b;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --danger: #ef4444;
    --font-main: 'Inter', 'Padauk', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    background-image: radial-gradient(circle at top center, #1a2c4e 0%, #0f172a 60%);
    min-height: 100vh;
}

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

/* Header Styling */
.glass-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.brand { display: flex; align-items: center; gap: 15px; }
.logo { height: 50px; width: 50px; border-radius: 50%; border: 2px solid var(--primary); object-fit: cover; }
.brand-text h1 { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -0.5px; }
.brand-text p { font-size: 0.8rem; color: var(--text-gray); font-weight: 600; margin-top: 2px; }

/* Live Badge Pulse */
.live-badge {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.dot {
    width: 8px; height: 8px; background: var(--danger); border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* Player Section */
.player-section { margin-top: 30px; }
.player-box {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px -12px rgba(0, 255, 163, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#stream { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.loading {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary);
}
.spinner {
    width: 40px; height: 40px; border: 3px solid rgba(0, 255, 163, 0.3);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Controls */
.stream-controls {
    background: var(--bg-card);
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.server-status { color: var(--primary); font-weight: 600; font-size: 0.95rem; }
.buttons { display: flex; gap: 10px; }

.btn {
    padding: 10px 20px; border: none; border-radius: 8px;
    font-weight: 600; cursor: pointer; font-family: var(--font-main);
    transition: all 0.3s ease; display: flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* Schedule Section */
.schedule { margin: 60px auto; }
.section-title { text-align: center; margin-bottom: 40px; position: relative; }
.section-title h2 { font-size: 1.8rem; color: #fff; margin-bottom: 10px; }
.section-title .line { width: 60px; height: 4px; background: var(--primary); margin: 0 auto; border-radius: 2px; }

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Match Card Design */
.match-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    border-color: var(--primary);
}

.league {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-gray); margin-bottom: 15px;
}

.teams {
    font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 15px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.vs { color: var(--primary); font-size: 0.9rem; opacity: 0.8; }

.match-time {
    background: rgba(255,255,255,0.05); display: inline-block;
    padding: 6px 12px; border-radius: 6px; font-size: 0.9rem; color: var(--primary);
    margin-bottom: 15px;
}

.watch-btn {
    width: 100%; padding: 12px; background: transparent;
    border: 1px solid var(--primary); color: var(--primary);
    border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.match-card:hover .watch-btn { background: var(--primary); color: #000; }

/* Footer */
footer {
    text-align: center; padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-gray); margin-top: auto;
}
.footer-sub { font-size: 0.85rem; margin-top: 5px; opacity: 0.7; }

/* Mobile Tweaks */
@media (max-width: 768px) {
    .stream-controls { flex-direction: column; align-items: stretch; text-align: center; }
    .buttons { justify-content: center; }
    .brand-text h1 { font-size: 1.2rem; }
}
