:root {
    --bg-dark: #020617; 
    --card-bg: rgba(255, 255, 255, 0.03); 
    --border-glass: rgba(255, 255, 255, 0.08); 
    --accent-primary: #00C6FF; 
    --text-main: #F8FAFC; 
    --text-dim: #94A3B8;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg-dark); color: var(--text-main); overflow-x: hidden; }

/* 🔥 SPLASH SCREEN ANIMATIONS */
.mks-splash { position: fixed; inset: 0; background: #050505; z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.8s ease; }
.mks-splash-glow { position: absolute; width: 300px; height: 300px; background: radial-gradient(circle, rgba(220, 38, 38, 0.25) 0%, transparent 70%); animation: breathe 3s infinite alternate; }
@keyframes breathe { 0% { transform: scale(0.8); opacity: 0.5; } 100% { transform: scale(1.2); opacity: 1; } }
.mks-anim-box { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; }
.mks-letters { display: flex; align-items: center; font-size: 75px; font-weight: 900; font-style: italic; letter-spacing: 2px; z-index: 2; margin-bottom: -5px; }
.letter { opacity: 0; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.8)); }
.letter.m { color: #F8FAFC; animation: appear 0.4s ease-out 0.3s forwards; }
.letter.k { color: #F8FAFC; animation: appear 0.4s ease-out 0.8s forwards; }
.letter.s { color: #DC2626; animation: slideInS 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.3s forwards; }
.sports-word { font-size: 20px; font-weight: 800; letter-spacing: 16px; margin-right: -16px; color: #FFFFFF; background: linear-gradient(90deg, #FFFFFF, #94A3B8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-transform: uppercase; opacity: 0; transform: translateY(-60px); z-index: 1; animation: dropSports 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.8s forwards; }

@keyframes appear { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes slideInS { 0% { opacity: 0; transform: translateX(80px) skewX(-15deg); } 100% { opacity: 1; transform: translateX(0) skewX(0); } }
@keyframes dropSports { 0% { opacity: 0; transform: translateY(-60px); } 100% { opacity: 1; transform: translateY(0); } }

/* APP UI */
.app-header { background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(20px); padding: 16px; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-glass); text-align: center; }
.logo { font-size: 20px; font-weight: 900; letter-spacing: 1px; color: #fff; text-transform: uppercase; }
.logo span { color: var(--accent-primary); }

.container { max-width: 800px; margin: 0 auto; padding: 15px; }

/* PLAYER */
.player-wrapper { background: #000; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 16/9; border: 1px solid var(--border-glass); box-shadow: 0 10px 30px rgba(0, 198, 255, 0.1); margin-bottom: 20px;}
#video-container { width: 100%; height: 100%; position: relative;}
video { width: 100%; height: 100%; object-fit: contain; }
.mks-watermark { position: absolute; top: 15px; right: 15px; z-index: 40; font-size: 14px; font-weight: 900; font-style: italic; color: rgba(255,255,255,0.4); pointer-events: none; }
.live-badge { position: absolute; top: 15px; left: 15px; z-index: 50; background: rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.5); color: #EF4444; padding: 4px 10px; border-radius: 6px; font-size: 10px; font-weight: 800; display: flex; align-items: center; gap: 5px; }
.dot { width: 6px; height: 6px; background: #EF4444; border-radius: 50%; animation: pulseRed 1.5s infinite; }

/* BUTTONS */
.action-tray, .utility-tray, .social-tray { display: grid; gap: 10px; margin-bottom: 15px; }
.action-tray { grid-template-columns: 1fr 1fr 1fr; }
.utility-tray { grid-template-columns: 1fr 1fr; }
.social-tray { grid-template-columns: 1fr 1fr; }

.btn-action, .btn-utility, .btn-social { border: none; padding: 12px; border-radius: 10px; font-size: 12px; font-weight: 800; cursor: pointer; text-align: center; color: #fff; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-action { background: var(--card-bg); border: 1px solid var(--border-glass); }
.btn-refresh { background: linear-gradient(135deg, #00C6FF, #0072FF); animation: chamakBlue 2s infinite; border: none;}
.btn-unmute { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
.btn-share { background: linear-gradient(135deg, #25D366, #128C7E); }
.tele { background: linear-gradient(135deg, #0088cc, #00aaff); } 
.yt { background: linear-gradient(135deg, #ff0000, #ff4d4d); }

@keyframes chamakBlue { 0% { box-shadow: 0 0 5px rgba(0, 198, 255, 0.1); } 50% { box-shadow: 0 0 15px rgba(0, 198, 255, 0.4); } 100% { box-shadow: 0 0 5px rgba(0, 198, 255, 0.1); } }

/* CHANNELS GRID */
.section-heading { font-size: 13px; color: var(--text-dim); text-transform: uppercase; font-weight: 800; letter-spacing: 2px; margin: 10px 0; }
.server-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.server-card { background: var(--card-bg); border: 1px solid var(--border-glass); padding: 15px 10px; border-radius: 12px; text-align: center; cursor: pointer; transition: 0.3s; }
.server-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.server-card span { font-size: 10px; color: var(--text-dim); background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 4px;}
.server-card.active { border-color: var(--accent-primary); background: rgba(0, 198, 255, 0.05); transform: translateY(-2px); }
.server-card.active h4 { color: var(--accent-primary); }

.glowing-footer { margin-top: 25px; padding: 15px; text-align: center; color: var(--text-dim); font-size: 11px; background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-glass); }
.glowing-footer strong { color: var(--accent-primary); }
