:root {
    color-scheme: dark;
    --ink: #f6f4ee;
    --muted: rgba(246, 244, 238, 0.74);
    --line: rgba(255, 255, 255, 0.14);
    --line-bright: rgba(255, 255, 255, 0.25);
    --glass: rgba(8, 11, 18, 0.58);
    --glass-strong: rgba(8, 11, 18, 0.76);
    --accent: #8cf5cd;
    --accent-2: #a8aeff;
    --safe-top: max(1rem, env(safe-area-inset-top));
    --safe-right: max(1rem, env(safe-area-inset-right));
    --safe-bottom: max(1rem, env(safe-area-inset-bottom));
    --safe-left: max(1rem, env(safe-area-inset-left));
}

* { box-sizing: border-box; }

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    background: #07090f;
}

body {
    height: 100vh;
    height: 100dvh;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button { color: inherit; font: inherit; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.broadcast-shell,
.broadcast-media,
.broadcast-scrim,
.broadcast-grain,
.broadcast-presence {
    position: fixed;
    inset: 0;
}

.broadcast-shell {
    height: 100vh;
    height: 100dvh;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 18%, rgba(87, 101, 177, 0.22), transparent 34%),
        radial-gradient(circle at 82% 78%, rgba(46, 141, 117, 0.15), transparent 30%),
        #07090f;
}

.broadcast-media {
    z-index: 0;
    overflow: hidden;
    background: #080a10;
}

.broadcast-media::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 52%, rgba(3, 5, 10, 0.22) 100%);
}

.broadcast-media > video,
.broadcast-media > img {
    transform: scale(1.006);
}

.agentic-separator-visual { z-index: 1; }

.broadcast-scrim {
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(3, 5, 10, 0.38) 0%, transparent 18%, transparent 72%, rgba(3, 5, 10, 0.4) 100%),
        radial-gradient(ellipse 58% 46% at 0% 100%, rgba(3, 5, 10, 0.55), transparent 72%);
}

.broadcast-grain {
    z-index: 3;
    opacity: 0.065;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.broadcast-presence { z-index: 10; pointer-events: none; }
.topbar,
.lower-third,
.init-overlay,
.tuning-overlay { pointer-events: auto; }

.topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--safe-top) clamp(1.25rem, 3.6vw, 3.5rem) 0;
}

.brand-lockup,
.topbar-actions,
.air-pill,
.on-air-context,
.lower-third { display: flex; align-items: center; }
.brand-lockup { gap: 0.7rem; flex: 0 0 auto; }

.brand-mark {
    width: clamp(1rem, 2.5vw, 1.4rem);
    height: clamp(1rem, 2.5vw, 1.4rem);
    background-color: transparent;
    border: 1.5px solid transparent;
    border-radius: 50%;
    opacity: 0;
    box-shadow: none;
    flex-shrink: 0;
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.air-pill.mini-air-pill { display: inline-flex; }

@keyframes liveDotPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(0.72);
        background-color: transparent;
        border-color: transparent;
        box-shadow: 0 0 0 rgba(140, 245, 205, 0);
    }
    45%, 55% {
        opacity: 1;
        transform: scale(1);
        background-color: var(--accent);
        border-color: var(--accent);
        box-shadow:
            0 0 12px rgba(140, 245, 205, 0.75),
            0 0 24px rgba(140, 245, 205, 0.28),
            inset 0 0 6px rgba(140, 245, 205, 0.45);
    }
}

body.central-engine-physical-active .brand-mark {
    animation: liveDotPulse 2.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    body.central-engine-physical-active .brand-mark {
        animation: none;
        opacity: 1;
        transform: scale(1);
        background-color: var(--accent);
        border-color: var(--accent);
        box-shadow: 0 0 10px rgba(140, 245, 205, 0.45);
    }
}

.brand-lockup strong {
    display: block;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    letter-spacing: -0.045em;
    line-height: 1;
}
.brand-lockup strong span { color: var(--accent); }
.brand-lockup small {
    display: block;
    margin-top: 0.12rem;
    color: var(--muted);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


.signal-lights {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    height: 26px;
    margin-left: clamp(18px, 2vw, 34px);
    margin-right: clamp(14px, 1.6vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.42rem, 0.78vw, 0.92rem);
    pointer-events: none;
    z-index: 5;
    opacity: 1;
    overflow: hidden;
}

.signal-lights span {
    width: clamp(6.5px, 0.44vw, 8.5px);
    height: clamp(6.5px, 0.44vw, 8.5px);
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0);
    opacity: 0;
    transform: scale(0.72);
    box-shadow: none;
    transition: opacity 420ms ease, transform 420ms ease, box-shadow 420ms ease, background-color 420ms ease;
}

.signal-lights.is-running span {
    animation: headerSignalLightPass 1700ms cubic-bezier(0.22, 0.72, 0.22, 1) both;
}

.signal-lights span:nth-child(1) { animation-delay: 0ms; }
.signal-lights span:nth-child(2) { animation-delay: 78ms; }
.signal-lights span:nth-child(3) { animation-delay: 156ms; }
.signal-lights span:nth-child(4) { animation-delay: 234ms; }
.signal-lights span:nth-child(5) { animation-delay: 312ms; }
.signal-lights span:nth-child(6) { animation-delay: 390ms; }
.signal-lights span:nth-child(7) { animation-delay: 468ms; }
.signal-lights span:nth-child(8) { animation-delay: 546ms; }
.signal-lights span:nth-child(9) { animation-delay: 624ms; }
.signal-lights span:nth-child(10) { animation-delay: 702ms; }
.signal-lights span:nth-child(11) { animation-delay: 780ms; }
.signal-lights span:nth-child(12) { animation-delay: 858ms; }
.signal-lights span:nth-child(13) { animation-delay: 936ms; }
.signal-lights span:nth-child(14) { animation-delay: 1014ms; }
.signal-lights span:nth-child(15) { animation-delay: 1092ms; }
.signal-lights span:nth-child(16) { animation-delay: 1170ms; }
.signal-lights span:nth-child(17) { animation-delay: 1248ms; }
.signal-lights span:nth-child(18) { animation-delay: 1326ms; }
.signal-lights span:nth-child(19) { animation-delay: 1404ms; }
.signal-lights span:nth-child(20) { animation-delay: 1482ms; }
.signal-lights span:nth-child(21) { animation-delay: 1560ms; }
.signal-lights span:nth-child(22) { animation-delay: 1638ms; }
.signal-lights span:nth-child(23) { animation-delay: 1716ms; }
.signal-lights span:nth-child(24) { animation-delay: 1794ms; }
.signal-lights span:nth-child(25) { animation-delay: 1872ms; }
.signal-lights span:nth-child(26) { animation-delay: 1950ms; }

