/* ============================================================
        MODO OSCURO (FIJO)
        ============================================================ */

:root {
    --bg: #0b0f17;
    --text: #f3f4f6;
    --accent: #F3492D; /* rojo pedido */
    --panel-bg: linear-gradient(#2f2f2f,#141414);
    --panel-border: rgba(255,255,255,0.18);
    --wave-bg: #151515;
    --bar-color: #ffffff;
    --btn-bg: #F3492D; /* botón play/pause rojo */
    --btn-border: rgba(0,0,0,0.55);
    --btn-icon: #ffffff;
}

/* ============================================================
        RESET / LAYOUT GENERAL
        ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial,Helvetica,sans-serif;
}

body {
    background: var(--bg);
    margin: 0;
    padding: clamp(32px, 6vw, 96px) 8px 12px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    color: var(--text);
}

/* contenedor responsivo */
.player-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================================
        LOGO
        ============================================================ */
.logo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
}

    .logo-wrap img {
        max-width: 450px;
        width: 100%;
        height: auto;
    }

/* ============================================================
        PLAYER WRAP
        ============================================================ */
.radio-wrap {
    width: 100%;
    border: 1px solid var(--panel-border);
    background: var(--panel-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.45), 0 12px 30px rgba(0,0,0,0.55);
}

/* ============================================================
        REDES
        ============================================================ */
.social-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 22px;
    padding: 0px 8px 30px 8px;
    flex-wrap: wrap;
}

    .social-wrap a {
        text-decoration: none;
        font-size: 20px;
        opacity: .9;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 8px;
        border-radius: 6px;
        transition: opacity .2s, transform .15s, background .2s;
    }

        .social-wrap a span {
            font-size: 13px;
            color: #e5e7eb;
        }

        .social-wrap a:hover {
            opacity: 1;
            transform: scale(1.06);
            background: rgba(255,255,255,0.06);
        }

.social-youtube i {
    color: #ff0000;
}

.social-instagram i {
    color: #dd2a7b;
}

.social-x i {
    color: #f3f4f6;
    font-weight: bold;
}

.social-news i {
    color: #00d0ff;
}

/* ============================================================
        BARRAS SINUSOIDALES — fondo compacto
        ============================================================ */
.wave-top {
    background: linear-gradient( to bottom, #1a1a1a 0%, #000000 40%, #000000 60%, #1a1a1a 100% );
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -4px; /* pega con la base */
}

.wave-line {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    width: 95%;
    height: 22px;
}

.bar {
    width: 4px;
    height: 6px;
    background: var(--bar-color);
    border-radius: 2px;
    opacity: 0.9;
    animation: waveBounce 900ms ease-in-out infinite;
    animation-play-state: paused;
}

.radio-wrap.playing .bar {
    animation-play-state: running;
}

.bar:nth-child(1) {
    animation-delay: -0.06s;
}

.bar:nth-child(2) {
    animation-delay: -0.18s;
}

.bar:nth-child(3) {
    animation-delay: -0.30s;
}

.bar:nth-child(4) {
    animation-delay: -0.12s;
}

.bar:nth-child(5) {
    animation-delay: -0.24s;
}

.bar:nth-child(6) {
    animation-delay: -0.10s;
}

.bar:nth-child(7) {
    animation-delay: -0.22s;
}

.bar:nth-child(8) {
    animation-delay: -0.34s;
}

.bar:nth-child(9) {
    animation-delay: -0.16s;
}

.bar:nth-child(10) {
    animation-delay: -0.28s;
}

.bar:nth-child(11) {
    animation-delay: -0.14s;
}

.bar:nth-child(12) {
    animation-delay: -0.26s;
}

.bar:nth-child(13) {
    animation-delay: -0.08s;
}

.bar:nth-child(14) {
    animation-delay: -0.20s;
}

.bar:nth-child(15) {
    animation-delay: -0.32s;
}

@keyframes waveBounce {
    0% {
        height: 4px;
        opacity: 0.6;
    }

    20% {
        height: 18px;
        opacity: 1;
    }

    40% {
        height: 8px;
        opacity: 0.85;
    }

    60% {
        height: 20px;
        opacity: 1;
    }

    80% {
        height: 10px;
        opacity: 0.8;
    }

    100% {
        height: 4px;
        opacity: 0.6;
    }
}

/* ============================================================
        CONTROLES
        ============================================================ */
.base {
    background: linear-gradient(#3c3c3c,#161616);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px; /* antes 10px | aumenta alto */
    min-height: 92px; /* agrega cuerpo sin estirar demasiado */
}


/* botón + EN VIVO pegados */
.status-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BOTÓN PLAY/PAUSE ROJO */
.playbtn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--btn-bg);
    border: 2px solid var(--btn-border);
    display: grid;
    place-items: center;
    cursor: pointer;
    user-select: none;
    transition: transform .15s, box-shadow .2s;
    color: var(--btn-icon);
    font-size: 24px;
    box-shadow: 0 0 16px rgba(0,0,0,0.6);
}

    .playbtn:hover {
        box-shadow: 0 0 20px rgba(243,73,45,0.6);
    }

    .playbtn:active {
        transform: translateY(1px);
    }

/* centro ahora solo para volumen + tiempo */
.center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.status-wrap {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: -2px;
}

/* EN VIVO */
.live-badge {
    background: var(--accent);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.4px;
    opacity: 0;
    transition: opacity .2s;
}

.radio-wrap.playing .live-badge {
    opacity: 1;
}

/* METADATOS */
.meta {
    font-size: 12px;
    font-weight: bold;
    opacity: 0.75;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* volumen / tiempo */
.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.volwrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.speaker {
    cursor: pointer;
    font-size: 16px;
    color: #f3f4f6;
}

input[type=range] {
    width: 180px;
}

.time {
    width: 50px;
    text-align: left;
    font-weight: bold;
    font-size: 12px;
    color: #ffffff;
}

/* ============================================================
        RESPONSIVE (MÓVIL)
        ============================================================ */
@media (max-width:480px) {
    .base {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 10px 10px 12px 10px;
    }

    .playbtn {
        margin-bottom: 2px;
    }

    .center {
        width: 100%;
    }

    .status-wrap {
        flex-direction: column;
        gap: 2px;
        margin-top: 0;
    }

    .meta {
        max-width: 100%;
        text-align: center;
    }
    /* controles en una sola línea y juntos */
    .controls {
        width: 100%;
        justify-content: center; /* antes space-between */
        gap: 8px;
    }

    .volwrap {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    input[type=range] {
        width: 130px;
    }

    .time {
        width: auto; /* sin ancho fijo */
        margin-left: 4px; /* pegado a la barra */
        text-align: left;
    }
    /* solo iconos en redes */
    .social-wrap a span {
        display: none;
    }
    /* contenedor del play + EN VIVO en columna */
    .status-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    /* EN VIVO centrado debajo del botón */
    .live-badge {
        order: 2;
    }

    .playbtn {
        order: 1;
    }
}

.footer-brand {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    max-width: 150px; /* ajustable */
    width: 100%;
    height: auto;
    opacity: 0.9;
}



