:root {
  --ink: #0c0a09;
  --panel: #161210;
  --panel-2: #1d1814;
  --line: rgba(243, 235, 225, 0.08);
  --cream: #f3ebe1;
  --mute: #8b7d70;
  --amber: #e39b3d;
  --amber-2: #f3c27a;
  --ok: #c4a574;
  --err: #d97848;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); color: var(--cream); font-family: var(--font); }
body {
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(227, 155, 61, 0.14), transparent 50%),
    radial-gradient(900px 500px at 90% 10%, rgba(179, 107, 107, 0.08), transparent 45%),
    var(--ink);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
#live-audio { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }

.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  padding-bottom: 112px;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
.brand strong { display: block; font-family: var(--serif); font-size: 22px; letter-spacing: 0.02em; }
.brand span { display: block; color: var(--mute); font-size: 12px; margin-top: 2px; }

.nav { display: flex; flex-direction: column; gap: 6px; }
.nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--mute);
  transition: 180ms ease;
}
.nav a:hover, .nav a.is-on { background: var(--panel-2); color: var(--cream); }
.nav a.is-on { box-shadow: inset 0 0 0 1px var(--line); }

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

main { padding: 36px 40px 24px; max-width: 1180px; }

.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: stretch; margin-bottom: 36px; }
.kicker { color: var(--amber); letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 10px 0; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 0.95; }
h2 { font-size: 32px; }
.lead { max-width: 42rem; color: #d8cfc4; font-size: 18px; line-height: 1.6; }

.hero-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(243,235,225,0.06), rgba(243,235,225,0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,10,9,0.15) 0%, rgba(12,10,9,0.78) 70%);
}
.hero-card > *:not(.hero-cover) { position: relative; z-index: 1; }
.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(--amber); box-shadow: 0 0 0 6px rgba(227,155,61,0.12); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 50% { transform: scale(0.86); opacity: 0.7; } }

.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 18px; }
.section-head a { color: var(--amber-2); font-size: 14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  padding: 14px 14px 16px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 220ms ease, border-color 220ms ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(227,155,61,0.35); }
.cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 16px;
  margin-bottom: 14px;
  background-color: #1a1511;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  flex: 0 0 auto;
}
.card h3 { font-size: 22px; margin: 0 0 6px; }
.card p { margin: 0 0 14px; color: var(--mute); font-size: 13px; line-height: 1.45; flex: 1 1 auto; }
.card .chip { margin-top: auto; align-self: flex-start; }
.badge {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 11px;
  color: var(--ink);
  background: var(--amber);
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 1;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mute);
}
.chip.is-on { background: var(--cream); color: var(--ink); }

.now-stage {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 24px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  align-items: center;
}
.now-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
  background-color: #241910;
  background-size: cover;
  background-position: center;
  object-fit: cover;
}
.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(--amber); 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.7; color: #d9d0c5; }
.prose p { margin: 0 0 16px; }
.prose a { color: var(--amber-2); }
.contact-card { padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); margin: 0 0 12px; }

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

.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  align-items: center;
  min-height: 88px;
  padding: 12px 22px 16px;
  background: rgba(12, 10, 9, 0.88);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(22px);
}
.now-mini { display: flex; align-items: center; gap: 12px; min-width: 0; }
.now-mini .dot {
  width: 48px; height: 48px; border-radius: 14px; flex: 0 0 auto;
  background-color: #2a2118;
  background-size: cover;
  background-position: center;
  object-fit: cover;
}
.now-mini b, .now-mini small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-mini small { color: var(--mute); margin-top: 3px; }
.player-status {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--mute);
  min-height: 1.1em;
}
.player-status.is-err { color: var(--err); }
.player-status.is-wait { color: var(--amber-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: var(--panel-2);
  border: 1px solid var(--line);
  transition: 160ms ease;
}
.btn:hover { border-color: var(--amber); }
.btn-main { width: 48px; height: 48px; background: var(--cream); color: var(--ink); }
.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(--amber); 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: var(--mute); }
input[type=range] { accent-color: var(--amber); width: 110px; }

.sk { background: linear-gradient(90deg, #1a1511, #241c16, #1a1511); 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: 1fr; }
  .rail { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .hero, .now-stage, .player { grid-template-columns: 1fr; }
  main { padding: 24px 18px 18px; }
  .vol { justify-content: start; }
  h1 { font-size: 42px; }
}