@keyframes headerSignalLightPass {
    0%, 18% {
        opacity: 0;
        transform: scale(0.72);
        background: rgba(255, 255, 255, 0);
        box-shadow: none;
    }
    28% {
        opacity: 0.16;
        transform: scale(0.88);
        background: rgba(255, 255, 255, 0.24);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
    }
    36% {
        opacity: 0.96;
        transform: scale(1.18);
        background: rgba(255, 255, 255, 0.98);
        box-shadow:
            0 0 10px rgba(255, 255, 255, 0.56),
            0 0 22px rgba(255, 255, 255, 0.24);
    }
    52% {
        opacity: 0.52;
        transform: scale(1.02);
        background: rgba(255, 255, 255, 0.58);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }
    78%, 100% {
        opacity: 0;
        transform: scale(0.72);
        background: rgba(255, 255, 255, 0);
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .signal-lights {
        opacity: 1;
    }
    .signal-lights.is-running span {
        animation: none;
    }
}

@media (max-width: 760px) {
    .signal-lights {
        display: none;
    }
}

.topbar-actions { gap: 0.65rem; flex: 0 0 auto; }
.mobile-top-actions { display: flex; align-items: center; gap: 0.65rem; }

.air-pill {
    min-height: 2.75rem;
    gap: 0.55rem;
    padding: 0 0.95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(7, 9, 15, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px) saturate(1.08);
    font-size: 0.68rem;
    font-weight: 760;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.air-dot {
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 50%;
    background: #e5b684;
    box-shadow: 0 0 12px currentColor;
}
.central-engine-physical-active .air-dot { background: var(--accent); }

.icon-button,
.close-button {
    display: grid;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    background: rgba(7, 9, 15, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    cursor: pointer;
}
.icon-button { width: 44px; height: 44px; border-radius: 50%; }
.icon-button span {
    display: block;
    width: 1rem;
    height: 1px;
    margin: 2px 0;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.lower-third {
    position: absolute;
    left: max(2rem, var(--safe-left));
    bottom: max(2rem, var(--safe-bottom));
    width: min(47rem, calc(100vw - 4rem));
    min-height: 6.75rem;
    gap: 1rem;
    padding: 0.85rem 1rem 0.85rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    background:
        linear-gradient(120deg, rgba(12, 16, 25, 0.76), rgba(9, 12, 20, 0.48)),
        rgba(8, 11, 18, 0.42);
    box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px) saturate(1.12);
    transition: width 260ms ease, transform 260ms ease, background 260ms ease;
}

.cover-frame {
    position: relative;
    flex: 0 0 6.5rem;
    height: 6.5rem;
    overflow: hidden;
    border: 0;
    outline: 0;
    border-radius: 1rem;
    background: transparent;
    box-shadow: none;
}
.cover-frame img,
.song-cover img,
.now-cover img,
.current-track-cover img,
.current-track-cover-frame img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center center !important;
    position: static !important;
    inset: auto !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: auto !important;
    color: transparent;
}
.cover-placeholder {
    position: absolute;
    inset: 29%;
    border: 0;
    border-radius: 0.8rem;
    opacity: 0;
    pointer-events: none;
}

.track-identity { min-width: 0; flex: 1; }
.eyebrow,
.panel-kicker,
.section-overline,
.init-kicker {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.66rem;
    font-weight: 760;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.25rem;
}
.eyebrow-line { width: 1.5rem; height: 1px; background: var(--accent); }

.eyebrow-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.25rem;
    gap: 0.65rem;
    transform: translateY(5px);
}
.eyebrow-group .eyebrow { margin-bottom: 0; }
.mini-air-pill {
    min-height: 1.8rem;
    padding: 0 0.6rem;
    font-size: 0.55rem;
    gap: 0.35rem;
    flex: 0 0 auto;
    white-space: nowrap;
    background: rgba(7, 9, 15, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.lower-third h1 {
    overflow: visible;
    margin: 0;
    padding-bottom: 0.25em;
    transform: translateY(8px);
    font-size: clamp(2rem, 4.3vw, 3.8rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.48);
    white-space: nowrap;
}

.catalog-line {
    margin-top: 0.65rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.95rem, 1.05vw, 1.18rem);
    letter-spacing: 0.045em;
    font-weight: 700;
}
.host-presence-capsule {
    position: absolute;
    right: max(2rem, var(--safe-right));
    bottom: max(2rem, var(--safe-bottom));
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(8, 11, 18, 0.72);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px) saturate(1.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem) scale(0.95);
    transition: opacity 300ms ease, transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 300ms;
    pointer-events: auto;
    z-index: 20;
}
body.is-speaking .host-presence-capsule.has-real-host {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.speaking-indicator {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 0.8rem;
    margin-left: 0.2rem;
}
.speaking-indicator i {
    width: 2px;
    height: 30%;
    border-radius: 2px;
    background: var(--accent);
    animation: signal 0.8s ease-in-out infinite alternate;
}
.speaking-indicator i:nth-child(2) { animation-delay: -0.2s; }
.speaking-indicator i:nth-child(3) { animation-delay: -0.4s; }

.live-host-avatar {
    flex: 0 0 3.3rem;
    width: 3.3rem;
    height: 3.3rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.live-host-avatar img { width: 100%; height: 100%; object-fit: cover; }
.host-copy { min-width: 0; display: flex; align-items: baseline; gap: 0.55rem; }
.host-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dj-name { color: rgba(255, 255, 255, 0.9); font-size: 0.83rem; font-weight: 650; }
#program-name { color: var(--muted); font-size: 0.78rem; }
#program-name::before { margin-right: 0.55rem; color: var(--accent); content: "\00b7"; }
.engine-status { position: absolute; opacity: 0; pointer-events: none; }

.signal-mark { display: flex; align-items: center; gap: 2px; height: 1.1rem; padding: 0 0.2rem; }
.signal-mark i {
    width: 2px;
    height: 35%;
    border-radius: 2px;
    background: var(--accent);
    animation: signal 1s ease-in-out infinite alternate;
}
.signal-mark i:nth-child(2) { animation-delay: -0.25s; }
.signal-mark i:nth-child(3) { animation-delay: -0.5s; }
.signal-mark i:nth-child(4) { animation-delay: -0.75s; }
@keyframes signal { to { height: 100%; } }

.caption-stage { position: absolute; inset: 0; z-index: 14; pointer-events: none; }
.lyrics-container,
.floating-transcript {
    position: absolute;
    left: 50%;
    width: min(44rem, calc(100vw - 3rem));
    transform: translateX(-50%);
    text-align: center;
    transition: bottom 240ms ease, opacity 180ms ease, transform 240ms ease;
}
.lyrics-container {
    bottom: max(10.75rem, calc(var(--safe-bottom) + 9.75rem));
    z-index: 16;
    display: grid;
    min-height: 4.25rem;
    place-items: center;
}
.floating-transcript {
    bottom: max(15.5rem, calc(var(--safe-bottom) + 14.5rem));
    z-index: 17;
    min-height: 1rem;
}
.lyrics-container .lyric-line,
.floating-transcript:not(:empty) {
    display: inline-block;
    max-width: 100%;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 0.5rem;
    background: rgba(5, 7, 12, 0.44);
    box-shadow: 0 0.75rem 2.8rem rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px) saturate(1.08);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 650;
    line-height: 1.3;
    text-shadow: 0 2px 10px #000;
}
.floating-transcript:not(:empty) {
    background: rgba(16, 21, 31, 0.56);
    border-color: rgba(140, 245, 205, 0.2);
}
.voice-visualizer { position: absolute; inset: 0; pointer-events: none; }
body.has-lyrics .lower-third { width: min(36rem, calc(100vw - 4rem)); }
body.has-transcript .lower-third { background: rgba(8, 11, 18, 0.52); }

.tuning-overlay,
.init-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    align-items: center;
    justify-content: center;
}
.tuning-overlay {
    flex-direction: column;
    gap: 1rem;
    background: none;
    backdrop-filter: none;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    pointer-events: none;
}
.tuning-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.init-overlay {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: clamp(1.25rem, 4vw, 3rem);
    background:
        linear-gradient(90deg, rgba(3, 5, 10, 0.25), transparent 58%),
        linear-gradient(0deg, rgba(3, 5, 10, 0.32), transparent 50%);
}
.init-card {
    width: min(31rem, 100%);
    padding: clamp(1.35rem, 3.5vw, 2.25rem);
    border: 1px solid var(--line-bright);
    border-radius: 1.45rem;
    background: rgba(8, 11, 18, 0.57);
    box-shadow: 0 1.8rem 6rem rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(1.1);
}
.init-card h2 {
    margin: 0.7rem 0 0;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 590;
    letter-spacing: -0.06em;
    line-height: 0.98;
    text-wrap: balance;
}
.init-card p { margin: 1rem 0 1.35rem; color: var(--muted); }
.tune-button {
    min-height: 48px;
    padding: 0 1.35rem;
    border: 1px solid rgba(140, 245, 205, 0.55);
    border-radius: 999px;
    background: var(--accent);
    color: #07100d;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 59;
    background: rgba(0, 0, 0, 0.10);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
}
.navigation-panel {
    position: fixed;
    top: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    width: min(26.25rem, calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid var(--line-bright);
    border-radius: 1.75rem;
    background: linear-gradient(
        180deg,
        rgba(8, 11, 18, 0.52),
        rgba(8, 11, 18, 0.44)
    );
    box-shadow: -1.5rem 1.5rem 6rem rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(1.12);
    -webkit-backdrop-filter: blur(24px) saturate(1.12);
    transform: translateX(calc(100% + 2rem));
    transition: transform 280ms cubic-bezier(0.22, 0.8, 0.22, 1);
}
body.panel-open .panel-backdrop { opacity: 1; visibility: visible; }
body.panel-open .navigation-panel { transform: translateX(0); }
.sheet-handle { display: none; }
.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.6rem 1.6rem 1rem;
}
.panel-header h2 {
    margin: 0.3rem 0 0;
    font-size: 2rem;
    font-weight: 590;
    letter-spacing: -0.055em;
}
.close-button { width: 44px; height: 44px; border-radius: 50%; font-size: 1.45rem; }
.section-nav {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0 1.6rem 1rem;
    border-bottom: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.section-nav::-webkit-scrollbar { height: 4px; }
.section-nav::-webkit-scrollbar-track { background: transparent; }
.section-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }

.section-nav button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.76rem;
    white-space: nowrap;
}
.section-nav button[aria-current="page"] {
    border-color: rgba(140, 245, 205, 0.26);
    background: rgba(140, 245, 205, 0.1);
    color: var(--ink);
}
.panel-content { overflow-y: auto; padding: 1.45rem 1.6rem 1.8rem; }
/* Pie fijo del panel: firma chiquita, siempre visible debajo de todo */
.panel-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.9rem;
    margin: 0;
    padding: 0.7rem 1.6rem 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.62rem;
    font-weight: 760;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.panel-footer a {
    color: rgba(85, 233, 199, 0.72);
    text-decoration: none;
    transition: color 160ms ease;
}
.panel-footer a:hover,
.panel-footer a:focus-visible {
    color: #55e9c7;
    text-decoration: underline;
}
.panel-content section { animation: section-in 220ms ease both; }
@keyframes section-in { from { opacity: 0; transform: translateY(8px); } }
.panel-content h3 {
    margin: 0.45rem 0 1.35rem;
    font-size: clamp(1.85rem, 4vw, 2.55rem);
    font-weight: 570;
    letter-spacing: -0.05em;
    line-height: 1.02;
}
.fact-list { margin: 0; }
.fact-list > div {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 0.8rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
}
.fact-list dt { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.fact-list dd { margin: 0; line-height: 1.45; }
.data-card,
.host-card {
    margin-top: 0.65rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    background: transparent;
}
.data-card span,
.data-card strong,
.host-card span,
.host-card strong { display: block; }
.data-card span { color: var(--muted); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
.data-card strong { margin-top: 0.35rem; font-size: 1.08rem; }
.teaser-text { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.host-card { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 1rem; 
}
.host-card div {
    order: 1;
    flex: 1;
    min-width: 0;
}
.host-card img {
    order: 2;
    width: 4rem;
    height: 4rem;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}
#panel-now-host-card img,
#host-card img {
    width: 5.5rem;
    height: 5.5rem;
}
.host-card strong { font-size: 1.06rem; }
.host-card span { margin-top: 0.25rem; color: var(--muted); }

.info-card {
    margin-top: 0.8rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.info-card p {
    margin: 0 0 0.75rem 0;
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.5;
}
.info-card small {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

.empty-state,
.empty-note,
.about-copy { color: var(--muted); line-height: 1.65; }

.live-track-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.5rem 0 1.25rem;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.15rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1rem 2rem rgba(0, 0, 0, 0.15);
}
.live-track-cover {
    flex: 0 0 5.5rem;
    height: 5.5rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.live-track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.live-track-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.15rem;
}
#panel-now-title {
    margin-top: 0;
    margin-bottom: 0.15rem;
    line-height: 1.1;
}
.catalog-line-panel {
    display: block;
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.why-playing-card {
    margin: 0 0 1.25rem 0;
    padding: 1.1rem;
    border: 1px solid rgba(140, 245, 205, 0.15);
    border-radius: 1rem;
    background: rgba(140, 245, 205, 0.03);
    border-top: 1px solid rgba(140, 245, 205, 0.15);
}
.why-playing-label {
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
    display: block;
}
.why-playing-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Mini Timeline en panel Vivo */
.live-mini-timeline-card {
    margin: 1rem 0;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(140, 245, 205, 0.15);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}
.live-mini-timeline-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.8rem;
}
.live-mini-timeline-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}
.live-mini-timeline-item {
    min-width: 0;
}
.live-mini-timeline-key {
    display: block;
    font-size: 0.62rem;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
    white-space: nowrap;
}
.live-mini-timeline-item.is-current .live-mini-timeline-key {
    color: var(--accent);
}
.live-mini-timeline-name {
    display: block;
    font-size: 0.9rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-mini-timeline-track {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.72rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.live-mini-timeline-item.is-current .live-mini-timeline-track {
    color: rgba(140, 245, 205, 0.88);
}

@media (max-width: 520px) {
    .live-mini-timeline-content {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
}

/* Pulso del Aire */
.live-air-pulse-card {
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(140, 245, 205, 0.2);
    border-radius: 1rem;
    background: rgba(140, 245, 205, 0.05);
    margin-bottom: 0.65rem;
}
.live-air-pulse-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
    font-weight: 700;
}
.live-air-pulse-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.live-air-pulse-line {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}
.live-air-pulse-highlight {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    border-left: 2px solid var(--accent);
    padding-left: 0.5rem;
    margin-top: 0.2rem;
}

body.kiosk-mode .live-air-pulse-card {
    display: none !important;
}

.state-card {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(140, 245, 205, 0.2);
    border-radius: 999px;
    background: rgba(140, 245, 205, 0.06);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.state-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    animation: signal 1.5s ease-in-out infinite alternate;
}

.project-intro {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink);
}
.project-intro p:last-child {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.8rem;
}
.project-blocks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.project-block {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
}
.project-block h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 650;
    color: var(--ink);
}
.project-block p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--muted);
}

