:root {
  --bg: #0c0a09;
  --bg-glow-a: rgba(227, 155, 61, 0.16);
  --bg-glow-b: rgba(179, 107, 107, 0.08);
  --fg: #f3ebe1;
  --fg-soft: #d8cfc4;
  --mute: #8f8174;
  --surface: #171310;
  --surface-2: #201a16;
  --stroke: rgba(243, 235, 225, 0.1);
  --stroke-strong: rgba(227, 155, 61, 0.38);
  --accent: #e39b3d;
  --accent-2: #f3c27a;
  --ok: #c4a574;
  --err: #d97848;
  --player: rgba(12, 10, 9, 0.92);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --radius: 22px;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --space: clamp(18px, 2.4vw, 40px);
  --ink: #0c0a09;
  --cream: #f3ebe1;
  --amber: #e39b3d;
  --panel: #171310;
  --panel-2: #201a16;
  --line: rgba(243, 235, 225, 0.1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4ece3;
    --bg-glow-a: rgba(227, 155, 61, 0.18);
    --bg-glow-b: rgba(120, 72, 48, 0.06);
    --fg: #1c1612;
    --fg-soft: #3a322c;
    --mute: #6d6158;
    --surface: #fffaf4;
    --surface-2: #efe6db;
    --stroke: rgba(28, 22, 18, 0.1);
    --stroke-strong: rgba(180, 110, 32, 0.45);
    --shadow: 0 18px 44px rgba(56, 36, 18, 0.12);
    --player: rgba(18, 14, 12, 0.94);
  }
}

* { box-sizing: border-box; }
html {
  color-scheme: dark light;
  background: var(--bg);
}
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
}
body {
  background:
    radial-gradient(1200px 700px at 8% -12%, var(--bg-glow-a), transparent 52%),
    radial-gradient(900px 520px at 92% 8%, var(--bg-glow-b), transparent 46%),
    var(--bg);
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(227, 155, 61, 0.34); color: var(--fg); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
#live-audio { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
}
.skip:focus { top: 12px; }

.app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(168px + env(safe-area-inset-bottom, 0px));
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 24px;
  border-right: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px var(--stroke), 0 8px 20px rgba(0, 0, 0, 0.28);
}
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.brand span { display: block; color: var(--mute); font-size: 12px; margin-top: 3px; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--mute);
  transition: background-color 180ms ease, color 180ms ease;
}
.nav a:hover { background: var(--surface-2); color: var(--fg); }
.nav a.is-on,
.nav a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--stroke);
}
.nav a.is-on::before,
.nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.rail-note {
  margin-top: auto;
  padding: 14px 15px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.5;
}

main {
  padding: 36px var(--space) 28px;
  max-width: 1180px;
  min-width: 0;
}

.page-head { margin-bottom: 28px; max-width: 44rem; }
.page-head h1 { margin-bottom: 12px; }
.hero .page-head { margin-bottom: 0; max-width: none; }
main > .kicker + h1 { margin-top: 8px; }
main > h1 + .lead { margin-bottom: 24px; }
main > .lead + .filters,
main > .lead + .now-stage { margin-top: 4px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 42px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}
.kicker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0.9;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 10px 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(36px, 5.6vw, 68px);
  line-height: 1.04;
  margin-top: 8px;
}
h2 { font-size: clamp(26px, 3vw, 32px); }
h3 { font-size: 22px; }
.lead {
  max-width: 42rem;
  color: var(--fg-soft);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}
