/* style.css */
:root {
    --bg: #070711;
    --panel: rgba(13, 15, 35, 0.86);
    --panel-strong: rgba(22, 24, 52, 0.94);
    --text: #f5f7ff;
    --muted: #aab2d8;
    --neon: #65fff2;
    --neon-2: #ff4fd8;
    --neon-3: #ffe66b;
    --danger: #ff426a;
    --line: rgba(101, 255, 242, 0.25);
    --shadow: 0 0 32px rgba(101, 255, 242, 0.18);
    --display-font: Copperplate, "Copperplate Gothic Light", Papyrus, Georgia, "Times New Roman", serif;
    --ui-font: "Trebuchet MS", Verdana, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--ui-font);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 79, 216, 0.18), transparent 36%),
        radial-gradient(circle at 20% 100%, rgba(101, 255, 242, 0.18), transparent 30%),
        linear-gradient(180deg, #09091c, #02020a 70%);
    overflow-x: hidden;
}

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -4;
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: saturate(1.3) contrast(1.1);
    transition: background-image 0.35s ease, opacity 0.35s ease;
}

.bg-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(101, 255, 242, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 79, 216, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: perspective(500px) rotateX(62deg) translateY(20vh) scale(1.8);
    transform-origin: bottom center;
    opacity: 0.7;
}

.background-sparkles {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.86;
    transition: opacity 0.35s ease;
}

body.album-playing .background-sparkles {
    opacity: 0.62;
}

.background-sparkles span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: var(--spark);
    box-shadow:
        0 0 10px var(--spark),
        0 0 24px rgba(255, 255, 255, 0.28);
    opacity: 0;
    animation:
        sparklePulse var(--dur) ease-in-out infinite,
        sparkleDrift calc(var(--dur) * 2.4) linear infinite;
    animation-delay: var(--delay);
}

.background-sparkles span:nth-child(4n) {
    border-radius: 1px;
    transform: rotate(45deg);
}

.background-sparkles span:nth-child(7n) {
    width: calc(var(--s) * 3.5);
    height: 1px;
    border-radius: 999px;
}

@keyframes sparklePulse {
    0%, 100% { opacity: 0; filter: blur(0); }
    42% { opacity: 0.34; }
    50% { opacity: 0.92; filter: blur(0.2px); }
    58% { opacity: 0.28; }
}

@keyframes sparkleDrift {
    from { translate: 0 0; }
    to { translate: var(--dx) var(--dy); }
}

.scanlines,
.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.scanlines {
    z-index: 20;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.035) 0px,
        rgba(255,255,255,0.035) 1px,
        transparent 2px,
        transparent 5px
    );
    mix-blend-mode: overlay;
}

.vignette {
    z-index: 19;
    box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.82);
}

.site-shell {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

/* The original radio dashboard stays in the markup only as a source for controls.
   The actual app is album picker + karaoke stage, so these legacy panels never show. */
.hero-panel,
.site-shell > .player-panel,
.dance-stage-wrap,
.library-grid {
    display: none !important;
}

.hero-panel,
.player-panel,
.dance-stage-wrap,
.library-card {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow), inset 0 0 36px rgba(255, 79, 216, 0.06);
    backdrop-filter: blur(10px);
}

.hero-panel {
    text-align: center;
    padding: 32px 22px;
    border-radius: 24px;
    margin-bottom: 18px;
}

.mini-label,
.tiny-title {
    color: var(--neon);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.74rem;
}

.hero-panel h1 {
    margin: 8px 0 8px;
    font-size: clamp(2rem, 6vw, 4.6rem);
    line-height: 0.95;
    color: var(--text);
    text-shadow:
        0 0 12px rgba(101, 255, 242, 0.75),
        0 0 32px rgba(255, 79, 216, 0.55);
}

.hero-panel p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.6;
}