.catalog-list,
.schedule-list,
.weather-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.catalog-card,
.schedule-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.catalog-card-cover {
    position: relative;
    flex: 0 0 5.5rem;
    height: 5.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}
.schedule-card-avatar {
    flex: 0 0 5.5rem;
    height: 5.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}
.catalog-card-cover .fallback-cover {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.catalog-card-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 2;
    transition: opacity .18s ease;
}
.catalog-card-cover img.is-cover-loaded {
    opacity: 1;
}
.schedule-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fallback-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.fallback-text {
    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    letter-spacing: -0.05em;
}
.schedule-card-avatar {
    border-radius: 50%;
}

.catalog-card-info,
.schedule-card-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.schedule-time {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

/* Timeline Vivo */
.live-timeline-section {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2rem;
}
.timeline-item {
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    padding-left: 2.2rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 1.1rem;
    top: 1.25rem;
    bottom: -1.9rem;
    width: 2px;
    background: var(--line);
}
.timeline-item:last-child::before {
    display: none;
}
.timeline-item::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    top: 1.25rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted);
    box-shadow: 0 0 0 4px #07090f;
}
.timeline-item.is-current {
    background: rgba(140, 245, 205, 0.05);
    border-color: rgba(140, 245, 205, 0.25);
}
.timeline-item.is-current::before {
    background: var(--accent);
    opacity: 0.5;
}
.timeline-item.is-current::after {
    background: var(--accent);
    box-shadow: 0 0 0 4px #07090f, 0 0 10px rgba(140, 245, 205, 0.4);
}
.timeline-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.timeline-item.is-current .timeline-label {
    color: var(--accent);
}
.timeline-host {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.15rem;
}
.timeline-program {
    margin: 0 0 0.4rem 0;
    font-size: 0.85rem;
    color: var(--muted);
}
.timeline-time {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.timeline-narrative {
    margin: 0.6rem 0 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}
.timeline-narrative-label {
    color: var(--muted);
    font-weight: 600;
    font-style: normal;
    margin-right: 0.15rem;
}

.schedule-card.is-active {
    border-color: rgba(140, 245, 205, 0.3);
    background: rgba(140, 245, 205, 0.05);
}

.weather-view {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.weather-main {
    display: flex;
    flex-direction: column;
}
.weather-main strong {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ink);
}
.weather-main span {
    font-size: 0.9rem;
    color: var(--muted);
}
.weather-details {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.5rem;
}
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 44px;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.action-btn:active {
    transform: scale(0.98);
}
.action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-group label {
    font-size: 0.85rem;
    color: var(--muted);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.6rem;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group textarea {
    resize: none;
    min-height: 100px;
}
.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--muted);
}
.submit-btn {
    width: 100%;
    min-height: 44px;
    padding: 0.9rem;
    border: none;
    border-radius: 0.6rem;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}
