/* Mix A Mix FM — Tropical Futurism (day / night) */

:root {
  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --mini-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- themes ---------- */
[data-theme="day"] {
  --bg: #FBF1DE;
  --bg-2: #F6E3C3;
  --surface: #FFF8EC;
  --ink: #0E3B2C;
  --ink-soft: #3F5E4F;
  --accent: #E8591A;
  --accent-2: #E6197A;
  --accent-ink: #FFF8EC;
  --glow: #FFC53D;
  --line: rgba(14, 59, 44, .16);
  --shadow: 5px 5px 0 var(--ink);
  --hero-fade: rgba(251, 241, 222, 0);
  color-scheme: light;
}
[data-theme="night"] {
  --bg: #140A2B;
  --bg-2: #1D0F3D;
  --surface: #221247;
  --ink: #F4ECFF;
  --ink-soft: #BFAEE3;
  --accent: #FF3DB8;
  --accent-2: #2EE6FF;
  --accent-ink: #140A2B;
  --glow: #B14DFF;
  --line: rgba(244, 236, 255, .14);
  --shadow: 0 0 0 1px rgba(46, 230, 255, .5), 0 0 22px rgba(255, 61, 184, .45);
  --hero-fade: rgba(20, 10, 43, 0);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 clamp(16px, 1.05vw + 12px, 18px)/1.6 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(var(--mini-h) + env(safe-area-inset-bottom));
  transition: background-color .6s var(--ease), color .6s var(--ease);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

[data-theme="day"] .only-night, [data-theme="night"] .only-day { display: none !important; }

/* paper grain on the page, both themes */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="night"] body::before { mix-blend-mode: screen; opacity: .05; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.topbar.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__logo { width: 44px; height: 44px; object-fit: contain; }
.brand__name { font: 400 22px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; opacity: 0; transform: translateY(-4px); transition: .3s var(--ease); }
.brand__name b { font-weight: 400; color: var(--accent); }
.topbar.is-scrolled .brand__name { opacity: 1; transform: none; }
.topbar:not(.is-scrolled) .brand__logo { opacity: 0; }

.nav { display: none; gap: 4px; font: 700 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.nav { padding: 4px; border-radius: 999px; transition: background .3s; }
.topbar:not(.is-scrolled) .nav { background: color-mix(in srgb, var(--bg) 78%, transparent); border: 1.5px solid var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--accent); color: var(--accent-ink); }

.theme-toggle {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--ink); background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.theme-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
[data-theme="day"] .i-sun, [data-theme="night"] .i-moon { display: none; }

@media (min-width: 860px) { .nav { display: flex; } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: calc(76px + env(safe-area-inset-top)) var(--gutter) 64px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--bg-2) center / cover no-repeat; animation: drift 38s ease-in-out infinite alternate; }
.hero::after { /* fade into the page */
  content: ""; position: absolute; inset: auto 0 0; height: 28%; z-index: -1;
  background: linear-gradient(to bottom, var(--hero-fade), var(--bg));
}

/* image per theme + orientation — only the matching one is downloaded */
[data-theme="day"] .hero__bg { background-image: url("../img/hero-day-land-sm.webp"); background-image: image-set(url("../img/hero-day-land.avif") type("image/avif"), url("../img/hero-day-land.webp") type("image/webp")); }
[data-theme="night"] .hero__bg { background-image: url("../img/hero-night-land-sm.webp"); background-image: image-set(url("../img/hero-night-land.avif") type("image/avif"), url("../img/hero-night-land.webp") type("image/webp")); }
@media (max-aspect-ratio: 4/5) {
  [data-theme="day"] .hero__bg { background-image: url("../img/hero-day-port.webp"); background-image: image-set(url("../img/hero-day-port.avif") type("image/avif"), url("../img/hero-day-port.webp") type("image/webp")); background-position: center top; }
  [data-theme="night"] .hero__bg { background-image: url("../img/hero-night-port.webp"); background-image: image-set(url("../img/hero-night-port.avif") type("image/avif"), url("../img/hero-night-port.webp") type("image/webp")); background-position: center top; }
}

/* night: moving neon light streaks (Sidewave vibe) */
.hero__streaks { position: absolute; inset: -20%; opacity: 0; pointer-events: none; transition: opacity .8s; }
[data-theme="night"] .hero__streaks { opacity: 1; }
.hero__streaks::before, .hero__streaks::after {
  content: ""; position: absolute; left: -10%; right: -10%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #ff5ad0 30%, #fff 50%, #2ee6ff 70%, transparent);
  filter: blur(1px) drop-shadow(0 0 10px #ff3db8);
  transform: rotate(-12deg); animation: streak 9s linear infinite;
}
.hero__streaks::before { top: 34%; }
.hero__streaks::after { top: 46%; animation-duration: 13s; animation-delay: -5s; height: 1px; }

.hero__inner { display: grid; justify-items: center; gap: clamp(10px, 2vh, 18px); max-width: 640px; }
.tag {
  margin: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font: 700 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1.5px solid var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff2d55; box-shadow: 0 0 0 0 rgba(255,45,85,.6); animation: pulse 1.8s infinite; }

.hero__title { margin: 0; }
.hero__logo {
  width: clamp(220px, 64vw, 380px); height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.18));
  animation: float 7s ease-in-out infinite;
}
[data-theme="night"] .hero__logo { filter: drop-shadow(0 0 24px rgba(177, 77, 255, .55)); }

