:root {
  color-scheme: dark;
  --bg: #06101a;
  --bg-deep: #03090f;
  --panel: rgba(10, 25, 39, 0.82);
  --panel-solid: #0a1a29;
  --panel-raised: #102538;
  --line: rgba(124, 184, 217, 0.16);
  --line-strong: rgba(103, 220, 230, 0.38);
  --text: #eefaff;
  --text-soft: #a8c0cd;
  --text-muted: #6f8b9a;
  --cyan: #6be7ee;
  --cyan-strong: #1cc7d4;
  --blue: #5087ff;
  --lime: #a4efc5;
  --orange: #ffb66d;
  --red: #ff7684;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --max-width: 1240px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  font-family: Inter, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 48% -12%, rgba(39, 106, 137, 0.2), transparent 38%),
    linear-gradient(180deg, #07131f 0%, var(--bg) 34%, var(--bg-deep) 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 197, 223, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 197, 223, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a {
  color: inherit;
  text-decoration: none;
}

button { border: 0; }

:is(a, button, input):focus-visible {
  outline: 3px solid #c3f9ff;
  outline-offset: 4px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #07111d;
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(107, 231, 238, 0.5);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(107, 231, 238, 0.2), rgba(80, 135, 255, 0.12));
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 950;
  box-shadow: inset 0 0 16px rgba(107, 231, 238, 0.06), 0 0 22px rgba(37, 192, 205, 0.08);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.brand-copy small {
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 650;
}

.header-nav a { transition: color 180ms ease; }
.header-nav a:hover { color: var(--cyan); }

.header-nav .back-home {
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.78fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 720px;
  margin: 0 auto;
  padding: 88px 0 108px;
}

.hero-grid {
  position: absolute;
  z-index: -1;
  inset: 0 -100vw;
  background:
    linear-gradient(180deg, rgba(7, 19, 31, 0), rgba(7, 19, 31, 0.65)),
    linear-gradient(rgba(99, 180, 210, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 180, 210, 0.032) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 430px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  pointer-events: none;
}

.hero-glow-one { top: 7%; left: 4%; background: var(--blue); }
.hero-glow-two { right: -9%; bottom: 0; background: var(--cyan-strong); }

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(107, 231, 238, 0.16);
  border-radius: 999px;
  background: rgba(11, 30, 43, 0.62);
}

.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(107, 231, 238, 0.08), 0 0 16px var(--cyan);
}

.hero h1 {
  max-width: 760px;
  margin: 24px 0 26px;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 790;
  letter-spacing: -0.065em;
  line-height: 1.06;
}

.hero h1 strong {
  background: linear-gradient(95deg, #fff 8%, #84eaf0 54%, #70a5ff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: inherit;
}

.hero-nowrap {
  white-space: nowrap;
}

.hero-lead {
  max-width: 670px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.9;
}

.hero-lead strong { color: #d5f6f7; font-weight: 720; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.sound-check {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 21px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-action {
  background: linear-gradient(135deg, #83f2f4, #45cdd7);
  color: #06151d;
  box-shadow: 0 12px 32px rgba(57, 210, 219, 0.2);
}

.primary-action:hover,
.sound-check:hover { transform: translateY(-2px); }

.sound-check {
  border: 1px solid var(--line-strong);
  background: rgba(11, 30, 43, 0.66);
  color: var(--text);
}

.sound-check-icon,
.dock-signal {
  display: inline-flex;
  height: 18px;
  align-items: center;
  gap: 3px;
}

.sound-check-icon i,
.dock-signal i {
  width: 2px;
  height: 8px;
  border-radius: 99px;
  background: var(--cyan);
}

.sound-check-icon i:nth-child(2) { height: 15px; }

.sound-check.is-playing .sound-check-icon i,
.sound-check.is-loading .sound-check-icon i,
.dock-signal i { animation: soundBar 520ms ease-in-out infinite alternate; }

.sound-check-icon i:nth-child(2),
.dock-signal i:nth-child(2) { animation-delay: -170ms; }

.sound-check-icon i:nth-child(3),
.dock-signal i:nth-child(3) { animation-delay: -330ms; }
.dock-signal i:nth-child(4) { animation-delay: -80ms; }

.hero-note {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.hero-note span { margin-right: 7px; color: var(--lime); }

.hero-player {
  position: relative;
  min-height: 500px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 44%, rgba(53, 197, 207, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(16, 38, 56, 0.9), rgba(5, 15, 25, 0.96));
  box-shadow: var(--shadow), inset 0 0 52px rgba(49, 191, 202, 0.04);
}

.hero-player::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(114, 206, 224, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 206, 224, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  pointer-events: none;
}

.player-topline,
.player-categories {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.player-topline span:first-child { display: inline-flex; align-items: center; gap: 8px; }

.player-topline i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

.player-disc {
  position: relative;
  display: grid;
  width: 230px;
  margin: 52px auto 46px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(107, 231, 238, 0.22);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 14px, rgba(107, 231, 238, 0.055) 15px 16px),
    radial-gradient(circle, #183d51 0 18%, #081925 19% 100%);
  box-shadow: 0 0 72px rgba(40, 199, 210, 0.14), inset 0 0 34px rgba(0, 0, 0, 0.5);
}

.disc-core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 74px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(107, 231, 238, 0.56);
  border-radius: 50%;
  background: #0b2634;
  color: var(--cyan);
  font-weight: 950;
  letter-spacing: 0.12em;
  box-shadow: 0 0 24px rgba(107, 231, 238, 0.18);
}

.disc-ring {
  position: absolute;
  border: 1px dashed rgba(107, 231, 238, 0.2);
  border-radius: 50%;
}

.disc-ring-one { inset: 22px; }
.disc-ring-two { inset: 58px; }

.hero-waveform {
  position: relative;
  z-index: 2;
  display: flex;
  height: 62px;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  border-block: 1px solid var(--line);
}

.hero-waveform i {
  flex: 1;
  height: calc(9px + (var(--height, 1) * 3px));
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cyan), rgba(80, 135, 255, 0.45));
  opacity: 0.74;
}

.hero-waveform i:nth-child(4n + 1) { height: 18px; }
.hero-waveform i:nth-child(4n + 2) { height: 38px; }
.hero-waveform i:nth-child(4n + 3) { height: 25px; }
.hero-waveform i:nth-child(5n) { height: 46px; }

.player-categories { margin-top: 20px; }

.player-categories span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 16, 25, 0.62);
}

