/* Permitir mayor anchura en el chat IRC */
.irc-chat-container {
    width: 100%;
    max-width: 420px;
    margin: 2.5em auto 2em auto;
    padding: 1.5em 1.2em 1.2em 1.2em;
    border-radius: 14px;
    box-shadow: 0 0 18px #ff003c, 0 0 28px #00b4ff;
    border: 2.5px double #00fff7;
    background: #181830 !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.2em;
}
.irc-messages, .irc-users {
    max-width: none !important;
}
html, body {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}
/* Mensaje Coming Soon para TV */
.player-tv {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10,16,32,0.92);
    border-radius: 14px;
    box-shadow: 0 0 18px #ff003c, 0 0 28px #00b4ff;
    max-width: 420px;
    width: 100%;
    margin: 2.5em auto 2em auto;
}

/* Solo para la pestaña TV: sin fondo, sin borde, sin sombra, ocupa todo el ancho */
#player-tv {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: unset !important;
    display: none !important;
    text-align: center;
}

#player-tv.active-tab {
    display: block !important;
}
.coming-soon-msg {
    font-family: 'Orbitron', 'VT323', monospace;
    font-size: 2.1em;
    color: #00fff7;
    text-shadow: 0 0 18px #00fff7, 0 0 40px #ff003c;
    letter-spacing: 0.12em;
    padding: 1.2em 0.5em;
}
/* --- Pestañas principales --- */

/* --- Pestañas integradas en la cabecera --- */
.main-tabs {
    display: flex;
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: linear-gradient(90deg, #181828 0%, #23234a 100%);
    box-shadow: 0 2px 24px 0 #0a0a1a99;
    border-bottom: 2.5px solid #00fff7;
}
.main-tabs-bg {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.main-tabs .tab-btn {
    position: relative;
    z-index: 1;
}
.tab-btn {
    flex: 1 1 0;
    background: transparent;
    color: #00fff7;
    border: none;
    border-bottom: 3.5px solid transparent;
    font-family: 'Orbitron', 'VT323', monospace;
    font-weight: 700;
    font-size: 1.18em;
    padding: 1.1em 0 0.7em 0;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.33s cubic-bezier(.4,2,.6,1), color 0.18s, border-bottom 0.33s cubic-bezier(.4,2,.6,1);
    outline: none;
    text-align: center;
    letter-spacing: 0.04em;
}
/* Make the active tab background semi-transparent to show VHS effect */
.tab-btn.active, .tab-btn:focus {
    background: linear-gradient(90deg, rgba(35,35,74,0.82) 0%, rgba(24,24,40,0.82) 100%);
    color: #fff;
    border-bottom: 3.5px solid #ff003c;
    z-index: 101;
}
.tab-btn:not(.active):hover {
    background: rgba(0,255,247,0.07);
    color: #ff003c;
    border-bottom: 3.5px solid #00fff7;
}
body {
    padding-top: 3.2em;
}
@media (max-width: 600px) {
    .main-tabs {
        font-size: 0.98em;
    }
    .tab-btn {
        font-size: 0.98em;
        padding: 0.7em 0 0.5em 0;
    }
    body {
        padding-top: 2.2em;
    }
    .irc-chat-container {
        max-width: 98vw;
        padding: 1em 0.2em 1em 0.2em;
    }
    .irc-messages, .irc-users {
        min-width: 0;
        max-width: 100%;
        font-size: 0.98em;
    }
    #irc-chat-form {
        flex-direction: column;
        gap: 0.5em;
        width: 100%;
        max-width: 100%;
    }
}
.player-minimal select#station-select {
    background: #181828;
    border: 2px solid #00fff7;
    color: #00fff7;
    font-family: 'VT323', 'Orbitron', monospace;
    font-size: 1.1em;
    border-radius: 8px;
    padding: 0.25em 1.2em 0.25em 0.7em;
    box-shadow: 0 0 12px #00fff7, 0 0 18px #ff003c;
    outline: none;
    margin-left: 0.5em;
    margin-right: 0.5em;
    transition: border 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}