.hero__lead {
  margin: 0; max-width: 34ch; font-size: clamp(16px, 2.2vw, 20px); font-weight: 500;
  padding: 8px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.play {
  position: relative; width: 92px; height: 92px; border-radius: 50%; border: 0;
  display: grid; place-items: center; margin-top: 4px;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s;
}
[data-theme="day"] .play { border: 2.5px solid var(--ink); }
.play:hover { transform: translate(-2px, -2px) scale(1.03); }
.play:active { transform: translate(2px, 2px); }
.play__icon { width: 38px; height: 38px; fill: currentColor; stroke: currentColor; }
.play__icon--pause, .play__icon--load { display: none; }
.is-playing .play__icon--play, .is-loading .play__icon--play { display: none; }
.is-playing .play__icon--pause { display: block; }
.is-loading .play__icon--load { display: block; fill: none; animation: spin 1s linear infinite; }
.play__ring { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.is-playing .play__ring { animation: ring 2s var(--ease) infinite; }

.hero__np {
  margin: 0; display: grid; gap: 2px; font-weight: 700;
  padding: 10px 18px; border-radius: 14px; max-width: min(92vw, 520px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__np .label, .kicker { font: 700 11px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
[data-theme="day"] .hero__np .label { color: var(--accent-2); }

.hero__scroll { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--ink); border-radius: 14px; opacity: .7; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: scrolldot 1.8s infinite; }
@media (max-height: 640px) { .hero__scroll { display: none; } }

/* ---------- marquee (Pacifik vibe) ---------- */
main { overflow-x: clip; }
.marquee {
  overflow: hidden; background: var(--accent); color: var(--accent-ink);
  border-block: 2.5px solid var(--ink); transform: rotate(-1.5deg); margin: -8px -10px 0;
  position: relative; z-index: 2;
}
[data-theme="night"] .marquee { background: linear-gradient(90deg, #ff3db8, #7b3dff, #2ee6ff); color: #fff; border-color: transparent; }
.marquee__track { display: flex; width: max-content; gap: 28px; padding: 14px 0; animation: marquee 32s linear infinite; }
.marquee span { font: 400 clamp(26px, 4vw, 42px)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee i { font-style: normal; font-size: clamp(18px, 3vw, 28px); align-self: center; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 10vw, 120px); position: relative; }
.section__head { margin-bottom: 28px; }
.section__title, .np__title {
  margin: 6px 0 0; font: 400 clamp(40px, 7vw, 76px)/.95 var(--font-display);
  text-transform: uppercase; letter-spacing: .01em;
}
.section__lead { color: var(--ink-soft); max-width: 46ch; }
.kicker { margin: 0; }

/* now playing */
.np__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 820px) { .np__grid { grid-template-columns: minmax(280px, 440px) 1fr; } }
.np__cover { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 2.5px solid var(--ink); box-shadow: 10px 10px 0 var(--accent); background: var(--bg-2); max-width: 440px; width: 100%; margin-inline: auto; }
[data-theme="night"] .np__cover { border-color: rgba(46,230,255,.6); box-shadow: 0 0 0 1px rgba(255,61,184,.4), 0 0 60px rgba(177,77,255,.45); }
.np__cover img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.np__cover img.is-swapping { opacity: 0; }
.eq { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 4px; align-items: flex-end; height: 34px; padding: 8px; border-radius: 10px; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .3s; }
.eq i { width: 5px; height: 30%; background: #fff; border-radius: 2px; animation: eq 1s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.2s; } .eq i:nth-child(4) { animation-delay: -.7s; } .eq i:nth-child(5) { animation-delay: -.5s; }
.is-playing .eq { opacity: 1; }

.np__title { overflow-wrap: anywhere; }
.np__artist { margin: 8px 0 0; font-size: clamp(20px, 2.6vw, 28px); font-weight: 500; color: var(--ink-soft); }
.stats { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-wrap: wrap; gap: 12px; }
.stats li { flex: 1 1 110px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); }
.stats b { display: block; font: 400 32px/1 var(--font-display); color: var(--accent); }
.stats span { font: 700 11px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.np__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.np__actions [hidden] { display: none; }

/* buttons (offset shadow, Pacifik vibe) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px;
  font: 700 15px/1 var(--font-body); text-decoration: none; letter-spacing: .01em;
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s var(--ease), box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--small { min-height: 42px; padding: 8px 16px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
[data-theme="night"] .btn { border-color: rgba(46,230,255,.55); box-shadow: 0 0 18px rgba(255,61,184,.25); background: rgba(255,255,255,.04); }
[data-theme="night"] .btn:hover { box-shadow: 0 0 26px rgba(255,61,184,.5); }
[data-theme="night"] .btn--primary { background: var(--accent); color: #fff; border-color: transparent; }
.when-playing { display: none; }
.is-playing .when-playing { display: inline; }
.is-playing .when-paused { display: none; }

/* share dialog */
.share {
  width: min(460px, calc(100vw - 32px)); padding: 22px; border-radius: var(--radius);
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink); box-shadow: 8px 8px 0 var(--accent);
}
.share::backdrop { background: rgba(14, 10, 20, .55); backdrop-filter: blur(3px); }
[data-theme="night"] .share { border-color: rgba(46,230,255,.55); box-shadow: 0 0 60px rgba(177,77,255,.45); }
.share form { position: absolute; top: 10px; right: 12px; margin: 0; }
.share__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.share__close:hover { background: var(--line); }
.share__song { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; padding-right: 30px; }
.share__song img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; border: 1.5px solid var(--line); }
.share__song div { min-width: 0; display: grid; gap: 2px; }
.share__song .kicker { margin: 0 0 4px; }
.share__song b { font: 400 26px/1.05 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.share__song span { color: var(--ink-soft); }
.share__text { margin: 18px 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1.5px dashed var(--line); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.share__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share__actions .btn--primary { flex: 1 0 100%; }
.share__actions [hidden] { display: none; }

/* recent */
.recent { background: var(--bg-2); }
[data-theme="night"] .recent { background: radial-gradient(80% 60% at 20% 0%, rgba(177,77,255,.18), transparent 70%), var(--bg-2); }
.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: t; }
@media (min-width: 760px) { .tracks { grid-template-columns: 1fr 1fr; column-gap: 20px; } }
.track {
  display: grid; grid-template-columns: 56px 1fr auto auto; gap: 14px; align-items: center;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line);
  animation: rise .5s var(--ease) both;
}
.track img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.track__meta { min-width: 0; display: grid; }
.track__meta b, .track__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track__meta span { color: var(--ink-soft); font-size: .92em; }
.track time { font: 700 12px/1 var(--font-mono); color: var(--ink-soft); white-space: nowrap; }
.track__bp {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  color: var(--ink); border: 1.5px solid var(--line); transition: background .15s, color .15s, border-color .15s;
}
.track__bp:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
[data-theme="night"] .track__bp:hover { color: #fff; }

/* request */
.request__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .request__grid { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.form {
  display: grid; gap: 16px; grid-template-columns: 1fr;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius);
  background: var(--surface); border: 2.5px solid var(--ink); box-shadow: 10px 10px 0 var(--accent-2);
}
[data-theme="night"] .form { border: 1px solid rgba(46,230,255,.35); box-shadow: 0 0 60px rgba(46,230,255,.12); }
@media (min-width: 560px) { .form { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font: 700 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.field small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea, .copy input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg); font-size: 16px; /* 16px: no iOS zoom */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field input[aria-invalid="true"] { border-color: #e5484d; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form__status { margin: 0; font-weight: 500; }
.form__status.is-ok { color: #1a8f5a; } .form__status.is-err { color: #e5484d; }
[data-theme="night"] .form__status.is-ok { color: #2ee6a8; }

/* about */
.about__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.2fr .8fr; } }
.about p { max-width: 60ch; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--ink); font: 700 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.listen { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); align-self: start; }
.listen h3, .faq h3 { margin: 0; font: 400 30px/1 var(--font-display); text-transform: uppercase; }
.listen__list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.listen__list .btn { width: 100%; justify-content: flex-start; }
.copy label { font: 700 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.copy__row { display: flex; gap: 8px; margin-top: 8px; }
.copy input { min-width: 0; font: 400 13px var(--font-mono); }
.faq { margin-top: 56px; display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--font-display); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* footer */
.footer { padding: 56px 0 32px; border-top: 1.5px solid var(--line); background: var(--bg-2); }
.footer__grid { display: grid; gap: 24px; justify-items: center; text-align: center; }
.footer__brand img { width: 96px; height: 96px; margin: 0 auto 10px; object-fit: contain; }
.footer__brand p { margin: 0; color: var(--ink-soft); }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; }
.social a { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); transition: transform .2s var(--ease), background .2s, color .2s; }
.social a:hover { transform: translateY(-3px) rotate(-6deg); background: var(--accent); color: var(--accent-ink); }
.social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.social svg .fill, .mini svg .fill { fill: currentColor; stroke: none; }
.footer__copy { margin: 0; font: 400 12px/1.4 var(--font-mono); color: var(--ink-soft); }

/* tropical corner foliage */
.deco { position: relative; overflow: clip; isolation: isolate; }
.deco > * { position: relative; z-index: 1; }
.deco::before, .deco::after { content: none; position: absolute; z-index: 0; pointer-events: none; width: clamp(170px, 30vw, 420px); aspect-ratio: 1; background: center / contain no-repeat; }
[data-theme="day"] .deco::before, [data-theme="day"] .deco::after { background-image: url("../img/leaves-day.webp"); }
[data-theme="night"] .deco::before, [data-theme="night"] .deco::after { background-image: url("../img/leaves-night.webp"); }
.deco--l::before { content: ""; left: 0; bottom: 0; translate: -22% 8%; }
.deco--r::after, .deco--r2::after { content: ""; right: 0; bottom: 0; translate: 22% 8%; transform: scaleX(-1); }
.deco--r::after { top: 0; bottom: auto; translate: 26% -6%; transform: scale(-1, -1); opacity: .9; }
@media (max-width: 700px) {
  .deco::before, .deco::after { width: 150px; opacity: .85; }
  .request.deco::before { display: none; }
}

/* ---------- sticky mini player ---------- */
.mini {
  position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50;
  width: min(760px, calc(100% - 20px)); height: var(--mini-h); translate: -50% 0;
  display: grid; grid-template-columns: 52px 44px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 2px solid var(--ink);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
[data-theme="night"] .mini { border-color: rgba(46,230,255,.4); box-shadow: 0 0 40px rgba(177,77,255,.35); }
.mini.is-visible { transform: none; }
.mini__play { width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
[data-theme="night"] .mini__play { color: #fff; }
.mini__play svg { width: 24px; height: 24px; fill: currentColor; }
.mini__play .when-playing { display: none; }
.is-playing .mini__play .when-playing { display: block; }
.is-playing .mini__play .when-paused { display: none; }
.mini__cover { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.mini__meta { min-width: 0; display: grid; line-height: 1.25; }
.mini__meta b, .mini__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini__meta span { font-size: 13px; color: var(--ink-soft); }
.mini__vol { display: flex; align-items: center; gap: 6px; }
.mini__vol button { width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; border-radius: 50%; }
.mini__vol svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.is-muted .mini__vol .wave { display: none; }
.mini__vol input { width: 96px; accent-color: var(--accent); }
@media (max-width: 560px) { .mini__vol input { display: none; } .mini { grid-template-columns: 52px 44px 1fr 40px; } }
@media (max-width: 360px) { .mini__cover { display: none; } .mini { grid-template-columns: 52px 1fr 40px; } }

/* ---------- motion ---------- */
@keyframes drift { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@keyframes streak { from { transform: translateX(-60%) rotate(-12deg); } to { transform: translateX(60%) rotate(-12deg); } }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1deg); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,45,85,0); } 100% { box-shadow: 0 0 0 0 rgba(255,45,85,0); } }
@keyframes ring { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

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