.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.submit-btn:not(:disabled):active {
    transform: scale(0.98);
}
.msg-feedback {
    padding: 1rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}
.msg-feedback.success {
    background: rgba(140, 245, 205, 0.1);
    color: rgba(140, 245, 205, 1);
    border: 1px solid rgba(140, 245, 205, 0.3);
}
.msg-feedback.error {
    background: rgba(255, 100, 100, 0.1);
    color: #ff8888;
    border: 1px solid rgba(255, 100, 100, 0.3);
}
.form-disclaimer {
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
}
.empty-state { padding: 1rem 0; border-top: 1px solid var(--line); }
.empty-note { margin-top: 1.2rem; font-size: 0.8rem; }

/* Separator active rules */
body.is-separator .lower-third,
body.is-separator .live-track-card,
body.is-separator #songs-next-card {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

body.is-separator .cover-frame,
body.is-separator .live-track-cover,
body.is-separator .cover-as-background-container {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.is-separator .cover-frame img,
body.is-separator .live-track-cover img {
    display: none !important;
}

audio {
    position: fixed;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 760px) {
    :root {
        --safe-top: max(0.85rem, env(safe-area-inset-top));
        --safe-right: max(0.85rem, env(safe-area-inset-right));
        --safe-bottom: max(0.75rem, env(safe-area-inset-bottom));
        --safe-left: max(0.85rem, env(safe-area-inset-left));
    }
    .broadcast-scrim {
        background:
            linear-gradient(180deg, rgba(3, 5, 10, 0.35) 0%, transparent 16%, transparent 68%, rgba(3, 5, 10, 0.38) 100%),
            radial-gradient(ellipse 110% 38% at 0% 100%, rgba(3, 5, 10, 0.5), transparent 76%);
    }
    .topbar { 
        padding: var(--safe-top) max(1rem, var(--safe-right)) 0 max(1rem, var(--safe-left)); 
        align-items: flex-start;
    }
    .brand-lockup { margin-top: 4px; }
    .topbar-actions {
        flex-direction: column-reverse;
        align-items: flex-end;
        gap: 12px;
    }
    .mobile-top-actions { gap: 8px; }
    #menu-btn {
        position: static;
        z-index: 9999;
        margin: 0;
        touch-action: manipulation;
    }
    .brand-lockup small { display: none; }
    .mini-air-pill { min-height: 1.6rem; padding: 0 0.5rem; font-size: 0.5rem; }
    .icon-button { width: 44px; height: 44px; }

    .lower-third {
        left: var(--safe-left);
        right: var(--safe-right);
        bottom: var(--safe-bottom);
        width: auto;
        min-height: 5.45rem;
        gap: 0.72rem;
        padding: 0.65rem 0.75rem 0.65rem 0.65rem;
        border-radius: 1.1rem;
    }
    body.has-lyrics .lower-third,
    body.has-transcript .lower-third { width: auto; }
    .cover-frame { flex-basis: 4.05rem; height: 4.05rem; border-radius: 0.78rem; }
    .eyebrow { margin-bottom: 0.18rem; font-size: 0.59rem; }
    .eyebrow-group {
        justify-content: space-between;
        width: 100%;
        gap: 0.75rem;
    }
    .eyebrow-line { width: 1rem; }
    .lower-third h1 { font-size: clamp(1.65rem, 8.4vw, 2.4rem); }
    .track-identity {
        overflow: hidden;
        max-width: 100%;
    }
    .lower-third h1.is-overflowing {
        display: inline-block;
        white-space: nowrap;
        will-change: transform;
        animation: titleMarquee 14s ease-in-out infinite;
    }
    @keyframes titleMarquee {
        0%, 15% { transform: translateX(0); }
        45%, 55% { transform: translateY(8px) translateX(var(--title-marquee-distance, -20%)); }
        85%, 100% { transform: translateX(0); }
    }
    @media (prefers-reduced-motion: reduce) {
        .lower-third h1.is-overflowing {
            animation: none !important;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            display: block;
        }
    }
    .on-air-context { margin-top: 0.3rem; }
    .catalog-line { margin-top: 0.5rem; font-size: 0.9rem; font-weight: 700; }
    .host-presence-capsule {
        right: max(1rem, var(--safe-right));
        bottom: calc(var(--safe-bottom) + 5.8rem);
        padding: 0.5rem;
        border-radius: 0.8rem;
        gap: 0.6rem;
    }
    .live-host-avatar { flex: 0 0 3.55rem; width: 3.55rem; height: 3.55rem; border-radius: 0.5rem; }
    .host-copy { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
    #dj-name { font-size: 0.9rem; font-weight: 700; }
    #program-name { font-size: 0.75rem; margin: 0; }
    #program-name::before { display: none; }
    .signal-mark { display: none; }

    .lyrics-container,
    .floating-transcript { width: calc(100vw - 2rem); }
    .lyrics-container { bottom: max(7.35rem, calc(var(--safe-bottom) + 6.45rem)); min-height: 3.7rem; }
    .floating-transcript { bottom: max(12.2rem, calc(var(--safe-bottom) + 11.3rem)); }
    .lyrics-container .lyric-line,
    .floating-transcript:not(:empty) {
        padding: 0.48rem 0.72rem;
        border-radius: 0.72rem;
        font-size: clamp(0.95rem, 4.4vw, 1.15rem);
    }

    .init-overlay {
        align-items: flex-end;
        padding: 1rem var(--safe-right) calc(var(--safe-bottom) + 0.25rem) var(--safe-left);
    }
    .init-card { padding: 1.25rem; border-radius: 1.2rem; }
    .init-card h2 { font-size: clamp(1.9rem, 10vw, 2.75rem); }

    .navigation-panel {
        top: auto;
        left: 0.4rem;
        right: 0.4rem;
        bottom: max(0.4rem, env(safe-area-inset-bottom));
        width: auto;
        height: min(73dvh, 39rem);
        border-radius: 1.55rem 1.55rem 1.15rem 1.15rem;
        transform: translateY(calc(100% + 1.2rem));
        grid-template-rows: auto auto auto 1fr auto;
    }
    body.panel-open .navigation-panel { transform: translateY(0); }
    .sheet-handle {
        display: block;
        width: 2.4rem;
        height: 4px;
        margin: 0.65rem auto 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.24);
    }
    .panel-header { padding: 0.8rem 1.15rem 0.55rem; }
    .panel-header h2 { font-size: 1.7rem; }
    .section-nav { padding: 0 1.15rem 0.75rem; }
    .panel-content { padding: 1.1rem 1.15rem calc(1.4rem + env(safe-area-inset-bottom)); }
    .panel-content h3 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
}

@media (max-width: 800px) {
    .global-msg-btn {
        height: 44px;
        font-size: 0.75rem;
        padding: 0 0.8rem;
    }
}