.usage,
.recipe-section,
.boundary,
.site-footer {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

.usage {
  padding: 100px 0 112px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.85;
}

.section-heading > p strong { color: var(--text); }

.compact-heading { align-items: center; }

.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.usage-grid article {
  position: relative;
  min-height: 275px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(14, 35, 51, 0.78), rgba(8, 22, 34, 0.72));
}

.usage-index {
  color: var(--cyan);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.usage-grid h3 { margin: 26px 0 8px; font-size: 1.12rem; }
.usage-grid p { margin: 0; color: var(--text-soft); font-size: 0.88rem; line-height: 1.75; }

.usage-bars {
  display: flex;
  height: 72px;
  align-items: end;
  gap: 7px;
  margin-top: 21px;
}

.usage-bars i {
  width: 10px;
  height: 30%;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.usage-bars i:nth-child(2) { height: 72%; }
.usage-bars i:nth-child(3) { height: 100%; }
.usage-bars i:nth-child(4) { height: 58%; }
.usage-bars i:nth-child(5) { height: 83%; }

.usage-target {
  position: relative;
  width: 80px;
  height: 80px;
  margin-top: 20px;
  border: 1px solid rgba(107, 231, 238, 0.28);
  border-radius: 50%;
}

.usage-target::before,
.usage-target::after {
  position: absolute;
  background: rgba(107, 231, 238, 0.28);
  content: "";
}

.usage-target::before { top: 50%; left: -18px; width: 116px; height: 1px; }
.usage-target::after { top: -18px; left: 50%; width: 1px; height: 116px; }

.usage-target i,
.usage-target b,
.usage-target em {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(107, 231, 238, 0.25);
  border-radius: 50%;
}

.usage-target b { inset: 28px; background: var(--cyan); box-shadow: 0 0 17px var(--cyan); }
.usage-target em { inset: 35px; border: 0; background: #fff; }

.usage-headphones {
  position: relative;
  width: 84px;
  height: 74px;
  margin-top: 22px;
  border: 8px solid var(--cyan);
  border-bottom: 0;
  border-radius: 48px 48px 0 0;
  opacity: 0.82;
}

.usage-headphones i,
.usage-headphones b {
  position: absolute;
  top: 36px;
  width: 15px;
  height: 30px;
  border-radius: 7px;
  background: var(--blue);
}

.usage-headphones i { left: -14px; }
.usage-headphones b { right: -14px; }
.usage-headphones em { display: none; }

.recipe-section { padding: 106px 0 120px; }

.recipe-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(9, 24, 36, 0.72);
  backdrop-filter: blur(18px);
}

.search-field {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(4, 14, 22, 0.7);
}

.search-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 1.5px solid var(--text-muted);
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: var(--text-muted);
  content: "";
  transform: rotate(45deg);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
}

.search-field input::placeholder { color: #5f7a89; }

kbd {
  padding: 2px 6px;
  border: 1px solid rgba(133, 180, 202, 0.22);
  border-radius: 5px;
  background: rgba(106, 151, 173, 0.09);
  color: var(--text-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.65rem;
}

.filter-list {
  display: flex;
  gap: 7px;
}

.filter-button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-button span { margin-left: 4px; color: var(--text-muted); font-size: 0.65rem; }

.filter-button:hover,
.filter-button.is-active {
  border-color: rgba(107, 231, 238, 0.25);
  background: rgba(107, 231, 238, 0.1);
  color: var(--cyan);
}

.result-count {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.result-count strong { color: var(--text); font-size: 0.9rem; }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.recipe-card {
  position: relative;
  display: flex;
  min-height: 460px;
  flex-direction: column;
  padding: 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(15, 37, 54, 0.9), rgba(7, 20, 31, 0.94));
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.recipe-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(107, 231, 238, 0.72), transparent);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.recipe-card:hover {
  border-color: rgba(107, 231, 238, 0.3);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.recipe-card:hover::before,
.recipe-card.is-playing::before { opacity: 1; }

.recipe-card.is-playing {
  border-color: rgba(107, 231, 238, 0.5);
  box-shadow: 0 20px 56px rgba(19, 180, 193, 0.14);
}

.recipe-card.has-error { border-color: rgba(255, 118, 132, 0.65); }

.recipe-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

.recipe-code { color: var(--cyan); font-weight: 800; }

.recipe-tag,
.recipe-duration {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 15, 24, 0.55);
}

.recipe-duration { margin-left: auto; }

.recipe-copy { min-height: 124px; margin-top: 21px; }

.sound-role {
  margin: 0 0 5px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 720;
}

.recipe-card h3 {
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.recipe-use {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.83rem;
  line-height: 1.65;
}

.audio-preview {
  position: relative;
  display: flex;
  height: 80px;
  align-items: center;
  padding: 15px 13px 25px;
  border: 1px solid rgba(107, 231, 238, 0.14);
  border-radius: 14px;
  background: rgba(3, 13, 21, 0.64);
}

.waveform {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  gap: 3px;
}

.waveform i {
  width: 100%;
  height: var(--height, 18px);
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cyan), rgba(80, 135, 255, 0.55));
  opacity: 0.46;
  transform-origin: center;
}

.waveform i:nth-child(3n) { height: 30px; }
.waveform i:nth-child(5n) { height: 18px; }

.preview-status {
  position: absolute;
  right: 12px;
  bottom: 6px;
  color: var(--text-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
}

.recipe-card.is-playing .waveform i,
.recipe-card.is-loading .waveform i {
  animation: waveformPulse 460ms ease-in-out infinite alternate;
  animation-delay: calc(var(--bar) * -31ms);
  opacity: 0.9;
}

.recipe-card.is-playing .preview-status { color: var(--lime); }

.timing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.timing-grid > span {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(6, 18, 28, 0.5);
}

.timing-grid small { color: var(--text-muted); font-size: 0.61rem; }
.timing-grid strong { color: var(--text); font-size: 0.8rem; }

.timing-grid > span:last-child {
  border-color: rgba(107, 231, 238, 0.24);
  background: rgba(107, 231, 238, 0.07);
}

.timing-grid > span:last-child strong { color: var(--cyan); }

.anchor-help {
  min-height: 34px;
  margin: 8px 1px 0;
  color: var(--text-muted);
  font-size: 0.63rem;
  line-height: 1.45;
}

.anchor-help.is-long-build {
  color: var(--orange);
  font-weight: 700;
}

.source-marker {
  margin: 5px 1px 13px;
  color: #587381;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.57rem;
}

.play-recipe {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(107, 231, 238, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.play-recipe:hover,
.recipe-card.is-playing .play-recipe {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #06151d;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.recipe-card.is-playing .play-icon {
  width: 8px;
  height: 8px;
  border: 0;
  background: currentColor;
}

.recipe-card.is-loading .play-icon {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(107, 231, 238, 0.25);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

.empty-state,
.load-error {
  padding: 70px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-state > span,
.load-error > span { color: var(--cyan); font-size: 2rem; }
.empty-state h3,
.load-error h3 { margin: 10px 0 4px; }
.empty-state p,
.load-error p { margin: 0; color: var(--text-soft); }

.empty-state button {
  margin-top: 20px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(107, 231, 238, 0.08);
  color: var(--text);
  cursor: pointer;
}

.boundary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  margin-bottom: 110px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, rgba(18, 42, 58, 0.8), rgba(7, 22, 33, 0.88));
}

.boundary-mark {
  display: flex;
  width: 108px;
  height: 108px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(107, 231, 238, 0.25);
  border-radius: 50%;
  background: rgba(6, 20, 30, 0.72);
  color: var(--cyan);
}

.boundary-mark span {
  margin-right: 5px;
  font-size: 0.67rem;
  font-weight: 900;
}

.boundary-mark i {
  width: 3px;
  height: 13px;
  border-radius: 99px;
  background: var(--cyan);
}

.boundary-mark i:nth-of-type(2) { height: 27px; }
.boundary-mark i:nth-of-type(3) { height: 39px; }
.boundary-mark i:nth-of-type(4) { height: 23px; }

.boundary .section-kicker { margin-bottom: 8px; }
.boundary h2 { margin: 0 0 8px; font-size: clamp(1.45rem, 2.4vw, 2.2rem); letter-spacing: -0.035em; }
.boundary p:not(.section-kicker) { max-width: 720px; margin: 0; color: var(--text-soft); font-size: 0.84rem; line-height: 1.75; }
.boundary p a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.boundary > a {
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr auto;
  gap: 30px;
  align-items: center;
  padding: 42px 0 80px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.76rem;
}

.site-footer p { margin: 0; }
.site-footer > div { display: flex; gap: 20px; }
.site-footer > div a:hover { color: var(--cyan); }
.site-footer > small { grid-column: 1 / -1; color: #4f6875; }

.playback-dock {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(90px, 180px) auto;
  gap: 15px;
  align-items: center;
  width: min(620px, calc(100% - 44px));
  padding: 13px 14px;
  border: 1px solid rgba(107, 231, 238, 0.46);
  border-radius: 17px;
  background: rgba(6, 18, 28, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
}

.playback-dock small { display: block; color: var(--text-muted); font-size: 0.58rem; }
.playback-dock strong { display: block; max-width: 280px; overflow: hidden; color: var(--text); font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }

.dock-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(107, 231, 238, 0.12);
}

.dock-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform-origin: left;
  animation: dockProgress var(--play-duration, 1000ms) linear forwards;
}

.playback-dock button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(107, 231, 238, 0.07);
  color: var(--text);
  font-size: 0.68rem;
  cursor: pointer;
}

.noscript {
  margin: 0;
  padding: 18px;
  background: #5d2d1f;
  color: #fff;
  text-align: center;
}

@keyframes soundBar {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1.1); }
}

@keyframes waveformPulse {
  from { transform: scaleY(0.42); }
  to { transform: scaleY(1.08); }
}

@keyframes dockProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr 380px; gap: 44px; }
  .hero h1 { font-size: clamp(2.7rem, 5.5vw, 4.5rem); }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe-toolbar { grid-template-columns: 1fr auto; }
  .result-count { grid-column: 1 / -1; padding-left: 3px; }
}

