:root {
  color-scheme: dark;
  --ivory: #111310;
  --paper: #191c18;
  --ink: #f1eee5;
  --soft-ink: #a8aca3;
  --teal: #377a74;
  --deep-teal: #0b2927;
  --brass: #d0a65c;
  --line: #353a33;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ivory);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

/* Shared-site navigation, intentionally isolated from the Listening Room theme. */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 20px;
  background: transparent;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Helvetica Neue", Arial, "Noto Sans", "Segoe UI", Roboto, sans-serif;
}

.site-nav .logo,
.site-nav .nav-links > li > a,
.site-nav .nav-dropdown-toggle {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(12,14,18,0.70);
  color: #ebf0e8;
  text-decoration: none;
}

.site-nav .nav-links {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav .nav-links > li > a:hover,
.site-nav .nav-dropdown-toggle:hover {
  color: #27ae60;
  background: rgba(12,14,18,0.85);
  text-decoration: underline;
}

.site-nav .nav-links > li > a.active,
.site-nav .nav-dropdown-toggle.active,
.site-nav .logo.active {
  color: #27ae60;
  border-color: rgba(255,255,255,0.28);
  background: rgba(12,14,18,0.85);
  text-decoration: none;
}

.site-nav .nav-dropdown {
  position: relative;
}

.site-nav .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  appearance: none;
}

.site-nav .nav-chevron {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.site-nav .nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 50;
  min-width: 178px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: rgba(12,14,18,0.96);
  box-shadow: 0 14px 32px rgba(0,0,0,0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.site-nav .nav-dropdown-menu::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 100%;
  height: 8px;
}

.site-nav .nav-dropdown-menu a {
  display: block;
  padding: 9px 11px;
  border-radius: 9px;
  color: #ebf0e8;
  white-space: nowrap;
  text-decoration: none;
}

.site-nav .nav-dropdown-menu a:hover,
.site-nav .nav-dropdown-menu a:focus-visible {
  color: #27ae60;
  background: rgba(255,255,255,0.07);
  text-decoration: none;
}

.site-nav .nav-dropdown-menu a.active {
  color: #27ae60;
}

.site-nav .nav-dropdown.is-open .nav-dropdown-menu,
.site-nav .nav-dropdown:hover .nav-dropdown-menu,
.site-nav .nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav .nav-dropdown.is-open .nav-chevron,
.site-nav .nav-dropdown:hover .nav-chevron,
.site-nav .nav-dropdown:focus-within .nav-chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

.site-nav .logo:focus-visible,
.site-nav .nav-links a:focus-visible,
.site-nav .nav-dropdown-toggle:focus-visible {
  outline: 3px solid rgba(39,174,96,0.45);
  outline-offset: 3px;
}

.listening-room {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  width: min(1160px, calc(100% - 48px));
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-number {
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 1;
}

.brand-name,
.room-label,
.section-kicker,
.track-count,
footer span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.room-label {
  margin: 0;
  color: var(--soft-ink);
}

.player-stage {
  position: relative;
  min-height: 560px;
  padding: 88px max(24px, calc((100vw - 900px) / 2)) 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.staff-lines {
  position: absolute;
  z-index: -1;
  top: 167px;
  left: 0;
  width: 100%;
  height: 65px;
  opacity: 0.52;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 12px,
    var(--line) 12px,
    var(--line) 13px
  );
}

.now-playing {
  width: min(760px, 100%);
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--brass);
}

.now-playing h1 {
  min-height: 1.15em;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5.6vw, 4.7rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.track-subtitle {
  margin: 20px 0 0;
  color: var(--soft-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
}

.transport {
  width: min(330px, 100%);
  height: 116px;
  margin: 42px 0 30px;
  display: grid;
  grid-template-columns: 64px 116px 64px;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.play-button,
.skip-button {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.play-button {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 16px 34px rgb(0 0 0 / 32%);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.play-button:hover:not(:disabled) {
  background: #438b84;
  box-shadow: 0 18px 38px rgb(0 0 0 / 42%);
  transform: translateY(-2px);
}

.play-button:active:not(:disabled) {
  transform: translateY(0);
}

.play-button:focus-visible,
.skip-button:focus-visible,
.track-row:focus-visible,
.range:focus-visible {
  outline: 3px solid rgb(181 138 68 / 48%);
  outline-offset: 4px;
}

.play-button:disabled,
.skip-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.play-symbol {
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--ink);
}

.play-button.is-playing .play-symbol {
  width: 20px;
  height: 26px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(
    to right,
    var(--ink) 0,
    var(--ink) 7px,
    transparent 7px,
    transparent 13px,
    var(--ink) 13px,
    var(--ink) 20px
  );
}

.skip-button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background 150ms ease;
}

.skip-button:hover:not(:disabled) {
  background: #252a24;
}

.skip-button span {
  position: relative;
  width: 20px;
  height: 20px;
}

.skip-button span::before {
  content: "";
  position: absolute;
  top: 3px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.skip-button span::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 2px;
  height: 14px;
  background: currentColor;
}

.previous-button span::before {
  left: 4px;
  border-right: 10px solid currentColor;
}

.previous-button span::after {
  left: 3px;
}

.next-button span::before {
  right: 4px;
  border-left: 10px solid currentColor;
}

.next-button span::after {
  right: 3px;
}

.timeline {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 15px;
}

.time {
  color: var(--soft-ink);
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.range {
  --range-progress: 0%;
  width: 100%;
  height: 22px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.range:disabled {
  cursor: default;
  opacity: 0.45;
}

.range::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(
    to right,
    var(--brass) 0,
    var(--brass) var(--range-progress),
    var(--line) var(--range-progress),
    var(--line) 100%
  );
}

.range::-moz-range-track {
  height: 3px;
  background: var(--line);
}

.range::-moz-range-progress {
  height: 3px;
  background: var(--brass);
}

.range::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  appearance: none;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 1px var(--brass);
}

.range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 1px var(--brass);
}

.volume-control {
  width: min(220px, 100%);
  margin-top: 20px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
}

.volume-control label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.volume-icon {
  position: relative;
  width: 8px;
  height: 10px;
  border-radius: 1px;
  background: var(--soft-ink);
}

.volume-icon::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 5px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid var(--soft-ink);
}

.volume-range::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -3px;
  border-width: 2px;
}

.player-message {
  min-height: 18px;
  margin: 14px 0 0;
  color: #e49380;
  font-size: 0.78rem;
}

.library {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 88px;
}

.library-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid #73766f;
}