@media (max-width: 350px) {
    .brand-lockup { gap: 0.5rem; }
    .brand-lockup strong { font-size: 0.92rem; }
    .air-pill { width: 44px; padding: 0; justify-content: center; }
    .air-pill #connection-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .air-pill.mini-air-pill { width: auto; min-width: 4.8rem; padding: 0 0.45rem; }
    .air-pill.mini-air-pill #connection-status { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
    .cover-frame { flex-basis: 3.55rem; height: 3.55rem; }
    .lower-third { min-height: 4.9rem; }
    .lower-third h1 { font-size: 1.55rem; }
    #program-name { max-width: 8rem; }
    .lyrics-container { bottom: max(6.8rem, calc(var(--safe-bottom) + 5.9rem)); }
    .floating-transcript { bottom: max(11.3rem, calc(var(--safe-bottom) + 10.4rem)); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Desktop web-radio balance + stable caption contract */
.toggle-cc-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 1px;
    cursor: pointer;
    pointer-events: auto;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.toggle-cc-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
}
.toggle-cc-btn.active {
    border-color: #ffffff;
    background: #ffffff;
    color: #000;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    transform: none;
}

/* CentralEngine owns timing and visibility. These rules only reproduce its stable visual contract. */
.lyrics-container {
    top: 50%;
    bottom: auto;
    width: 90%;
    max-width: 1000px;
    min-height: 0;
    max-height: 250px;
    overflow: visible;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1s ease, top 240ms ease, left 240ms ease, width 240ms ease;
}
.lyrics-container.active { opacity: 1; }
.lyrics-container .lyric-line {
    grid-area: 1 / 1;
    display: block;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    color: rgba(255, 255, 255, 0.15);
    font-family: Outfit, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
    filter: blur(4px);
    opacity: 0;
    transform: scale(0.62);
    transform-origin: center;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.lyrics-container .lyric-line.active {
    color: #fff;
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}
.lyrics-container .lyric-line.previous,
.lyrics-container .lyric-line.next,
.lyrics-container .lyric-line.exiting {
    filter: blur(4px);
    opacity: 0;
    transform: scale(0.62);
}

.floating-transcript {
    top: 50%;
    bottom: auto;
    width: min(85%, 1080px);
    min-height: 0;
    padding: 0 4rem;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-align: center;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.floating-transcript:not(:empty) {
    display: flex;
    max-width: 85%;
    padding: 0 4rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.1em 0.35em;
}
.word-inactive { opacity: 0.25; filter: blur(0.5px); transition: all 0.2s ease; }
.word-active {
    color: #fff;
    filter: blur(0);
    opacity: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 4px 20px rgba(0, 0, 0, 0.6);
    transform: scale(1.02);
    transition: all 0.2s ease-out;
}
.word-emphasis { color: var(--accent); font-weight: 900; text-transform: uppercase; }
.highlight-yellow { color: #ffe66d; }
.highlight-blue { color: #63c5ff; }
.highlight-green { color: #7fffb2; }

@media (min-width: 761px) {
    .lower-third,
    body.has-lyrics .lower-third,
    body.has-transcript .lower-third {
        left: clamp(2rem, 5vw, 5rem);
        bottom: clamp(2.5rem, 7vh, 4.5rem);
        width: min(58rem, calc(100vw - 7rem));
        min-height: 0;
        gap: 1rem;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        align-items: flex-end;
    }
    .lower-third::before {
        position: absolute;
        inset: -2.5rem -4rem -2.2rem -4rem;
        z-index: 0;
        content: "";
        pointer-events: none;
        background: radial-gradient(ellipse at 26% 64%, rgba(3, 5, 10, 0.68), rgba(3, 5, 10, 0.25) 48%, transparent 74%);
        filter: blur(8px);
    }
    .lower-third > * { position: relative; z-index: 1; }
    .cover-frame {
        flex-basis: clamp(8.75rem, 8.5vw, 9.4rem);
        width: clamp(8.75rem, 8.5vw, 9.4rem);
        height: clamp(8.75rem, 8.5vw, 9.4rem);
        border-radius: 1rem;
    }
    .track-identity { max-width: min(48rem, 65vw); }
    .lower-third h1 {
        font-size: clamp(2.8rem, 5.7vw, 5.2rem);
        line-height: 1.12;
        text-overflow: ellipsis;
    }
    .on-air-context { margin-top: 0.65rem; }
    .signal-mark { display: none; }
    body.panel-open .lyrics-container,
    body.panel-open .floating-transcript {
        left: calc(50% - 210px);
        width: min(calc(90% - 420px), 800px);
    }

    /* Desktop Host Presence Enhancement */
    .host-presence-capsule {
        right: clamp(2rem, 5vw, 5rem);
        bottom: clamp(2.5rem, 7vh, 4.5rem);
        flex-direction: column;
        align-items: flex-end;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        gap: 0.5rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .live-host-avatar {
        flex: 0 0 8rem;
        width: 8rem;
        height: 8rem;
        border-radius: 1rem;
        box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.22);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .host-copy {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.2rem;
        text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8);
    }
    #dj-name { font-size: 1.2rem; font-weight: 700; color: rgba(255, 255, 255, 0.95); }
    #program-name { font-size: 0.9rem; margin: 0; }
    #program-name::before { display: none; }
    .speaking-indicator {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        z-index: 5;
    }

    /* Desktop Navigation Panel Expansion */
    .navigation-panel {
        width: clamp(520px, 34vw, 640px);
    }
    .section-nav {
        flex-wrap: wrap;
        padding-bottom: 0.5rem;
    }
    
    /* Desktop Catalog Breathing Room */
    .catalog-card {
        gap: 1.25rem;
        padding: 1rem;
    }
    .catalog-card-cover {
        flex: 0 0 8.5rem;
        height: 8.5rem;
        border-radius: 0.75rem;
    }
    
    .live-track-card {
        gap: 1.25rem;
        padding: 0.75rem;
    }
    .live-track-cover {
        flex: 0 0 8.5rem;
        height: 8.5rem;
        border-radius: 0.75rem;
    }
    
    .catalog-card-info strong {
        font-size: 1.15rem;
    }
    .catalog-editorial {
        margin: 0.8rem 0;
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .catalog-links, .live-track-links {
        margin-top: 0.85rem;
    }
    }
}

@media (max-width: 760px) {
    .toggle-cc-btn.active { transform: none; }
    .lyrics-container {
        top: 50%;
        bottom: auto;
        width: 92%;
        max-height: 180px;
        transform: translate(-50%, -50%);
    }
    .lyrics-container {
        max-width: min(88vw, 36ch);
    }
    .lyrics-container .lyric-line { font-size: clamp(0.9rem, 3.4vw, 1.08rem); line-height: 1.25; }
    .lyrics-container .lyric-line.active { font-size: clamp(1rem, 3.8vw, 1.22rem); line-height: 1.22; }
    .floating-transcript,
    .floating-transcript:not(:empty) {
        top: 50%;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        font-size: 1.6rem;
        transform: translate(-50%, -50%);
    }
    body.panel-open .lyrics-container { top: max(9rem, 18vh); transform: translate(-50%, calc(-50% - 48px)); }
    body.panel-open .floating-transcript { top: max(6rem, 12vh); transform: translate(-50%, calc(-50% - 48px)); }
}



/* Legacy mobile unlock overlay kept inert; #start-btn is the canonical tune CTA. */
.mobile-unlock-overlay {
    display: none !important;
    pointer-events: none !important;
}
.mobile-unlock-btn {
    pointer-events: none !important;
}

/* Agentic Content Styles */
.catalog-editorial {
    margin: 0.6rem 0;
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
    line-height: 1.4;
}
.catalog-links, .live-track-links {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    overflow: visible;
}
.catalog-links a,
.live-track-links a {
    overflow: visible;
}
.song-platform-link {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.72;
    transform: none;
    transition: opacity 140ms ease-out;
    overflow: visible;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    line-height: 0;
    text-decoration: none;
    outline: none;
}
.song-platform-link:hover,
.song-platform-link:focus-visible {
    opacity: 1;
    transform: none;
    background: transparent;
    border: 0;
}
.song-platform-icon {
    display: block;
    width: 32px;
    height: 32px;
    padding: 4px;
    box-sizing: border-box;
    object-fit: contain;
    background: transparent;
    border: 0;
    filter: brightness(0) invert(1);
    overflow: visible;
    pointer-events: none;
}
.links-pending {
    font-size: 0.75rem;
    color: var(--muted);
    opacity: 0.6;
}
.hosts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.host-info-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.host-info-avatar {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--glass);
}
.host-info-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.host-info-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.host-info-details strong { font-size: 1.1rem; }
.host-program-schedule { font-size: 0.85rem; color: var(--accent-2); }
.host-agent-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    background: rgba(140, 245, 205, 0.15);
    color: var(--accent);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0.25rem 0;
    align-self: flex-start;
}
.host-personality {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--muted);
    margin-top: 0.25rem;
}

/* Highlighted Messages Styles */
.highlight-card.discrete {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
}
.highlight-label {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.highlight-card.discrete blockquote {
    margin: 0;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--ink);
    line-height: 1.4;
}
.highlight-card.discrete cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted);
    font-style: normal;
}
.highlight-card-main {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid var(--line);
}

/* Marquee Effect for Long Titles */
.marquee-active {
    width: max-content !important;
    text-overflow: clip !important;
    animation: marquee-scroll 8s alternate infinite ease-in-out;
    padding-right: 1rem;
}

@keyframes marquee-scroll {
    0%, 15% { transform: translateX(0); }
    85%, 100% { transform: translateX(var(--scroll-dist, 0px)); }
}

body.has-cover .cover-frame img#song-cover {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Modo Vidriera / Kiosk Mode */
body.kiosk-mode {
    overflow: hidden;
}
body.kiosk-mode #global-msg-btn,
body.kiosk-mode #menu-btn {
    display: none !important;
}
body.kiosk-mode .navigation-panel {
    display: none !important;
}
body.kiosk-mode .panel-backdrop {
    display: none !important;
}
body.kiosk-mode .lower-third {
    transform: scale(1.02);
    transform-origin: bottom left;
}