.player-panel {
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 18px;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.track-title {
    font-size: clamp(1.15rem, 3vw, 2rem);
    font-weight: 800;
    text-shadow: 0 0 14px rgba(255, 79, 216, 0.42);
}

.equalizer-icon {
    display: flex;
    align-items: end;
    gap: 4px;
    width: 48px;
    height: 48px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
}

.equalizer-icon span {
    width: 6px;
    height: 14px;
    background: var(--neon);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(101, 255, 242, 0.9);
    animation: idleBars 0.8s infinite alternate ease-in-out;
}

.equalizer-icon span:nth-child(2) { animation-delay: 0.1s; height: 22px; }
.equalizer-icon span:nth-child(3) { animation-delay: 0.2s; height: 34px; background: var(--neon-2); }
.equalizer-icon span:nth-child(4) { animation-delay: 0.3s; height: 20px; }
.equalizer-icon span:nth-child(5) { animation-delay: 0.4s; height: 28px; background: var(--neon-3); }

@keyframes idleBars {
    from { transform: scaleY(0.55); }
    to { transform: scaleY(1.15); }
}

.controls,
.stage-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button,
input[type="search"] {
    font: inherit;
}

button {
    border: 1px solid rgba(101, 255, 242, 0.4);
    background: linear-gradient(180deg, rgba(101, 255, 242, 0.12), rgba(255, 79, 216, 0.08));
    color: var(--text);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    box-shadow: inset 0 0 18px rgba(255,255,255,0.05), 0 0 16px rgba(101,255,242,0.09);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

button:hover,
button.active {
    transform: translateY(-1px);
    border-color: var(--neon);
    background: linear-gradient(180deg, rgba(101, 255, 242, 0.23), rgba(255, 79, 216, 0.16));
}

button.primary {
    border-color: rgba(255, 79, 216, 0.8);
    background: linear-gradient(180deg, rgba(255, 79, 216, 0.34), rgba(101, 255, 242, 0.16));
}

.radio-deck {
    display: grid;
    gap: 9px;
    margin-top: 12px;
    position: relative;
}

.radio-now-card {
    border: 1px solid rgba(103, 255, 242, 0.13);
    border-radius: 10px;
    background: rgba(5, 7, 18, 0.42);
    padding: 9px 10px;
}

.radio-caption {
    color: rgba(255, 230, 107, 0.9);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.radio-subcaption {
    margin-top: 3px;
    color: rgba(247, 248, 255, 0.62);
    font-size: 0.72rem;
}

.radio-row {
    display: grid;
    gap: 7px;
    align-items: stretch;
}

.radio-row-transport {
    grid-template-columns: 0.78fr 1.28fr 0.78fr;
}

.radio-row-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.radio-row button,
.radio-popover button {
    min-width: 0;
    min-height: 40px;
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.radio-play-button {
    border-color: rgba(255, 79, 216, 0.78);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 230, 107, 0.20), transparent 58%),
        linear-gradient(180deg, rgba(255, 79, 216, 0.36), rgba(101, 255, 242, 0.15));
    box-shadow: inset 0 0 18px rgba(255,255,255,0.08), 0 0 22px rgba(255,79,216,0.18);
}

.radio-row button.active,
#moveModeBtn.active {
    color: #ffffff;
    border-color: rgba(103, 255, 242, 0.88);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 230, 107, 0.20), transparent 60%),
        linear-gradient(180deg, rgba(103, 255, 242, 0.30), rgba(255, 79, 216, 0.18));
    box-shadow: inset 0 0 18px rgba(255,255,255,0.08), 0 0 20px rgba(103,255,242,0.18);
}

.radio-popover {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    border: 1px solid rgba(255, 230, 107, 0.22);
    border-radius: 12px;
    background: rgba(7, 9, 22, 0.96);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34), 0 0 22px rgba(255, 79, 216, 0.10);
    padding: 9px;
}

.radio-popover.open {
    display: grid;
}

.radio-popover-wide {
    grid-template-columns: 1fr;
}

.radio-popover-title {
    color: rgba(255, 230, 107, 0.9);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.radio-popover button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 10px;
    color: var(--muted);
}

.volume-row input {
    width: min(340px, 100%);
}

#visualizer {
    display: block;
    width: 100%;
    height: 180px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.09);
    background:
        radial-gradient(circle at center, rgba(101, 255, 242, 0.10), transparent 48%),
        rgba(0,0,0,0.28);
}

