/* ===== RADIO THEME — RETRO POP 90s / NEON CONCERT ===== */

@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ── Tokens ── */
:root {
    --bg1: #0a0a1a;
    --bg2: #141428;
    --surface: rgba(180, 100, 255, .06);
    --surface2: rgba(180, 100, 255, .12);

    --ink: #f0e6ff;
    --inkSoft: rgba(240, 230, 255, .50);

    --accent: #ff00ff;
    --accentAlt: #00ffcc;
    --accentWarm: #ffff00;
    --accentSoft: rgba(255, 0, 255, .18);
    --live: #ff003c;

    --strokeColor: rgba(255, 0, 255, .18);
    --stroke: 1px solid var(--strokeColor);
    --shadow: 0 2px 16px rgba(255, 0, 255, .15);
    --shadow2: 0 4px 30px rgba(0, 255, 204, .12);

    --r: 16px;

    --safeB: env(safe-area-inset-bottom, 0px);
    --safeT: env(safe-area-inset-top, 0px);

    --neon-grad: linear-gradient(135deg, #ff00ff, #00ffcc, #ffff00, #ff00ff);
    --neon-grad2: linear-gradient(90deg, #ff00ff, #00ffcc);
}

/* ── 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 15% 0%, rgba(255, 0, 255, .12) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(0, 255, 204, .10) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 0, .03) 0%, transparent 60%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── CRT Scan-line overlay (subtle) ── */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, .06) 2px,
            rgba(0, 0, 0, .06) 4px);
}

/* ── Animations ── */
@keyframes neonFlicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 1;
        text-shadow:
            0 0 6px var(--accent),
            0 0 20px var(--accent),
            0 0 40px var(--accent);
    }

    20%,
    24%,
    55% {
        opacity: .85;
        text-shadow:
            0 0 2px var(--accent),
            0 0 8px var(--accent);
    }
}

@keyframes neonGlow {

    0%,
    100% {
        box-shadow:
            0 0 8px rgba(255, 0, 255, .20),
            0 0 20px rgba(0, 255, 204, .08);
    }

    50% {
        box-shadow:
            0 0 18px rgba(255, 0, 255, .40),
            0 0 40px rgba(0, 255, 204, .18),
            0 0 60px rgba(255, 0, 255, .10);
    }
}

@keyframes neonBorder {

    0%,
    100% {
        border-color: rgba(255, 0, 255, .25);
    }

    33% {
        border-color: rgba(0, 255, 204, .35);
    }

    66% {
        border-color: rgba(255, 255, 0, .30);
    }
}

@keyframes retroPulse {

    0%,
    100% {
        text-shadow: 0 0 8px rgba(0, 255, 204, .4);
    }

    50% {
        text-shadow:
            0 0 14px rgba(0, 255, 204, .7),
            0 0 30px rgba(255, 0, 255, .3);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes arcadePress {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(.93);
    }

    100% {
        transform: scale(1);
    }
}

/* ── 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(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: neonBorder 6s ease-in-out infinite;
}

.card::after {
    display: none !important;
}

/* ── Hero ── */
.hero {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    background:
        linear-gradient(135deg, rgba(255, 0, 255, .08), rgba(0, 255, 204, .05), rgba(255, 255, 0, .04));
    animation: neonGlow 4s ease-in-out infinite, neonBorder 6s ease-in-out infinite;
}

.logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    border: 2px solid var(--accent);
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow:
        0 0 12px rgba(255, 0, 255, .35),
        0 0 28px rgba(255, 0, 255, .12);
    transition: transform .3s ease, box-shadow .3s ease;
}

.logo:hover {
    transform: rotate(-8deg) scale(1.10);
    box-shadow:
        0 0 20px rgba(255, 0, 255, .5),
        0 0 40px rgba(0, 255, 204, .2);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.heroText {
    min-width: 0;
}

.heroText h1 {
    margin: 0;
    font-family: 'Bungee', 'Outfit', cursive;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--neon-grad);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    filter: drop-shadow(0 0 6px rgba(255, 0, 255, .4));
}

.heroText p {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--inkSoft);
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.heroActions {
    margin-left: auto;
    flex: 0 0 auto;
}

/* ── Buttons ── */
.btn {
    cursor: pointer;
    border: 1px solid rgba(255, 0, 255, .20);
    background: rgba(255, 0, 255, .06);
    color: var(--ink);
    padding: 8px 14px;
    border-radius: 10px;
    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;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-family: 'Bungee', 'Outfit', cursive;
    font-size: 11px;
}

.btn:hover {
    background: rgba(255, 0, 255, .16);
    border-color: rgba(0, 255, 204, .40);
    transform: translateY(-2px);
    box-shadow:
        0 0 12px rgba(255, 0, 255, .20),
        0 4px 16px rgba(0, 255, 204, .10);
}

.btn:active {
    transform: translateY(0) scale(.95);
    animation: arcadePress .15s ease;
}

.btn:focus-visible {
    outline: 2px solid var(--accentAlt);
    outline-offset: 2px;
}