/* Catálogo Sonando Ahora & Buscador */
.catalog-now-label {
    display: inline-block;
    background: var(--accent);
    color: #071317;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.catalog-now-card .catalog-card {
    border: 1px solid rgba(140, 245, 205, 0.4);
    background: rgba(140, 245, 205, 0.05);
    box-shadow: 0 0 15px rgba(140, 245, 205, 0.1);
    margin-bottom: 2rem;
}
.js-cover-preview,
.js-host-profile-trigger {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.js-cover-preview:hover,
.js-host-profile-trigger:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}
.catalog-search {
    margin: 1.5rem 0;
}
.catalog-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
}
.catalog-search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}
.catalog-search-input::placeholder {
    color: var(--muted);
}
#catalog-results-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--muted);
}

.artist-platform-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
}
.artist-platform-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0;
    text-decoration: none;
    color: rgba(255,255,255,.92);
    cursor: pointer;
    transition: all 0.2s ease;
}
.artist-platform-link span {
    display: none;
}
.artist-platform-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    fill: currentColor;
    color: rgba(255,255,255,.92);
}
/* Force images to be white using filter */
img.artist-platform-logo {
    filter: brightness(0) invert(1);
}
.artist-platform-link:hover {
    transform: translateY(-1px) scale(1.06);
    color: #ffffff;
}

body.kiosk-mode [data-section-panel="artist"] {
    display: none !important;
}

/* Local Mute Button */
.local-mute-container {
    position: fixed;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    pointer-events: none;
}

#local-mute-btn {
    pointer-events: auto;
    background: rgba(12, 16, 25, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 200ms ease;
    cursor: pointer;
}

#local-mute-btn:hover {
    background: rgba(25, 30, 45, 0.9);
}

.mute-toast {
    pointer-events: none;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 250ms ease;
    white-space: nowrap;
}

.mute-toast.visible {
    opacity: 1;
}

@media (min-width: 761px) {
    .local-mute-container {
        right: clamp(2rem, 5vw, 5rem);
        bottom: calc(clamp(2.5rem, 7vh, 4.5rem) + 4rem - 22px);
    }
}

@media (max-width: 760px) {
    .local-mute-container {
        right: max(1rem, var(--safe-right));
        bottom: calc(var(--safe-bottom) + 6rem + 0.75rem);
    }
}

/* Background cover styles */
.cover-as-background-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cover-as-background-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 35%, rgba(0, 255, 200, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.78));
    pointer-events: none;
}

.cover-as-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    animation: coverDrift 24s ease-in-out infinite alternate;
    /* Blur minimo para tapar pixeles si la portada es chica, pero sin borrar su forma */
    filter: blur(1.5px) brightness(0.9);
}

@keyframes coverDrift {
    0% { transform: scale(1.03) translate3d(-0.4%, -0.3%, 0); }
    100% { transform: scale(1.07) translate3d(0.4%, 0.3%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .cover-as-background {
        animation: none !important;
        transform: scale(1.04);
    }
}
.video-transition-shield { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity 220ms ease; background: rgba(0, 0, 0, 0.10); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); } .video-transition-shield.active { opacity: 1; }



/* ANTI SPINNER GLOBALS */
#player-media.loading::after, .radio-loading-spinner, .spinner, .loader { display: none !important; animation: none !important; }
#video-transition-shield::before, #video-transition-shield::after { display: none !important; animation: none !important; content: none !important; }


.tuning-spinner, .radio-loading-spinner, .spinner, .loader, #player-media.loading::after, #video-transition-shield::before, #video-transition-shield::after { display: none !important; visibility: hidden !important; opacity: 0 !important; animation: none !important; content: none !important; }

/* Track Cover Lightbox specific styles */
.is-track-cover-lightbox .host-lightbox-close-button {
    display: none !important;
}

.track-cover-lightbox-close {
    display: none;
    margin-top: 16px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.92);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
}

.is-track-cover-lightbox .track-cover-lightbox-close {
    display: block;
}

.is-track-cover-lightbox .lightbox-image {
    width: min(72vw, 760px, 70vh) !important;
    height: min(72vw, 760px, 70vh) !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    display: block !important;
    object-fit: cover !important;
}

@media (max-width: 640px) {
    .is-track-cover-lightbox .lightbox-image {
        width: min(75vw, 65vh) !important;
        height: min(75vw, 65vh) !important;
    }
}

.protected-media,
.protected-media img,
img.protected-media {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

/* Top right buttons adjustments */
#global-msg-btn,
#menu-btn {
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    transition:
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        transform 0.22s ease !important;
}

#global-msg-btn {
    color: #ffffff !important;
}

#global-msg-btn:hover,
#menu-btn:hover {
    border-color: rgba(255, 255, 255, 0.55) !important;
    box-shadow:
        0 0 18px rgba(255, 255, 255, 0.22),
        0 0 36px rgba(255, 255, 255, 0.14),
        inset 0 0 14px rgba(255, 255, 255, 0.08) !important;
}

/* Barras del men� hamburguesa: flex column con gap chico en vez de margin
   en cada span -- controla la separaci�n entre barras de forma pareja
   (antes el margin dejaba doble espacio real entre barras). El c�rculo
   (44px) no cambia; justify-content/align-items lo mantienen centrado. */
#menu-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
}
#menu-btn span {
    width: 20px !important;
    height: 2px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
}

/* Cover crossfade transition */
.cover-crossfade-stack {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  display: block;
}

.cover-crossfade-layer {
  transition: opacity 1600ms cubic-bezier(0.22, 1, 0.36, 1), transform 1600ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* El ghost temporal (is-exiting) se extrae del flujo para superponerse */
img.cover-crossfade-layer.is-exiting {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0 !important;
  transform: scale(0.995) !important;
  z-index: 2 !important;
}

/* La imagen principal se mantiene en el flujo normal (position: relative) */
img.cover-crossfade-layer.is-active {
  opacity: 1 !important;
  transform: scale(1) !important;
  z-index: 1 !important;
}

img.cover-crossfade-layer:not(.is-active):not(.is-exiting) {
  opacity: 0 !important;
  transform: scale(1.015) !important;
}

/* FIX: portada panel derecho visible y sin circulo */
.live-track-cover,
#panel-now-cover,
.now-playing-cover,
.live-track-card .current-track-cover {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 0.5rem !important;
}

.live-track-cover img,
#panel-now-cover,
.now-playing-cover img,
.live-track-card .current-track-cover img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  z-index: 5 !important;
  transform: none !important;
}

.live-track-cover .cover-placeholder,
.live-track-cover::before,
.live-track-cover::after,
#panel-now-cover::before,
#panel-now-cover::after,
.now-playing-cover::before,
.now-playing-cover::after,
.live-track-card .current-track-cover::before,
.live-track-card .current-track-cover::after {
  display: none !important;
  content: none !important;
}