.dance-stage-wrap {
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 18px;
}

.stage-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.dance-stage {
    position: relative;
    height: 270px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), transparent),
        radial-gradient(circle at 50% 100%, rgba(255, 79, 216, 0.2), transparent 42%),
        rgba(0, 0, 0, 0.32);
}

.dance-stage::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -90px;
    width: 80%;
    height: 170px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(101,255,242,0.23), transparent 68%);
    filter: blur(4px);
}

.dancing-head {
    position: absolute;
    width: var(--size, 92px);
    height: var(--size, 92px);
    left: var(--x, 50%);
    bottom: var(--base-y, 18px);
    transform: translate(-50%, 0) rotate(0deg) scale(1);
    transform-origin: 50% 85%;
    object-fit: contain;
    image-rendering: auto;
    filter:
        drop-shadow(0 0 12px rgba(101, 255, 242, 0.7))
        drop-shadow(0 10px 6px rgba(0, 0, 0, 0.45));
    user-select: none;
    pointer-events: none;
    will-change: transform, filter;
}

.dancing-head.big-center {
    z-index: 5;
}

.library-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 18px;
}

.library-card {
    border-radius: 22px;
    padding: 18px;
    min-width: 0;
}

.library-card h2 {
    margin: 0 0 12px;
    color: var(--neon-3);
    text-shadow: 0 0 12px rgba(255, 230, 107, 0.38);
}

.search-wrap {
    margin-bottom: 12px;
}

input[type="search"] {
    width: 100%;
    border: 1px solid rgba(101, 255, 242, 0.32);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--text);
    outline: none;
}

input[type="search"]:focus {
    border-color: var(--neon);
    box-shadow: 0 0 18px rgba(101, 255, 242, 0.15);
}

.track-list,
.background-list {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.track-item,
.bg-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.045);
    cursor: pointer;
}

.track-item:hover,
.track-item.active,
.bg-item:hover,
.bg-item.active {
    border-color: rgba(101,255,242,0.55);
    background: rgba(101, 255, 242, 0.09);
}

.track-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-badge {
    flex: 0 0 auto;
    color: var(--neon);
    font-size: 0.8rem;
}

.empty-note {
    color: var(--muted);
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 14px;
    line-height: 1.5;
}

.album-gate {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 5vw, 64px);
    overflow: hidden;
}

body.album-selecting {
    overflow: hidden;
}

.album-gate.open {
    display: flex;
}

.album-gate-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.030) 1px, transparent 1px),
        radial-gradient(circle at 18% 20%, rgba(255, 79, 216, 0.18), transparent 34%),
        radial-gradient(circle at 78% 76%, rgba(101, 255, 242, 0.12), transparent 36%),
        linear-gradient(135deg, rgba(7, 8, 24, 0.20), rgba(20, 7, 28, 0.28) 52%, rgba(3, 4, 12, 0.36));
    background-size: 58px 58px, 58px 58px, auto, auto, auto;
    background-position: center;
}

.album-gate-backdrop.has-cover {
    filter: none;
}

.album-gate-panel {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    min-height: 0;
    max-height: min(88vh, 820px);
    overflow: hidden;
    border: 2px solid rgba(101, 255, 242, 0.46);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 79, 216, 0.10), rgba(101, 255, 242, 0.05)),
        rgba(8, 10, 28, 0.88);
    box-shadow: 0 30px 100px rgba(0,0,0,0.72), 0 0 34px rgba(101,255,242,0.13), inset 0 0 42px rgba(255, 79, 216, 0.08);
    padding: clamp(24px, 5vw, 54px);
}

.album-gate-panel::before {
    content: "";
    position: absolute;
    inset: 16px;
    pointer-events: none;
    border: 1px solid rgba(255, 79, 216, 0.22);
    border-radius: 8px;
}

.album-gate-hero {
    display: block;
    margin-bottom: 22px;
}

.album-gate-copyblock {
    min-width: 0;
}

