:root {
  --color-ink: #171717;
  --color-muted: #5f6561;
  --color-paper: #f7f7f3;
  --color-surface: #ffffff;
  --color-wash: #dfe8e3;
  --color-line: #d8d6ce;
  --color-accent: #8a2f49;
  --color-accent-dark: #5f2032;
  --color-river: #2f6771;
  --color-river-soft: #e0eef0;
  --color-sun: #d39a2e;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --space-page: 1.5rem;
  --focus-ring: 0 0 0 3px rgb(47 103 113 / 0.26);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.5;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--color-paper);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  border-radius: 4px;
  outline: none;
  box-shadow: var(--focus-ring);
}

[hidden] {
  display: none;
}

.sr-only,
.player__announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-topbar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1rem var(--space-page);
}

.site-topbar__brand {
  color: var(--color-accent-dark);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  align-items: center;
}

.site-nav__link {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav__link:hover {
  color: var(--color-accent-dark);
}

.site-nav__link[hidden] {
  display: none;
}

.landing,
.placeholder {
  display: grid;
  min-height: 100vh;
  padding: var(--space-page);
  place-content: center;
  text-align: center;
}

.landing {
  gap: 0.85rem;
  border-top: 6px solid var(--color-wash);
}

.landing__wordmark,
.placeholder h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0;
}

.landing__wordmark {
  font-size: 4rem;
  line-height: 0.88;
}

.landing__intro {
  max-width: 24rem;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 1rem;
}

.landing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.65rem;
}