/* FIX: TAMA�O SUBTITULOS MOBILE */
@media (max-width: 768px) {
  .lyrics-line,
  .lrc-line,
  .current-lyric,
  .subtitle-line,
  .karaoke-line,
  .hero-lyric,
  .main-lyric,
  .lrc-current-line,
  .lyric-line:not(.active),
  .lyrics-current,
  .current-line {
    font-size: clamp(0.9rem, 3.4vw, 1.08rem) !important;
    line-height: 1.25 !important;
    max-width: min(88vw, 36ch) !important;
    letter-spacing: -0.015em !important;
  }
}

@media (max-width: 480px) {
  .lyrics-line,
  .lrc-line,
  .current-lyric,
  .subtitle-line,
  .karaoke-line,
  .hero-lyric,
  .main-lyric,
  .lrc-current-line,
  .lyric-line:not(.active),
  .lyrics-current,
  .current-line {
    font-size: clamp(0.85rem, 3.2vw, 1.05rem) !important;
    line-height: 1.25 !important;
    max-width: min(88vw, 36ch) !important;
  }
}


/* Clean lower-third cover and smooth cover changes */
.cover-frame::before,
.cover-frame::after,
.cover-frame .cover-placeholder {
    display: none !important;
    content: none !important;
}

.cover-frame > img#song-cover,
.live-track-cover > img#panel-now-cover {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    border-radius: inherit !important;
    transition: opacity 560ms ease, transform 560ms ease !important;
    will-change: opacity, transform;
}

body.has-cover .cover-frame img#song-cover.cover-crossfade-layer,
.live-track-cover > img#panel-now-cover.cover-crossfade-layer {
    opacity: 0 !important;
    transform: scale(1.012) !important;
}

body.has-cover .cover-frame img#song-cover.cover-crossfade-layer.is-active,
.live-track-cover > img#panel-now-cover.cover-crossfade-layer.is-active {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.cover-crossfade-ghost {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    transition: opacity 1600ms cubic-bezier(0.22, 1, 0.36, 1), transform 1600ms cubic-bezier(0.22, 1, 0.36, 1) !important;
    z-index: 8 !important;
    pointer-events: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    border-radius: inherit !important;
}

.cover-frame .cover-crossfade-ghost {
    object-fit: contain !important;
    object-position: center center !important;
}

.live-track-cover .cover-crossfade-ghost {
    object-fit: cover !important;
    object-position: center center !important;
}

.cover-crossfade-ghost.is-fading {
    opacity: 0 !important;
    transform: scale(0.995) !important;
}

@media (prefers-reduced-motion: reduce) {
    .cover-frame > img#song-cover,
    .live-track-cover > img#panel-now-cover,
    .cover-crossfade-ghost {
        transition: none !important;
        transform: none !important;
    }
}


#panel-now-title {
    margin-top: 0;
    margin-bottom: 0.2rem;
    line-height: 1.15;
}

/* SIDE PANEL NOW COVER — remove visible 1px edge */
.live-track-cover {
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.live-track-cover img,
#panel-now-cover,
.live-track-cover .cover-crossfade-layer,
.live-track-cover .cover-crossfade-ghost {
  display: block !important;
  width: calc(100% + 2px) !important;
  height: calc(100% + 2px) !important;
  max-width: none !important;
  object-fit: cover !important;
  margin: -1px !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}


/* HOST FEATURE CARD IN SIDE PANEL */
.host-feature-card {
  display: flex !important;
  flex-direction: column;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

.host-feature-card[hidden] {
  display: none !important;
}

.host-feature-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.8rem;
}

.host-feature-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.host-feature-avatar {
  width: 6.5rem !important;
  height: 6.5rem !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.host-feature-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.host-feature-text strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.host-feature-text span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  margin-top: 0.35rem;
}

/* CENTERING CLOSE BUTTON */
.close-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}
.close-button svg,
.close-button span {
  display: block;
}

/* FIX DEFINITIVO: subtítulos mobile tamaño extra-grande */
@media (max-width: 768px) {
  html body .lyrics-container {
    max-width: min(90vw, 36ch) !important;
  }

  html body .lyrics-container .lyric-line,
  html body .lyrics-container .lyric-line:not(.active),
  html body .lrc-current-line,
  html body .lyrics-current,
  html body .current-line {
    font-size: clamp(1.5rem, 5.8vw, 1.95rem) !important;
    line-height: 1.25 !important;
    max-width: min(90vw, 36ch) !important;
  }

  html body .lyrics-container .lyric-line.active {
    font-size: clamp(1.8rem, 7.0vw, 2.35rem) !important;
    line-height: 1.22 !important;
    max-width: min(90vw, 36ch) !important;
  }

  html body .floating-transcript,
  html body .floating-transcript:not(:empty) {
    font-size: clamp(1.5rem, 5.8vw, 1.95rem) !important;
    line-height: 1.25 !important;
    max-width: min(90vw, 36ch) !important;
  }

  html body.panel-open .lyrics-container,
  html body.panel-open .floating-transcript {
    top: clamp(5.5rem, 12vh, 7.5rem) !important;
    bottom: auto !important;
    transform: translate(-50%, 0) !important;
    z-index: 120 !important;
    pointer-events: none !important;
    max-width: min(90vw, 36ch) !important;
  }
}

/* FIX FINAL: MOBILE BOTTOM CARD PORTADA & TITLE MARQUEE */
@media (max-width: 768px) {
  /* Layout de tarjeta inferior */
  .lower-third {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    column-gap: 0.85rem !important;
    align-items: center !important;
  }
  
  /* Enlarge the lower card cover */
  .lower-third .cover-frame {
    width: 88px !important;
    min-width: 88px !important;
    height: 88px !important;
    min-height: 88px !important;
    border-radius: 0.85rem !important;
    margin: 0 !important;
    align-self: center !important;
  }
  
  .lower-third .cover-frame img {
    height: 100% !important;
    object-fit: cover !important;
  }
  
  .lower-third .track-identity {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 88px !important;
    gap: 0.2rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Title Marquee Overrides */
  .lower-third h1#now-playing.is-overflowing {
    display: inline-block !important;
    width: max-content !important;
    max-width: none !important;
    padding-right: 2rem !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    animation: mobileTitleMarquee 20s ease-in-out infinite !important;
  }
}

@keyframes mobileTitleMarquee {
    0%, 12% {
      transform: translateX(0);
    }
    45%, 60% {
      transform: translateX(var(--title-marquee-distance, -40px));
    }
    93%, 100% {
      transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
  .lower-third h1#now-playing.is-overflowing {
    animation: none !important;
    transform: translateX(0) !important;
  }
}

/* FIX FINAL: PORTADAS MENU MOBILE */
@media (max-width: 768px) {
  /* 1. Secci�n En Vivo (Tarjeta Actual) */
  .navigation-panel .live-track-card {
    display: grid !important;
    grid-template-columns: clamp(104px, 28vw, 128px) 1fr !important;
    gap: 1rem !important;
    align-items: center !important;
  }
  .navigation-panel .live-track-cover {
    width: clamp(104px, 28vw, 128px) !important;
    height: clamp(104px, 28vw, 128px) !important;
    min-width: clamp(104px, 28vw, 128px) !important;
    flex: none !important;
    border-radius: 0.95rem !important;
    overflow: hidden !important;
  }
  .navigation-panel .live-track-cover img,
  .navigation-panel #panel-now-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* 2. Secci�n Cat�logo Ai Vibra (Tarjeta Sonando Ahora) */
  .navigation-panel .catalog-now-card .catalog-card {
    display: grid !important;
    grid-template-columns: clamp(104px, 28vw, 128px) 1fr !important;
    gap: 1rem !important;
    align-items: center !important;
  }
  .navigation-panel .catalog-now-card .catalog-card-cover {
    width: clamp(104px, 28vw, 128px) !important;
    height: clamp(104px, 28vw, 128px) !important;
    min-width: clamp(104px, 28vw, 128px) !important;
    flex: none !important;
    border-radius: 0.95rem !important;
    overflow: hidden !important;
  }
  .navigation-panel .catalog-now-card .catalog-card-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* 3. Resto de tarjetas del cat�logo (aumento moderado) */
  .navigation-panel .catalog-card {
    display: grid !important;
    grid-template-columns: clamp(104px, 28vw, 128px) 1fr !important;
    gap: 0.9rem !important;
    align-items: center !important;
  }
  .navigation-panel .catalog-card-cover {
    width: clamp(104px, 28vw, 128px) !important;
    height: clamp(104px, 28vw, 128px) !important;
    min-width: clamp(104px, 28vw, 128px) !important;
    flex: none !important;
    border-radius: 0.95rem !important;
  }
}

