/* ============================================================
   AtopeSound Radio — réplica del diseño de Downtempo.Radio
   Paleta AtopeSound: rojo #dc143c · blanco · negro
   ============================================================ */

/* Space Grotesk autoalojada (no depende de Google Fonts) */
@font-face {
    font-family: "Space Grotesk";
    src: url("SpaceGrotesk.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --red: #dc143c;
    --red-dark: #b91c1c;
    --card-bg: rgba(26, 26, 26, 0.4);
    --glass-bg: rgba(20, 20, 20, 0.75);
    --hairline: rgba(255, 255, 255, 0.05);
    --hairline-2: rgba(255, 255, 255, 0.1);
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --white-40: rgba(255, 255, 255, 0.4);
    --white-50: rgba(255, 255, 255, 0.5);
    --white-60: rgba(255, 255, 255, 0.6);
    --white-70: rgba(255, 255, 255, 0.7);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    /* Tipografía: cambia esta línea para volver a la anterior
       (fuente antigua: "Urbanist", ui-sans-serif, system-ui, sans-serif) */
    --font-ui: "Space Grotesk", "Urbanist", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: #000;
    color: #fff;
    font-family: var(--font-ui);
    min-height: 100dvh;
    overflow: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    display: block;
    vertical-align: middle;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--red);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Fondo ---------- */

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -10;
    background: #000;
    overflow: hidden;
    pointer-events: none;
}

.bg-layer::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -32%;
    width: 130vmax;
    height: 130vmax;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(220, 20, 60, 0.07) 0%, rgba(220, 20, 60, 0) 55%);
    animation: glow 16s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        opacity: 0.45;
        transform: translateX(-50%) scale(1);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1.06);
    }
}

/* ---------- Fondo de vídeo (Barcelona de noche) ---------- */

.bg-video {
    position: fixed;
    inset: 0;
    z-index: -9;
    overflow: hidden;
    pointer-events: none;
}

.bg-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease;
}

.bg-video video.is-visible {
    opacity: 0.65;
    transition: opacity 2s ease;
}

.bg-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
}

/* ---------- Barra superior con marquesina ---------- */

.marquee-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-clip {
    overflow: hidden;
    margin-right: 9rem;
}

.animate-marquee {
    display: inline-block;
    animation: marquee 50s linear infinite;
}

.marquee-bar span {
    color: var(--white-50);
    font-weight: 300;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    line-height: 1.25;
    text-transform: uppercase;
    padding: 0 1rem;
}

.marquee-bar span.bright {
    color: #fff;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Insignia superior derecha (en directo) ---------- */

.top-badge {
    position: fixed;
    top: 3.5rem;
    right: 1rem;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* ---------- Marcador de tiempo (arriba a la derecha) ---------- */

.top-weather {
    position: fixed;
    top: 0.5rem;
    right: 1rem;
    z-index: 55;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.top-weather .weather-icon {
    font-size: 15px;
    line-height: 1;
}

.top-weather .weather-sep {
    color: var(--white-40);
}

.top-weather .weather-item {
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 767px) {
    .hide-mobile {
        display: none;
    }
}

.badge-link {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    transition: opacity 0.15s var(--ease);
}

.badge-link:hover {
    opacity: 0.8;
}

.badge-live {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--hairline-2);
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.badge-ping,
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--red);
}

.badge-ping {
    position: absolute;
    width: 8px;
    height: 8px;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.75;
}

.badge-live {
    position: relative;
}

.badge-live .badge-ping {
    position: absolute;
    left: 0.85rem;
}

.badge-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
}

.badge-caption {
    display: none;
    font-size: 9px;
    color: var(--white-40);
    text-align: right;
    max-width: 9.375rem;
    line-height: 1.25;
    transition: color 0.15s var(--ease);
}

.badge-link:hover .badge-caption {
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .top-badge {
        top: 4rem;
        right: 2rem;
    }

    .badge-caption {
        display: block;
    }
}

/* ---------- Escenario central: tarjeta ---------- */

.stage {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
    pointer-events: none;
}

.stage-inner {
    width: 100%;
    max-width: 54rem;
}

.np-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6rem;
}

.np-row .np-card {
    flex: 1 1 auto;
    min-width: 0;
}