.player-minimal select#station-select:focus, .player-minimal select#station-select:hover {
    border: 2px solid #ff003c;
    box-shadow: 0 0 24px #ff003c, 0 0 32px #00b4ff;
    color: #ff003c;
}
.player-minimal select#station-select option {
    background: #0a0a1a;
    color: #00fff7;
    font-family: 'VT323', 'Orbitron', monospace;
}
.player-minimal #wave-canvas {
    width: 100%;
    max-width: 340px;
    height: 48px;
    background: transparent;
    display: block;
    margin: 1.5em auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 0 12px #00fff7, 0 0 18px #ff003c;
}
/* Minimalista retro 80s para The Drift */
body {
    background: linear-gradient(120deg, #120c1c 0%, #1a1440 20%, #1a1a3a 40%, #23234a 60%, #0b2c3d 80%, #120c1c 100%);
    background-size: 300% 300%;
    animation: bgmove 36s linear infinite;
    color: #fff;
    font-family: 'Orbitron', 'VT323', monospace;
    min-height: 100vh;
    margin: 0;
}

@keyframes bgmove {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 60%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 40%; }
    100% { background-position: 0% 50%; }
}
.logo-img {
    display: block;
    margin: 4.2em auto 1.2rem auto;
    max-width: 80px;
    height: auto;
    border-radius: 16px;
    background: rgba(10,10,30,0.7);
    padding: 0.5rem;
    box-shadow: 0 0 12px 3px #00fff7, 0 0 16px 5px #ff003c;
    transition: box-shadow 0.2s;
    animation: breathing-glow 2.8s ease-in-out infinite;
}

@keyframes breathing-glow {
    0% {
        box-shadow: 0 0 12px 3px #00fff7, 0 0 16px 5px #ff003c;
    }
    50% {
        box-shadow: 0 0 28px 8px #00fff7, 0 0 36px 12px #ff003c;
    }
    100% {
        box-shadow: 0 0 12px 3px #00fff7, 0 0 16px 5px #ff003c;
    }
}
.main-title {
    font-size: 2.8rem;
    color: #00fff7;
    text-shadow: 0 0 18px #00fff7, 0 0 40px #ff00cc, 0 0 60px #0099ff;
    letter-spacing: 0.18em;
    margin-bottom: 0.1em;
    text-align: center;
}
.subtitle {
    font-size: 1.2rem;
    color: #ff003c;
    text-shadow: 0 0 8px #ff003c, 0 0 16px #00b4ff;
    margin-bottom: 0.7em;
    text-align: center;
}
.player-minimal {
    background: rgba(10,10,30,0.92);
    border-radius: 14px;
    box-shadow: 0 0 18px #ff003c, 0 0 28px #00b4ff;
        padding: 1.5rem 2.5rem;
        max-width: 420px;
        width: 100%;
        margin: 2.5em auto 2em auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.player-minimal button {
    background: #181828;
    border: 2px solid #ff003c;
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 2rem;
    border-radius: 8px;
    width: 54px;
    height: 54px;
    box-shadow: 0 0 12px #ff003c, 0 0 18px #00b4ff;
    cursor: pointer;
    margin: 0 0.5em;
}
.player-minimal button:active, .player-minimal button:focus {
    border: 2px solid #00b4ff;
    box-shadow: 0 0 24px #00b4ff, 0 0 32px #ff003c;
}
.player-minimal input[type=range] {
    width: 90px;
    accent-color: #ff003c;
    background: transparent;
    margin-left: 0.5rem;
}
.neon-bar {
    border-radius: 8px;
    box-shadow: 0 0 12px #00fff7, 0 0 18px #ff003c;
    border: 2.5px double #00fff7;
    background: linear-gradient(90deg, #ff003c 0%, #00b4ff 100%);
    height: 6px;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0.7em 0 1.2em 0;
    display: block;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    position: relative;
}