.hero-cover,
img.hero-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background-color: #1a1511;
  background-image: url("/assets/covers/nightgarden.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  object-fit: cover;
  object-position: center;
  transform: none;
}
.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,10,9,0.08) 0%, rgba(12,10,9,0.82) 72%);
}
.hero-card > *:not(.hero-cover) { position: relative; z-index: 1; }
.hero-card .kicker,
.hero-card h2,
.hero-card p { color: #f3ebe1; }
.hero-card .kicker { color: var(--accent-2); }
.hero-card h2 { margin-top: 8px; }
.hero-card p { color: #d8cfc4; line-height: 1.5; margin: 0 0 16px; }
.hero-card .chip { align-self: flex-start; }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(227,155,61,0.14);
  animation: pulse 1.8s infinite;
  display: inline-block;
  flex: 0 0 auto;
}
@keyframes pulse { 50% { transform: scale(0.86); opacity: 0.7; } }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 8px 0 20px;
}
.section-head a {
  color: var(--accent-2);
  font-size: 14px;
  white-space: nowrap;
}
.section-head a:hover { text-decoration: underline; text-underline-offset: 4px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 20px;
  align-items: stretch;
}

.card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(3.6em, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  height: 100%;
  min-width: 0;
  padding: 12px 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--stroke);
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.card:hover,
.card:focus-within {
  border-color: var(--stroke-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.cover,
img.cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 14px;
  margin: 0 0 12px;
  background-color: #1a1511;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}
.card h3 {
  font-size: 21px;
  line-height: 1.2;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card p {
  margin: 0 0 14px;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card > .chip {
  width: 100%;
  justify-content: center;
  margin-top: 0;
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}
.card > .chip:hover,
.card > .chip:focus-visible {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0c0a09;
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 1;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--mute);
  line-height: 1.2;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.chip:hover { border-color: var(--stroke-strong); color: var(--fg); }
.chip.is-on {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.hero-card .chip.is-on,
.now-actions .chip.is-on {
  background: #f3ebe1;
  color: #0c0a09;
  border-color: #f3ebe1;
}

.now-stage {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  align-items: center;
  margin-bottom: 8px;
}
.now-art,
img.now-art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 22px;
  background-color: #241910;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 18px 48px color-mix(in srgb, var(--c, #e39b3d) 26%, transparent);
}
[data-spotlight] {
  display: flex;
  align-items: center;
  gap: 12px;
}
[data-spotlight] b {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}
.now-actions { margin-top: 18px; }
.meta-line { color: var(--mute); font-size: 14px; }
.bars { display: flex; align-items: end; gap: 4px; height: 36px; margin-top: 18px; }
.bars i { width: 4px; background: var(--accent); border-radius: 99px; animation: bar 1s infinite ease-in-out; }
.bars i:nth-child(2) { animation-delay: .1s }
.bars i:nth-child(3) { animation-delay: .18s }
.bars i:nth-child(4) { animation-delay: .07s }
.bars i:nth-child(5) { animation-delay: .22s }
.bars i:nth-child(6) { animation-delay: .14s }
@keyframes bar { 0%,100% { height: 8px } 50% { height: 34px } }

.prose { max-width: 42rem; font-size: 17px; line-height: 1.75; color: var(--fg-soft); }
.prose p { margin: 0 0 16px; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.contact-stack { display: grid; gap: 12px; max-width: 42rem; }
.contact-card {
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  margin: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.contact-card:hover { border-color: var(--stroke-strong); box-shadow: var(--shadow); }
.contact-card h3 { margin: 8px 0 8px; word-break: break-word; }
.contact-stack + .prose,
.contact-card + footer { margin-top: 18px; }
.contact-card label { color: var(--mute); font-size: 13px; }
.contact-card input,
.contact-card textarea {
  width: 100%;
  max-width: 100%;
  margin: 6px 0 14px;
  padding: 12px 14px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  color: var(--fg);
  font: inherit;
}
.contact-card textarea { min-height: 128px; resize: vertical; }
.contact-card input:focus-visible,
.contact-card textarea:focus-visible {
  border-color: var(--accent);
}
.chip[disabled],
.chip[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

section.prose { margin-top: 36px; }
main > footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--stroke);
  max-width: 44rem;
}
main > footer a { color: var(--accent-2); }
main > footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.empty {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: 18px;
  border: 1px dashed var(--stroke);
  color: var(--mute);
  line-height: 1.5;
}

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 88px;
  padding: 12px 22px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--player);
  color: #f3ebe1;
  border-top: 1px solid rgba(243, 235, 225, 0.1);
  backdrop-filter: blur(22px);
}
.now-mini { display: flex; align-items: center; gap: 12px; min-width: 0; }
.now-mini .dot,
img.dot {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex: 0 0 auto;
  background-color: #2a2118;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  object-fit: cover;
  object-position: center;
  box-shadow: inset 0 0 0 1px rgba(243, 235, 225, 0.08);
}
.now-mini > div { min-width: 0; }
.now-mini b, .now-mini small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.now-mini b { font-size: 14px; }
.now-mini small { color: #8f8174; margin-top: 3px; }
.player-status {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #8f8174;
  min-height: 1.1em;
}
.player-status.is-err { color: var(--err); }
.player-status.is-wait { color: var(--accent-2); }
.controls { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.btns { display: flex; align-items: center; gap: 10px; }
.btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #201a16;
  border: 1px solid rgba(243, 235, 225, 0.1);
  color: #f3ebe1;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.btn:hover { border-color: var(--accent); }
.btn-main { width: 48px; height: 48px; background: #f3ebe1; color: #0c0a09; border-color: #f3ebe1; }
.btn-main:hover { background: #fff; }
.btn[disabled] { opacity: .4; cursor: default; }
.progress {
  width: min(420px, 100%);
  height: 4px;
  background: #2b241d;
  border-radius: 99px;
  overflow: hidden;
}
.progress > i { display: block; height: 100%; width: 18%; background: var(--accent); animation: load 12s linear infinite; }
.progress.is-paused > i { animation-play-state: paused; opacity: .35; }
@keyframes load { from { transform: translateX(-120%); } to { transform: translateX(620%); } }
.vol {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 10px;
  color: #8f8174;
}
.vol #clock { font-size: 13px; white-space: nowrap; }
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  accent-color: var(--accent);
  width: 110px;
  height: 4px;
  background: #2b241d;
  border-radius: 99px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 0;
  box-shadow: 0 0 0 3px rgba(227, 155, 61, 0.18);
}
input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 0;
}
input[type=range]:focus-visible { outline-offset: 4px; }

.sk {
  background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface));
  background-size: 200% 100%;
  animation: sk 1.2s infinite;
  border-radius: 16px;
}
@keyframes sk { to { background-position: -200% 0; } }

@media (max-width: 900px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: calc(168px + env(safe-area-inset-bottom, 0px));
  }
  .rail {
    position: sticky;
    top: 0;
    z-index: 12;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--stroke);
    padding: 16px 16px 12px;
    gap: 10px;
  }
  .brand { margin-bottom: 0; }
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 8px;
    margin: 0;
    padding: 2px 0 6px;
  }
  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
  }
  .nav a.is-on,
  .nav a[aria-current="page"] {
    background: var(--fg);
    color: var(--bg);
    box-shadow: none;
  }
  .nav a.is-on::before,
  .nav a[aria-current="page"]::before { display: none; }
  .btn { width: 44px; height: 44px; }
  .btn-main { width: 48px; height: 48px; }
  .hero, .now-stage { grid-template-columns: minmax(0, 1fr); }
  .hero { margin-bottom: 28px; gap: 18px; }
  .hero-card { min-height: 220px; }
  .now-art { max-width: 320px; }
  main { padding: 22px 16px 20px; }
  h1 { font-size: clamp(32px, 10vw, 42px); line-height: 1.15; }
  .player {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "now btns"
      "vol vol";
    gap: 8px 12px;
    min-height: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .now-mini { grid-area: now; }
  .controls { grid-area: btns; align-items: end; }
  .progress { display: none; }
  .vol { grid-area: vol; justify-content: space-between; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 10px 10px 12px; }
  input[type=range] { width: min(140px, 42vw); }
}

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