/* ===== RADIO THEME — RETRO DISCO ===== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ── Tokens ── */
:root {
    --bg1: #1a0a2e;
    --bg2: #240f3d;
    --surface: rgba(255, 200, 255, .06);
    --surface2: rgba(255, 200, 255, .10);

    --ink: #ffe6f7;
    --inkSoft: rgba(255, 230, 247, .55);

    --accent: #ff2d95;
    --accentAlt: #ffd700;
    --accentSoft: rgba(255, 45, 149, .22);
    --live: #ff2d55;

    --strokeColor: rgba(255, 150, 255, .15);
    --stroke: 1px solid var(--strokeColor);
    --shadow: 0 2px 12px rgba(120, 0, 80, .35);
    --shadow2: 0 4px 24px rgba(180, 0, 120, .25);

    --r: 18px;

    --safeB: env(safe-area-inset-bottom, 0px);
    --safeT: env(safe-area-inset-top, 0px);

    --disco-grad: linear-gradient(135deg, #ff2d95, #ffd700, #a855f7, #ff2d95);
}

/* ── Reset / Global ── */
html,
body {
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg1);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(255, 45, 149, .15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(168, 85, 247, .12) 0%, transparent 50%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Disco shimmer animation ── */
@keyframes discoShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes discoGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 45, 149, .2), 0 0 30px rgba(168, 85, 247, .1);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 45, 149, .35), 0 0 50px rgba(168, 85, 247, .2);
    }
}

@keyframes neonPulse {

    0%,
    100% {
        text-shadow: 0 0 8px rgba(255, 45, 149, .4);
    }

    50% {
        text-shadow: 0 0 18px rgba(255, 45, 149, .7), 0 0 35px rgba(255, 215, 0, .3);
    }
}

/* ── Page shell ── */
.page {
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: var(--safeT);
    padding-bottom: var(--safeB);
    overflow: hidden;
}

.wrap {
    flex: 1;
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.wrap::-webkit-scrollbar {
    display: none;
}

/* ── Section order: Hero, Carousel, Socials, Player ── */
.hero {
    order: 1;
    flex-shrink: 0;
}

.carousel {
    order: 2;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.socials {
    order: 3;
    flex-shrink: 0;
}

.player {
    order: 4;
    flex-shrink: 0;
}

/* ── Card base ── */
.card {
    background: var(--surface);
    border: var(--stroke);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card::after {
    display: none !important;
}

/* ── Hero ── */
.hero {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    background:
        linear-gradient(135deg, rgba(255, 45, 149, .10), rgba(168, 85, 247, .08), rgba(255, 215, 0, .06));
    animation: discoGlow 4s ease-in-out infinite;
}

.logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 0 16px rgba(255, 45, 149, .35), 0 0 32px rgba(255, 45, 149, .12);
    transition: transform .3s ease;
}

.logo:hover {
    transform: rotate(15deg) scale(1.08);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.heroText {
    min-width: 0;
}

.heroText h1 {
    margin: 0;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--disco-grad);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: discoShimmer 4s ease infinite;
}

.heroText p {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--inkSoft);
    font-weight: 400;
}

.heroActions {
    margin-left: auto;
    flex: 0 0 auto;
}

/* ── Buttons ── */
.btn {
    cursor: pointer;
    border: 1px solid rgba(255, 150, 255, .18);
    background: rgba(255, 45, 149, .08);
    color: var(--ink);
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
    transition: all .2s ease;
    user-select: none;
    white-space: nowrap;
}

.btn:hover {
    background: rgba(255, 45, 149, .18);
    border-color: rgba(255, 45, 149, .35);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 45, 149, .15);
}

.btn:active {
    transform: translateY(0) scale(.97);
}

.btn:focus-visible {
    outline: 2px solid var(--accentAlt);
    outline-offset: 2px;
}

.btnPrimary {
    background: linear-gradient(135deg, var(--accent), #a855f7);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 16px rgba(255, 45, 149, .3);
}

.btnPrimary:hover {
    background: linear-gradient(135deg, #ff5aad, #c084fc);
    box-shadow: 0 4px 24px rgba(255, 45, 149, .45);
}

/* ── Player ── */
.boombox.player {
    padding: 16px 18px;
    background:
        linear-gradient(135deg, rgba(168, 85, 247, .10), rgba(255, 45, 149, .06));
}

.rowTop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 215, 0, .35);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 215, 0, .15), rgba(255, 45, 149, .10));
    color: var(--accentAlt);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(255, 215, 0, .12);
    animation: discoGlow 3s ease-in-out infinite;
}

.liveDot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accentAlt);
    box-shadow: 0 0 8px rgba(255, 215, 0, .6);
    animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .2;
    }
}