.landing__link {
  justify-self: center;
  color: var(--color-accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration-thickness: 1px;
  text-transform: uppercase;
  text-underline-offset: 0.35em;
}

.landing__signin {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0 1.05rem;
  border: 1px solid rgb(95 32 50 / 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0)),
    var(--color-accent-dark);
  box-shadow: 0 0.75rem 2rem rgb(95 32 50 / 0.16);
  color: var(--color-surface);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.landing__signin:hover {
  background: var(--color-accent);
}

.landing__signin::before,
.auth-panel__button::before,
.nickname-prompt__signin::before,
.message-panel__signin::before,
.signin-nudge__button::before {
  width: 0.58rem;
  height: 0.58rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
  content: "";
}

.landing__signin[hidden] {
  display: none;
}

.landing__link:hover {
  color: var(--color-accent);
}

.placeholder h1 {
  font-size: 2.5rem;
  line-height: 1;
}

.room-page {
  padding-bottom: 13.25rem;
  background:
    linear-gradient(180deg, rgb(224 238 240 / 0.72), transparent 18rem),
    var(--color-paper);
}

.header {
  border-bottom: 1px solid var(--color-line);
  background: rgb(247 247 243 / 0.88);
}

.header__inner {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 1rem var(--space-page) 1.5rem;
}

.header__home {
  display: inline-flex;
  color: var(--color-accent-dark);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  text-decoration: none;
}

.header__kicker,
.section-kicker {
  margin: 0 0 0.35rem;
  color: var(--color-river);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

.header__subtitle {
  max-width: 35rem;
  margin: 0.85rem 0 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.header__epigraph {
  margin: 1rem 0 0;
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.35;
}

.about-project-button {
  display: inline-flex;
  max-width: 100%;
  min-height: 2.75rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0 0;
  border: 0;
  background: transparent;
  color: var(--color-accent-dark);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  cursor: pointer;
}

.about-project-button:hover {
  color: var(--color-accent);
}

.header__meta {
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.auth-panel {
  display: flex;
  min-width: 0;
  align-items: flex-start;
}

.auth-panel__button,
.message-panel__signin,
.signin-nudge__button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1px solid rgb(95 32 50 / 0.16);
  border-radius: 999px;
  background: var(--color-accent-dark);
  box-shadow: 0 0.65rem 1.8rem rgb(95 32 50 / 0.14);
  color: var(--color-surface);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.auth-panel__button:hover,
.message-panel__signin:hover,
.signin-nudge__button:hover {
  background: var(--color-accent);
}

.auth-panel__profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  max-width: 100%;
}

.auth-panel__button[hidden],
.auth-panel__profile[hidden],
.artist-updates[hidden],
.message-panel[hidden],
.message-panel__signed-out[hidden],
.message-panel__signed-in[hidden],
.signin-nudge[hidden] {
  display: none;
}

.auth-panel__avatar {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  object-fit: cover;
}

.auth-panel__name,
.auth-panel__email {
  margin: 0;
}

.auth-panel__name {
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-panel__email {
  color: var(--color-muted);
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}

.auth-panel__signout,
.signin-nudge__dismiss {
  min-height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.34em;
  cursor: pointer;
}

.nickname-prompt {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.nickname-prompt[hidden] {
  display: none;
}

.nickname-prompt__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(23 23 23 / 0.24);
  cursor: pointer;
}

.nickname-prompt__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  width: min(100%, 30rem);
  padding: 1.15rem;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: rgb(247 247 243 / 0.99);
  box-shadow: 0 24px 70px rgb(23 23 23 / 0.22);
}

.nickname-prompt__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.12;
}

.nickname-prompt__text {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.52;
}

.nickname-prompt__signin,
.nickname-prompt__save {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1px solid var(--color-accent-dark);
  border-radius: 8px;
  background: var(--color-accent-dark);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.nickname-prompt__optional {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-line);
}

.nickname-prompt__label {
  display: block;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.nickname-prompt__controls {
  display: grid;
  gap: 0.5rem;
}

.nickname-prompt__input,
.comment-form__input {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-ink);
}

.nickname-prompt__input {
  min-height: 2.75rem;
  padding: 0 0.85rem;
}

.nickname-prompt__skip,
.comment-form__submit {
  min-height: 2.75rem;
  border: 1px solid var(--color-accent-dark);
  border-radius: 8px;
  background: var(--color-accent-dark);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.nickname-prompt__skip {
  border-color: var(--color-line);
  background: transparent;
  color: var(--color-muted);
}

.feature-carousel {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.feature-carousel__header {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  justify-content: space-between;
}

.feature-carousel__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.12;
}

.feature-carousel__controls {
  display: flex;
  gap: 0.4rem;
}

.feature-carousel__button {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.feature-carousel__track {
  display: grid;
  grid-auto-columns: minmax(16rem, 78%);
  grid-auto-flow: column;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.feature-card {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-height: 9rem;
  padding: 0 0 0 0.85rem;
  border-left: 3px solid var(--color-river);
  scroll-snap-align: start;
}

.feature-card__kicker {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.2;
}

.feature-card p:last-child {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.48;
}

.main {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 1.25rem var(--space-page) 0;
}

.album-feedback {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.listening-summary {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(224 238 240 / 0.72), transparent 58%),
    var(--color-surface);
}

.listening-summary__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.12;
}

.listening-summary__total {
  display: grid;
  gap: 0.1rem;
}

.listening-summary__value {
  color: var(--color-accent-dark);
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}

.listening-summary__label,
.listening-summary__subtitle,
.listening-summary__time,
.listening-summary__empty {
  color: var(--color-muted);
  font-size: 0.86rem;
}

.listening-summary__subtitle {
  margin: 0 0 0.45rem;
  font-weight: 800;
}

.listening-summary__list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.2rem;
}

.listening-summary__item {
  padding-left: 0.15rem;
}

.listening-summary__track {
  font-weight: 800;
}

.listening-summary__time {
  display: block;
}

.listening-summary__empty {
  list-style: none;
}

.artist-updates {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--color-line);
}

.artist-updates__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
}

.artist-updates__list {
  display: grid;
  gap: 0.85rem;
}

.artist-update {
  display: grid;
  gap: 0.35rem;
  max-width: 44rem;
  padding: 0 0 0 0.85rem;
  border-left: 3px solid var(--color-river);
}

.artist-update__meta,
.message-thread__meta,
.message-panel__empty,
.message-panel__feedback {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8rem;
}

.artist-update__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.25;
}

.artist-update__body,
.message-thread__body,
.message-panel__signed-out p {
  margin: 0;
  color: var(--color-ink);
  font-size: 0.94rem;
  line-height: 1.55;
}

.message-launcher {
  position: fixed;
  right: 1rem;
  bottom: 12.75rem;
  z-index: 53;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-ink);
  color: var(--color-paper);
  box-shadow: 0 14px 34px rgb(23 23 23 / 0.18);
  cursor: pointer;
}