@media (max-width: 820px) {
  .site-header { width: min(100% - 32px, var(--max-width)); }
  .header-nav > a:not(.back-home) { display: none; }
  .hero { grid-template-columns: 1fr; width: min(100% - 32px, var(--max-width)); padding: 72px 0 86px; }
  .hero-player { min-height: 430px; }
  .player-disc { width: 200px; margin-block: 40px; }
  .usage,
  .recipe-section,
  .boundary,
  .site-footer { width: min(100% - 32px, var(--max-width)); }
  .section-heading { align-items: start; flex-direction: column; }
  .usage-grid { grid-template-columns: 1fr; }
  .usage-grid article { min-height: 240px; }
  .boundary { grid-template-columns: auto 1fr; }
  .boundary > a { grid-column: 2; justify-self: start; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > small { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .site-header { min-height: 76px; }
  .header-nav { gap: 0; }
  .header-nav .back-home { padding: 8px 11px; font-size: 0.72rem; }
  .hero { min-height: auto; padding-top: 56px; }
  .eyebrow { font-size: 0.61rem; letter-spacing: 0.12em; }
  .hero h1 { margin-top: 20px; font-size: clamp(2.25rem, 12vw, 3.5rem); }
  .hero-lead { font-size: 0.94rem; line-height: 1.8; }
  .hero-actions { display: grid; }
  .primary-action,
  .sound-check { width: 100%; }
  .hero-player { min-height: 380px; padding: 20px; }
  .player-disc { width: 165px; margin-block: 35px; }
  .player-categories { gap: 5px; }
  .player-categories span { padding-inline: 7px; font-size: 0.58rem; }
  .usage { padding-block: 78px; }
  .recipe-section { padding-block: 82px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: 2rem; }
  .recipe-toolbar { grid-template-columns: 1fr; padding: 10px; }
  .filter-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .filter-button { padding-inline: 5px; }
  .result-count { grid-column: auto; }
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-card { min-height: 435px; }
  .boundary { grid-template-columns: 1fr; padding: 26px; }
  .boundary-mark { width: 88px; height: 88px; }
  .boundary > a { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > small { grid-column: auto; }
  .playback-dock {
    right: 12px;
    bottom: 12px;
    grid-template-columns: auto 1fr auto;
    width: calc(100% - 24px);
  }
  .dock-progress { grid-column: 1 / -1; grid-row: 2; }
}

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