.album-gate-kicker {
    color: #65fff2;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.album-gate-panel h1 {
    margin: 8px 0 10px;
    color: #ffffff;
    font-family: Impact, "Arial Black", "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(2.8rem, 7vw, 6.2rem);
    letter-spacing: 0;
    text-shadow: 4px 0 0 rgba(255,79,216,0.88), -4px 0 0 rgba(101,255,242,0.78), 0 0 28px rgba(255,255,255,0.34);
    text-transform: uppercase;
}

.album-gate-copy {
    max-width: 760px;
    margin: 0 0 26px;
    color: rgba(245, 247, 255, 0.82);
    font-size: clamp(1rem, 2vw, 1.28rem);
    line-height: 1.55;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 520px));
    gap: 16px;
    max-height: min(36vh, 340px);
    overflow: auto;
    padding: 2px 8px 2px 2px;
    align-items: start;
    justify-content: start;
}

.album-empty-state {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    border: 1px dashed rgba(255, 230, 160, 0.36);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.24);
    color: rgba(255, 244, 204, 0.88);
    padding: 20px;
    line-height: 1.55;
}

.album-empty-state strong {
    color: #ffe66b;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.album-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 14px;
    row-gap: 5px;
    align-items: center;
    justify-items: stretch;
    border-radius: 12px;
    border: 1px solid rgba(101, 255, 242, 0.36);
    background:
        linear-gradient(180deg, rgba(101, 255, 242, 0.11), rgba(255, 79, 216, 0.12)),
        rgba(8, 10, 26, 0.78);
    padding: 12px;
    text-align: left;
    cursor: pointer;
    min-height: 128px;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.album-card:hover {
    border-color: #ff4fd8;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 79, 216, 0.20), 0 0 18px rgba(101,255,242,0.12);
}

.album-cover {
    grid-row: 1 / 5;
    display: grid;
    place-items: center;
    width: 100%;
    height: 104px;
    aspect-ratio: 1;
    border-radius: 9px;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 7px),
        radial-gradient(circle at 50% 42%, rgba(255,230,107,.20), transparent 48%),
        linear-gradient(135deg, rgba(101,255,242,.18), rgba(255,79,216,.12) 42%, rgba(8,10,26,.96));
    color: #ffffff;
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-shadow: 0 0 12px rgba(101,255,242,.72);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 0 18px rgba(101,255,242,.12);
}

.album-card-title {
    color: #ffffff;
    font-weight: 900;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    line-height: 1.15;
}

.album-card-meta {
    color: rgba(101, 255, 242, 0.82);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.album-card-count {
    color: rgba(255, 79, 216, 0.86);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.album-card-action {
    color: #ffe66b;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.album-empty-path {
    display: block;
    margin-top: 8px;
    color: rgba(103, 255, 242, 0.78);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9rem;
}

.album-gate-head {
    display: none;
    position: fixed;
    z-index: 3;
    width: 140px;
    height: 140px;
    pointer-events: none;
    object-fit: contain;
    transform: translate(-50%, -50%) rotate(-4deg);
    filter: drop-shadow(0 0 18px rgba(255, 230, 107, 0.45)) drop-shadow(0 16px 12px rgba(0,0,0,.65));
    transition: left 120ms ease-out, top 120ms ease-out;
}

body.album-selecting .site-shell {
    filter: blur(16px) saturate(0.6);
    opacity: 0.14;
}

body.album-playing .site-shell {
    min-height: 100vh;
}

.player-radio-left.album-player-bar {
    color: #eaffff;
    font-family: "Lucida Console", "Courier New", monospace;
    isolation: isolate;
    overflow: hidden;
}

.player-radio-left.album-player-bar::before {
    content: "";
    position: absolute;
    inset: 5px;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(101, 255, 242, 0.36);
    border-radius: 8px;
    box-shadow: inset 0 0 18px rgba(255, 79, 216, 0.10), 0 0 18px rgba(101, 255, 242, 0.10);
}

.player-radio-left.album-player-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 6px),
        linear-gradient(90deg, rgba(255, 79, 216, 0.13), transparent 20%, transparent 80%, rgba(101, 255, 242, 0.13));
    opacity: 0.72;
}

