:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --paper-soft: #f1ece4;
  --navy: #001d39;
  --bronze: #985e23;
  --bronze-soft: #c78b4b;
  --ink: #102035;
  --muted: #6e655d;
  --line: rgba(0, 29, 57, 0.16);
  --panel: rgba(255, 255, 255, 0.82);
  --panel-2: #fffdf9;
  --shadow: rgba(0, 29, 57, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0, 29, 57, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 29, 57, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 12% 10%, rgba(199, 139, 75, 0.22), transparent 24rem),
    radial-gradient(circle at 90% 18%, rgba(0, 29, 57, 0.12), transparent 26rem),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.shell {
  width: min(1460px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 132px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 32px;
  align-items: center;
  min-height: 34vh;
  padding: 34px 0 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(4.5rem, 12vw, 10.5rem);
  font-weight: 500;
  line-height: 0.82;
  color: var(--navy);
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.site-mark {
  display: grid;
  gap: 18px;
  justify-self: end;
  width: min(100%, 360px);
  padding: 28px;
  border: 1px solid rgba(152, 94, 35, 0.28);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.72);
  box-shadow: 0 24px 70px var(--shadow);
}

.site-mark strong {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 0.92;
}

.site-mark span {
  color: var(--bronze);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.experience {
  display: grid;
  grid-template-columns: 280px minmax(320px, 1fr) 340px;
  gap: 18px;
  align-items: stretch;
}

.library,
.queue,
.track-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px var(--shadow);
  backdrop-filter: blur(18px);
}

.library,
.queue {
  padding: 18px;
  min-height: 560px;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: 1rem;
}

.compact h2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-list,
.track-list {
  display: grid;
  gap: 10px;
}

.album-card,
.track-row {
  display: grid;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.album-card {
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.album-card:hover,
.track-row:hover,
.album-card.active,
.track-row.active {
  border-color: rgba(152, 94, 35, 0.34);
  background: rgba(152, 94, 35, 0.08);
}

.album-card img {
  width: 62px;
  height: 62px;
  border-radius: 6px;
  object-fit: cover;
}

.album-card strong,
.track-row strong,
.mini-now p {
  display: block;
  overflow: hidden;
  margin: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.album-card small,
.track-row small,
.mini-now span,
.track-meta {
  color: var(--muted);
}

.now-playing {
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  gap: 18px;
  min-width: 0;
}

.art-wrap {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(152, 94, 35, 0.28);
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 24px 70px var(--shadow);
}

.art-wrap::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}

.art-wrap img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.track-panel {
  padding: 24px;
}

.track-panel h2 {
  margin-bottom: 6px;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 0.95;
  color: var(--navy);
}

.track-panel code {
  color: var(--bronze);
}

.track-meta {
  margin: 14px 0 18px;
  line-height: 1.55;
}

.lyrics {
  min-height: 88px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.65;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.source-links a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.identity {
  display: grid;
  grid-template-columns: 260px minmax(0, 780px);
  gap: 20px;
  margin-top: 18px;
  padding: 24px;
  border-top: 1px solid rgba(0, 29, 57, 0.18);
  border-bottom: 1px solid rgba(0, 29, 57, 0.18);
}

.identity h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
}

.identity p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.track-row {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px 10px;
}

.track-number,
.track-duration {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.track-copy {
  min-width: 0;
}

.no-audio small {
  color: #d6a0a6;
}

.player-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(210px, 320px) minmax(280px, 1fr) minmax(170px, 220px);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(247, 241, 230, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 18px 70px var(--shadow);
  backdrop-filter: blur(20px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mini-now {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.mini-now img {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
}

.transport {
  display: grid;
  gap: 10px;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.buttons button,
.volume button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
  cursor: pointer;
}

.buttons button:hover,
.volume button:hover {
  border-color: rgba(152, 94, 35, 0.58);
}

.buttons .play {
  width: 50px;
  height: 50px;
  border-color: rgba(152, 94, 35, 0.6);
  background: var(--navy);
  color: #fffdf9;
  font-weight: 900;
}

.buttons .play:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.timeline,
.volume {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.volume {
  grid-template-columns: auto minmax(80px, 1fr);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--bronze);
}

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

  .library,
  .queue {
    min-height: auto;
  }

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 22px, 680px);
    padding-top: 16px;
    padding-bottom: 202px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .site-mark {
    justify-self: stretch;
  }

  .album-list {
    grid-template-columns: 1fr;
  }

  .art-wrap,
  .art-wrap img {
    min-height: auto;
    aspect-ratio: 1;
  }

  .player-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .identity {
    grid-template-columns: 1fr;
  }

  .volume {
    grid-template-columns: auto 1fr;
  }
}
