:root {
    --bg-dark: #09090b;
    --bg-card: #18181b;
    --accent-green: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.4);
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', sans-serif; }

body { background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; }

.navbar { position: fixed; top: 0; width: 100%; background: rgba(9, 9, 11, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.05); z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 15px 20px; }
.logo { font-size: 24px; font-weight: 900; color: #fff; text-decoration: none; }
.logo span { color: var(--accent-green); }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 700; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-green); }

.hero { margin-top: 60px; padding: 100px 20px; text-align: center; background: radial-gradient(circle at center, rgba(16, 185, 129, 0.15) 0%, var(--bg-dark) 70%); }
.hero h1 { font-size: 48px; font-weight: 900; margin-bottom: 15px; }
.hero h1 span { color: var(--accent-green); text-shadow: 0 0 20px var(--accent-glow); }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 30px; line-height: 1.6; }
.btn-primary { background: var(--accent-green); color: #000; padding: 12px 30px; border-radius: 30px; text-decoration: none; font-weight: 800; font-size: 16px; transition: 0.3s; display: inline-block; box-shadow: 0 5px 15px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px var(--accent-glow); }

.main-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }
.live-badge { background: rgba(239, 68, 68, 0.1); color: #ef4444; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; animation: pulse 2s infinite; }

.matches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.match-card-web { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 25px; transition: 0.3s; cursor: pointer; position: relative; overflow: hidden; }
.match-card-web:hover { transform: translateY(-5px); border-color: var(--accent-green); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.match-card-web::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent-green); opacity: 0; transition: 0.3s; }
.match-card-web:hover::before { opacity: 1; }

.match-teams { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 30%; }
.team img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: #fff; padding: 2px; }
.team span { font-size: 15px; font-weight: 800; }
.match-score { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.match-score .vs { font-size: 24px; font-weight: 900; color: var(--text-muted); }
.match-score .time { font-size: 14px; font-weight: bold; color: var(--accent-green); }

.match-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; font-size: 13px; color: var(--text-muted); }
.watch-btn { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); border: none; padding: 6px 15px; border-radius: 8px; font-family: inherit; font-weight: bold; cursor: pointer; transition: 0.3s; }
.match-card-web:hover .watch-btn { background: var(--accent-green); color: #000; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--bg-card); width: 90%; max-width: 900px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; transform: scale(0.9); transition: 0.3s; }
.modal-overlay.active .modal-content { transform: scale(1); }

.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.close-modal { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; transition: 0.2s; }
.close-modal:hover { color: #ef4444; transform: rotate(90deg); }

.video-container { width: 100%; aspect-ratio: 16/9; background: #000; }
video { width: 100%; height: 100%; outline: none; }

.servers-panel { padding: 20px; }
.servers-panel h3 { font-size: 15px; color: var(--text-muted); margin-bottom: 15px; }
.servers-flex { display: flex; flex-wrap: wrap; gap: 10px; }
.server-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 10px 20px; border-radius: 10px; font-family: inherit; font-weight: bold; cursor: pointer; transition: 0.3s; flex-grow: 1; text-align: center; }
.server-btn:hover { background: rgba(255,255,255,0.1); }
.server-btn.active-server { background: var(--accent-green); color: #000; border-color: var(--accent-green); }

.glass-alert { position: fixed; bottom: 30px; right: -300px; background: rgba(30, 41, 59, 0.95); border-left: 4px solid var(--accent-green); color: white; padding: 15px 25px; border-radius: 8px; z-index: 9999; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: bold; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: 0.4s; }
.glass-alert.show { right: 30px; }
footer { text-align: center; padding: 30px; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.05); margin-top: 50px; font-size: 14px; }

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

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .glass-alert { bottom: auto; top: -100px; right: 50%; transform: translateX(50%); border-left: none; border-bottom: 4px solid var(--accent-green); width: 90%; }
    .glass-alert.show { top: 20px; right: 50%; }
}