.library-heading-row .section-kicker {
  margin-bottom: 11px;
}

.library h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0;
}

.track-count {
  margin: 0 0 6px;
  color: var(--soft-ink);
}

.track-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.track-list li {
  border-bottom: 1px solid var(--line);
}

.track-row {
  width: 100%;
  min-height: 92px;
  padding: 17px 12px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 15px;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.track-row:hover {
  background: rgb(255 255 255 / 4%);
}

.track-row.is-active {
  color: var(--ink);
  background: #20312e;
}

.track-number {
  color: var(--brass);
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.track-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-title {
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.track-detail {
  color: var(--soft-ink);
  font-size: 0.74rem;
}

.row-play {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.row-play::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 14px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.row-play.is-playing::before {
  top: 11px;
  left: 12px;
  width: 11px;
  height: 12px;
  border: 0;
  background: linear-gradient(
    to right,
    currentColor 0,
    currentColor 4px,
    transparent 4px,
    transparent 7px,
    currentColor 7px,
    currentColor 11px
  );
}

.library-state {
  margin: 0;
  padding: 40px 12px;
  color: var(--soft-ink);
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
}

footer {
  min-height: 120px;
  padding: 36px max(24px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #c9cec6;
  background: #090b09;
}

footer p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
}

footer span {
  color: var(--brass);
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 32px);
    min-height: 86px;
  }

  .brand {
    gap: 8px;
  }

  .brand-number {
    font-size: 1.9rem;
  }

  .brand-name {
    font-size: 0.62rem;
  }

  .room-label {
    max-width: 116px;
    font-size: 0.6rem;
    line-height: 1.45;
    text-align: right;
  }

  .player-stage {
    min-height: 530px;
    padding-top: 64px;
    padding-bottom: 58px;
  }

  .staff-lines {
    top: 140px;
  }

  .now-playing h1 {
    font-size: clamp(2.15rem, 12vw, 3.3rem);
  }

  .transport {
    grid-template-columns: 52px 100px 52px;
    height: 100px;
    margin-top: 34px;
    gap: 16px;
  }

  .play-button {
    width: 100px;
    height: 100px;
  }

  .skip-button {
    width: 52px;
    height: 52px;
  }

  .timeline {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .library {
    width: calc(100% - 32px);
    padding: 60px 0 72px;
  }

  .library-heading-row {
    align-items: start;
  }

  .track-count {
    margin-top: 8px;
    white-space: nowrap;
  }

  .track-row {
    min-height: 88px;
    padding-inline: 7px;
    grid-template-columns: 38px minmax(0, 1fr) 40px;
    gap: 10px;
  }

  footer {
    min-height: 140px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
/* Delete or comment out below this line to have subtitles appear under each title. Edit titles in the JSON. */
.track-subtitle,
.track-detail {
  display: none;
}
