@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
        
:root { --bg-dark: #020617; --card-bg: rgba(255, 255, 255, 0.03); --border-glass: rgba(255, 255, 255, 0.08); --accent-primary: #00C6FF; --accent-secondary: #0072FF; --text-main: #F8FAFC; --text-dim: #94A3B8; --header-bg: rgba(2, 6, 23, 0.85); }
body.light-mode { --bg-dark: #F0F4F8; --card-bg: #FFFFFF; --border-glass: rgba(0, 0, 0, 0.1); --accent-primary: #0072FF; --accent-secondary: #00C6FF; --text-main: #0F172A; --text-dim: #475569; --header-bg: rgba(255, 255, 255, 0.9); }
* { 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; transition: background 0.4s ease, color 0.4s ease; }

.mks-splash { position: fixed; inset: 0; background: #050505; z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.8s ease; overflow: hidden; }
.mks-splash.hidden { opacity: 0; pointer-events: none; }
.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-header { background: var(--header-bg); backdrop-filter: blur(20px); padding: 16px 20px; 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; background: linear-gradient(90deg, #fff, var(--accent-primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-transform: uppercase; }
.container { max-width: 800px; margin: 0 auto; padding: 15px; }

.player-wrapper { background: #000; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 16/9; border: 1px solid var(--border-glass); touch-action: none; box-shadow: 0 10px 30px rgba(0, 198, 255, 0.1); transition: all 0.4s ease; }
.mks-watermark { position: absolute; top: 15px; left: 15px; z-index: 40; font-size: 16px; font-weight: 900; font-style: italic; letter-spacing: 2px; background: linear-gradient(90deg, #FFFFFF, #00F2FE, #FFFFFF); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shineText 3s linear infinite; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.9)); pointer-events: none; user-select: none; text-transform: uppercase; transition: opacity 0.3s; }
.mks-watermark.hidden { opacity: 0; pointer-events: none; }
@keyframes shineText { to { background-position: 200% center; } }
video { width: 100%; height: 100%; object-fit: contain; transform-origin: center; transition: object-fit 0.3s ease; pointer-events: auto; cursor: pointer; }
.swipe-feedback { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); padding: 15px 25px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.swipe-feedback.show { opacity: 1; }
.swipe-feedback i { font-size: 24px; color: var(--accent-primary); }
.swipe-feedback span { font-size: 14px; font-weight: 700; color: #fff; }

.floating-controls { position: absolute; top: 12px; right: 12px; z-index: 50; display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.6); padding: 5px 10px; border-radius: 25px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); pointer-events: auto; transition: opacity 0.4s ease, transform 0.4s ease; }
.floating-controls.hidden { opacity: 0; transform: translateY(-10px); pointer-events: none; display: none !important; }
.float-btn { background: transparent; color: #fff; border: none; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: 0.3s; padding: 5px 8px; text-transform: uppercase; border-radius: 15px;}
.float-btn:hover { color: var(--accent-primary); background: rgba(255,255,255,0.1); }

.live-badge { position: absolute; top: 12px; left: 150px; 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: 700; display: flex; align-items: center; gap: 5px; backdrop-filter: blur(5px); transition: opacity 0.4s ease; }
.live-badge.hidden { opacity: 0; pointer-events: none; }
.dot { width: 6px; height: 6px; background: #EF4444; border-radius: 50%; animation: pulseRed 1.5s infinite; }
.viewers-badge { position: absolute; top: 12px; left: 220px; z-index: 50; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 5px; backdrop-filter: blur(5px); transition: opacity 0.4s ease; }
.viewers-badge.hidden { opacity: 0; pointer-events: none; }
.viewers-badge i { color: var(--accent-primary); animation: blink 2s infinite; }

.pwd-overlay, .cinema-overlay { position: absolute; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.pwd-overlay { position: fixed; background: rgba(0,0,0,0.85); z-index: 2000; }
.pwd-overlay.active { display: flex; }
.cinema-overlay { position: fixed; background: rgba(0,0,0,0.95); z-index: 90; opacity: 0; transition: opacity 0.5s ease; cursor: pointer; display: block; pointer-events: none; }
body.cinema-active .cinema-overlay { opacity: 1; pointer-events: auto; }
body.cinema-active .player-wrapper { z-index: 100; position: relative; box-shadow: 0 0 50px rgba(0, 198, 255, 0.2); }

.lock-overlay { position: absolute; inset: 0; z-index: 999; display: none; background: transparent; }
.lock-overlay.active { display: block; }
.btn-unlock { position: absolute; top: 20px; left: 20px; background: rgba(0,0,0,0.5); border: 2px solid var(--accent-primary); color: #fff; width: 45px; height: 45px; border-radius: 50%; font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 15px rgba(0, 198, 255, 0.3); backdrop-filter: blur(5px); transition: 0.3s opacity; opacity: 0.6; padding: 0; z-index: 1000; }
.btn-unlock:hover { opacity: 1; }

.pwd-box { background: #030712; border: 1px solid rgba(0, 198, 255, 0.3); border-radius: 16px; padding: 30px 20px; width: 90%; max-width: 350px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.pwd-box h3 { color: var(--text-main); margin-bottom: 8px; font-weight: 800; font-size: 18px; }
.pwd-box h3 i { color: var(--accent-primary); margin-right: 5px; }
.pwd-box p { color: var(--text-dim); font-size: 12px; margin-bottom: 20px; }
.pwd-input { width: 100%; padding: 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.5); color: #fff; margin-bottom: 15px; outline: none; text-align: center; letter-spacing: 2px; }
.pwd-actions { display: flex; gap: 10px; }
.pwd-btn { flex: 1; padding: 12px; border-radius: 10px; border: none; font-weight: 800; cursor: pointer; font-size: 13px; text-transform: uppercase; }
.pwd-btn.cancel { background: rgba(255,255,255,0.05); color: var(--text-dim); border: 1px solid rgba(255,255,255,0.1); }
.pwd-btn.submit { background: linear-gradient(135deg, #00C6FF, #0072FF); color: #000; box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3); }

.ripple-overlay { position: absolute; top: 0; bottom: 0; width: 30%; background: rgba(255,255,255,0.15); z-index: 45; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.ripple-left { left: 0; border-top-right-radius: 50%; border-bottom-right-radius: 50%; }
.ripple-right { right: 0; border-top-left-radius: 50%; border-bottom-left-radius: 50%; }
.ripple-text { font-size: 14px; font-weight: 800; text-shadow: 0 2px 5px #000; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; }
.show-ripple { opacity: 1; animation: rippleFade 0.6s ease-out; }
@keyframes rippleFade { 0% { opacity: 1; } 100% { opacity: 0; } }
@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); } }
@keyframes chamakRed { 0% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.1); } 50% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); } 100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.1); } }
.action-tray { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 15px; }
.btn-action { background: var(--card-bg); border: 1px solid var(--border-glass); color: var(--text-main); padding: 12px 5px; border-radius: 10px; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 6px; transition: 0.3s; }
.btn-refresh { background: linear-gradient(135deg, #00C6FF, #0072FF); color: #FFF; border: none; font-weight: 800; animation: chamakBlue 2s infinite; }

.utility-tray { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.btn-utility { border: none; color: #FFF; padding: 12px 5px; border-radius: 10px; font-size: 11px; font-weight: 800; cursor: pointer; text-align: center; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-unmute { background: linear-gradient(135deg, #00C6FF, #0072FF); color: #000; animation: chamakBlue 2s infinite; }
.btn-live-sync { background: linear-gradient(135deg, #ff416c, #ff4b2b); animation: chamakRed 2s infinite; }

.btn-data-saver { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.btn-data-saver.active { background: linear-gradient(135deg, #11998e, #38ef7d) !important; color: #000 !important; border: none; box-shadow: 0 0 15px rgba(56, 239, 125, 0.4); }

.social-tray, .server-grid { display: grid; gap: 10px; margin-top: 10px; }
.social-tray { grid-template-columns: 1fr 1fr; }
.btn-social { padding: 14px; border-radius: 10px; font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; color: #fff; display: flex; justify-content: center; align-items: center; gap: 8px; }
.tele { background: linear-gradient(135deg, #0088cc, #00aaff); } .yt { background: linear-gradient(135deg, #ff0000, #ff4d4d); }
.wa { grid-column: span 2; background: linear-gradient(135deg, #25D366, #128C7E); font-size: 14px; letter-spacing: 1px;}
.server-grid { grid-template-columns: repeat(2, 1fr); }
.section-heading { font-size: 13px; color: var(--text-dim); text-transform: uppercase; font-weight: 800; letter-spacing: 2px; margin: 25px 0 12px 5px; display: flex; align-items: center; gap: 8px; }
.server-card { background: var(--card-bg); border: 1px solid var(--border-glass); padding: 16px 8px; border-radius: 12px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: 0.3s; }
.server-card i, .server-card span { color: var(--text-dim); transition: 0.3s; font-size: 22px; } .server-card span { font-size: 13px; font-weight: 600; }
.server-card.active { border-color: var(--accent-primary); background: rgba(0, 198, 255, 0.05); animation: chamakBlue 3s infinite; transform: translateY(-3px); }
.server-card.active i, .server-card.active span { color: var(--accent-primary); }

.quality-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.85); z-index: 60; display: none; flex-direction: column; align-items: center; justify-content: center; backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s; pointer-events: auto; }
.quality-overlay.active { display: flex; opacity: 1; }
.q-box { background: var(--bg-dark); border: 1px solid var(--accent-primary); border-radius: 12px; width: 220px; max-height: 90%; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 0 20px rgba(0, 198, 255, 0.2); }
.q-header { background: rgba(0, 198, 255, 0.1); padding: 12px; font-size: 14px; font-weight: 700; text-align: center; border-bottom: 1px solid rgba(0, 198, 255, 0.2); position: relative; color: var(--accent-primary); }
.q-close { position: absolute; right: 12px; top: 12px; cursor: pointer; color: var(--text-main); }
#quality-list { flex-grow: 1; overflow-y: auto; }
.q-item { padding: 12px; font-size: 13px; font-weight: 600; text-align: center; color: var(--text-main); cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.2s; }
.q-item:hover, .q-item.active { background: rgba(0, 198, 255, 0.15); color: var(--accent-primary); }
.loader { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 45px; height: 45px; border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid var(--accent-primary); border-radius: 50%; animation: spin 1s linear infinite; display: none; z-index: 40; box-shadow: 0 0 15px var(--accent-primary); }
@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
.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); line-height: 1.6; }