.album-player-bar .now-playing {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    min-width: 0;
}

.album-player-cover {
    grid-row: 1 / 3;
    width: 62px;
    height: 62px;
    border-radius: 9px;
    background:
        radial-gradient(circle at 50% 42%, rgba(255,230,107,.20), transparent 48%),
        linear-gradient(135deg, rgba(95,39,18,.95), rgba(14,9,8,.98));
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 8px 22px rgba(0,0,0,.45);
}

.album-player-bar .tiny-title {
    color: #65fff2;
    font-family: "Lucida Console", "Courier New", monospace;
    text-shadow: 0 0 10px rgba(105, 255, 242, 0.68);
}

.album-player-bar #trackTitle {
    color: #f7ffff;
    font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(101,255,242,0.55), 0 2px 0 rgba(0,0,0,0.85);
}

.album-player-bar .radio-deck {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.album-player-bar .radio-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.album-player-bar .radio-row button {
    min-width: 58px;
    min-height: 44px;
    border-radius: 7px;
    border-color: rgba(101, 255, 242, 0.58);
    color: #eaffff;
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-shadow: 0 0 10px rgba(101, 255, 242, 0.42);
    background:
        linear-gradient(180deg, rgba(101, 255, 242, 0.18), rgba(255, 79, 216, 0.10)),
        rgba(4, 8, 22, 0.92);
    box-shadow: inset 0 0 14px rgba(101, 255, 242, 0.10), 0 0 16px rgba(101,255,242,0.12);
}

.album-player-bar .radio-row-main button {
    min-width: 82px;
}

#repeatBtn.active {
    border-color: rgba(255, 230, 107, 0.82);
    color: #fff6d8;
    background:
        linear-gradient(180deg, rgba(255, 230, 107, 0.28), rgba(255, 79, 216, 0.12)),
        rgba(25, 15, 4, 0.92);
    box-shadow: 0 0 22px rgba(255, 230, 107, 0.24), inset 0 0 16px rgba(255,255,255,0.08);
}

.album-player-bar .radio-play-button {
    color: #ffffff;
    border-color: rgba(255, 79, 216, 0.82);
    background:
        linear-gradient(180deg, rgba(255, 79, 216, 0.42), rgba(71, 18, 95, 0.74)),
        rgba(19, 8, 32, 0.92);
    box-shadow: 0 0 24px rgba(255, 79, 216, 0.34), inset 0 0 18px rgba(255,255,255,0.10);
}

.album-player-bar .volume-row {
    max-width: 230px;
    color: #d7fbff;
    font-family: "Lucida Console", "Courier New", monospace;
}

.boss-album-title {
    overflow-wrap: anywhere;
}

.boss-song-title {
    scrollbar-width: none;
}

.boss-song-title::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.boss-song-title .lyric-word {
    display: inline-block;
    position: relative;
    margin: 0 0.035em;
    font-family: Impact, Haettenschweiler, "Arial Black", "Trebuchet MS", Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 0.035em;
    color: rgba(234, 238, 230, 0.86);
    -webkit-text-stroke: 1px rgba(10, 8, 18, 0.74);
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.86),
        0 0 8px rgba(101, 255, 242, 0.20),
        0 0 18px rgba(0, 0, 0, 0.70);
    transition:
        transform 180ms cubic-bezier(.18, 1.35, .26, 1),
        color 180ms ease,
        text-shadow 180ms ease,
        filter 180ms ease;
}

.boss-song-title .lyric-word.active {
    color: #ffe66b;
    letter-spacing: 0.045em;
    filter: saturate(1.22);
    transform: translateY(-0.12em) scale(1.13);
    -webkit-text-stroke: 1px rgba(66, 21, 0, 0.88);
    text-shadow:
        0 3px 0 rgba(74, 20, 0, 0.96),
        0 0 10px rgba(255, 246, 171, 0.98),
        0 0 24px rgba(255, 111, 36, 0.86),
        0 0 44px rgba(255, 79, 216, 0.32);
}