.np-card {
    position: relative;
    width: 100%;
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
    transition: all 0.5s var(--ease);
}

@media (min-width: 768px) {
    .np-card {
        padding: 2.5rem;
    }
}

.history-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-400);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.15s var(--ease);
    z-index: 40;
}

.history-btn:hover {
    color: #fff;
}

.history-btn svg {
    width: 12px;
    height: 12px;
    margin-bottom: 1px;
}

.live-dot {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--red);
    animation: blink 1.2s ease-in-out infinite;
}

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

.np-eyebrow {
    color: var(--white-50);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.np-eyebrow span {
    color: var(--white-70);
}

.np-station {
    color: #fff;
    font-size: 1.875rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-track {
    color: var(--gray-300);
    font-size: 1rem;
    line-height: 1.625;
    font-weight: 300;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.625em;
}

@media (min-width: 768px) {
    .np-station {
        font-size: 2.25rem;
    }

    .np-eyebrow {
        margin-top: 0;
    }

    .np-track {
        margin-bottom: 1.5rem;
    }
}

.np-history {
    width: 100%;
    overflow-y: auto;
    border-radius: 0.75rem;
    border: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 1.25rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 10rem;
    transition: all 0.5s var(--ease);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

@media (min-width: 768px) {
    .np-history {
        max-height: 14rem;
    }
}

.np-history::-webkit-scrollbar {
    width: 6px;
}

.np-history::-webkit-scrollbar-track {
    background: var(--hairline);
    border-radius: 10px;
}

.np-history::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.np-history::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.np-history p {
    color: var(--gray-300);
    font-size: 0.875rem;
    line-height: 1.625;
    font-weight: 300;
    white-space: pre-wrap;
    text-align: center;
}

@media (min-width: 768px) {
    .np-history p {
        font-size: 1rem;
        text-align: justify;
    }
}

.box-slogan,
.box-genres {
    display: block;
}

.box-slogan {
    white-space: nowrap;
}

/* Filas del historial */

.hist-row {
    display: flex;
    gap: 0.875rem;
    align-items: baseline;
    text-align: left;
    padding: 0.375rem 0;
}

.hist-row + .hist-row {
    border-top: 1px solid var(--hairline);
}

.hist-row .t {
    color: var(--white-40);
    font-size: 0.75rem;
    min-width: 4rem;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.hist-row .s {
    color: var(--gray-300);
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 300;
}

.hist-note {
    color: var(--white-50) !important;
    font-size: 0.8125rem !important;
    text-align: center !important;
}

/* ---------- Marca superior en móvil ---------- */

.brand-mobile {
    position: fixed;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.5s var(--ease);
}

.brand-mobile img {
    width: 7rem;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.1));
}

@media (min-width: 768px) {
    .brand-mobile {
        display: none;
    }
}

/* ---------- Reproductor inferior ---------- */

.player {
    position: fixed;
    bottom: 6.5rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 50;
    pointer-events: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 72rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .player {
        bottom: 7rem;
        gap: 3rem;
    }
}

.side-left,
.side-right {
    display: none;
}

@media (min-width: 768px) {
    .side-left,
    .side-right {
        display: flex;
        width: 16rem;
        flex-shrink: 0;
        pointer-events: auto;
    }

    .side-left {
        align-items: center;
        justify-content: flex-end;
    }

    .side-right {
        align-items: center;
        justify-content: flex-start;
    }
}

.logo-holder {
    position: relative;
    display: block;
    transition: transform 0.3s var(--ease);
}

.logo-holder:hover {
    transform: scale(1.05);
}

.logo-holder img {
    position: relative;
    z-index: 10;
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    object-position: left;
    filter: drop-shadow(0 9px 7px rgba(0, 0, 0, 0.4));
}

.ping {
    position: absolute;
    top: -4px;
    right: -8px;
    display: flex;
    width: 12px;
    height: 12px;
    z-index: 20;
}

.ping-wave {
    position: absolute;
    display: inline-flex;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--red);
    opacity: 0.75;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-dot {
    position: relative;
    display: inline-flex;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--red);
}

@keyframes ping {
    75%,
    to {
        opacity: 0;
        transform: scale(2);
    }
}

.wordmark {
    display: block;
    transition: transform 0.3s var(--ease);
}

.wordmark:hover {
    transform: scale(1.05);
}

.wordmark img {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 4rem;
    object-fit: contain;
    object-position: right;
    filter: drop-shadow(0 9px 7px rgba(0, 0, 0, 0.4));
}

/* Círculo de reproducción */

.play-wrap {
    position: relative;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.play-btn {
    position: relative;
    width: 8rem;
    height: 8rem;
    border-radius: 999px;
    overflow: hidden;
    border: 4px solid #0a0a0a;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s var(--ease);
    pointer-events: auto;
    flex-shrink: 0;
    display: block;
}

@media (min-width: 768px) {
    .play-btn {
        width: 9rem;
        height: 9rem;
    }
}

.play-btn:hover {
    transform: scale(1.05);
}

.play-btn:active {
    transform: scale(1.02);
}

.play-btn .cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s var(--ease);
}

.play-btn:hover .cover {
    opacity: 0.4;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s var(--ease);
}

.play-btn:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-svg {
    width: 3rem;
    height: 3rem;
    margin-left: 0.5rem;
    color: var(--red);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.play-btn.is-playing .play-svg {
    margin-left: 0;
}

.play-btn.is-playing:not(:hover) .play-svg {
    opacity: 0;
}

@media (min-width: 768px) {
    .play-svg {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* Control de volumen (aparece al pasar el cursor, solo escritorio) */

.volume {
    position: absolute;
    bottom: calc(100% + 0.35rem);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.45rem 0.85rem;
    background: rgba(20, 20, 20, 0.8);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--hairline-2);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}

.volume::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.6rem;
}

.play-wrap:hover .volume,
.play-wrap:focus-within .volume {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 767px) {
    .volume {
        display: none;
    }
}

.volume input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 8.75rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    display: block;
}

.volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    border: 0;
}

