/* Concept: a karaoke lyric screen. The name is swept with colour like a lyric being sung,
   the tagline lights up word by word, and the waveform advances with it.
   Order: hero portrait, Smule recordings, TikTok clips, about, social links, contact. */
:root {
  --bg: #F7F3FC;
  --surface: #FFFFFF;
  --surface2: #EFE8F8;
  --line: #DDD2EE;
  --fg: #1C1030;
  --muted: #6B5C85;
  --accent: #D91A63;
  --accent2: #D86500;
  --on-accent: #FFFFFF;
  --ink: #1C1030;
  --nav-bg: rgba(247, 243, 252, 0.8);
  --glow-a: rgba(217, 26, 99, 0.14);
  --glow-b: rgba(216, 101, 0, 0.12);

  --display: "Syne", "Arial Black", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #130A22;
    --surface: #1D1233;
    --surface2: #27193F;
    --line: #35244F;
    --fg: #F5EFFF;
    --muted: #A898C4;
    --accent: #FF4F8B;
    --accent2: #FFB04D;
    --on-accent: #1A0B2B;
    --nav-bg: rgba(19, 10, 34, 0.78);
    --glow-a: rgba(255, 79, 139, 0.22);
    --glow-b: rgba(255, 176, 77, 0.13);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #130A22;
  --surface: #1D1233;
  --surface2: #27193F;
  --line: #35244F;
  --fg: #F5EFFF;
  --muted: #A898C4;
  --accent: #FF4F8B;
  --accent2: #FFB04D;
  --on-accent: #1A0B2B;
  --nav-bg: rgba(19, 10, 34, 0.78);
  --glow-a: rgba(255, 79, 139, 0.22);
  --glow-b: rgba(255, 176, 77, 0.13);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(54rem 36rem at 92% -6%, var(--glow-a), transparent 62%),
    radial-gradient(46rem 30rem at -10% 30%, var(--glow-b), transparent 62%);
  background-repeat: no-repeat;
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  padding-block: 12px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--bg);
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.wrap { max-width: 1160px; margin: 0 auto; overflow-x: clip; }
svg { display: block; }

/* ---------- Nav ---------- */
.navwrap { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; padding-block: 8px; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--nav-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; min-width: 0; }
.mark {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--on-accent); font-size: 0.82rem;
}
.brand .bn { display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 14px; }
.nav-links a {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.on { color: var(--fg); }
.nav-links a.on { border-bottom-color: var(--accent); }
.nav .book {
  display: none; padding: 9px 16px; border-radius: 999px; background: var(--fg); color: var(--bg);
  font-size: 0.86rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
@media (min-width: 720px) {
  .brand .bn { display: inline; }
  .nav-links { gap: 26px; }
  .nav-links a { font-size: 0.76rem; }
  .nav .book { display: inline-block; }
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: clamp(20px, 4vw, 48px); align-items: center; }
.copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.avail {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 0.82rem; font-weight: 500;
}
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2FBF71; box-shadow: 0 0 0 4px rgba(47, 191, 113, 0.2); }
.role { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.name {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(3.6rem, 13.5vw, 8.6rem); line-height: 0.92; letter-spacing: -0.04em;
  text-wrap: balance; overflow-wrap: anywhere;
  background-image: linear-gradient(90deg, var(--accent), var(--accent2) 50%, var(--fg) 50%, var(--fg));
  background-size: 200% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: sweep 8s linear infinite;
}
.name.long { font-size: clamp(2.4rem, 9.4vw, 4.6rem); letter-spacing: -0.03em; line-height: 1; }
@keyframes sweep { 0% { background-position: 100% 0; } 72%, 100% { background-position: 0% 0; } }

.lyric {
  margin: 0; max-width: 26ch; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem); line-height: 1.22; letter-spacing: -0.01em; text-wrap: balance;
}
.lyric .w { color: var(--muted); transition: color 0.18s ease; }
.lyric .w.sung { color: var(--accent); }

.stage { max-width: 460px; width: 100%; }
.stage canvas { display: block; width: 100%; height: 56px; }
.timer {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 8px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums;
}
.timer .live { display: inline-flex; align-items: center; gap: 8px; }
.timer .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; transition: transform 0.15s ease, border-color 0.15s ease;
}
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.ghost { border: 1px solid var(--line); background: var(--surface); }
.btn:hover { transform: translateY(-2px); }
.btn.ghost:hover { border-color: var(--accent); }

.stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; padding: 0; }
.stats div { display: grid; gap: 2px; }
.stats dt { order: 2; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stats dd { order: 1; margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* portrait */
.photo { position: relative; isolation: isolate; width: 100%; max-width: 480px; justify-self: center; }
.photo::before {
  content: ""; position: absolute; inset: 0; border: 1.5px solid var(--accent); opacity: 0.55;
  border-radius: 999px 999px 34px 34px; transform: translate(14px, 14px); z-index: -1;
}
.photo::after {
  content: ""; position: absolute; inset: -16% -22%; z-index: -2;
  background: radial-gradient(closest-side, var(--glow-a), transparent 70%);
}
.frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 34px 34px;
  background: linear-gradient(160deg, var(--accent), var(--accent2));
}
.frame img.pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame svg.sil { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 6, 26, 0.6)); }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(16, 7, 30, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; font-size: 0.82rem; font-weight: 500;
}
.chip.top { left: 18%; top: 9%; }
.chip.bot { left: 14px; bottom: 14px; }
.eqs { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eqs i { width: 3px; height: 100%; border-radius: 2px; background: #fff; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eqs i:nth-child(2) { animation-delay: -0.3s; } .eqs i:nth-child(3) { animation-delay: -0.6s; } .eqs i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.badge { position: absolute; right: -8px; top: 6%; width: 108px; height: 108px; }
.badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge .mid { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.badge .mid svg { width: 26px; height: 26px; animation: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 899px) {
  .copy { display: contents; }
  .eyebrow { order: 1; } .name { order: 2; } .photo { order: 3; } .lyric { order: 4; }
  .stage { order: 5; } .cta { order: 6; } .stats { order: 7; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); column-gap: 64px; }
  .photo { justify-self: end; }
  .name.long { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
}

/* ---------- Sections ---------- */
.sec { margin-top: clamp(80px, 11vw, 136px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; }
.kicker { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sec-head h2, .h2 {
  margin: 8px 0 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1;
  font-size: clamp(2.2rem, 6vw, 3.8rem); text-wrap: balance;
}
.more { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.more:hover { color: var(--accent); }

/* cover art */
.art {
  --h: 330; position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(10, 4, 20, 0.6) 0 6%, transparent 6.5%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0 1px, transparent 1px 7px),
    linear-gradient(150deg, hsl(var(--h) 82% 58%), hsl(calc(var(--h) + 50) 80% 30%));
}
.art.img { background-image: none; background-color: var(--surface2); }
.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eq {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 10px; border-radius: 12px;
  background: rgba(10, 4, 20, 0.5); opacity: 0; transition: opacity 0.15s ease;
}
.eq i { width: 4px; height: 55%; border-radius: 2px; background: #fff; transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.25s; } .eq i:nth-child(3) { animation-delay: -0.5s; } .eq i:nth-child(4) { animation-delay: -0.1s; }

/* Smule */
.feat {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px 24px; align-items: center; margin-top: 32px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
}
.feat .art { border-radius: 18px; }
.feat .info { min-width: 0; display: grid; gap: 10px; }
.feat .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feat h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 4.4vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.feat .by { color: var(--muted); }
.bars { display: flex; align-items: center; gap: 3px; height: 40px; }
.bars i { flex: 1 1 0; min-width: 2px; max-width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--accent2)); }
.feat .bars { grid-column: 1 / -1; }
.feat .go { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
@media (min-width: 760px) {
  .feat { grid-template-columns: 208px minmax(0, 1fr); padding: 28px; gap: 28px 40px; }
  .feat .bars { grid-column: 2; } .feat .go { grid-column: 2; }
  .feat .art { grid-row: 1 / span 3; border-radius: 22px; }
}
.tag {
  display: inline-block; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.tag.hot { border-color: var(--accent); color: var(--accent); }
.nums { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.nums span { display: inline-flex; align-items: center; gap: 6px; }
.nums svg { width: 14px; height: 14px; fill: currentColor; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.f {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.f:hover { color: var(--fg); border-color: var(--muted); }
.f[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.recs { margin-top: 12px; display: grid; }
.rec {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; list-style: none;
  padding: 4px 10px; margin-inline: -10px; border-radius: 18px; border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease;
}
.rec:last-child { border-bottom-color: transparent; }
.rec:hover, .rec:focus-within, .rec.playing { background: var(--surface); }
.rec-play {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-width: 0;
  padding: 10px 0; border: 0; background: none; text-align: left; color: inherit; font: inherit;
}
.rec:hover .eq, .rec:focus-within .eq, .rec.playing .eq { opacity: 1; }
.rec.playing .rtitle { color: var(--accent); }
.rec .cov { position: relative; display: block; }
.rec .art { border-radius: 12px; }
.rec .t { min-width: 0; display: grid; gap: 3px; }
.rtitle { font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 0.88rem; min-width: 0; }
.rsub .artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rend { display: flex; align-items: center; gap: 22px; }
.rend .nums { display: none; }
.dur { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pbtn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface2); color: var(--accent); transition: background-color 0.18s ease, color 0.18s ease;
}
.pbtn svg { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; }
.rec:hover .pbtn, .rec.playing .pbtn { background: var(--accent); color: var(--on-accent); }
.rec.playing .pbtn .i-play, .rec:not(.playing) .pbtn .i-pause { display: none; }
.ext {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.ext:hover { color: var(--accent); background: var(--surface2); }
.ext svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.empty { padding: 28px 0; color: var(--muted); }
@media (min-width: 720px) { .rend .nums { display: flex; } }

.uploads { margin-top: 56px; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-top: 14px; }
.up {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color 0.18s ease, transform 0.18s ease;
}
.up:hover { border-color: var(--accent); transform: translateY(-2px); }
.up .art { border-radius: 12px; }
.up .t { min-width: 0; display: grid; gap: 2px; }
.up .ut { font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up .ua { font-size: 0.86rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up .ud { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* TikTok */
.tt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; margin-top: 36px; }
@media (min-width: 720px) { .tt { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 18px; } }
.clip { display: grid; gap: 12px; text-decoration: none; align-content: start; }
.th {
  --h: 330; position: relative; aspect-ratio: 9 / 14; border-radius: 22px; overflow: hidden; transition: transform 0.2s ease;
  background-image:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.34), transparent 45%),
    repeating-radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 10px),
    linear-gradient(165deg, hsl(var(--h) 80% 58%), hsl(calc(var(--h) + 50) 78% 28%));
  background-size: cover; background-position: center;
}
.th.img { background-image: none; background-color: var(--surface2); }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip:hover .th, .clip:focus-visible .th { transform: translateY(-5px); }
.th .views {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(10, 4, 20, 0.55); color: #fff; font-family: var(--mono); font-size: 0.72rem; font-variant-numeric: tabular-nums;
}
.th .views svg { width: 11px; height: 11px; fill: currentColor; }
.th .views.dur2 { left: auto; right: 10px; }
.th .cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; font-family: var(--display); font-weight: 800;
  font-size: 1.02rem; line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.th.img .cap { display: none; }
.th .pl {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center;
}
.th .pl::after { content: ""; margin-left: 3px; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.ctitle { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmeta { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); margin-top: -6px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 36px; }
@media (min-width: 860px) { .about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }
.lead { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.about p.body { margin: 20px 0 0; max-width: 62ch; color: var(--muted); font-size: 1.04rem; white-space: pre-line; overflow-wrap: anywhere; }
.about p.body + p.body { margin-top: 14px; }
.facts { margin: 0; display: grid; align-content: start; }
.facts div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-weight: 500; }

/* Social */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px; } }
.tile {
  display: grid; gap: 22px; align-content: space-between; padding: 20px; min-height: 176px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transition: transform 0.18s ease, border-color 0.18s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--accent); }
.tile .top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.ico { width: 46px; height: 46px; border-radius: 14px; background: var(--surface2); color: var(--accent); display: grid; place-items: center; transition: background-color 0.18s ease, color 0.18s ease; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover .ico { background: var(--accent); color: var(--on-accent); }
.tile .tn { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.tile .th2 { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .tx { display: grid; gap: 2px; min-width: 0; }

/* Contact */
.band {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 20px; padding: clamp(24px, 5vw, 56px);
  border-radius: 32px; background: linear-gradient(120deg, var(--accent), var(--accent2)); color: var(--on-accent);
}
.band h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.band p { margin: 14px 0 0; max-width: 34ch; font-weight: 500; }
.reach { display: grid; gap: 12px; align-content: center; justify-items: start; min-width: 0; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; }
.mail .addr { padding: 12px 18px; border-radius: 999px; background: var(--surface); color: var(--fg); font-family: var(--mono); font-size: 0.9rem; user-select: all; overflow-wrap: anywhere; }
.mail button, .band .btn {
  padding: 14px 24px; border-radius: 999px; border: 0; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 0.98rem; text-decoration: none;
}
@media (min-width: 860px) { .band { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } }

.foot {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }

.frame img.pic { transition: opacity 0.6s ease; }
.frame img.pic.loading { opacity: 0; }
.preloader {
  position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--bg); transition: opacity 0.45s ease, visibility 0.45s;
  animation: plfail 0.4s ease 8s forwards; /* safety net if scripts never finish */
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes plfail { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.pl-mark {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.pl-mark svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-eq { display: flex; align-items: flex-end; gap: 4px; height: 28px; }
.pl-eq i { width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent2)); transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.pl-eq i:nth-child(2) { animation-delay: -0.2s; } .pl-eq i:nth-child(3) { animation-delay: -0.45s; }
.pl-eq i:nth-child(4) { animation-delay: -0.1s; } .pl-eq i:nth-child(5) { animation-delay: -0.35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .name, .badge svg, .timer .live::before, .eqs i, .eq i, .pl-eq i { animation: none; }
  .name { background-position: 0% 0; }
  .eq i { transform: scaleY(0.7); }
  .btn, .tile, .th, .rec, .f, .up { transition: none; }
}

/* ================= Demo strip ================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo { margin-top: 12px; padding: 16px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.demo-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.demo-tag {
  padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.demo-copy { margin: 0; color: var(--muted); font-size: 0.92rem; }
.demo-form { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
@media (max-width: 759px) { .demo-form { grid-template-columns: minmax(0, 1fr); } }
.field { position: relative; display: block; min-width: 0; }
.field .pre { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--mono); pointer-events: none; }
.field input {
  width: 100%; min-width: 0; padding: 14px 18px 14px 40px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--fg); font: inherit;
}
.field input::placeholder { color: var(--muted); opacity: 0.85; }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-form .btn { justify-content: center; }
.demo-form .btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }
.demo-status { margin: 0; min-height: 1.4em; font-size: 0.88rem; color: var(--muted); }
.demo-status.err { color: var(--accent); }

.welcome { display: grid; gap: 14px; max-width: 640px; margin: clamp(48px, 12vh, 120px) auto 0; text-align: center; justify-items: center; }
.welcome h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.welcome p { margin: 0; color: var(--muted); max-width: 46ch; }

/* ================= Loading skeletons ================= */
.skel { position: relative; overflow: hidden; border-radius: 14px; background: var(--surface2); }
.skel::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fg) 9%, transparent), transparent);
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-feat { height: 260px; margin-top: 32px; border-radius: 28px; }
.skel-rec { height: 76px; margin-top: 10px; border-radius: 18px; }
.skel-clip { aspect-ratio: 9 / 14; border-radius: 22px; }
.page { transition: opacity 0.2s ease; }
.page[aria-busy="true"] { opacity: 0.55; }

/* ================= Floating player ================= */
.fab {
  position: fixed; z-index: 30; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px; max-width: min(300px, calc(100vw - 32px)); padding: 8px; border: 0; border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent2)); color: var(--on-accent); cursor: pointer; font: inherit;
  box-shadow: 0 14px 34px -10px rgba(16, 7, 30, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: transform 0.15s ease;
}
.fab:hover { transform: translateY(-2px); }
.fab .fi { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.22); }
.fab svg { width: 20px; height: 20px; fill: currentColor; }
.fab .ft { display: grid; min-width: 0; padding-right: 14px; text-align: left; }
.fab .ft b { font-size: 0.92rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fab .ft small { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
@media (max-width: 560px) { .fab:not(.on) .ft { display: none; } .fab:not(.on) { padding: 6px; } }
.fab.pulse::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 var(--accent); animation: ring 2.4s ease-out 3;
}
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 20px transparent; } }
.bars-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.bars-eq i { width: 4px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.bars-eq i:nth-child(2) { animation-delay: -0.25s; } .bars-eq i:nth-child(3) { animation-delay: -0.5s; }
.spin { animation: spin 0.9s linear infinite; }
.spin circle { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 38 60; }

.pp {
  position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: min(400px, calc(100vw - 32px)); max-height: min(660px, calc(100dvh - 32px)); display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 28px; background: var(--surface); overflow: hidden;
  box-shadow: 0 34px 90px -24px rgba(10, 4, 20, 0.6); animation: rise 0.22s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.pp-head { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 16px 6px; }
.pp-cover { border-radius: 16px; }
.pp-meta { min-width: 0; display: grid; gap: 2px; }
.pp-title { font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.15; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-artist { color: var(--muted); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-x { width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); color: var(--fg); cursor: pointer; }
.pp-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pp-seek { padding: 8px 18px 0; }
.pp-seek input { width: 100%; margin: 0; accent-color: var(--accent); cursor: pointer; }
.pp-times { display: flex; justify-content: space-between; margin-top: 2px; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pp-ctl { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 8px 16px 16px; }
.pp-ctl button { width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); color: var(--fg); cursor: pointer; transition: transform 0.12s ease; }
.pp-ctl button:hover { transform: scale(1.06); }
.pp-ctl button svg { width: 18px; height: 18px; fill: currentColor; }
.pp-ctl .main { width: 62px; height: 62px; background: var(--accent); color: var(--on-accent); }
.pp-ctl .main svg { width: 24px; height: 24px; }
.pp-list { margin: 0; padding: 6px; list-style: none; overflow: auto; border-top: 1px solid var(--line); overscroll-behavior: contain; }
.pp-item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; gap: 12px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 14px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.pp-item:hover, .pp-item.on { background: var(--surface2); }
.pp-item .art { border-radius: 10px; }
.pp-item .it { display: block; font-weight: 600; font-size: 0.92rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-item .ia { display: block; color: var(--muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-item.on .it { color: var(--accent); }
.pp-item.bad { opacity: 0.45; }
.pp-item .ix { color: var(--accent); display: grid; place-items: center; }
.pp-item .ix .bars-eq { height: 14px; }
.pp-item .ix .bars-eq i { width: 3px; }
@media (max-width: 560px) {
  .pp { left: 0; right: 0; bottom: 0; width: auto; max-height: 84dvh; border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}

.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 0.88rem; font-weight: 500;
  box-shadow: 0 12px 30px -10px rgba(10, 4, 20, 0.5);
}
.foot { margin-bottom: 84px; }
.btn.small { padding: 10px 18px; font-size: 0.9rem; }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .bars-eq i, .skel::after, .spin, .fab.pulse::before { animation: none; }
  .pp { animation: none; }
}
.recs { padding: 0; margin-bottom: 0; }
.avail{display:none!important}

::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#ff4f8b,#ff8a5c);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#ff6b9f,#ff8a5c);background-clip:padding-box}
@supports not selector(::-webkit-scrollbar){html{scrollbar-color:#ff4f8b transparent;scrollbar-width:thin}}
