:root {
  --ink: #f6efe3;
  --muted: #bfc6cc;
  --soft: #d9ae69;
  --blue: #77a9cb;
  --black: #050607;
  --panel: rgba(10, 13, 16, .9);
  --line: rgba(217, 174, 105, .34);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--black);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

.room-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #050607;
}

.room-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.08);
  opacity: .82;
  transform: scale(1.01);
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 70% 20%, rgba(217, 174, 105, .15), transparent 34%),
    linear-gradient(90deg, rgba(5, 6, 7, .92), rgba(5, 6, 7, .58) 48%, rgba(5, 6, 7, .76)),
    linear-gradient(180deg, rgba(5, 6, 7, .08), rgba(5, 6, 7, .58));
}

body:after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 100% 8px;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 6px;
  color: #071018;
  background: var(--ink);
}

.skip-link:focus {
  top: 16px;
}

.room-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(28px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(5, 6, 7, .86);
  backdrop-filter: blur(18px);
}

.room-brand,
.room-header nav {
  display: flex;
  align-items: center;
}

.room-brand {
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.room-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.room-header nav {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.room-header nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.room-header nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .08);
}

.latest-room {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.room-hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(360px, 520px);
  gap: 38px;
  align-items: center;
  padding: 38px 0 46px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 900;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(48px, 5.45vw, 78px);
  line-height: .94;
}

.room-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.62;
}

.player-shell {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #080a0c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .44);
}

.cover-frame {
  display: block;
  padding: 0;
  background: #080a0c;
}

.cover-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.player-body {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .34) 58%, rgba(0, 0, 0, .86));
}

.player-body:before {
  content: none;
}

.now-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.player-body h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.player-body p[data-date] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.transport,
.mode-row,
.seek-row {
  display: flex;
  align-items: center;
}

.transport {
  justify-content: center;
  gap: 12px;
}

.transport button,
.mode-row button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(7, 9, 11, .74);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

.transport button {
  padding: 0 16px;
}

.transport .play-main {
  min-width: 124px;
  color: #070b0e;
  background: var(--soft);
}

.transport .play-main.is-playing {
  background: var(--blue);
}

.seek-row {
  gap: 12px;
  color: rgba(246, 239, 227, .9);
  font-size: 13px;
  font-weight: 900;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 999px;
  background: rgba(7, 9, 11, .64);
  backdrop-filter: blur(10px);
}

.seek-row span {
  min-width: 42px;
  text-align: center;
}

.seek-row input {
  width: 100%;
  accent-color: var(--soft);
}

.mode-row {
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-row button {
  padding: 0 14px;
}

.mode-row button.is-active {
  color: #070b0e;
  background: var(--soft);
}

.playlist-section {
  padding: 76px 0 88px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.playlist-section h2 {
  margin-bottom: 28px;
  font-size: clamp(34px, 4vw, 60px);
}

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

.song-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, .055);
  text-align: left;
}

.song-card.is-current {
  border-color: var(--soft);
  box-shadow: 0 0 0 1px rgba(217, 174, 105, .28);
}

.song-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.song-card span,
.song-card strong {
  display: block;
}

.song-card strong {
  padding: 14px 14px 4px;
  font-size: 17px;
  line-height: 1.2;
}

.song-card span {
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .room-hero,
  .player-shell {
    grid-template-columns: 1fr;
  }

  .cover-frame img {
    max-height: 520px;
  }

  .song-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .room-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 12px 16px;
  }

  .room-brand img {
    width: 42px;
    height: 42px;
  }

  .latest-room {
    width: min(100% - 28px, 1180px);
  }

  .room-hero {
    min-height: auto;
    padding: 42px 0 52px;
  }

  h1 {
    font-size: 44px;
  }

  .room-copy p:not(.eyebrow) {
    font-size: 17px;
  }

  .player-body {
    padding: 22px;
  }

  .transport {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
  }

  .song-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 440px) {
  .song-grid {
    grid-template-columns: 1fr;
  }
}