.volume input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    border: 0;
}

.volume input[type="range"]::-moz-range-track {
    height: 2px;
    background: transparent;
}

/* ---------- Menú de navegación ---------- */

.nav-menu {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .nav-menu {
        right: 2.5rem;
    }
}

.nav-btn {
    width: 3.5rem;
    height: 3.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(20, 20, 20, 0.55);
    /* Borde rojo. Para volver al de antes: border: 1px solid var(--hairline-2); */
    border: 1px solid var(--red);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-btn:hover {
    /* Para volver al de antes: border-color: rgba(255, 255, 255, 0.35); */
    border-color: var(--red);
    background: rgba(26, 26, 26, 0.75);
}

.nav-btn:active {
    transform: scale(0.96);
}

.nav-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.nav-bottom {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.nav-legal {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.nav-legal-links a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.nav-legal-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-copy {
    font-family: var(--font-ui);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    user-select: none;
}

@media (max-width: 480px) {
    .nav-copy {
        font-size: 0.65rem;
        letter-spacing: 0.04em;
    }
}

.nav-panel {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.5rem;
    background: rgba(18, 18, 18, 0.78);
    border: 1px solid var(--hairline-2);
    border-radius: 1.25rem;
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    backdrop-filter: blur(24px) saturate(1.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.nav-menu.open .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.nav-item {
    padding: 0.625rem 1.125rem;
    border-radius: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white-60);
    white-space: nowrap;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-item:hover,
.nav-item.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* ---------- Superposición de secciones ---------- */

.section-overlay {
    position: fixed;
    inset: 0;
    z-index: 75;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5.5rem 1rem 8rem;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
    pointer-events: none;
}

.section-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.section-card {
    position: relative;
    width: 100%;
    max-width: 42rem;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    background: rgba(26, 26, 26, 0.75);
    border: 1px solid var(--hairline-2);
    border-radius: 1.5rem;
    padding: 2.5rem 1.75rem 2rem;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(14px);
    transition: transform 0.3s var(--ease);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.section-overlay.open .section-card {
    transform: none;
}

.section-card::-webkit-scrollbar {
    width: 6px;
}

.section-card::-webkit-scrollbar-track {
    background: var(--hairline);
    border-radius: 10px;
}

.section-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.section-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    border-radius: 999px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.section-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.section-close svg {
    width: 1.125rem;
    height: 1.125rem;
}

.section-title {
    color: #fff;
    font-size: 1.875rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    padding-right: 2.5rem;
}

.section-body {
    color: var(--gray-300);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.625;
}

.section-body p + p {
    margin-top: 0.875rem;
}

.section-body p.muted {
    color: var(--white-50);
    font-size: 0.9375rem;
}

.section-body a {
    color: var(--red);
    transition: color 0.2s var(--ease);
}

.section-body a:hover {
    color: #fff;
    text-decoration: underline;
}

.section-body .song-list {
    display: flex;
    flex-direction: column;
}

.section-body .hist-row {
    padding: 0.5rem 0;
}

.section-body .hist-row + .hist-row {
    border-top: 1px solid var(--hairline);
}

/* ---------- Barra de cookies ---------- */

.cookie-bar {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 95;
    width: calc(100% - 2rem);
    max-width: 34rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.125rem 1.25rem;
    background: rgba(16, 16, 16, 0.88);
    border: 1px solid var(--hairline-2);
    border-radius: 1.125rem;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.cookie-bar[hidden] {
    display: none;
}

.cookie-text {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--white-60);
    font-weight: 300;
}

.cookie-actions {
    display: flex;
    gap: 0.625rem;
}

.cookie-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cookie-btn.accept {
    background: var(--red);
    color: #fff;
}

.cookie-btn.accept:hover {
    background: var(--red-dark);
}

.cookie-btn.reject {
    background: transparent;
    color: var(--white-60);
    border-color: rgba(255, 255, 255, 0.18);
}

.cookie-btn.reject:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

@media (min-width: 768px) {
    .cookie-bar {
        left: 1.5rem;
        transform: none;
        width: auto;
        max-width: 22.5rem;
        bottom: 1.5rem;
    }
}

/* ---------- Noscript ---------- */

.noscript-msg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 120;
    max-width: 26rem;
    padding: 1.5rem 1.75rem;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--hairline-2);
    border-radius: 1.25rem;
    color: var(--gray-300);
    font-weight: 300;
    line-height: 1.6;
    text-align: center;
}

.noscript-msg a {
    color: var(--red);
}

/* ---------- Móvil (al FINAL: pisa todas las reglas base) ---------- */

@media (max-width: 767px) {
    .np-row {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1.25rem;
    }

    .np-row .np-card {
        flex: 0 0 auto;
        width: 100%;
    }

    .np-card {
        margin-top: 0;
        padding: 1.5rem;
    }

    .np-eyebrow {
        margin-top: 1rem;
    }

    .np-station {
        font-size: 1.875rem;
    }

    .np-track {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .np-history {
        max-height: 10rem;
        padding: 1.25rem;
    }

    .stage {
        padding: 3.25rem 1rem 6.5rem;
        align-items: flex-start;
    }

    .play-btn {
        width: 8rem;
        height: 8rem;
    }

    .play-svg {
        width: 3rem;
        height: 3rem;
    }

    .history-btn {
        top: 1.5rem;
        left: 1.5rem;
    }

    .live-dot {
        top: 1.5rem;
        right: 1.5rem;
    }

    .nav-menu {
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        right: 1rem;
        left: auto;
        max-width: calc(100vw - 2rem);
        gap: 0.5rem;
    }

    .nav-bottom {
        flex-direction: column-reverse;
        align-items: flex-end;
        gap: 0.45rem;
    }

    .nav-legal {
        align-items: flex-end;
        max-width: 15rem;
    }

    .nav-copy {
        white-space: normal !important;
        text-align: right;
        line-height: 1.35;
        font-size: 0.625rem !important;
        letter-spacing: 0.04em !important;
    }

    .nav-legal-links {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.28rem;
    }

    .nav-legal-links a {
        text-align: right;
        white-space: normal;
    }

    .section-overlay {
        padding: 4.5rem 0.75rem 7rem;
        align-items: flex-start;
    }

    .section-card {
        max-height: min(72vh, 520px);
        padding: 2.25rem 1.25rem 1.5rem;
        border-radius: 1.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cookie-bar {
        bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
    }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
    .animate-marquee,
    .ping-wave,
    .badge-ping,
    .bg-layer::after {
        animation: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
