/* =========================================================================
   4Play — arcade room theme
   ========================================================================= */
@font-face { font-family: 'Bungee'; font-weight: 400; font-display: swap; src: url(/static/fonts/bungee-400.woff2) format('woff2'); }
@font-face { font-family: 'Press Start 2P'; font-weight: 400; font-display: swap; src: url(/static/fonts/press-start-2p-400.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 400; font-display: swap; src: url(/static/fonts/chakra-petch-400.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 600; font-display: swap; src: url(/static/fonts/chakra-petch-600.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-display: swap; src: url(/static/fonts/chakra-petch-700.woff2) format('woff2'); }

:root {
  --bg: #07040f;
  --bg-2: #0d0720;
  --panel: #150b2c;
  --panel-2: #1d1140;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f5f0ff;
  --muted: #a99cc9;
  --pink: #ff2bd6;
  --cyan: #22e4ff;
  --yellow: #ffe14a;
  --lime: #7dff5a;
  --purple: #8b5cff;
  --radius: 18px;
  --gutter: 16px;
  --f-display: 'Bungee', 'Arial Black', system-ui, sans-serif;
  --f-pixel: 'Press Start 2P', ui-monospace, monospace;
  --f-body: 'Chakra Petch', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--yellow); color: #1a0830; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1232px; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

/* ---------------------------------------------------------------- room */
.room { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(255, 43, 214, .20), transparent 62%),
    radial-gradient(800px 560px at 102% 12%, rgba(34, 228, 255, .14), transparent 62%),
    radial-gradient(1100px 700px at 50% 115%, rgba(139, 92, 255, .26), transparent 62%),
    var(--bg); }
.room-carpet { position: absolute; inset: -40%; opacity: .13; transform: rotate(-8deg);
  background-size: 240px 240px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 40q16-16 32 0t32 0' stroke='%23ff2bd6'/%3E%3Cpath d='M150 26l13 22h-26z' stroke='%2322e4ff'/%3E%3Ccircle cx='196' cy='112' r='10' stroke='%23ffe14a'/%3E%3Cpath d='M28 160l11-11 11 11 11-11 11 11' stroke='%237dff5a'/%3E%3Cpath d='M118 186q16-16 32 0t32 0' stroke='%238b5cff'/%3E%3Crect x='96' y='92' width='16' height='16' transform='rotate(20 104 100)' stroke='%23ff2bd6'/%3E%3Cpath d='M204 200l-9-15h18z' stroke='%23ff9a3a'/%3E%3Cpath d='M190 56l7 7m0-7l-7 7' stroke='%2322e4ff'/%3E%3Cpath d='M58 100l6 6m0-6l-6 6' stroke='%23ffe14a'/%3E%3C/g%3E%3Cg stroke='none'%3E%3Ccircle cx='66' cy='210' r='4' fill='%2322e4ff'/%3E%3Ccircle cx='160' cy='128' r='3.5' fill='%23ffe14a'/%3E%3Ccircle cx='224' cy='20' r='3' fill='%23ff2bd6'/%3E%3C/g%3E%3C/svg%3E"); }
.room-floor { position: absolute; left: -40%; right: -40%; bottom: -12%; height: 46%; opacity: .32;
  background-image: linear-gradient(rgba(255, 43, 214, .55) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(34, 228, 255, .5) 1.5px, transparent 1.5px);
  background-size: 64px 64px; transform: perspective(420px) rotateX(64deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 80%); mask-image: linear-gradient(to top, #000, transparent 80%); }
.room-lights { position: absolute; inset: 0 0 auto; height: 220px;
  background: repeating-linear-gradient(90deg, transparent 0 140px, rgba(255, 255, 255, .035) 140px 142px, transparent 142px 280px);
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }

/* ---------------------------------------------------------------- topbar */
.topbar { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top);
  background: linear-gradient(180deg, rgba(10, 5, 24, .94), rgba(10, 5, 24, .80));
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(255, 43, 214, .28);
  box-shadow: 0 1px 0 rgba(34, 228, 255, .12), 0 10px 30px rgba(0, 0, 0, .35); }
.topbar-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 0 8px rgba(255, 43, 214, .55)); }
.logo-text { font-family: var(--f-display); font-size: 24px; line-height: 1; letter-spacing: 1px; color: #fff;
  text-shadow: 0 0 4px #fff, 0 0 10px var(--pink), 0 0 22px var(--pink), 0 0 40px rgba(255, 43, 214, .55); }
.logo-text b { font-weight: 400; color: #e9fdff; text-shadow: 0 0 4px #fff, 0 0 10px var(--cyan), 0 0 22px var(--cyan), 0 0 40px rgba(34, 228, 255, .55); animation: flicker 7s infinite; }
@keyframes flicker { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .35; } }
.credit { margin-left: auto; display: none; align-items: center; gap: 8px; font-family: var(--f-pixel); font-size: 10px; color: var(--yellow); letter-spacing: 1px; text-shadow: 0 0 8px rgba(255, 225, 74, .6); }
.credit-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.btn-random { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(34, 228, 255, .45); background: rgba(34, 228, 255, .08); color: #dffbff; font-weight: 700; font-size: 14px;
  box-shadow: 0 0 14px rgba(34, 228, 255, .15), inset 0 0 12px rgba(34, 228, 255, .08); transition: background .15s, transform .1s; }
.btn-random svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn-random svg circle { fill: currentColor; stroke: none; }
.btn-random:hover { background: rgba(34, 228, 255, .16); }
.btn-random:active { transform: scale(.96); }
@media (min-width: 720px) { .credit { display: inline-flex; } .btn-random { margin-left: 18px; } }

/* ---------------------------------------------------------------- ticker */
.ticker { overflow: hidden; background: linear-gradient(90deg, #12082a, #0b0518 50%, #12082a); border-bottom: 1px solid var(--line); }
.ticker-track { display: inline-flex; gap: 36px; padding: 9px 0; white-space: nowrap; animation: ticker 38s linear infinite; will-change: transform; }
.ticker-track span { font-family: var(--f-pixel); font-size: 9px; letter-spacing: 1px; color: var(--yellow); text-shadow: 0 0 8px rgba(255, 225, 74, .55); }
.ticker-track span:nth-child(3n+2) { color: var(--cyan); text-shadow: 0 0 8px rgba(34, 228, 255, .55); }
.ticker-track span:nth-child(3n) { color: #ff8be9; text-shadow: 0 0 8px rgba(255, 43, 214, .55); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- intro (page h1) */
.intro { padding-top: 16px; }
.intro-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(19px, 5.4vw, 30px); line-height: 1.15; letter-spacing: .5px; color: #fff;
  text-shadow: 0 0 8px rgba(255, 43, 214, .7), 0 0 22px rgba(255, 43, 214, .35); }
.intro-title span { color: var(--yellow); text-shadow: 0 0 8px rgba(255, 225, 74, .55), 0 0 20px rgba(255, 225, 74, .25); }
.intro-sub { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }
@media (min-width: 760px) { .intro { padding-top: 26px; } .intro-sub { font-size: 16px; } }

/* ---------------------------------------------------------------- hero cabinet */
.hero { padding-top: 12px; }
.cabinet { position: relative; padding: 8px; border-radius: 24px;
  background: linear-gradient(180deg, #26134f, #140a2b 60%, #1a0d38);
  box-shadow: 0 0 0 2px rgba(255, 43, 214, .55), 0 0 0 5px rgba(34, 228, 255, .10), 0 0 46px rgba(255, 43, 214, .22), 0 30px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .10); }
.cabinet-marquee { display: flex; align-items: center; justify-content: center; gap: 10px; height: 30px; margin-bottom: 8px; border-radius: 14px;
  font-family: var(--f-pixel); font-size: 10px; letter-spacing: 2px; color: #22062e;
  background: linear-gradient(90deg, #ffb21a, var(--yellow) 30%, #fff38f 50%, var(--yellow) 70%, #ffb21a);
  box-shadow: 0 0 22px rgba(255, 225, 74, .35), inset 0 -2px 0 rgba(0, 0, 0, .18); }
.bulbs { width: 46px; height: 8px; background: radial-gradient(circle, #fff 0 2px, transparent 2.5px) 0 0 / 11.5px 8px; opacity: .9; animation: bulbs 1s steps(2) infinite; }
@keyframes bulbs { 50% { opacity: .35; } }
.screen { position: relative; border-radius: 16px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 3px #05020c, 0 0 0 1px rgba(255, 255, 255, .06); isolation: isolate; }
.screen-fx { position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: inherit;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .05); }
/* swipeable on every device: JS moves the track with a transform; vertical gestures stay with the page */
.track { display: flex; outline: none; touch-action: pan-y pinch-zoom; will-change: transform;
  transition: transform .45s cubic-bezier(.22, .8, .2, 1); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.track.is-dragging { transition: none; }
.track img { -webkit-user-drag: none; user-select: none; }
@media (hover: hover) and (pointer: fine) { .track { cursor: grab; } .track.is-dragging { cursor: grabbing; } }
.slide { position: relative; flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; background: #0d0720; -webkit-user-drag: none; }
.slide-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(circle at 70% 50%, color-mix(in srgb, var(--accent) 45%, #0d0720), #0d0720); }
.slide-media > img { width: 100%; height: 100%; object-fit: cover; object-position: 88% 50%; transition: transform 6s ease-out; }
.slide-media::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .13) 0 1px, transparent 1px 3px); }
.slide-media::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(0deg, #0d0720, transparent); }
.slide-info { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 2px 16px 18px; margin-top: -26px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--f-pixel); font-size: 8px; line-height: 1; padding: 6px 8px 5px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(13, 7, 32, .65); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); color: #f1eaff; }
.chip:first-child { background: var(--accent); border-color: transparent; color: #12061f; }
.slide-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 8vw, 64px); line-height: 1; letter-spacing: .5px; color: #fff;
  text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 80%, transparent), 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent), 0 4px 0 rgba(0, 0, 0, .45); }
.slide-tag { color: #e4dcfa; font-size: 15px; font-weight: 600; line-height: 1.35; max-width: 34ch; text-wrap: pretty; }
.slide-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.btn-play { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px 0 16px; border-radius: 999px;
  font-family: var(--f-display); font-size: 16px; letter-spacing: .5px; color: #22062e;
  background: linear-gradient(180deg, #fff47e, var(--yellow) 45%, #ffb21a);
  box-shadow: 0 5px 0 #b86a00, 0 9px 22px rgba(255, 190, 40, .40), inset 0 2px 0 rgba(255, 255, 255, .7);
  transition: transform .08s, box-shadow .08s, filter .15s; }
.btn-play svg { width: 22px; height: 22px; fill: currentColor; }
.slide:hover .btn-play { filter: brightness(1.08); }
.slide:active .btn-play { transform: translateY(4px); box-shadow: 0 1px 0 #b86a00, 0 4px 12px rgba(255, 190, 40, .35), inset 0 2px 0 rgba(255, 255, 255, .7); }
.orient { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.orient svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero-ctrl { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 4px 2px; }
.dots { display: flex; align-items: center; gap: 2px; }
.dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dot::before { content: ''; width: 10px; height: 10px; border-radius: 6px; background: #3b2a63; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); transition: width .25s, background .25s; }
.dot[aria-current="true"]::before { width: 24px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan), inset 0 0 2px #fff; }
.dot[aria-current="true"] { width: 34px; }
.arc-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; cursor: pointer; display: none; place-items: center; transition: transform .08s, box-shadow .08s; }
.arc-btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.arc-btn.pink { background: radial-gradient(circle at 35% 30%, #ff9cec, var(--pink) 55%, #a1108c); box-shadow: 0 4px 0 #6d0a5e, 0 6px 16px rgba(255, 43, 214, .45); }
.arc-btn.cyan { background: radial-gradient(circle at 35% 30%, #b3f7ff, var(--cyan) 55%, #0a86a3); box-shadow: 0 4px 0 #06566a, 0 6px 16px rgba(34, 228, 255, .40); }
.arc-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .5); }

@media (min-width: 760px) {
  .hero { padding-top: 16px; }
  .cabinet { padding: 12px; border-radius: 30px; }
  .cabinet-marquee { height: 34px; margin-bottom: 12px; }
  .slide-media { aspect-ratio: 2 / 1; }
  .slide-media > img { object-position: 50% 50%; }
  .slide-media::after { inset: 0; height: auto; background: linear-gradient(90deg, rgba(7, 4, 15, .55), transparent 55%); }
  .slide-info { position: absolute; inset: 0 auto 0 0; width: min(54%, 600px); justify-content: center; gap: 12px; padding: 32px 0 32px clamp(28px, 5vw, 64px); margin: 0; }
  .slide-tag { font-size: clamp(16px, 1.7vw, 20px); }
  .btn-play { height: 54px; font-size: 18px; padding: 0 26px 0 20px; }
  .slide:hover .slide-media > img { transform: scale(1.03); }
  .arc-btn { display: grid; }
}

/* ---------------------------------------------------------------- sections */
.section { padding-top: 34px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sec-title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 400; font-size: 20px; line-height: 1.1; letter-spacing: .5px; color: #fff;
  text-shadow: 0 0 8px rgba(34, 228, 255, .65), 0 0 22px rgba(34, 228, 255, .30); }
.sec-ico { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(34, 228, 255, .7)); }
.sec-head .btn-ghost, .sec-head .count-badge { margin-left: auto; }
.btn-ghost { height: 34px; padding: 0 12px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 43, 214, .5); }
.count-badge { font-family: var(--f-pixel); font-size: 9px; color: var(--muted); padding: 7px 10px 6px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.count-badge span { color: var(--yellow); }
@media (min-width: 760px) { .section { padding-top: 46px; } .sec-title { font-size: 24px; } }

/* ---------------------------------------------------------------- continue / recent */
.recent { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left))); padding: 4px max(var(--gutter), env(safe-area-inset-left)) 10px; scroll-padding-inline: var(--gutter); }
.recent::-webkit-scrollbar { display: none; }
.slot { position: relative; flex: 0 0 auto; width: 236px; scroll-snap-align: start; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  box-shadow: inset 3px 0 0 var(--accent), 0 8px 20px rgba(0, 0, 0, .35); transition: transform .12s, border-color .15s; }
.slot:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.slot:active { transform: scale(.97); }
.slot-thumb { width: 58px; height: 58px; flex: none; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--accent) 35%, #140a2c); box-shadow: 0 0 0 2px rgba(0, 0, 0, .5); }
.slot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slot-text { min-width: 0; flex: 1; }
.slot-title, .slot-time { display: block; }
.slot-title { font-family: var(--f-display); font-size: 14px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-time { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.slot-go { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #12061f; box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent); }
.slot-go svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }

/* ---------------------------------------------------------------- toolbar */
.toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; height: 46px; padding: 0 14px 0 44px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(13, 7, 32, .85); color: var(--text); font: 600 16px var(--f-body); outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: #7f72a3; }
.search input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 228, 255, .18), 0 0 18px rgba(34, 228, 255, .2); }
.chipbar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left))); padding: 2px max(var(--gutter), env(safe-area-inset-left)); }
.chipbar::-webkit-scrollbar { display: none; }
.fchip { flex: none; height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-family: var(--f-pixel); font-size: 9px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted); background: rgba(21, 11, 44, .9); border: 1px solid var(--line-2); transition: color .15s, background .15s, box-shadow .15s; }
.fchip:hover { color: var(--text); }
.fchip[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #ff5fe0, var(--pink)); border-color: transparent; box-shadow: 0 0 16px rgba(255, 43, 214, .5); }
@media (min-width: 760px) {
  .toolbar { flex-direction: row-reverse; align-items: center; }
  .search { width: 300px; flex: none; }
  .chipbar { flex: 1; margin: 0; padding: 2px; flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- cards (mini cabinet) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 18px; } }
.card { position: relative; display: flex; flex-direction: column; border-radius: 18px; padding: 7px 7px 0;
  background: linear-gradient(180deg, #23134a, #150b2d 70%); border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s, border-color .18s; }
.card::before { content: ''; position: absolute; left: 18%; right: 18%; top: -1px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent); box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent); opacity: .9; }
.card-screen { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .7), 0 0 0 2px #2b1a55; isolation: isolate; }
.card-screen > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .25s; }
.card-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(125deg, rgba(255, 255, 255, .16), transparent 32%), repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px); }
.card-play { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #12061f; box-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .18s; }
.card-play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.badge-new { position: absolute; left: 8px; top: 8px; z-index: 2; font-family: var(--f-pixel); font-size: 8px; padding: 6px 7px 5px; border-radius: 6px; color: #22062e; background: var(--yellow); box-shadow: 0 0 12px rgba(255, 225, 74, .7); animation: bulbs 1.2s steps(2) infinite; }
.card-body { display: flex; align-items: center; gap: 9px; padding: 10px 3px 12px; min-width: 0; }
.card-icon { width: 34px; height: 34px; flex: none; border-radius: 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.card-text { min-width: 0; }
.card-title { font-family: var(--f-display); font-weight: 400; font-size: 14px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-genre { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.card:active { transform: scale(.97); }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 18px 36px rgba(0, 0, 0, .5), 0 0 26px color-mix(in srgb, var(--accent) 30%, transparent); }
  .card:hover .card-screen > img { transform: scale(1.06); filter: saturate(1.15) brightness(1.06); }
  .card:hover .card-play { transform: scale(1.12); }
}
.art-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 60%, #1a0d38), #0d0720 75%); }
.art-fallback img { width: 42%; max-width: 160px; height: auto; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
.art-fallback span { font-family: var(--f-display); font-size: 44px; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------------------------------------------------------------- features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.feat { padding: 16px 14px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(29, 17, 64, .85), rgba(21, 11, 44, .85)); border: 1px solid var(--line); }
.feat svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--accent)); }
.feat h3 { font-family: var(--f-display); font-weight: 400; font-size: 14px; margin-top: 10px; }
.feat p { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* ---------------------------------------------------------------- footer */
.footer { margin-top: 56px; padding: 30px 0 calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 43, 214, .22); background: linear-gradient(180deg, rgba(10, 5, 24, .4), rgba(10, 5, 24, .9)); }
.footer-in { display: grid; gap: 24px; }
.footer-brand p, .footer-note p { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 52ch; }
.footer-brand .logo-text { font-size: 20px; }
.footer-note h2 { font-family: var(--f-pixel); font-size: 10px; font-weight: 400; color: var(--yellow); letter-spacing: 1px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: #8577ab; }
.to-top:hover { color: var(--text); }
@media (min-width: 760px) { .footer-in { grid-template-columns: 1.2fr 1fr; } }

/* ---------------------------------------------------------------- 404 */
.over { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; text-align: center; }
.over-box { max-width: 520px; }
.over-code { font-family: var(--f-pixel); font-size: clamp(56px, 18vw, 110px); line-height: 1; color: var(--pink); text-shadow: 6px 6px 0 #3d0c6e, 0 0 30px rgba(255, 43, 214, .6); }
.over-title { font-family: var(--f-display); font-size: clamp(26px, 7vw, 40px); margin-top: 22px; color: #fff; text-shadow: 0 0 10px var(--cyan), 0 0 26px rgba(34, 228, 255, .5); }
.over p { color: var(--muted); margin-top: 10px; }
.over .blink { font-family: var(--f-pixel); font-size: 11px; color: var(--yellow); margin-top: 26px; animation: bulbs 1s steps(2) infinite; }
.over .btn-play { margin-top: 18px; }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker-track { transform: none; }
}
