:root {
    --primary: #00f2ff;
    --secondary: #ff0055;
    --glass: rgba(255, 255, 255, 0.08);
    --bg-dark: #0a0a12;
}

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

body {
    background: var(--bg-dark);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    -webkit-user-select: none; user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.area { position: fixed; width: 100%; height: 100%; z-index: -1; background: #080b14; }
.circles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.circles li {
    position: absolute; display: block; list-style: none; width: 20px; height: 20px;
    background: rgba(255, 255, 255, 0.1); animation: animate 25s linear infinite; bottom: -150px;
}
.circles li:nth-child(1){ left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.circles li:nth-child(2){ left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.circles li:nth-child(3){ left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.circles li:nth-child(4){ left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.circles li:nth-child(5){ left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.circles li:nth-child(6){ left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.circles li:nth-child(7){ left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.circles li:nth-child(8){ left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.circles li:nth-child(9){ left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.circles li:nth-child(10){ left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }

@keyframes animate {
    0%{ transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0; }
    100%{ transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}

.main-container {
    width: 100%; max-width: 800px; padding: 15px; z-index: 10; padding-bottom: 50px;
}

.glass-header {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--glass); backdrop-filter: blur(10px);
    padding: 12px 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.logo-section { display: flex; align-items: center; gap: 12px; }
.logo-section i { font-size: 1.8rem; color: var(--primary); }
.logo-section h1 { font-size: 1.3rem; line-height: 1.1; margin: 0; font-weight: 800; }
.highlight { color: #ffd700; }
.subtitle { font-size: 0.7rem; color: #aaa; letter-spacing: 1px; display: block; text-transform: uppercase; }

.live-indicator {
    background: rgba(255, 0, 85, 0.1); color: var(--secondary);
    padding: 5px 12px; border-radius: 50px; font-weight: bold; 
    border: 1px solid var(--secondary); display: flex; align-items: center; gap: 6px; 
    font-size: 0.8rem; white-space: nowrap; box-shadow: 0 0 10px rgba(255, 0, 85, 0.2);
}
.blink-dot { width: 8px; height: 8px; background: var(--secondary); border-radius: 50%; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.player-wrapper {
    background: #000; border-radius: 15px; overflow: hidden; position: relative;
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.15); border: 1px solid #222;
}
.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: black; }
video { width: 100%; height: 100%; object-fit: contain; }

.custom-controls {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;
    z-index: 20; opacity: 1; transition: opacity 0.3s ease;
}
.controls-hidden { opacity: 0; pointer-events: none; }
.controls-left, .controls-right { display: flex; align-items: center; gap: 15px; }
.control-icon {
    background: none; border: none; color: white; font-size: 1.4rem; cursor: pointer;
    opacity: 0.8; padding: 5px; transition: 0.2s;
}
.control-icon:hover { color: var(--primary); transform: scale(1.15); opacity: 1; }
.live-badge-player {
    background: red; color: white; font-size: 0.75rem; padding: 3px 8px;
    border-radius: 4px; font-weight: bold; letter-spacing: 0.5px;
}

.loading-wave {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: none; align-items: center; gap: 6px; z-index: 5;
}
.loading-wave .bar {
    width: 6px; height: 30px; background: var(--primary); border-radius: 3px;
    animation: wave 1s ease-in-out infinite;
}
.loading-wave .bar:nth-child(2) { animation-delay: 0.1s; background: white; }
.loading-wave .bar:nth-child(3) { animation-delay: 0.2s; background: var(--secondary); }
.loading-wave .bar:nth-child(4) { animation-delay: 0.3s; background: var(--primary); }
@keyframes wave { 0%, 100% { height: 15px; } 50% { height: 40px; } }

.force-landscape {
    position: fixed !important; top: 50% !important; left: 50% !important;
    width: 100vh !important; height: 100vw !important;
    transform: translate(-50%, -50%) rotate(90deg) !important;
    z-index: 99999 !important; background: black; border-radius: 0 !important; margin: 0 !important;
}
.force-landscape .video-frame { width: 100%; height: 100%; }
.force-landscape .custom-controls { padding: 20px 60px; } 
.theater-mode {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9999; border-radius: 0; max-width: none;
}
.theater-mode .video-frame { height: 100vh; }

.glass-panel {
    background: var(--glass); backdrop-filter: blur(12px);
    padding: 20px; border-radius: 16px; margin-top: 25px; text-align: center;
    border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.glass-panel h3 { color: #fff; margin-bottom: 15px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }

.server-list { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 10px; }
.server-btn {
    width: 100%; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1); padding: 18px; border-radius: 12px;
    cursor: pointer; transition: 0.3s; display: flex; justify-content: space-between; align-items: center;
    color: #ccc; text-align: left; font-size: 1.1rem; font-weight: bold;
}
.server-btn small { font-size: 0.8rem; font-weight: normal; opacity: 0.7; }
.server-btn:hover { background: rgba(255,255,255,0.1); transform: translateX(5px); border-color: rgba(255,255,255,0.3); }
.server-btn.active {
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.15), rgba(0,0,0,0));
    border-left: 4px solid var(--primary); border-color: rgba(0, 242, 255, 0.3); color: white;
}
.server-btn.active span { color: var(--primary); text-shadow: 0 0 15px rgba(0,242,255,0.5); }

#status-msg { margin-top: 15px; color: var(--primary); font-size: 0.9rem; font-weight: 500; }

.social-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.social-btn {
    padding: 15px; border-radius: 10px; text-decoration: none; color: white; 
    font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 10px; 
    font-size: 1rem; width: 100%; transition: 0.3s;
}
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.whatsapp { background: linear-gradient(45deg, #25d366, #128c7e); }
.youtube { background: linear-gradient(45deg, #ff0000, #b30000); }

footer { margin-top: 40px; text-align: center; color: #666; font-size: 0.85rem; padding-bottom: 30px; }
.owner-tag strong { color: #ffd700; }

@media (max-width: 480px) {
    .glass-header { padding: 10px 15px; }
    .logo-section i { font-size: 1.5rem; }
    .logo-section h1 { font-size: 1.1rem; }
    .server-btn { padding: 15px; font-size: 1rem; }
}