.btnPrimary {
    background: linear-gradient(135deg, var(--accent), #9900ff);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    box-shadow:
        0 0 14px rgba(255, 0, 255, .30),
        0 2px 12px rgba(153, 0, 255, .20);
    text-shadow: 0 0 8px rgba(255, 255, 255, .3);
}

.btnPrimary:hover {
    background: linear-gradient(135deg, #ff44ff, #bb44ff);
    box-shadow:
        0 0 24px rgba(255, 0, 255, .50),
        0 4px 24px rgba(0, 255, 204, .15);
}

/* ── Player ── */
.boombox.player {
    padding: 16px 18px;
    background:
        linear-gradient(135deg, rgba(255, 0, 255, .06), rgba(0, 255, 204, .04), rgba(153, 0, 255, .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, 0, 60, .45);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 0, 60, .18), rgba(255, 0, 255, .10));
    color: #ff4466;
    font-family: 'Bungee', 'Outfit', cursive;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(255, 0, 60, .15);
    text-shadow: 0 0 6px rgba(255, 0, 60, .4);
    animation: neonGlow 3s ease-in-out infinite;
}

.liveDot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #ff003c;
    box-shadow: 0 0 10px rgba(255, 0, 60, .7);
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .15;
    }
}

/* 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: 2px;
    background: linear-gradient(to top, var(--accent), var(--accentWarm));
    transform-origin: bottom;
    animation: dance .65s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(255, 0, 255, .3);
}

.eq .bar:nth-child(2) {
    animation-delay: .07s;
}

.eq .bar:nth-child(3) {
    animation-delay: .14s;
}

.eq .bar:nth-child(4) {
    animation-delay: .21s;
}

.eq .bar:nth-child(5) {
    animation-delay: .28s;
}

.eq .bar:nth-child(6) {
    animation-delay: .35s;
}

.eq .bar:nth-child(7) {
    animation-delay: .42s;
}

@keyframes dance {

    0%,
    100% {
        transform: scaleY(.15);
        opacity: .4;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.eq.paused .bar {
    animation: none;
    transform: scaleY(.12);
    opacity: .20;
}

/* Controls */
.controls {
    display: flex;
    gap: 14px;
    align-items: center;
}

.bigPlay {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    border: 2px solid rgba(0, 255, 204, .30);
    background: linear-gradient(135deg, var(--accent), #9900ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    box-shadow:
        0 0 20px rgba(255, 0, 255, .30),
        0 0 40px rgba(255, 0, 255, .08),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    transition: transform .2s ease, box-shadow .2s ease;
    flex-shrink: 0;
}

.bigPlay #playText {
    display: none;
}

.bigPlay #playIcon {
    font-size: 18px;
    margin-left: 2px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, .5));
}

.bigPlay:hover {
    transform: scale(1.12);
    box-shadow:
        0 0 30px rgba(255, 0, 255, .5),
        0 0 60px rgba(0, 255, 204, .20),
        inset 0 1px 0 rgba(255, 255, 255, .15);
    border-color: rgba(0, 255, 204, .50);
}

.bigPlay:active {
    transform: scale(.92);
}

.bigPlay:focus-visible {
    outline: 2px solid var(--accentWarm);
    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;
    letter-spacing: .02em;
}

.progress {
    height: 5px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 0, 255, .08);
    overflow: hidden;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
}

.fill {
    height: 100%;
    width: 0%;
    background: var(--neon-grad2);
    background-size: 200% 100%;
    border-radius: 8px;
    transition: width .2s linear;
    box-shadow: 0 0 10px rgba(255, 0, 255, .35);
    animation: gradientShift 3s ease infinite;
}

.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;
    animation: none;
}

.frame {
    flex: 1;
    min-height: 120px;
    border-radius: var(--r);
    border: 2px solid rgba(255, 0, 255, .22);
    background: #080816;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 0 20px rgba(255, 0, 255, .12),
        0 4px 30px rgba(0, 0, 0, .5),
        inset 0 0 30px rgba(255, 0, 255, .04);
    transform: none;
    animation: neonBorder 6s ease-in-out infinite;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition:
        opacity .7s cubic-bezier(.4, 0, .2, 1),
        transform 1s 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(.80) saturate(1.3) contrast(1.1) hue-rotate(-5deg);
}

.cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(10, 10, 26, .94) 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-family: 'Bungee', 'Outfit', cursive;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .04em;
    animation: retroPulse 3s ease-in-out infinite;
}

.cap p {
    margin: 2px 0 0;
    font-size: 11px;
    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(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
}

.dots {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.dots button {
    width: 8px;
    height: 8px;
    border-radius: 3px;
    border: none;
    background: rgba(255, 0, 255, .15);
    cursor: pointer;
    transition: all .25s ease;
    padding: 0;
}

.dots button:hover {
    background: rgba(0, 255, 204, .35);
    box-shadow: 0 0 10px rgba(0, 255, 204, .3);
}

.dots button.active {
    background: var(--accent);
    width: 22px;
    box-shadow:
        0 0 8px rgba(255, 0, 255, .40),
        0 0 16px rgba(255, 0, 255, .15);
}

/* ── Socials ── */
.socials {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    animation: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 255, .15);
    background: rgba(255, 0, 255, .05);
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 12px;
    transition: all .25s ease;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-family: 'Bungee', 'Outfit', cursive;
    font-size: 11px;
}

.chip:hover {
    background: rgba(0, 255, 204, .10);
    border-color: rgba(0, 255, 204, .35);
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 0 14px rgba(0, 255, 204, .20),
        0 6px 20px rgba(255, 0, 255, .10);
    color: var(--accentAlt);
}

.chipIcon {
    background: linear-gradient(135deg, rgba(255, 0, 255, .20), rgba(0, 255, 204, .12));
    width: 24px;
    height: 24px;
    font-size: 11px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px rgba(255, 0, 255, .15);
}

/* ── 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: 18px;
    }

    .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;
    }
}