.boss-song-title .lyric-word.active::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -0.16em;
    height: 0.08em;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 230, 107, 0.92), rgba(255, 79, 216, 0.62), transparent);
    box-shadow: 0 0 12px rgba(255, 230, 107, 0.72);
}

@media (max-width: 800px) {
    html,
    body {
        width: 100%;
        min-height: 100%;
        overflow-x: hidden;
    }

    .album-gate {
        align-items: stretch;
        justify-content: stretch;
        padding: 10px;
        overflow: auto;
    }

    .album-gate-panel {
        width: 100%;
        min-height: calc(100svh - 20px);
        max-height: none;
        overflow: auto;
        padding: 22px 16px;
        border-radius: 10px;
    }

    .album-gate-panel::before {
        inset: 8px;
    }

    .album-gate-hero {
        margin-bottom: 16px;
    }

    .album-gate-kicker {
        font-size: 0.7rem;
        letter-spacing: 0.13em;
    }

    .album-gate-panel h1 {
        font-size: clamp(2.35rem, 14vw, 4.2rem);
        line-height: 0.94;
        text-shadow: 3px 0 0 rgba(255,79,216,0.78), -3px 0 0 rgba(101,255,242,0.70), 0 0 24px rgba(255,255,255,0.28);
    }

    .album-gate-copy {
        margin-bottom: 18px;
        font-size: 0.96rem;
        line-height: 1.45;
    }

    .album-grid {
        grid-template-columns: 1fr;
        max-height: none;
        overflow: visible;
        gap: 12px;
        padding: 0;
    }

    .album-card {
        grid-template-columns: 74px minmax(0, 1fr);
        min-height: 104px;
        padding: 10px;
        column-gap: 11px;
        border-radius: 10px;
    }

    .album-cover {
        height: 74px;
        font-size: 0.62rem;
    }

    .album-card-title {
        font-size: 1.05rem;
    }

    .album-card-meta,
    .album-card-count,
    .album-card-action {
        font-size: 0.68rem;
    }

    .site-shell {
        width: 100%;
        min-height: 100svh;
        padding: 0;
    }

    .tuin-main-layout {
        width: 100vw !important;
        min-height: 100svh !important;
        overflow: hidden !important;
    }

    .tuin-left-column {
        width: calc(100vw - 12px) !important;
        top: 6px !important;
        left: 50% !important;
        z-index: 30 !important;
    }

    .player-radio-left.album-player-bar {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 10px !important;
        border-radius: 9px !important;
    }

    .album-player-bar .now-playing {
        min-width: 0;
        gap: 2px;
    }

    .album-player-bar .tiny-title {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #65fff2;
        font-size: 0.72rem !important;
        letter-spacing: 0.12em !important;
    }

    .album-player-bar #trackTitle {
        font-size: 1.06rem !important;
        white-space: nowrap !important;
        line-height: 1.05 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        overflow-wrap: anywhere;
    }

    .album-player-bar .radio-deck {
        width: 100%;
        gap: 7px;
    }

    .album-player-bar .radio-row {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .album-player-bar .radio-row-main {
        grid-template-columns: 1fr;
    }

    .album-player-bar .radio-row button {
        min-width: 0 !important;
        min-height: 42px;
        padding: 8px 6px;
        font-size: 0.72rem;
    }

    .album-player-bar .volume-row {
        width: 100%;
        max-width: none;
        font-size: 0.72rem;
    }

    .boss-head-stage {
        width: 100vw !important;
        min-height: 100svh !important;
        height: 100svh !important;
    }

    .boss-song-title {
        width: calc(100vw - 14px) !important;
        bottom: max(18px, env(safe-area-inset-bottom)) !important;
        font-size: clamp(1.05rem, 7.2vw, 2rem) !important;
        line-height: 1.14 !important;
        padding: 0 4px;
    }

    .boss-album-title {
        top: 38% !important;
        width: calc(100vw - 26px) !important;
        font-size: clamp(1.35rem, 10vw, 3rem) !important;
        line-height: 0.95 !important;
        white-space: normal !important;
    }
}