.message-launcher__icon {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.message-launcher__badge {
  position: absolute;
  top: 0.1rem;
  right: 0.15rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.22rem;
  border: 2px solid var(--color-paper);
  border-radius: 999px;
  background: var(--color-river);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 0.78rem;
  text-align: center;
}

.message-panel {
  position: fixed;
  right: 0.75rem;
  bottom: 11.25rem;
  left: 0.75rem;
  z-index: 55;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(31rem, calc(100vh - 12.75rem));
  min-height: 14rem;
  padding: 1rem;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: rgb(247 247 243 / 0.99);
  box-shadow: 0 18px 42px rgb(23 23 23 / 0.18);
}

.message-panel__header {
  display: flex;
  gap: 0.75rem;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 0.7rem;
}

.message-panel__kicker {
  margin: 0 0 0.2rem;
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-panel__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.1;
}

.message-panel__close {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.message-panel__signed-out,
.message-panel__signed-in,
.message-panel__form {
  display: grid;
  gap: 0.7rem;
}

.message-panel__signed-out {
  align-content: start;
}

.message-panel__signed-out .message-panel__signin {
  justify-self: start;
}

.message-panel__signed-in {
  min-height: 0;
}

.message-panel__history {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 8rem;
  max-height: 13rem;
  overflow-y: auto;
  padding: 0.15rem 0.15rem 0.4rem;
}

.message-thread {
  padding: 0 0 0 0.85rem;
  border-left: 3px solid var(--color-line);
}

.message-thread--artist {
  margin-left: 0.75rem;
  border-color: var(--color-river);
}

.message-panel__label {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.message-panel__input {
  width: 100%;
  min-height: 5.5rem;
  resize: vertical;
  padding: 0.85rem;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-ink);
  line-height: 1.45;
}

.message-panel__submit {
  justify-self: start;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--color-accent-dark);
  border-radius: 8px;
  background: var(--color-accent-dark);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.message-panel__feedback--error {
  color: var(--color-accent-dark);
}

.signin-nudge {
  position: fixed;
  right: 1rem;
  bottom: 16.75rem;
  left: 1rem;
  z-index: 45;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: rgb(247 247 243 / 0.98);
  box-shadow: 0 12px 35px rgb(23 23 23 / 0.1);
}

.signin-nudge p {
  flex: 1 1 18rem;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.signin-nudge__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.album-feedback__label {
  margin: 0;
  color: var(--color-ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.tracklist,
.privacy-notice {
  min-width: 0;
}

.tracklist__header {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tracklist__title,
.privacy-notice__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0;
}

.tracklist__title {
  font-size: 2rem;
  line-height: 1.05;
}

.tracklist__filters {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: min(100%, 18rem);
  padding: 3px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
}

.tracklist__filter {
  min-height: 2.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.tracklist__filter--active {
  background: var(--color-river);
  color: #ffffff;
}

.tracklist__side + .tracklist__side {
  margin-top: 1.4rem;
}

.tracklist__side-title {
  margin: 0 0 0.45rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracklist__items {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-line);
}

.track-row {
  display: grid;
  min-width: 0;
  background: var(--color-surface);
}

.track-row[hidden] {
  display: none;
}

.track-framing {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  background: var(--color-surface);
  opacity: 0;
  transition:
    max-height 280ms ease,
    opacity 180ms ease;
}

.track-row--active .track-framing {
  max-height: 48rem;
  opacity: 1;
}

.track-framing__inner {
  margin: 0 0.75rem 0.9rem 3rem;
  padding: 0.85rem 0 0 0.9rem;
  border-top: 1px solid var(--color-line);
  border-left: 3px solid var(--color-accent);
}

.track-framing__text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.48;
}

.track-framing__instrumentation {
  margin: 0.7rem 0 0;
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.track-framing__text:empty,
.track-framing__instrumentation:empty {
  display: none;
}

.track {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto 3.25rem;
  align-items: center;
  gap: 0.55rem;
  min-height: 4.25rem;
  width: 100%;
  padding: 0.75rem;
  border: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  text-align: left;
  cursor: pointer;
}

.track__favourite-button {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.track:hover {
  background: #fbfaf6;
}

.track--active {
  background: var(--color-river-soft);
  box-shadow: inset 4px 0 0 var(--color-river);
}

.track__favourite-button--active {
  color: var(--color-accent-dark);
}

.track-row__actions,
.feedback-icons {
  display: flex;
  align-items: center;
}

.track-row__actions {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
  min-width: 0;
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
}

.feedback-icons {
  gap: 0.1rem;
}

.feedback-icons--album {
  flex-wrap: wrap;
}

.feedback-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  filter: grayscale(1);
  opacity: 0.55;
  touch-action: manipulation;
}

.feedback-icon:hover,
.track__favourite-button:hover {
  background: #fbfaf6;
  color: var(--color-accent-dark);
  opacity: 1;
}

.feedback-icon--active,
.feedback-icon--commented {
  filter: none;
  opacity: 1;
}

.feedback-icon--rating-1.feedback-icon--active {
  background: rgb(138 47 73 / 0.12);
}

.feedback-icon--rating-2.feedback-icon--active {
  background: var(--color-river-soft);
}

.feedback-icon--rating-3.feedback-icon--active {
  background: rgb(211 154 46 / 0.18);
}

.feedback-icon--commented {
  background: rgb(211 154 46 / 0.14);
}

.feedback-icon__badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border: 2px solid var(--color-surface);
  border-radius: 999px;
  background: var(--color-accent-dark);
}

.track__number {
  color: var(--color-muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.track__info {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.track__title {
  overflow: hidden;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track__desc {
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.16rem 0.45rem;
  margin-top: 0.08rem;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 1.25;
  opacity: 0.78;
  cursor: default;
  user-select: none;
}

.track__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
  white-space: nowrap;
}

.track__stat-icon {
  font-size: 0.76rem;
  filter: grayscale(1);
  line-height: 1;
  opacity: 0.82;
}

.track__indicators {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  min-width: 1.35rem;
}

.track__indicator {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  border-radius: 999px;
  color: var(--color-accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.track--playing .track__indicator--playing,
.track--heard .track__indicator--heard {
  display: inline-flex;
}

.track__indicator--playing {
  gap: 2px;
}

.track__indicator--playing span {
  width: 3px;
  height: 0.8rem;
  border-radius: 999px;
  background: var(--color-river);
}

.track__indicator--playing span:nth-child(2) {
  height: 1.1rem;
}

.track__duration {
  color: var(--color-muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.tracklist__empty {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--color-line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.58);
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.privacy-notice {
  padding: 1rem 0 0;
  border-top: 1px solid var(--color-line);
}

.comment-form {
  display: grid;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
}

.comment-form__label {
  font-size: 0.9rem;
  font-weight: 800;
}

.comment-form__input {
  min-height: 6.5rem;
  padding: 0.85rem;
  line-height: 1.45;
  resize: vertical;
}

.comment-form__input::placeholder {
  color: #858a87;
}

.comment-form__submit {
  justify-self: start;
  min-width: 7rem;
  padding: 0 1rem;
}

.comment-form__submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.comment-form__feedback {
  min-height: 1.25rem;
  color: var(--color-river);
  font-size: 0.86rem;
  font-weight: 700;
}

.comment-form__feedback--error {
  color: var(--color-clay);
}

.comment-form__feedback--success {
  color: var(--color-river);
}

.comment-modal-open,
.about-modal-open {
  overflow: hidden;
}

.comment-modal,
.about-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
}

.comment-modal[hidden],
.about-modal[hidden] {
  display: none;
}

.comment-modal__backdrop,
.about-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(23 23 23 / 0.38);
  cursor: pointer;
}

.comment-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(90vh, 34rem);
  overflow: auto;
  padding: 1.25rem var(--space-page) calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-line);
  border-radius: 16px 16px 0 0;
  background: var(--color-surface);
  box-shadow: 0 -18px 45px rgb(23 23 23 / 0.18);
}

.comment-modal__close {
  position: absolute;
  top: 0.75rem;
  right: var(--space-page);
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.comment-modal__title {
  max-width: calc(100% - 3.25rem);
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

.comment-modal__form {
  margin-top: 1rem;
}

.about-modal {
  align-items: stretch;
  z-index: 32;
}

.about-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100dvh;
  overflow: auto;
  background: var(--color-paper);
}

.about-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--space-page);
  border-bottom: 1px solid var(--color-line);
  background: rgb(247 247 243 / 0.96);
}

.about-modal__title {
  max-width: 32rem;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

.about-modal__close {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.about-modal__close:hover {
  background: #fbfaf6;
  color: var(--color-accent-dark);
}

.about-modal__body {
  padding: 1.25rem var(--space-page) calc(1.5rem + env(safe-area-inset-bottom));
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.58;
}

.privacy-notice {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.privacy-notice__title {
  margin-bottom: 0.45rem;
  color: var(--color-ink);
  font-size: 1.15rem;
}

.privacy-notice p {
  margin: 0;
}

@media (min-width: 480px) {
  :root {
    --space-page: 2rem;
  }

  .site-topbar {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .site-topbar .site-nav {
    justify-content: flex-end;
  }

  .landing__intro {
    font-size: 1.08rem;
  }

  .landing__wordmark {
    font-size: 5.5rem;
  }

  .placeholder h1 {
    font-size: 3.25rem;
  }

  .nickname-prompt__controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .feature-carousel__track {
    grid-auto-columns: minmax(18rem, 32%);
  }

  .tracklist__header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .listening-summary {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, auto) minmax(16rem, 0.9fr);
    align-items: start;
  }
}

@media (min-width: 768px) {
  .landing {
    gap: 1rem;
  }

  .landing__wordmark {
    font-size: 7rem;
  }

  .placeholder h1 {
    font-size: 4rem;
  }

  .room-page {
    padding-bottom: 11.5rem;
  }

  .header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    padding-top: 1.35rem;
    padding-bottom: 2rem;
  }

  .header__home {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0.4rem;
  }

  .site-nav--room {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding-top: 0.1rem;
  }

  .header__copy {
    grid-column: 1;
    grid-row: 2;
  }

  .auth-panel {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    padding-top: 0.3rem;
    text-align: right;
  }

  .header__title {
    font-size: 4.5rem;
  }

  .main {
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .track {
    grid-template-columns: 2.75rem minmax(0, 1fr) auto 3.75rem;
    padding-right: 1rem;
  }

  .track-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .track-row__actions {
    border-top: 0;
    border-left: 1px solid var(--color-line);
  }

  .privacy-notice {
    padding: 1.25rem 0 0;
  }

  .signin-nudge {
    right: 1.5rem;
    bottom: 14.75rem;
    left: auto;
  }

  .message-launcher {
    right: 1.5rem;
    bottom: 10.75rem;
  }

  .message-panel {
    right: 1.5rem;
    bottom: 10.75rem;
    left: auto;
    width: min(25rem, calc(100vw - 3rem));
    max-height: min(34rem, calc(100vh - 12.5rem));
    padding: 1rem;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgb(23 23 23 / 0.22);
  }

  .message-panel__history {
    max-height: 18rem;
  }

  .track-framing__inner {
    margin-left: 3.9rem;
    padding-left: 1rem;
  }

  .comment-modal {
    align-items: center;
    justify-items: center;
    padding: 2rem;
  }

  .about-modal {
    align-items: center;
    justify-items: center;
    padding: 2rem;
  }

  .comment-modal__panel {
    width: min(100%, 34rem);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 1.35rem;
    box-shadow: 0 24px 70px rgb(23 23 23 / 0.24);
  }

  .comment-modal__close {
    right: 0.75rem;
  }

  .about-modal__panel {
    width: min(100%, 46rem);
    height: auto;
    max-height: min(88vh, 48rem);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: 0 24px 70px rgb(23 23 23 / 0.24);
  }

  .about-modal__header {
    padding: 1.35rem;
    background: rgb(255 255 255 / 0.97);
  }

  .about-modal__body {
    padding: 1.35rem;
    font-size: 1.16rem;
  }
}

.turnstile-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(245 244 238 / 0.84);
  backdrop-filter: blur(4px);
}

.turnstile-gate[hidden] {
  display: none;
}

.turnstile-gate__panel {
  display: grid;
  gap: 0.75rem;
  width: min(100%, 24rem);
  padding: 1rem;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: 0 18px 54px rgb(31 43 35 / 0.18);
}

.turnstile-gate__label {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.turnstile-gate__widget {
  min-height: 4.1rem;
}

@media (min-width: 1024px) {
  .landing__wordmark {
    font-size: 8rem;
  }

  .placeholder h1 {
    font-size: 4.5rem;
  }

  .room-page {
    padding-bottom: 10.25rem;
  }

  .main {
    align-items: start;
  }

  .album-feedback {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .listening-summary {
    grid-column: 1 / -1;
  }

  .privacy-notice {
    justify-self: stretch;
  }
}
