/* PROJECT: 32Beats Radio & TV - Global Identity
   VERSION: 3.2 (Adaptive Vertical/Horizontal Live)
   DESCRIPTION: High-End Neon-Glass Interface with Smart Orientation Detection
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&family=Syncopate:wght@400;700&display=swap');

:root {
    --primary: #FF4E00;
    --secondary: #00AEEF;
    --bg-dark: #020202;
    --glass-bg: rgba(0, 0, 0, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-glow: rgba(255, 78, 0, 0.3);
}

* { 
    box-sizing: border-box; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}

body {
    margin: 0;
    background-color: var(--bg-dark);
    /* Gradiente + Imagen de fondo adaptativa */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../img/background-dj.png') no-repeat right center fixed;
    background-size: cover;
    color: #FFF;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animaciones de Entrada */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal { animation: fadeInUp 0.8s ease forwards; }

/* Header Central */
.brand-header {
    width: 100%;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.brand-logo-img {
    height: 140px; 
    filter: drop-shadow(0 0 20px rgba(255, 78, 0, 0.4));
    cursor: pointer;
}

/* Navegación Glassmorphism */
.tab-nav {
    display: inline-flex;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 6px;
    border-radius: 100px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 10;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 12px 30px;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 100px;
    letter-spacing: 2px;
}

.tab-btn.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 10px 20px var(--accent-glow);
}

/* --- CONTENEDOR PRINCIPAL INTELIGENTE --- */
.main-display {
    width: 90%;
    max-width: 1100px;
    background: #000;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
}

/* Adaptación por Orientación (Usa el mismo ID de YT pero cambia el marco) */
@media (orientation: landscape) {
    .main-display {
        aspect-ratio: 16 / 9;
    }
}

@media (orientation: portrait) {
    .main-display {
        aspect-ratio: 9 / 16;
        max-width: 450px; /* Tamaño optimizado para celular */
        width: 85%;
    }
    .brand-logo-img { height: 90px; }
    .tab-btn { padding: 10px 20px; font-size: 0.6rem; }
}

.video-wrapper { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}

iframe { 
    width: 100%; 
    height: 100%; 
    border: none; 
}

/* Sección Emisora Pro */
.radio-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000 100%);
    padding: 20px;
}

.visualizer-pro {
    width: 150px;
    height: 150px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 30px;
}

.visualizer-pro::before {
    content: "";
    position: absolute;
    width: 100%; height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: ripple 2.5s infinite linear;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

audio {
    width: 80%;
    max-width: 300px;
    filter: invert(1) hue-rotate(180deg) brightness(1.5);
    opacity: 0.9;
}

/* Footer Corporativo */
footer {
    margin: 40px 0;
    text-align: center;
    font-size: 0.65rem;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Syncopate', sans-serif;
    padding: 0 20px;
}

.hidden { display: none !important; }

/* Ajuste de fondo para móviles */
@media (max-width: 768px) {
    body {
        background-position: center center;
    }
}