:root {
  --bg: #f4f4f4;
  --text: #141414;
  --muted: #6b6b6b;
  --line: #dcdcdc;
  --accent: #35505c;
  --gutter: clamp(16px, 4vw, 40px);
  --bar: 56px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 Inter, system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.brand { font-weight: 600; white-space: nowrap; }
.brand span { color: var(--muted); font-weight: 400; }
.topbar nav { display: flex; gap: 20px; white-space: nowrap; }
.topbar nav a { color: var(--muted); }
.topbar nav a:hover { color: var(--text); }

.hero { padding: clamp(48px, 9vw, 104px) var(--gutter) clamp(40px, 6vw, 72px); }
.eyebrow { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
h1 {
  margin: 0;
  font-size: clamp(44px, 10vw, 112px);
  font-weight: 600; line-height: 1; letter-spacing: -.035em;
}
.lead { margin: 24px 0 0; max-width: 56ch; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }

.section {
  padding: 32px var(--gutter) clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--bar);
}
h2 { margin: 0 0 28px; font-size: 20px; font-weight: 600; }
h2 span { color: var(--muted); font-weight: 400; margin-right: 8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 28px 20px; align-items: start; }
.card {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  text-align: left; cursor: pointer;
}
.thumb { aspect-ratio: 16 / 9; background: #e6e6e6; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.card:hover .thumb img { opacity: .82; }
.card-head { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; }
.card-head b { font-weight: 600; }
.card-head span { color: var(--muted); }
.card p { margin: 4px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

.fb { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.lyrics {
  position: sticky; top: calc(var(--bar) + 24px);
  height: min(68vh, 620px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.track { transition: transform .5s cubic-bezier(.22, .7, .25, 1); will-change: transform; }
.line {
  display: block; width: 100%; padding: 10px 0; border: 0; background: none;
  text-align: left; cursor: pointer;
  font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; line-height: 1.22; letter-spacing: -.015em;
  color: var(--text); opacity: .28;
  transition: color .3s, opacity .3s;
  overflow-wrap: anywhere;
}
.line.past { color: var(--muted); opacity: .75; }
.line.now { color: var(--accent); opacity: 1; }
.line:hover { opacity: 1; }
.empty { color: var(--muted); }

.player { min-width: 0; }
.stage { aspect-ratio: 16 / 9; background: #e6e6e6; }
.stage img { width: 100%; height: 100%; object-fit: cover; }
#scrub { display: block; width: 100%; margin: 14px 0 12px; accent-color: var(--accent); }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.controls button, .bar button {
  height: 36px; min-width: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 6px; background: transparent; cursor: pointer;
}
.controls button:hover, .bar button:hover { border-color: var(--muted); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; min-width: 76px; }
.fps { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 14px; color: var(--muted); }
select { height: 36px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: transparent; }
.count { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.meta { margin: 12px 0 0; min-height: 1.5em; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

.footer { padding: 24px var(--gutter); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .fb { grid-template-columns: minmax(0, 1fr); }
  .player { order: -1; }
  .lyrics { position: relative; top: 0; height: 240px; }
}
@media (max-width: 480px) {
  .topbar { font-size: 13px; }
  .topbar nav { gap: 12px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track, .line { transition: none; }
}