/* EQ */
.eq {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.eq .bar {
    width: 3px;
    height: 16px;
    border-radius: 3px;
    background: linear-gradient(to top, var(--accent), var(--accentAlt));
    transform-origin: bottom;
    animation: dance .75s ease-in-out infinite;
}

.eq .bar:nth-child(2) {
    animation-delay: .06s;
}

.eq .bar:nth-child(3) {
    animation-delay: .12s;
}

.eq .bar:nth-child(4) {
    animation-delay: .18s;
}

.eq .bar:nth-child(5) {
    animation-delay: .24s;
}

.eq .bar:nth-child(6) {
    animation-delay: .30s;
}

.eq .bar:nth-child(7) {
    animation-delay: .36s;
}

@keyframes dance {

    0%,
    100% {
        transform: scaleY(.2);
        opacity: .5;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.eq.paused .bar {
    animation: none;
    transform: scaleY(.15);
    opacity: .25;
}

/* Controls */
.controls {
    display: flex;
    gap: 14px;
    align-items: center;
}

.bigPlay {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accentAlt));
    color: #1a0a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 0 20px rgba(255, 45, 149, .35), 0 2px 12px rgba(255, 215, 0, .15);
    transition: transform .2s ease, box-shadow .2s ease;
    flex-shrink: 0;
}

.bigPlay #playText {
    display: none;
}

.bigPlay #playIcon {
    font-size: 18px;
    margin-left: 2px;
}

.bigPlay:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 45, 149, .5), 0 0 50px rgba(255, 215, 0, .2);
}

.bigPlay:active {
    transform: scale(.94);
}

.bigPlay:focus-visible {
    outline: 2px solid var(--accentAlt);
    outline-offset: 3px;
}

.track {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tiny {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--inkSoft);
    gap: 8px;
}

.progress {
    height: 4px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 150, 255, .10);
    overflow: hidden;
    box-shadow: none;
}

.fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accentAlt));
    border-radius: 999px;
    transition: width .2s linear;
    box-shadow: 0 0 8px rgba(255, 45, 149, .3);
}

.volRow {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    font-size: 11px;
    color: var(--inkSoft);
}

.range {
    width: 100px;
    accent-color: var(--accent);
}

/* ── Carousel ── */
.polaroid.carousel {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.frame {
    flex: 1;
    min-height: 120px;
    border-radius: var(--r);
    border: 1px solid rgba(255, 45, 149, .20);
    background: #0d0518;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 30px rgba(120, 0, 80, .4), 0 0 40px rgba(255, 45, 149, .08);
    transform: none;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity .9s cubic-bezier(.4, 0, .2, 1), transform 1.3s cubic-bezier(.16, 1, .3, 1);
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(.85) saturate(1.2) contrast(1.05);
}

.cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 10, 46, .92) 0%, transparent 100%);
    border: none;
    border-radius: 0;
    padding: 32px 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    transform: none;
    opacity: 1;
    color: var(--ink);
}

.cap h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    animation: neonPulse 3s ease-in-out infinite;
}

.cap p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--inkSoft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slide.active .cap {
    animation: capFade .5s ease;
}

@keyframes capFade {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
}

.dots {
    display: flex;
    gap: 5px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.dots button {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 150, 255, .18);
    cursor: pointer;
    transition: all .25s ease;
    padding: 0;
}

.dots button:hover {
    background: rgba(255, 45, 149, .4);
    box-shadow: 0 0 8px rgba(255, 45, 149, .3);
}

.dots button.active {
    background: linear-gradient(90deg, var(--accent), var(--accentAlt));
    width: 20px;
    box-shadow: 0 0 10px rgba(255, 45, 149, .35);
}

/* ── Socials ── */
.socials {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 150, 255, .12);
    background: rgba(255, 45, 149, .06);
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 13px;
    transition: all .2s ease;
    box-shadow: none;
}

.chip:hover {
    background: rgba(255, 45, 149, .14);
    border-color: rgba(255, 45, 149, .30);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 45, 149, .15);
}

.chipIcon {
    background: linear-gradient(135deg, rgba(255, 45, 149, .15), rgba(255, 215, 0, .10));
    width: 22px;
    height: 22px;
    font-size: 11px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ── Anti-overflow ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.page,
.wrap,
.card {
    max-width: 100%;
}

.wrap>* {
    max-width: 100%;
}

/* ── Small screens ── */
@media (max-width: 520px) {
    .heroText h1 {
        font-size: 19px;
    }

    .wrap {
        gap: 8px;
        padding: 8px 12px;
    }

    .frame {
        aspect-ratio: 16/9;
    }

    .hero {
        padding: 10px 14px;
        gap: 10px;
    }

    .boombox.player {
        padding: 12px 14px;
    }

    .range {
        width: 80px;
    }
}

/* ── Very short screens ── */
@media (max-height: 680px) {
    .wrap {
        gap: 6px;
        padding: 6px 12px;
    }

    .hero {
        padding: 8px 14px;
    }

    .boombox.player {
        padding: 10px 14px;
    }

    .frame {
        aspect-ratio: 21/8;
    }

    .nav {
        margin-top: 4px;
    }
}