:root { --accent: #ff0000; }

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #000;
    color: white;
    overflow: hidden;
}

.app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.app::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 0;
}

.menu-btn { 
    position: absolute; 
    top: 30px; 
    left: 20px; 
    z-index: 10;
    background: rgba(0,0,0,0.6);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.logo-circle {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    border-radius: 50%;
    position: relative;
    border: 4px solid rgba(255,255,255,0.1);
    z-index: 1;
}

#logo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.audio-loader {
    position: absolute;
    inset: -4px;
    border: 4px solid transparent;
    border-top-color: #ff0000;
    border-radius: 50%;
    display: none;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.player { position: relative; z-index: 2; text-align: center; width: 85%; }

#play {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: none;
    font-size: 30px;
    background: white;
    color: black;
    cursor: pointer;
}

#status { margin: 15px 0; font-weight: bold; font-size: 14px; letter-spacing: 1px; }

.vol-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    margin-top: 20px;
}

#volume { flex: 1; accent-color: white; cursor: pointer; }

.menu {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95);
    display: none; flex-direction: column; align-items: center; justify-content: center;
    z-index: 100;
}
.menu.active { display: flex; }

.menu-close { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    font-size: 30px; 
    cursor: pointer;
    color: white;
}

#menuItems {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 80%;
    max-width: 300px;
}

.menu-link {
    color: #ff0000;
    text-decoration: none;
    font-size: 18px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 40px;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.menu-link:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

#menuItems h2 {
    color: white;
    margin-bottom: 5px;
    text-align: center;
}

#menuItems p {
    color: #ccc;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

#menuItems hr {
    width: 50%;
    border-color: #ff0000;
    margin: 10px 0;
}

.splash-screen {
    position: fixed; inset: 0; z-index: 999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #000; transition: opacity 0.5s;
}
.splash-hidden { opacity: 0; visibility: hidden; }
#splash-logo { width: 120px; margin-bottom: 20px; }
.loader { width: 30px; height: 30px; border: 3px solid #333; border-top: 3px solid #fff; border-radius: 50%; animation: spin 1s linear infinite; }

.live-banner {
    position: fixed;
    top: 30px;
    right: 20px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 40px;
    padding: 8px 16px;
    cursor: pointer;
    z-index: 15;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: pulse-live 1.5s infinite;
}

.live-banner-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.live-indicator {
    font-size: 14px;
    animation: blink 1s infinite;
}

@keyframes pulse-live {
    0% { box-shadow: 0 4px 15px rgba(255,0,0,0.3); }
    50% { box-shadow: 0 4px 25px rgba(255,0,0,0.7); }
    100% { box-shadow: 0 4px 15px rgba(255,0,0,0.3); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.video-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    position: relative;
    z-index: 2;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.close-video-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

@media (max-width: 768px) {
    .live-banner {
        top: 20px;
        right: 15px;
        padding: 6px 12px;
    }
    .video-container {
        max-width: 320px;
    }
}

/* TV Android y pantallas grandes */
@media (min-width: 1024px) {
    body {
        overflow: auto;
    }
    .app {
        height: 100vh;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 60px;
    }
    .player {
        width: 400px;
        flex-shrink: 0;
    }
    .logo-circle {
        width: 240px;
        height: 240px;
    }
    #play {
        width: 100px;
        height: 100px;
        font-size: 38px;
    }
    #status {
        font-size: 18px;
    }
    .video-container {
        max-width: 720px;
        flex: 1;
        margin: 0;
    }
    .video-container video {
        width: 100%;
        height: auto;
        max-height: 80vh;
        border-radius: 16px;
    }
    .menu-btn {
        top: 40px;
        left: 40px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    .live-banner {
        top: 40px;
        right: 40px;
        font-size: 14px;
        padding: 10px 20px;
    }
}