/* ── DETRÁS DEL AIRE ─────────────────────────────────────────────────────
   Variables propias (no se tocan las globales --accent/--accent-2 para no
   afectar el resto del sitio). Reutiliza el sistema de vidrio existente
   (fondo oscuro, blur, --line) y le suma acentos magenta/púrpura/cian. */
.bta-panel {
    --bta-magenta: #ff3ec8;
    --bta-purple: #8a4fff;
    --bta-cyan: #33e6ff;
    --bta-glass: rgba(18, 10, 28, 0.55);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.9rem;
    animation: section-in 260ms ease both;
}

/* Sin backdrop-filter propio: .navigation-panel ya aplica blur(24px) sobre
   el video en vivo -- apilar un blur por tarjeta (eran 6) es carísimo de
   renderizar. El fondo queda un poco más opaco para compensar y seguir
   leyéndose como "vidrio" sin recalcular blur por tarjeta. */
.bta-card {
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: linear-gradient(160deg, rgba(18, 10, 28, 0.72), rgba(10, 8, 16, 0.62));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bta-card-label {
    display: block;
    color: var(--muted);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.bta-header-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0.85rem;
    align-items: stretch;
}

/* Próxima decisión / Oyentes conectados */
.bta-side-card { display: flex; flex-direction: column; justify-content: space-between; gap: 0.9rem; }
.bta-side-block:last-child .bta-card-label { margin-top: 0; }
.bta-side-value { display: flex; align-items: center; gap: 0.5rem; }
.bta-side-value strong { font-size: 1.15rem; color: var(--ink); }
.bta-side-sub {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.5;
}
.bta-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--bta-cyan);
    box-shadow: 0 0 0.5rem var(--bta-cyan);
    animation: liveDotPulse 1.8s ease-in-out infinite;
}
.bta-side-icon { font-size: 0.95rem; line-height: 1; }

/* "La radio piensa en voz alta": la cabina narra en primera persona su
   paso vigente (lenguaje de vecino), con un mini-mapa de 6 nodos arriba
   (posición en el pipeline de un vistazo) y las últimas dos frases como
   bitácora atenuada. Compacto y con la identidad agéntica puesta en la
   voz, no en la jerga. */
.bta-mind-card { position: relative; overflow: hidden; }
.bta-mind-card::after {
    /* barrido de luz muy sutil cruzando la tarjeta, look "sistema vivo" */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 42%, rgba(51, 230, 255, 0.05) 50%, transparent 58%);
    background-size: 240% 100%;
    animation: btaMindScan 7s linear infinite;
    pointer-events: none;
}
@keyframes btaMindScan {
    0% { background-position: 130% 0; }
    100% { background-position: -30% 0; }
}
.bta-mind-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}
.bta-mind-head .bta-card-label { margin-bottom: 0; }
.bta-mind-stage {
    font-family: 'SFMono-Regular', ui-monospace, 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--bta-cyan);
    opacity: 0.85;
    white-space: nowrap;
}

/* Mini-mapa del pipeline: 6 nodos unidos por una línea */
.bta-mind-steps {
    display: flex;
    align-items: center;
    margin: 0.75rem 0 0.85rem;
    position: relative;
    z-index: 1;
}
.bta-mind-node {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    transition: background 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}
.bta-mind-link {
    flex: 1 1 auto;
    height: 1px;
    background: var(--line);
    margin: 0 0.3rem;
    transition: background 240ms ease;
}
.bta-mind-node.is-done { background: var(--bta-cyan); border-color: var(--bta-cyan); box-shadow: 0 0 0.35rem rgba(51, 230, 255, 0.55); }
.bta-mind-link.is-done { background: rgba(51, 230, 255, 0.45); }
.bta-mind-node.is-active {
    background: var(--bta-magenta);
    border-color: var(--bta-magenta);
    box-shadow: 0 0 0.55rem var(--bta-magenta);
    transform: scale(1.35);
    animation: liveDotPulse 1.4s ease-in-out infinite;
}
.bta-mind-node.is-skipped {
    background: transparent;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.3);
    opacity: 0.55;
}

/* La frase en primera persona */
.bta-mind-line {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-left: 0.85rem;
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--ink);
}
.bta-mind-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18rem;
    bottom: 0.18rem;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--bta-magenta), var(--bta-cyan));
}
.bta-mind-line.is-entering { animation: btaMindIn 380ms ease both; }
@keyframes btaMindIn {
    0% { opacity: 0; transform: translateY(0.3rem); filter: blur(2px); }
    100% { opacity: 1; transform: none; filter: none; }
}

/* Bitácora: las últimas frases, chiquitas y atenuadas */
.bta-mind-trail {
    list-style: none;
    margin: 0.7rem 0 0;
    padding: 0 0 0 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
    z-index: 1;
}
.bta-mind-trail li {
    font-size: 0.7rem;
    color: rgba(246, 244, 238, 0.4);
    line-height: 1.45;
}
.bta-mind-trail-time {
    font-family: 'SFMono-Regular', ui-monospace, 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
    color: rgba(51, 230, 255, 0.55);
    margin-right: 0.45rem;
    letter-spacing: 0.05em;
}

/* Lo último que dije al aire: la prueba concreta de agencia. La cita es
   texto REAL confirmado al aire (ledger de trazas), nunca texto planificado
   que después se descartó. */
.bta-quote-card { position: relative; overflow: hidden; }
.bta-quote-card::before {
    content: "“";
    position: absolute;
    top: -0.9rem;
    right: 0.4rem;
    font-size: 5.4rem;
    line-height: 1;
    color: rgba(255, 62, 200, 0.14);
    pointer-events: none;
}
.bta-quote-text {
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: 1.02rem;
    line-height: 1.55;
    font-style: italic;
    color: var(--ink);
}
.bta-quote-meta {
    display: block;
    margin-top: 0.6rem;
    font-family: 'SFMono-Regular', ui-monospace, 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: rgba(51, 230, 255, 0.65);
}
@media (prefers-reduced-motion: reduce) {
    .bta-mind-card::after { animation: none; }
    .bta-mind-node.is-active { animation: none; }
    .bta-mind-line.is-entering { animation: none; }
}

@media (max-width: 760px) {
    .bta-header-row { grid-template-columns: 1fr; }
    .bta-card { padding: 0.95rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .bta-live-dot { animation: none; }
    .bta-panel { animation: none; }
}




.project-document-block {
    border-color: rgba(40, 220, 178, 0.38);
    background: linear-gradient(145deg, rgba(40, 220, 178, 0.1), rgba(8, 18, 16, 0.72));
}

.project-block-heading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}

.project-block-heading h4 {
    margin: 0;
}

.project-heading-icon-link {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    overflow: hidden;
    border: 1px solid rgba(85, 233, 199, 0.5);
    border-radius: 0.65rem;
    background: #050607;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.project-heading-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-heading-icon-link:hover,
.project-heading-icon-link:focus-visible {
    transform: translateY(-1px) scale(1.04);
    border-color: #55e9c7;
    box-shadow: 0 0 0 3px rgba(85, 233, 199, 0.14);
}

.project-document-link,
.project-external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    margin-top: 0.75rem;
    padding: 0 1rem;
    border: 1px solid rgba(40, 220, 178, 0.72);
    border-radius: 999px;
    color: #55e9c7;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.project-document-link:hover,
.project-document-link:focus-visible,
.project-external-link:hover,
.project-external-link:focus-visible {
    color: #04110d;
    background: #55e9c7;
    transform: translateY(-1px);
}
