@font-face {
  font-family: "TSPureBlack";
  src: url("/TSpureblack.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08080f;
  --surface: #101019;
  --surface-2: #151323;
  --surface-accent: #1c1231;
  --line: #292837;
  --line-strong: #3d315d;
  --text: #f1eff6;
  --muted: #9d99ab;
  --accent: #9b6cff;
  --accent-light: #bd9aff;
  --accent-strong: #7442ff;
  --accent-deep: #654a94;
  --accent-rgb: 155, 108, 255;
  --green: #20e2a1;
  --danger: #ff8c9b;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  font-family: "TSPureBlack", "Apple SD Gothic Neo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 16%, rgba(var(--accent-rgb), 0.16), transparent 28%),
    radial-gradient(circle at 86% 32%, rgba(var(--accent-rgb), 0.10), transparent 30%),
    var(--bg);
  padding-bottom: 150px;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  min-height: 94px;
  padding: 18px clamp(20px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
}


.brand-product {
  color: #efedf4;
  font-size: clamp(29px, 3.2vw, 43px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0;
  transform: translateY(4px);
}

.brand-signature {
  color: var(--accent-light);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.01em;
  align-self: flex-end;
  transform: translateY(-8px);
}

.brand-admin {
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-light);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-admin-link {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.05);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header-admin-link:hover,
.header-admin-link:focus-visible {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  outline: 0;
}

.tab-bar {
  height: 88px;
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 20;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #cac7d1;
  letter-spacing: 0.04em;
  font-size: clamp(17px, 1.3vw, 25px);
  font-weight: 700;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.tab-button:hover,
.tab-button:focus-visible {
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.05);
  outline: 0;
}

.tab-button.is-active {
  color: var(--accent-light);
  border-bottom-color: var(--accent);
  text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.7);
}

main {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
}

.ai-setup-notice {
  margin-top: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(240, 173, 69, 0.36);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(83, 54, 22, 0.4), rgba(28, 20, 39, 0.9)),
    var(--surface);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
}

.ai-setup-notice[hidden] {
  display: none;
}

.ai-setup-copy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ai-setup-symbol {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #f5c46f;
  background: rgba(240, 173, 69, 0.13);
  font-size: 18px;
}

.ai-setup-copy strong {
  display: block;
  color: #f8e5bd;
  font-size: 15px;
}

.ai-setup-copy p {
  margin: 5px 0 0;
  color: #b9ac9f;
  font-size: 13px;
  line-height: 1.65;
}

.ai-admin-link {
  min-height: 42px;
  padding: 0 16px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 173, 69, 0.5);
  border-radius: 12px;
  color: #f5c46f;
  background: rgba(240, 173, 69, 0.08);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.ai-admin-link:hover,
.ai-admin-link:focus-visible {
  border-color: #f0ad45;
  background: rgba(240, 173, 69, 0.15);
  outline: 0;
}

.tab-panel {
  display: none;
  padding: 22px 0 60px;
  animation: panel-in 220ms ease;
}

.tab-panel.is-active {
  display: block;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lyrics-heading-actions {
  min-width: min(310px, 42vw);
  display: grid;
  justify-items: end;
  gap: 10px;
}

.lyrics-reset-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.62);
  border-radius: 999px;
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.12);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.lyrics-reset-button:hover,
.lyrics-reset-button:focus-visible {
  border-color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.24);
  outline: none;
}

.lyrics-reset-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.lyrics-reset-state {
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.sound-notes-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sound-notes-grid article {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.055);
}

.sound-notes-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--accent-light);
  font-size: 15px;
}

.sound-notes-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.work-hero {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(125deg, rgba(28, 18, 49, 0.94), rgba(15, 15, 24, 0.96)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: 420px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
}

.hero-art-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  aspect-ratio: 1;
  max-height: 400px;
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 1px solid #35313f;
  border-radius: 16px;
  background: #0d0d15;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}


.source-pill,
.mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-light);
  background: rgba(18, 15, 29, 0.88);
  letter-spacing: 0.08em;
}

.source-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 34px;
  padding: 0 14px;
  font-size: 11px;
}

.mini-badge {
  min-height: 30px;
  padding: 0 12px;
  font-size: 11px;
}

.eyebrow,
.section-label {
  color: var(--accent-light);
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
}

.hero-copy {
  min-width: 0;
  width: 100%;
}

.hero-topline {
  position: relative;
  z-index: 10;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-copy > h1 {
  margin-top: 0;
}

.hero-topline .eyebrow {
  margin: 0;
}

.zone-picker {
  position: relative;
  flex: 0 0 auto;
}

.zone-button {
  min-width: 210px;
  min-height: 66px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid #373344;
  border-radius: 14px;
  color: #dedbe5;
  background: rgba(13, 13, 21, 0.76);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.zone-button:hover,
.zone-button:focus-visible,
.zone-button[aria-expanded="true"] {
  border-color: var(--accent-deep);
  background: rgba(25, 20, 38, 0.96);
  outline: 0;
}

.zone-button:active {
  transform: translateY(1px);
}

.zone-device-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.zone-button-copy {
  min-width: 0;
}

.zone-button-copy small,
.zone-button-copy strong {
  display: block;
}

.zone-button-copy small {
  margin-bottom: 4px;
  color: #777181;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.zone-button-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.zone-button-copy strong::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #777381;
  vertical-align: 1px;
}

.zone-button.is-connected .zone-button-copy strong::before {
  background: var(--green);
  box-shadow: 0 0 12px rgba(32, 226, 161, 0.85);
}

.zone-chevron {
  color: #8a8493;
  font-size: 18px;
  transition: transform 160ms ease;
}

.zone-button[aria-expanded="true"] .zone-chevron {
  transform: rotate(180deg);
}

.zone-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: min(390px, calc(100vw - 48px));
  padding: 17px;
  border: 1px solid #3b354b;
  border-radius: 17px;
  background: rgba(15, 15, 24, 0.98);
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(24px);
}

.zone-menu-heading {
  padding: 2px 2px 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #2b2935;
}

.zone-menu-heading strong,
.zone-menu-heading small {
  display: block;
}

.zone-menu-heading strong {
  color: #8c8597;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.zone-menu-heading small {
  margin-top: 5px;
  color: #645f6d;
  font-size: 10px;
}

.zone-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #8f8998;
  background: #201e29;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.zone-close:hover,
.zone-close:focus-visible {
  color: #fff;
  background: #302b3d;
  outline: 0;
}

.zone-options {
  max-height: 310px;
  padding-top: 9px;
  display: grid;
  gap: 5px;
  overflow-y: auto;
}

.zone-option {
  width: 100%;
  min-height: 58px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #d7d3dc;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.zone-option:hover,
.zone-option:focus-visible {
  border-color: var(--line-strong);
  background: #1a1823;
  outline: 0;
}

.zone-option.is-selected {
  border-color: var(--line-strong);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.13), transparent);
}

.zone-option:disabled {
  cursor: wait;
  opacity: 0.56;
}

.zone-state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6f6a77;
}

.zone-option.is-playing .zone-state-dot {
  background: var(--green);
  box-shadow: 0 0 13px rgba(32, 226, 161, 0.8);
}

.zone-option-copy {
  min-width: 0;
}

.zone-option-copy strong,
.zone-option-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zone-option-copy strong {
  font-size: 13px;
}

.zone-option-copy small {
  margin-top: 4px;
  color: #77717f;
  font-size: 10px;
}

.zone-check {
  min-width: 18px;
  color: var(--accent-light);
  text-align: center;
}

.zone-empty {
  padding: 24px 12px;
  color: #817b89;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}

.zone-save-state {
  min-height: 15px;
  margin: 7px 2px 0;
  color: #8b8594;
  font-size: 10px;
}

.zone-save-state.is-error {
  color: var(--danger);
}

.hero-copy h1,
.score-card h1,
.profile-hero h1,
.lyrics-heading h1,
.work-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.hero-copy h1 {
  font-size: clamp(30px, 4vw, 60px);
}

.hero-artist {
  margin: 0 0 8px;
  color: #e4e1e9;
  font-size: clamp(18px, 2.2vw, 27px);
}

.hero-album {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.progress-block {
  margin-top: 42px;
}

.progress-labels,
.footer-time {
  display: flex;
  justify-content: space-between;
  color: #807b8e;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 4px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #353342;
}

.progress-value {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-light));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6);
  transition: width 400ms linear;
}

.content-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

#panel-home.is-active {
  display: grid;
  gap: 22px;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(18, 17, 29, 0.96), rgba(13, 13, 20, 0.98)),
    var(--surface);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.content-card-wide {
  grid-column: 1 / -1;
  border-top-color: var(--line-strong);
}

.content-card h2 {
  margin: 14px 0 22px;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -0.025em;
}

.prose {
  color: #c3bfca;
  font-size: clamp(15px, 1.65vw, 19px);
  line-height: 1.9;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.card-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6f6a7b;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.muted {
  color: var(--muted);
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 13px;
  color: inherit;
  text-align: left;
  background: transparent;
}

.history-item:last-child {
  border-bottom: 0;
}

button.history-item {
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, padding 0.16s ease;
}

button.history-item:hover,
button.history-item:focus-visible {
  padding-right: 12px;
  padding-left: 12px;
  outline: none;
  background: rgba(var(--accent-rgb), 0.10);
  box-shadow: inset 3px 0 0 var(--accent);
}

button.history-item:active {
  transform: translateY(1px);
  background: rgba(var(--accent-rgb), 0.16);
}

button.history-item.is-loading {
  cursor: progress;
  opacity: 0.72;
}

.history-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.11);
  font-size: 11px;
}

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

.history-copy strong,
.history-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-copy span,
.history-time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.score-card,
.profile-hero,
.lyrics-heading {
  min-height: 220px;
  margin-bottom: 18px;
  padding: clamp(28px, 5vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.lyrics-guide-card {
  padding: clamp(22px, 2.5vw, 30px);
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 4vw, 58px);
  border-color: rgba(var(--accent-rgb), 0.34);
  background:
    radial-gradient(circle at 88% 18%, rgba(var(--accent-rgb), 0.11), transparent 35%),
    rgba(16, 16, 25, 0.96);
}

.lyrics-guide-card h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 2.5vw, 32px);
}

.lyrics-guide-card .prose {
  padding-top: 2px;
}

.score-card h1,
.profile-hero h1,
.lyrics-heading h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.score {
  min-width: 180px;
  text-align: right;
  color: var(--accent-light);
}

.score > span {
  display: block;
  margin-bottom: 8px;
  color: #aaa1b8;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.score strong {
  font-size: clamp(58px, 8vw, 92px);
  font-weight: 300;
  line-height: 1;
}

.score small {
  color: #817890;
  font-size: 16px;
}

#panel-album,
#panel-artists,
#panel-composer,
#panel-lyrics,
#panel-works {
  display: none;
}

#panel-album.is-active,
#panel-artists.is-active,
#panel-composer.is-active,
#panel-lyrics.is-active,
#panel-works.is-active {
  display: grid;
  gap: 18px;
}

.radar-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.radar-legend {
  color: var(--muted);
  font-size: 12px;
}

.radar-legend i {
  display: inline-block;
  width: 24px;
  height: 3px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 3px;
  background: var(--accent);
}

#radar-chart {
  display: block;
  width: min(100%, 840px);
  max-width: 100%;
  height: auto;
  margin: 16px auto 0;
}

.current-lyric-anchor {
  height: 0;
  overflow: hidden;
}

.profile-hero {
  display: block;
  background:
    radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), 0.22), transparent 33%),
    linear-gradient(125deg, #181126, #0f0f18);
}

.composer-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(233, 164, 85, 0.16), transparent 33%),
    linear-gradient(125deg, #1b1422, #0f0f18);
}

.lyrics-heading {
  background:
    radial-gradient(circle at 78% 20%, rgba(var(--accent-rgb), 0.25), transparent 35%),
    linear-gradient(125deg, #15101f, #0e0e17);
}

.lyrics-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0;
  overflow-anchor: none;
}

.lyrics-timing-note {
  margin: 0 0 14px;
  padding: 14px 16px;
  color: #b8afc7;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.07);
  font-size: 14px;
  line-height: 1.65;
}

.current-lyric-card {
  position: sticky;
  overflow-anchor: none;
  top: 86px;
  z-index: 12;
  margin: 0 0 22px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 24%, rgba(var(--accent-rgb), 0.18), transparent 35%),
    color-mix(in srgb, var(--surface-accent) 92%, var(--bg));
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.current-lyric-card[hidden] {
  display: none;
}

.current-lyric-meta {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.current-lyric-meta time {
  color: #80778e;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.current-lyric-card > strong {
  display: block;
  color: #fff;
  font-size: clamp(22px, 3.2vw, 42px);
  line-height: 1.35;
  text-shadow: 0 0 26px rgba(var(--accent-rgb), 0.22);
}

.current-lyric-card > p {
  margin: 10px 0 0;
  color: var(--accent-light);
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.55;
}

.lyric-line {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 19px 22px;
  appearance: none;
  -webkit-appearance: none;
  border-top: 0;
  border-right: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  overflow-anchor: none;
  border-bottom: 1px solid #24222d;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.lyric-line:last-child {
  border-bottom: 0;
}

.lyric-original {
  display: block;
  color: #dbd7e1;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.55;
}

.lyric-korean {
  display: block;
  margin-top: 7px;
  color: #8e889b;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.55;
}

.lyric-time {
  position: absolute;
  top: 22px;
  right: 20px;
  color: #625c6d;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.lyric-line.is-seekable {
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(var(--accent-rgb), 0.16);
}

.lyric-line.is-seekable:hover,
.lyric-line.is-seekable:focus-visible {
  border-left-color: rgba(var(--accent-rgb), 0.72);
  background: rgba(var(--accent-rgb), 0.1);
  outline: none;
}

.lyric-line.is-seekable:active,
.lyric-line.is-seeking {
  transform: translateY(1px);
  border-left-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.18);
}

.lyric-line.is-active {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16), transparent);
  box-shadow: inset 4px 0 0 rgba(var(--accent-rgb), 0.12);
}

.lyric-line.is-active .lyric-original {
  color: #fff;
  text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.34);
}

.lyric-line.is-active .lyric-korean {
  color: var(--accent-light);
}

.empty-state {
  min-height: 150px;
  padding: 30px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #302e3c;
  border-radius: 15px;
  line-height: 1.8;
}

.work-hero {
  position: relative;
  min-height: 350px;
  padding: clamp(30px, 5vw, 60px);
  background:
    radial-gradient(circle at 82% 26%, rgba(var(--accent-rgb), 0.28), transparent 8%),
    radial-gradient(circle at 82% 26%, rgba(var(--accent-rgb), 0.16), transparent 28%),
    linear-gradient(120deg, var(--surface-accent), var(--surface-2) 58%, var(--surface));
}

.work-hero h1 {
  max-width: 1000px;
  color: var(--text);
  font-family: inherit;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.work-hero > #work-byline {
  color: var(--muted);
}

.work-reset-wrap {
  position: absolute;
  top: 50%;
  right: clamp(24px, 4vw, 54px);
  transform: translateY(-50%);
  min-width: min(310px, 42vw);
  max-width: min(520px, calc(100% - 48px));
  display: grid;
  justify-items: end;
  gap: 10px;
}

.work-reset-button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.62);
  border-radius: 999px;
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.12);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.work-reset-button:hover,
.work-reset-button:focus-visible {
  border-color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.24);
  outline: none;
}

.work-reset-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.work-reset-state {
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}

.error-banner {
  position: fixed;
  right: 18px;
  bottom: 124px;
  z-index: 40;
  max-width: min(520px, calc(100% - 36px));
  padding: 14px 18px;
  border: 1px solid rgba(255, 140, 155, 0.4);
  border-radius: 13px;
  color: #ffdce1;
  background: rgba(73, 24, 35, 0.95);
  box-shadow: var(--shadow);
  font-size: 13px;
}

.now-playing-bar {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 30;
  min-height: 104px;
  padding: 12px 20px;
  display: grid;
  grid-template-columns:
    76px minmax(180px, 1fr) minmax(220px, 1.7fr) minmax(255px, auto);
  align-items: center;
  gap: 18px;
  border: 1px solid #343141;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(22px);
}

.now-playing-bar img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  background: #15141e;
}

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

.footer-track > * {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-track strong {
  margin: 5px 0;
  font-size: 15px;
}

.footer-track > span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.footer-zone {
  color: var(--accent-light);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.footer-controls {
  min-width: 255px;
  display: grid;
  grid-template-columns: minmax(90px, auto) auto;
  align-items: center;
  justify-content: end;
  gap: 7px 15px;
}

.footer-device {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-device > span:last-child {
  min-width: 0;
}

.footer-device small,
.footer-device strong {
  display: block;
}

.footer-device small {
  color: #686270;
  font-size: 7px;
  letter-spacing: 0.12em;
}

.footer-device strong {
  max-width: 112px;
  margin-top: 4px;
  overflow: hidden;
  color: #c8c4ce;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.footer-device-icon {
  flex: 0 0 auto;
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: transparent !important;
  opacity: 0.82;
}

.transport-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.transport-button {
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #d7d2df;
  background: transparent;
  cursor: pointer;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.transport-button:hover:not(:disabled),
.transport-button:focus-visible:not(:disabled) {
  color: white;
  outline: 0;
  transform: scale(1.06);
}

.transport-button:disabled {
  color: #4f4b57;
  cursor: not-allowed;
}

.transport-skip {
  width: 34px;
  height: 40px;
  font-size: 11px;
}

.transport-playpause {
  width: 52px;
  height: 52px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-light);
  background: rgba(20, 16, 30, 0.8);
  box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
  font-size: 16px;
}

.transport-playpause:hover:not(:disabled),
.transport-playpause:focus-visible:not(:disabled) {
  border-color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.12);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.16);
}

.transport-playpause:disabled {
  border-color: #423b4d;
}

.control-state {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #6f6878;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 7px;
  letter-spacing: 0.08em;
}

@media (max-width: 820px) {
  body {
    padding-bottom: 126px;
  }

  .site-header {
    min-height: 74px;
    padding: 13px 16px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .brand-product {
    font-size: 27px;
    transform: translateY(3px);
  }

  .brand-signature {
    font-size: 12px;
    transform: translateY(-6px);
  }

  .header-actions {
    margin-left: auto;
  }

  .header-admin-link {
    min-height: 36px;
    padding: 0 11px;
    font-size: 9px;
    border-radius: 11px;
  }

  .tab-bar {
    height: 66px;
    grid-template-columns: repeat(6, minmax(108px, 1fr));
  }

  .tab-button {
    font-size: 14px;
    font-weight: 700;
  }

  main {
    width: min(100% - 22px, 1480px);
  }

  .ai-setup-notice {
    margin-top: 12px;
    padding: 15px;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    border-radius: 15px;
  }

  .ai-admin-link {
    width: 100%;
  }

  .tab-panel {
    padding-top: 12px;
  }

  .hero-card {
    min-height: auto;
    padding: 12px;
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 16px;
    border-radius: 17px;
  }

  .hero-art-wrap {
    max-height: none;
  }

  .hero-art {
    border-radius: 10px;
  }

  .eyebrow {
    margin: 0 0 5px;
    font-size: 9px;
  }

  .hero-topline {
    align-items: flex-start;
    margin-bottom: 11px;
  }

  .zone-button {
    min-width: 0;
    min-height: 34px;
    padding: 5px 7px;
    grid-template-columns: 17px minmax(0, 1fr) 11px;
    gap: 6px;
    border-radius: 9px;
  }

  .zone-device-icon {
    width: 18px;
    height: 18px;
  }

  .zone-button-copy small {
    display: none;
  }

  .zone-button-copy strong {
    max-width: 86px;
    font-size: 9px;
  }

  .zone-button-copy strong::before {
    width: 5px;
    height: 5px;
    margin-right: 5px;
  }

  .zone-chevron {
    font-size: 12px;
  }

  .zone-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    width: min(390px, calc(100vw - 28px));
    max-height: min(560px, calc(100dvh - 48px));
    transform: translate(-50%, -50%);
  }

  .hero-copy h1 {
    margin: 0 0 6px;
    font-size: clamp(20px, 6vw, 30px);
  }

  .hero-artist {
    font-size: 14px;
  }

  .hero-album {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .progress-block {
    margin-top: 14px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0;
  }

  #panel-home.is-active {
    gap: 12px;
  }

  .content-card {
    padding: 23px 20px;
    border-radius: 17px;
  }

  .content-card h2 {
    margin: 10px 0 14px;
  }

  .prose {
    line-height: 1.8;
  }

  .score-card,
  .profile-hero,
  .lyrics-heading {
    min-height: 170px;
    padding: 24px 20px;
    border-radius: 17px;
  }

  .lyrics-guide-card {
    display: block;
  }

  .lyrics-guide-card .prose {
    margin-top: 12px;
  }

  .score-card h1,
  .profile-hero h1,
  .lyrics-heading h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .score {
    min-width: 100px;
  }

  .score strong {
    font-size: 56px;
  }

  .radar-heading {
    display: block;
  }

  .radar-legend {
    margin-top: 12px;
  }

  /*
   * The radar canvas used to measure the card's border box, including its
   * horizontal padding. On narrow Samsung/Android viewports that made the
   * Album panel wider than the page and mobile browsers auto-fitted the whole
   * desktop-sized document. Keep these guards scoped to mobile so the desktop
   * Album layout is unchanged.
   */
  #panel-album.is-active {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  #panel-album > .score-card,
  #panel-album > .content-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #panel-album > .score-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
  }

  #panel-album > .score-card > :first-child {
    min-width: 0;
  }

  #panel-album .radar-card {
    overflow: hidden;
  }

  #panel-album #radar-chart {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
  }

  .work-hero {
    min-height: 260px;
    border-radius: 17px;
  }

  .work-hero h1 {
    font-size: clamp(34px, 10vw, 55px);
  }

  .work-reset-wrap {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    max-width: none;
    margin-top: 28px;
    justify-items: stretch;
  }

  .work-reset-button {
    width: 100%;
  }

  .work-reset-state {
    text-align: left;
  }

  .lyrics-heading {
    align-items: flex-start;
  }

  .lyrics-heading-actions {
    min-width: 0;
    width: 100%;
    justify-items: stretch;
  }

  .lyrics-heading-actions .mini-badge {
    justify-self: start;
  }

  .lyrics-reset-button {
    width: 100%;
  }

  .lyrics-reset-state {
    text-align: left;
  }

  .sound-notes-grid {
    grid-template-columns: 1fr;
  }

  .lyric-line {
    padding: 16px 6px 16px 15px;
  }

  .current-lyric-card {
    top: 70px;
    margin-bottom: 14px;
    padding: 18px;
    border-radius: 14px;
  }

  .lyric-time {
    display: none;
  }

  .now-playing-bar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    min-height: 88px;
    padding: 9px;
    grid-template-columns: 60px minmax(0, 1fr) 142px;
    gap: 10px;
    border-radius: 14px;
  }

  .now-playing-bar img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }

  .footer-progress-wrap {
    position: absolute;
    left: 79px;
    right: 161px;
    bottom: 9px;
  }

  .footer-time {
    display: none;
  }

  .footer-controls {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .footer-device {
    justify-content: center;
  }

  .footer-device-icon {
    width: 23px !important;
    height: 23px !important;
  }

  .footer-device small {
    display: none;
  }

  .footer-device strong {
    max-width: 93px;
    margin: 0;
    font-size: 8px;
  }

  .transport-buttons {
    gap: 3px;
  }

  .transport-skip {
    width: 29px;
    height: 34px;
    font-size: 9px;
  }

  .transport-playpause {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .control-state {
    display: none;
  }
}

/* WebPlay 2.9.5.7 · compact header, left output picker, Roon search and full player. */
.site-header {
  justify-content: flex-start;
}

.tab-bar {
  grid-template-columns: repeat(6, minmax(112px, 1fr)) minmax(104px, 0.72fr);
}

.search-button {
  min-width: 104px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.045);
  cursor: pointer;
  letter-spacing: 0.05em;
}

.search-button > span {
  font-size: 28px;
  line-height: 1;
}

.search-button > strong {
  font-size: 13px;
}

.search-button:hover,
.search-button:focus-visible {
  background: rgba(var(--accent-rgb), 0.12);
  outline: 0;
}

.hero-topline {
  justify-content: flex-start;
}

.zone-picker {
  margin-right: auto;
}

.zone-menu {
  right: auto;
  left: 0;
}

.now-playing-bar {
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 1.7fr) minmax(255px, auto);
}

.footer-now-playing-trigger {
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.footer-now-playing-trigger:hover .footer-track strong,
.footer-now-playing-trigger:focus-visible .footer-track strong {
  color: var(--accent-light);
}

.footer-now-playing-trigger:focus-visible {
  border-radius: 12px;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.overlay-icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  cursor: pointer;
  font-size: 25px;
}

.overlay-icon-button:hover,
.overlay-icon-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-light);
  outline: 0;
}

#now-playing-close {
  line-height: 1;
}

#search-back,
#search-back:hover,
#search-back:focus-visible {
  color: #fff;
}

.search-back-glyph {
  width: 20px;
  height: 20px;
  margin: 0;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.now-playing-close-glyph {
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transform-origin: center;
}

.search-view,
.now-playing-view {
  position: fixed;
  inset: 0;
}

.search-view[hidden],
.now-playing-view[hidden] {
  display: none;
}

body.search-open,
body.now-playing-open {
  overflow: hidden;
}

.search-view {
  z-index: 2300;
  display: flex;
  justify-content: flex-end;
  background: rgba(3, 3, 8, 0.64);
  backdrop-filter: blur(10px);
}

.search-shell {
  width: min(620px, 100%);
  height: 100%;
  padding: 22px;
  overflow-y: auto;
  border-left: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 20% 4%, rgba(var(--accent-rgb), 0.16), transparent 28%),
    color-mix(in srgb, var(--bg) 96%, #050508);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.5);
}

.search-header {
  position: sticky;
  top: -22px;
  z-index: 4;
  margin: -22px -22px 20px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px);
}

.search-form {
  min-width: 0;
  min-height: 50px;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.search-form-icon {
  color: var(--accent-light);
  font-size: 24px;
}

.search-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}

.search-form input::placeholder {
  color: var(--muted);
}

.search-form button,
.search-recent button,
.search-filters button {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.search-form button {
  font-size: 22px;
}

.search-state {
  min-height: 26px;
  margin: 0 2px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.search-recent {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.search-recent > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.search-recent-list {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-recent-list button,
.search-filters button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.04);
  font-size: 12px;
}

.search-filters {
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.search-filters button {
  flex: 0 0 auto;
}

.search-filters button.is-active {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.15);
}

.search-group + .search-group {
  margin-top: 28px;
}

.search-group-heading {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-group-heading h2 {
  margin: 0;
  font-size: 18px;
}

.search-group-heading span {
  color: var(--muted);
  font-size: 12px;
}

.search-result-list {
  display: grid;
  gap: 7px;
}

.search-result-item {
  width: 100%;
  min-width: 0;
  min-height: 66px;
  padding: 8px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.search-result-item:hover,
.search-result-item:focus-visible,
.search-result-item.is-playing {
  border-color: var(--line-strong);
  background: rgba(var(--accent-rgb), 0.09);
  outline: 0;
}

.search-result-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 9px;
  background: var(--surface);
}

.search-result-copy {
  min-width: 0;
}

.search-result-copy strong,
.search-result-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy strong {
  font-size: 14px;
}

.search-result-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.search-result-action {
  color: var(--accent-light);
  text-align: center;
  font-size: 18px;
}

.search-detail-hero {
  margin-bottom: 20px;
  padding: 16px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.search-detail-hero img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 13px;
}

.search-detail-hero span {
  color: var(--accent-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.search-detail-hero h2 {
  margin: 7px 0 5px;
  overflow-wrap: anywhere;
  font-size: 24px;
}

.search-detail-hero p {
  margin: 0;
  color: var(--muted);
}

.search-detail-actions {
  min-width: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.search-album-play-all {
  min-height: 42px;
  margin: 0;
  padding: 0 16px;
  white-space: nowrap;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.14);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.search-album-play-all:hover,
.search-album-play-all:focus-visible,
.search-album-play-all.is-playing {
  background: rgba(var(--accent-rgb), 0.24);
  outline: 0;
}

.search-album-play-all:disabled {
  opacity: 0.58;
  cursor: wait;
}

.search-empty {
  padding: 42px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.now-playing-view {
  z-index: 2200;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(3, 3, 8, 0.76);
  backdrop-filter: blur(16px);
}

.now-playing-surface {
  width: min(1160px, 100%);
  max-height: calc(100dvh - 48px);
  padding: 22px 28px 30px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    radial-gradient(circle at 28% 18%, rgba(var(--accent-rgb), 0.16), transparent 34%),
    color-mix(in srgb, var(--bg) 96%, #050508);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
}

.now-playing-header {
  min-height: 48px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.full-quality {
  justify-self: center;
  min-height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.full-quality #full-quality-text {
  white-space: pre-line;
  line-height: 1.18;
  text-align: left;
}

.full-quality i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 12px color-mix(in srgb, var(--muted) 72%, transparent);
}

.full-quality[data-quality="16"] i {
  background: #ff4d5f;
  box-shadow: 0 0 14px rgba(255, 77, 95, 0.82);
}

.full-quality[data-quality="24"] i {
  background: #35d07f;
  box-shadow: 0 0 14px rgba(53, 208, 127, 0.82);
}

.full-quality[data-quality="32"] i {
  background: #4a9fff;
  box-shadow: 0 0 14px rgba(74, 159, 255, 0.82);
}

.full-quality[data-quality="dsd"] i {
  background: #ff6ec7;
  box-shadow: 0 0 14px rgba(255, 110, 199, 0.82);
}

.now-playing-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(38px, 6vw, 84px);
}

.now-playing-art-column {
  display: grid;
  place-items: center;
}

.full-cover {
  width: min(100%, 520px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.now-playing-info-column {
  min-width: 0;
}

.full-track-copy {
  text-align: center;
}

.full-track-copy h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.08;
}

.full-track-copy p {
  margin: 14px 0 0;
  font-size: clamp(20px, 2.4vw, 30px);
}

.full-track-copy span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.full-progress-block {
  margin-top: 40px;
}

.full-progress-time {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.full-transport {
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 56px);
}

.full-transport button {
  width: 58px;
  height: 58px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.full-transport button:disabled {
  color: #4f4b57;
  cursor: not-allowed;
}

.full-transport .full-playpause {
  width: 76px;
  height: 76px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.1);
  font-size: 24px;
}

.full-output-row {
  width: fit-content;
  max-width: 100%;
  margin: 25px auto 0;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.full-output-row img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.full-output-row small,
.full-output-row strong {
  display: block;
}

.full-output-row small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.full-output-row strong {
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.listen-together-card {
  margin-top: 24px;
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.11), color-mix(in srgb, var(--surface) 90%, transparent));
}

.listen-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.listen-heading span,
.listen-heading strong {
  display: block;
}

.listen-heading span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.listen-heading strong {
  margin-top: 4px;
  font-size: 17px;
}

.listen-heading small {
  color: var(--accent-light);
  text-align: right;
  font-size: 11px;
}

.listen-together-card > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.listen-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listen-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.listen-actions button[hidden] {
  display: none;
}

.listen-actions .listen-primary {
  flex: 1 1 190px;
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.14);
}

.listen-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.listen-together-card .listen-state {
  color: var(--accent-light);
  font-size: 10px;
}

@media (max-width: 820px) {
  .tab-bar {
    grid-template-columns: repeat(6, minmax(96px, 1fr)) minmax(72px, 0.72fr);
  }

  .search-button {
    min-width: 72px;
    padding: 0 14px;
  }

  .search-button > strong {
    display: none;
  }

  .search-button > span {
    font-size: 25px;
  }

  .now-playing-bar {
    grid-template-columns: minmax(0, 1fr) 142px;
  }

  .footer-now-playing-trigger {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
  }

  .search-view {
    background: var(--bg);
  }

  .search-shell {
    width: 100%;
    padding: 14px;
    border-left: 0;
    box-shadow: none;
  }

  .search-header {
    top: -14px;
    margin: -14px -14px 14px;
    padding: 12px 14px;
  }

  .search-form {
    min-height: 46px;
  }

  .search-form input {
    font-size: 14px;
  }

  .search-result-item {
    min-height: 64px;
    padding-right: 3px;
    padding-left: 3px;
  }

  .search-detail-hero {
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .search-detail-hero img {
    width: 78px;
    height: 78px;
  }

  .search-detail-hero h2 {
    font-size: 20px;
  }

  .now-playing-view {
    padding: 0;
    display: block;
    background: var(--bg);
    backdrop-filter: none;
  }

  .now-playing-surface {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 12px 18px 26px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .now-playing-header {
    position: sticky;
    top: -12px;
    z-index: 3;
    margin: -12px -18px 0;
    padding: 12px 18px 8px;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(18px);
  }

  .now-playing-header .overlay-icon-button {
    border-color: transparent;
    background: transparent;
  }

  .now-playing-layout {
    width: min(100%, 620px);
    margin: 20px auto 0;
    display: block;
  }

  .full-cover {
    width: min(82vw, 520px);
    border-radius: 4px;
  }

  .full-track-copy {
    margin-top: 26px;
  }

  .full-track-copy h1 {
    font-size: clamp(30px, 8vw, 44px);
  }

  .full-track-copy p {
    margin-top: 10px;
    font-size: 21px;
  }

  .full-progress-block {
    margin-top: 34px;
  }

  .full-transport {
    margin-top: 22px;
  }

  .full-output-row {
    margin-top: 20px;
  }

  .listen-together-card {
    margin-top: 20px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .now-playing-bar {
    grid-template-columns: minmax(0, 1fr) 126px;
  }

  .footer-now-playing-trigger {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .full-cover {
    width: min(86vw, 440px);
  }

  .full-track-copy h1 {
    font-size: clamp(28px, 8.5vw, 38px);
  }

  .full-transport {
    gap: 24px;
  }

  .full-transport .full-playpause {
    width: 68px;
    height: 68px;
  }

  .listen-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .listen-heading small {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .brand-product {
    font-size: 22px;
    letter-spacing: 0;
    transform: translateY(2px);
  }

  .brand-signature {
    display: inline;
    font-size: 10px;
    transform: translateY(-5px);
  }

  .brand-admin {
    display: none;
  }

  #connection-text {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .now-playing-bar {
    grid-template-columns: 52px minmax(0, 1fr) 126px;
  }

  .hero-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .now-playing-bar img {
    width: 52px;
    height: 52px;
  }

  .footer-progress-wrap {
    left: 70px;
    right: 143px;
  }

  .hero-copy h1 {
    font-size: 20px;
  }

  .score-card {
    align-items: flex-start;
  }

  .score {
    min-width: 74px;
  }

  .score strong {
    font-size: 44px;
  }
}

/* WebPlay 2.3.5 · selectable ARC/Roon source, seekable timeline and mobile polish */
.seek-track {
  position: relative;
  min-height: 12px;
  display: flex;
  align-items: center;
  cursor: default;
  touch-action: manipulation;
}

.seek-track::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 5px;
  border-radius: 999px;
  background: #353342;
  transform: translateY(-50%);
}

.seek-track.is-seekable {
  cursor: pointer;
}

.seek-track.is-seekable:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
  border-radius: 999px;
}

.seek-track .progress-value {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-width: 0;
  height: 5px;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-light));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.32);
  transition: width 0.22s linear;
  will-change: width;
}

.error-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: start;
  gap: 10px;
  max-height: 180px;
  overflow: auto;
  line-height: 1.55;
}

.error-banner[hidden] {
  display: none;
}

.error-banner button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 220, 225, 0.22);
  border-radius: 50%;
  color: #ffdce1;
  background: transparent;
  cursor: pointer;
  font-size: 19px;
}

@media (max-width: 820px) {
  #panel-album .radar-card {
    padding-right: 10px;
    padding-left: 10px;
  }

  #panel-album #radar-chart {
    margin-top: 4px;
  }

  .footer-progress-wrap {
    z-index: 4;
    bottom: 5px;
    min-width: 42px;
    pointer-events: auto;
  }

  .footer-progress-wrap .progress-track {
    width: 100%;
    min-height: 16px;
  }

  .footer-progress-wrap .progress-track::before,
  .footer-progress-wrap .progress-value {
    height: 6px;
  }

  .error-banner {
    right: 12px;
    bottom: 112px;
    max-width: calc(100% - 24px);
    max-height: 150px;
    padding: 12px 13px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .footer-progress-wrap {
    left: 69px;
    right: 139px;
    bottom: 4px;
  }
}

/* WebPlay 2.3.5 · unified ARC/Roon picker and mobile overlay ordering */
.zone-menu {
  z-index: 1200;
}

body.zone-menu-open .hero-card {
  position: relative;
  z-index: 1100;
  overflow: visible;
}

body.zone-menu-open .hero-topline,
body.zone-menu-open .zone-picker {
  z-index: 1200;
}

body.zone-menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 4, 9, 0.68);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

@media (max-width: 760px) {
  body.zone-menu-open #current-lyric-card {
    visibility: hidden;
    pointer-events: none;
  }

  body.zone-menu-open .zone-menu {
    z-index: 1300;
  }
}

/* WebPlay 2.4 shared color skins */

/* 2.9.5.7: every public surface follows the selected admin theme. */
.site-header,
.tab-bar,
.now-playing-bar,
.zone-menu,
.ai-setup-notice {
  border-color: var(--line-strong);
}

.tab-button.is-active,
.section-label,
.eyebrow,
.footer-zone,
.zone-button small,
.history-index,
.lyric-korean,
.current-lyric-card p {
  color: var(--accent-light);
}

.progress-value,
.tab-button.is-active::after {
  background-color: var(--accent);
}
:root[data-theme="red-pastel"] { --bg:#110d10; --surface:#191216; --surface-2:#21171c; --surface-accent:#2a1820; --line:#382a31; --line-strong:#6e4758; --accent:#e99aaa; --accent-light:#ffc2ce; --accent-strong:#d96f87; --accent-deep:#8a4f60; --accent-rgb:233,154,170; }
:root[data-theme="red-vivid"] { --bg:#10090c; --surface:#190d12; --surface-2:#231019; --surface-accent:#30101d; --line:#3b2029; --line-strong:#7d3045; --accent:#ff496f; --accent-light:#ff8da5; --accent-strong:#e61f52; --accent-deep:#8c263d; --accent-rgb:255,73,111; }
:root[data-theme="orange-pastel"] { --bg:#110e0b; --surface:#1a1510; --surface-2:#211a13; --surface-accent:#2b1d13; --line:#3a3028; --line-strong:#74563d; --accent:#f0ad7d; --accent-light:#ffd0ad; --accent-strong:#dd8750; --accent-deep:#8b5a39; --accent-rgb:240,173,125; }
:root[data-theme="orange-vivid"] { --bg:#110b07; --surface:#1b100a; --surface-2:#24140b; --surface-accent:#31170a; --line:#3c291d; --line-strong:#81461f; --accent:#ff7a24; --accent-light:#ffad70; --accent-strong:#eb5600; --accent-deep:#924318; --accent-rgb:255,122,36; }
:root[data-theme="yellow-pastel"] { --bg:#11100b; --surface:#1a1810; --surface-2:#222013; --surface-accent:#2a2614; --line:#393627; --line-strong:#6f673d; --accent:#e8d587; --accent-light:#fff0b2; --accent-strong:#c8ae4e; --accent-deep:#81733f; --accent-rgb:232,213,135; }
:root[data-theme="yellow-vivid"] { --bg:#111006; --surface:#1b1908; --surface-2:#252207; --surface-accent:#302a05; --line:#3d381b; --line-strong:#817320; --accent:#ffd21f; --accent-light:#ffe879; --accent-strong:#e2b600; --accent-deep:#8e7415; --accent-rgb:255,210,31; }
:root[data-theme="green-pastel"] { --bg:#0b110f; --surface:#101916; --surface-2:#14211c; --surface-accent:#142b23; --line:#273a32; --line-strong:#3e705e; --accent:#8edbb9; --accent-light:#bdf3da; --accent-strong:#55bd8f; --accent-deep:#427a63; --accent-rgb:142,219,185; }
:root[data-theme="green-vivid"] { --bg:#07110d; --surface:#0a1a13; --surface-2:#0b2419; --surface-accent:#083020; --line:#1b3d2d; --line-strong:#1f7c54; --accent:#20e29a; --accent-light:#75f4c3; --accent-strong:#00bd72; --accent-deep:#197a55; --accent-rgb:32,226,154; }
:root[data-theme="blue-pastel"] { --bg:#0b0f13; --surface:#101820; --surface-2:#14202a; --surface-accent:#142936; --line:#273642; --line-strong:#416a84; --accent:#91cbed; --accent-light:#c2e8ff; --accent-strong:#59a8d8; --accent-deep:#47758f; --accent-rgb:145,203,237; }
:root[data-theme="blue-vivid"] { --bg:#070d13; --surface:#0a151f; --surface-2:#0b1d2a; --surface-accent:#082638; --line:#1b3446; --line-strong:#216b9c; --accent:#29a8ff; --accent-light:#80ceff; --accent-strong:#0088e8; --accent-deep:#1f6793; --accent-rgb:41,168,255; }
:root[data-theme="indigo-pastel"] { --bg:#0c0d13; --surface:#12141d; --surface-2:#181b27; --surface-accent:#1c2032; --line:#2d3040; --line-strong:#555f8b; --accent:#a4afe9; --accent-light:#ccd3ff; --accent-strong:#7887d5; --accent-deep:#59628e; --accent-rgb:164,175,233; }
:root[data-theme="indigo-vivid"] { --bg:#080913; --surface:#0d0f1d; --surface-2:#111429; --surface-accent:#15183a; --line:#252a48; --line-strong:#4853a2; --accent:#6674ff; --accent-light:#9ca5ff; --accent-strong:#3f4ee8; --accent-deep:#465095; --accent-rgb:102,116,255; }
:root[data-theme="violet-pastel"] { --bg:#0f0c13; --surface:#17121c; --surface-2:#1e1727; --surface-accent:#281a34; --line:#372c42; --line-strong:#684f7c; --accent:#c6a3e8; --accent-light:#e4c9ff; --accent-strong:#a879d1; --accent-deep:#745785; --accent-rgb:198,163,232; }
:root[data-theme="violet-vivid"] { --bg:#08080f; --surface:#101019; --surface-2:#151323; --surface-accent:#1c1231; --line:#292837; --line-strong:#3d315d; --accent:#9b6cff; --accent-light:#bd9aff; --accent-strong:#7442ff; --accent-deep:#654a94; --accent-rgb:155,108,255; }
:root[data-theme="mono-black"] { --bg:#030303; --surface:#0b0b0b; --surface-2:#121212; --surface-accent:#171717; --line:#2b2b2b; --line-strong:#545454; --text:#f6f6f6; --muted:#a6a6a6; --accent:#f4f4f4; --accent-light:#ffffff; --accent-strong:#d5d5d5; --accent-deep:#777777; --accent-rgb:244,244,244; }
:root[data-theme="mono-white"] { color-scheme:light; --bg:#f7f7fa; --surface:#ffffff; --surface-2:#f0f0f4; --surface-accent:#e9e9ef; --line:#d8d8e0; --line-strong:#a6a6b2; --text:#17171d; --muted:#676772; --accent:#202027; --accent-light:#454550; --accent-strong:#050509; --accent-deep:#74747d; --accent-rgb:32,32,39; --green:#0b9b69; --danger:#c53b52; --shadow:0 20px 55px rgba(25,25,35,.14); }
:root[data-theme="mono-white"] .site-header, :root[data-theme="mono-white"] .tab-bar { background:rgba(247,247,250,.94); }
:root[data-theme="mono-white"] .brand-product, :root[data-theme="mono-white"] button { color:var(--text); }
:root[data-theme="mono-white"] input, :root[data-theme="mono-white"] select, :root[data-theme="mono-white"] textarea, :root[data-theme="mono-white"] .zone-menu, :root[data-theme="mono-white"] .player-bar { background:var(--surface); color:var(--text); }
:root[data-theme="mono-white"] body {
  background:
    radial-gradient(circle at 12% 16%, rgba(var(--accent-rgb), 0.06), transparent 28%),
    radial-gradient(circle at 86% 32%, rgba(var(--accent-rgb), 0.04), transparent 30%),
    var(--bg);
}
:root[data-theme="mono-white"] :is(
  .hero-card,
  .content-card,
  .score-card,
  .profile-hero,
  .work-hero,
  .lyrics-heading,
  .current-lyric-card,
  .zone-button,
  .zone-menu,
  .now-playing-bar,
  .error-banner,
  .ai-setup-notice
) {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
:root[data-theme="mono-white"] :is(.muted, .field-help, .footer-zone, .control-state, .eyebrow) {
  color: var(--muted);
}

/* WebPlay 2.9.5.7 · apply the selected skin to every public surface. */
:root[data-theme] .brand-product,
:root[data-theme] .zone-option,
:root[data-theme] .control-state {
  color: var(--text);
}
:root[data-theme] :is(
  .hero-card,
  .content-card,
  .lyric-card,
  .lyrics-guide-card,
  .score-card,
  .profile-hero,
  .lyrics-heading,
  .work-hero,
  .zone-menu,
  .zone-option,
  .player-bar,
  .modal-panel
) {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background:
    radial-gradient(circle at 88% 12%, rgba(var(--accent-rgb), .10), transparent 34%),
    color-mix(in srgb, var(--surface) 96%, var(--accent) 4%);
}
:root[data-theme] .tab-bar button[aria-selected="true"],
:root[data-theme] .tab-button.is-active {
  color: var(--accent-light);
  border-color: var(--accent);
  text-shadow: 0 0 18px rgba(var(--accent-rgb), .42);
}
:root[data-theme] :is(.progress-fill, .mini-progress-fill) {
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-light));
}
:root[data-theme] :is(.progress-track, .mini-progress-track) {
  background: color-mix(in srgb, var(--surface-2) 76%, var(--accent) 24%);
}
:root[data-theme] .lyrics-guide-card {
  background:
    radial-gradient(circle at 88% 18%, rgba(var(--accent-rgb), .12), transparent 35%),
    var(--surface);
}
:root[data-theme] .history-item:hover,
:root[data-theme] .history-item:focus-visible {
  background: rgba(var(--accent-rgb), .12);
}

/* WebPlay 2.9.5.7 · current album track list and direct Roon playback. */
.album-tracklist-card {
  overflow: hidden;
}

.album-tracklist-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.album-track-provider {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 999px;
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.08);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.album-track-state {
  margin: 0 0 18px;
}

.album-track-list {
  display: grid;
  border-top: 1px solid rgba(var(--accent-rgb), 0.16);
}

.album-track-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 76px;
  padding: 14px 8px;
  border: 0;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.14);
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.album-track-item:hover,
.album-track-item:focus-visible {
  outline: none;
  background: rgba(var(--accent-rgb), 0.1);
}

.album-track-item:active {
  transform: translateY(1px);
}

.album-track-item.is-current {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.04));
  box-shadow: inset 3px 0 0 var(--accent);
}

.album-track-item.is-loading {
  opacity: 0.58;
  pointer-events: none;
}

.album-track-number {
  color: var(--accent-light);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-align: center;
}

.album-track-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.album-track-copy strong {
  overflow: hidden;
  font-size: 17px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-track-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-track-duration {
  min-width: 62px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 720px) {
  .album-tracklist-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .album-track-item {
    grid-template-columns: 42px minmax(0, 1fr) 52px;
    gap: 10px;
    min-height: 68px;
    padding: 12px 2px;
  }

  .album-track-copy strong {
    font-size: 15px;
  }

  .album-track-duration {
    min-width: 52px;
    font-size: 12px;
  }
}

/* WebPlay 2.9.5.7 · album list retry and loading recovery. */
.album-track-retry {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-soft, var(--accent));
  padding: 0.8rem 1.2rem;
  margin-top: 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.album-track-retry:hover,
.album-track-retry:focus-visible {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  outline: none;
}

/* WebPlay 2.9.5.7 · clean left-aligned mobile layouts outside HOME. */
@media (max-width: 820px) {
  #panel-album,
  #panel-artists,
  #panel-composer,
  #panel-lyrics,
  #panel-works {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    text-align: left;
  }

  #panel-album > *,
  #panel-artists > *,
  #panel-composer > *,
  #panel-lyrics > *,
  #panel-works > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #panel-album :is(.content-card, .score-card),
  #panel-artists :is(.content-card, .profile-hero),
  #panel-composer :is(.content-card, .profile-hero),
  #panel-lyrics :is(.content-card, .lyrics-heading),
  #panel-works :is(.content-card, .work-hero) {
    text-align: left;
  }

  #panel-album > .score-card {
    justify-items: stretch;
  }

  #panel-album > .score-card > :first-child {
    width: 100%;
    justify-self: stretch;
    text-align: left;
  }

  #panel-album .score {
    justify-self: end;
  }

  #panel-artists .profile-hero,
  #panel-composer .profile-hero,
  #panel-lyrics .lyrics-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }

  #panel-artists .profile-hero > *,
  #panel-composer .profile-hero > *,
  #panel-lyrics .lyrics-heading > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  #panel-artists .profile-hero h1,
  #panel-composer .profile-hero h1,
  #panel-lyrics .lyrics-heading h1,
  #panel-works .work-hero h1 {
    margin: 8px 0 10px;
    color: var(--text);
    font-family: inherit;
    font-size: clamp(28px, 8vw, 40px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
  }

  #panel-lyrics .lyrics-heading-actions {
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    justify-items: start;
  }

  #panel-lyrics .lyrics-heading-actions .mini-badge {
    justify-self: start;
  }

  #panel-works .work-hero {
    text-align: left;
  }

  #panel-works .work-hero > .section-label,
  #panel-works .work-hero > #work-title,
  #panel-works .work-hero > #work-byline {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  #panel-works .work-hero > #work-byline {
    margin-top: 0;
  }

  #panel-album .content-card h2,
  #panel-artists .content-card h2,
  #panel-composer .content-card h2,
  #panel-lyrics .content-card h2,
  #panel-works .content-card h2,
  #panel-album .prose,
  #panel-artists .prose,
  #panel-composer .prose,
  #panel-lyrics .prose,
  #panel-works .prose {
    text-align: left;
  }
}

/* Keep 2.9.5.7 responsive player rules last in the cascade. */
.site-header { justify-content: flex-start; }
.tab-bar { grid-template-columns: repeat(6, minmax(112px, 1fr)) minmax(104px, .72fr); }
.hero-topline { justify-content: flex-start; }
.zone-picker { margin-right: auto; }
.zone-menu { right: auto; left: 0; }
.now-playing-bar { grid-template-columns: minmax(280px, 1fr) minmax(220px, 1.7fr) minmax(255px, auto); }

@media (max-width: 820px) {
  .tab-bar { grid-template-columns: repeat(6, minmax(96px, 1fr)) minmax(72px, .72fr); }
  .now-playing-bar { grid-template-columns: minmax(0, 1fr) 142px; }
  .footer-now-playing-trigger { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; }
  .zone-menu { left: 50%; right: auto; }
}

@media (max-width: 480px) {
  .now-playing-bar { grid-template-columns: minmax(0, 1fr) 126px; }
  .footer-now-playing-trigger { grid-template-columns: 52px minmax(0, 1fr); }
}


/* WebPlay 2.9.5.7 · readable playback clocks on desktop and mobile. */
.progress-labels {
  font-size: 17px;
  line-height: 1.25;
}

.footer-time {
  font-size: 16px;
  line-height: 1.2;
}

.full-progress-time {
  font-size: 17px;
  line-height: 1.25;
}

@media (max-width: 720px) {
  .progress-labels {
    font-size: 16px;
  }

  .full-progress-time {
    font-size: 16px;
  }

  .now-playing-bar {
    min-height: 104px;
    padding-bottom: 26px;
  }

  .footer-progress-wrap {
    bottom: 8px;
  }

  .footer-time {
    display: flex;
    font-size: 16px;
    line-height: 1.15;
  }
}

@media (max-width: 480px) {
  .progress-labels,
  .full-progress-time,
  .footer-time {
    font-size: 16px;
  }
}


/* WebPlay 2.9.5.7 · search-detail controls, single local lyric clock, and compact mobile footer time. */
#search-back {
  place-items: center;
  color: #fff;
}

@media (max-width: 720px) {
  .footer-time {
    font-size: 12px;
    line-height: 1.1;
  }
}

@media (max-width: 480px) {
  .footer-time {
    font-size: 11px;
  }

  .search-detail-hero {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .search-detail-hero img {
    width: 72px;
    height: 72px;
  }

  .search-detail-actions {
    min-width: 82px;
  }

  .search-album-play-all {
    min-height: 40px;
    padding: 0 10px;
    font-size: 11px;
  }
}

/* WebPlay 2.9.5.7 · one lyric clock per browser and four-line footer metadata. */
.footer-track {
  display: grid;
  grid-auto-rows: min-content;
  align-content: center;
  gap: 3px;
}

.footer-track strong {
  margin: 0;
}

.footer-track > span:last-child,
.footer-track .footer-time {
  color: var(--muted);
}

.footer-track .footer-time {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 6px;
  font-size: 16px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.footer-time-separator {
  color: #666170;
}

.now-playing-bar {
  min-height: 116px;
}

.footer-progress-wrap {
  position: static;
  min-width: 0;
  align-self: center;
}

@media (max-width: 820px) {
  .now-playing-bar {
    min-height: 118px;
    padding: 10px 10px 27px;
  }

  .footer-now-playing-trigger {
    align-items: center;
  }

  .footer-track {
    gap: 2px;
  }

  .footer-zone {
    font-size: 9px;
    line-height: 1.15;
  }

  .footer-track strong {
    font-size: 14px;
    line-height: 1.25;
  }

  .footer-track > span:not(.footer-zone):not(.footer-time) {
    font-size: 11px;
    line-height: 1.2;
  }

  .footer-track .footer-time {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    font-size: 11px;
    line-height: 1.15;
  }

  .footer-progress-wrap {
    position: absolute;
    left: 79px;
    right: 161px;
    bottom: 8px;
  }
}

@media (max-width: 480px) {
  .now-playing-bar {
    min-height: 112px;
    padding-bottom: 25px;
  }

  .footer-track .footer-time {
    font-size: 10px;
  }

  .footer-progress-wrap {
    left: 69px;
    right: 139px;
    bottom: 7px;
  }
}


/* WebPlay 2.9.5.7 · final mobile footer containment: device / title / artist / time. */
.footer-now-playing-trigger,
.footer-track {
  min-width: 0;
}

.footer-track > .footer-zone,
.footer-track > strong,
.footer-track > #footer-artist {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-track > .footer-time {
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .footer-now-playing-trigger {
    min-height: 78px;
  }

  .footer-track {
    align-self: center;
    grid-template-rows: repeat(4, min-content);
  }
}

/* WebPlay 2.9.5.7 · repeat controls and album queue append. */
.search-detail-actions {
  min-width: 118px;
  flex-direction: column;
  gap: 9px;
}

.search-album-queue {
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.search-album-queue:hover,
.search-album-queue:focus-visible,
.search-album-queue.is-queueing {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.14);
  outline: 0;
}

.search-album-queue:disabled {
  opacity: 0.58;
  cursor: wait;
}

.transport-repeat {
  position: relative;
  width: 31px;
  height: 36px;
  border-radius: 999px;
  font-size: 17px;
}

.transport-repeat-one {
  grid-template-columns: 1fr;
}

.transport-repeat-one b {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-size: 8px;
  line-height: 1;
}

.transport-repeat.is-active,
.transport-repeat[aria-pressed="true"] {
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.13);
}

.full-transport .repeat-button {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 21px;
}

.full-transport .repeat-button b {
  position: absolute;
  right: 8px;
  bottom: 7px;
  font-size: 9px;
  line-height: 1;
}

.full-transport .repeat-button.is-active,
.full-transport .repeat-button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.12);
}

@media (max-width: 820px) {
  .transport-buttons {
    flex-wrap: wrap;
    max-width: 142px;
  }

  .transport-repeat {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .search-detail-actions {
    min-width: 90px;
    gap: 7px;
  }

  .search-album-play-all,
  .search-album-queue {
    width: 100%;
    min-height: 38px;
    padding: 0 8px;
    font-size: 10px;
  }

  .full-transport {
    flex-wrap: wrap;
    gap: 18px 28px;
  }

  .full-transport .repeat-button {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 820px) {
  .transport-buttons {
    max-width: none;
    flex-wrap: nowrap;
    gap: 1px;
  }
  .transport-skip {
    width: 22px;
  }
  .transport-playpause {
    width: 36px;
    height: 36px;
  }
  .transport-repeat {
    width: 22px;
    height: 28px;
  }
  .transport-repeat-one b {
    right: 2px;
    bottom: 3px;
    font-size: 7px;
  }
}

/* WebPlay 2.9.5.7 · keep five full-player transport controls on one mobile row. */
@media (max-width: 820px) {
  .full-transport {
    flex-wrap: nowrap;
    gap: clamp(10px, 3.5vw, 24px);
  }
}

@media (max-width: 480px) {
  .full-transport {
    gap: 10px;
  }
  .full-transport button {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
  .full-transport .full-playpause {
    width: 62px;
    height: 62px;
  }
  .full-transport .repeat-button {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .full-transport .repeat-button b {
    right: 5px;
    bottom: 5px;
    font-size: 8px;
  }
}

/* WebPlay 2.9.5.7 · footer alignment, queue viewer and stable mobile transport. */
.footer-controls {
  grid-template-columns: minmax(154px, 210px) auto;
  align-items: center;
  gap: 8px 14px;
}

.footer-device-stack {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
}

.footer-device-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-device-stack .control-state {
  grid-column: auto;
  min-width: 0;
  flex: 1 1 auto;
  color: #6f6878;
  text-align: left;
  font-size: 7px;
  letter-spacing: 0.06em;
}

.footer-queue-open,
.queue-open-button,
.queue-header-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  cursor: pointer;
}

.footer-queue-open {
  min-width: 28px;
  min-height: 22px;
  padding: 0 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.footer-queue-open:hover,
.footer-queue-open:focus-visible,
.queue-open-button:hover,
.queue-open-button:focus-visible,
.queue-header-button:hover,
.queue-header-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-light);
  outline: 0;
}

/* The right-hand transport sat visually too high after adding repeat controls. */
.footer-controls > .transport-buttons {
  align-self: center;
  transform: translateY(5px);
}

.full-output-actions {
  width: fit-content;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.full-output-actions .full-output-row {
  margin: 0;
}

.queue-open-button {
  min-height: 46px;
  padding: 0 15px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.queue-view {
  position: fixed;
  inset: 0;
  z-index: 65;
  padding: clamp(18px, 4vw, 52px);
  overflow: auto;
  background: rgba(4, 4, 10, 0.88);
  backdrop-filter: blur(18px);
}

.queue-view[hidden] {
  display: none !important;
}

.queue-shell {
  width: min(860px, 100%);
  min-height: 260px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: color-mix(in srgb, var(--bg) 96%, #050508);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
}

.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.queue-header > div:first-child span {
  color: var(--accent-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.queue-header h2 {
  margin: 5px 0 0;
  font-size: clamp(24px, 4vw, 36px);
}

.queue-header-actions {
  display: flex;
  gap: 8px;
}

.queue-header-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
}

.queue-state {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.queue-list {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.queue-item {
  min-width: 0;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.queue-item {
  appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.queue-item:hover:not(:disabled),
.queue-item:focus-visible:not(:disabled) {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  outline: 0;
}

.queue-item.is-playing {
  border-color: var(--accent);
  opacity: 0.72;
}

.queue-item:disabled {
  cursor: default;
}

.queue-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface);
}

.queue-item-copy {
  min-width: 0;
}

.queue-item-copy strong,
.queue-item-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item-copy strong {
  font-size: 13px;
}

.queue-item-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.queue-item-time {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.queue-empty {
  padding: 36px 16px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  font-size: 12px;
}

@media (max-width: 820px) {
  .footer-controls {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .footer-device-stack {
    gap: 0;
  }

  .footer-device-meta {
    display: none;
  }

  .footer-controls > .transport-buttons {
    transform: none;
  }

  .full-output-actions {
    margin-top: 20px;
    flex-wrap: wrap;
  }

  .queue-open-button {
    min-height: 42px;
    padding: 0 12px;
  }

  /* Fixed columns keep Previous / Play / Next and both repeat buttons centered
     as one visual unit instead of drifting to the left on narrow phones. */
  .full-transport {
    width: 100%;
    display: grid;
    grid-template-columns: 44px 68px 44px 40px 40px;
    justify-content: center;
    align-items: center;
    gap: 0 clamp(8px, 2.5vw, 16px);
  }

  .full-transport button,
  .full-transport .repeat-button {
    justify-self: center;
  }

  .queue-view {
    padding: 10px;
  }

  .queue-shell {
    min-height: calc(100dvh - 20px);
    padding: 18px 14px 28px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .full-transport {
    grid-template-columns: 38px 62px 38px 36px 36px;
    gap: 0 8px;
  }

  .full-transport button {
    width: 38px;
    height: 42px;
  }

  .full-transport .full-playpause {
    width: 62px;
    height: 62px;
  }

  .full-transport .repeat-button {
    width: 36px;
    height: 36px;
  }

  .queue-item {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 9px;
    gap: 10px;
  }

  .queue-item img {
    width: 44px;
    height: 44px;
  }
}

/* 2.9.5.7 final mobile transport: keep Previous / Play / Next centered on the
   screen independently of the two repeat buttons. The repeat pair stays on the
   right, so adding repeat controls cannot pull the primary transport left. */
@media (max-width: 820px) {
  .full-transport {
    position: relative;
    min-height: 68px;
    display: grid;
    grid-template-columns: 44px 68px 44px;
    justify-content: center;
    align-items: center;
    column-gap: clamp(8px, 2.5vw, 16px);
  }

  #full-control-repeat-one,
  #full-control-repeat-all {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  #full-control-repeat-one { right: 48px; }
  #full-control-repeat-all { right: 4px; }
}

@media (max-width: 480px) {
  .full-transport {
    min-height: 62px;
    grid-template-columns: 38px 62px 38px;
    column-gap: 8px;
  }

  #full-control-repeat-one { right: 42px; }
  #full-control-repeat-all { right: 0; }
}

/* WebPlay 2.9.5.7 · queue overlay + balanced full-player controls. */
body.queue-open {
  overflow: hidden;
}

/* The queue must sit above the full-player/search overlays. An earlier
   revision used z-index 65 below now-playing (2200), so the queue only became
   visible after the player was closed. */
.queue-view {
  z-index: 2500;
}

/* Keep the primary transport visually centered. Queue / output / repeat form
   their own balanced row below it. Equal side columns keep OUTPUT ZONE on the
   true horizontal center even when the side controls have different widths. */
.full-transport {
  gap: clamp(34px, 6vw, 64px);
}

.full-output-actions {
  width: min(100%, 620px);
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  gap: 10px;
}

.full-output-actions .queue-open-button {
  justify-self: end;
}

.full-output-actions .full-output-row {
  justify-self: center;
  margin: 0;
}

.full-repeat-dock {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
}

.full-repeat-dock .repeat-button {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  transform: none;
}

.full-repeat-dock .repeat-button b {
  position: absolute;
  right: 7px;
  bottom: 6px;
  font-size: 9px;
  line-height: 1;
}

.full-repeat-dock .repeat-button.is-active,
.full-repeat-dock .repeat-button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.12);
}

.queue-open-button {
  min-width: 76px;
  min-height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 15px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.queue-open-glyph {
  font-size: 16px;
  line-height: 1;
}

.queue-open-label {
  font-size: 9px;
  letter-spacing: 0.02em;
}

/* Desktop footer: put Queue directly under OUTPUT ZONE, label the glyph, and
   lift the entire output/queue/status block slightly. */
@media (min-width: 821px) {
  .footer-device-stack {
    transform: translateY(-5px);
    gap: 2px;
  }

  .footer-device-meta {
    padding-left: 43px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 2px;
  }

  .footer-queue-open {
    order: 2;
    min-height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 7px;
  }

  .footer-queue-glyph {
    font-size: 12px;
    line-height: 1;
  }

  .footer-queue-label {
    font-size: 7px;
    letter-spacing: 0.02em;
  }

  .footer-device-stack .control-state {
    order: 1;
    width: 100%;
    font-size: 6.5px;
  }
}

@media (max-width: 820px) {
  .full-transport {
    width: 100%;
    min-height: 64px;
    margin-top: 24px;
    display: grid;
    grid-template-columns: 40px 66px 40px;
    justify-content: center;
    align-items: center;
    column-gap: clamp(14px, 5vw, 28px);
  }

  .full-transport button {
    justify-self: center;
  }

  .full-output-actions {
    width: 100%;
    margin-top: 12px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 7px;
  }

  .full-output-actions .queue-open-button {
    justify-self: end;
    min-width: 62px;
    min-height: 40px;
    padding: 0 8px;
  }

  .full-output-actions .full-output-row {
    justify-self: center;
    margin: 0;
  }

  .full-repeat-dock {
    justify-self: start;
    gap: 2px;
  }

  #full-control-repeat-one,
  #full-control-repeat-all {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
  }

  .full-repeat-dock .repeat-button {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .full-repeat-dock .repeat-button b {
    right: 5px;
    bottom: 5px;
    font-size: 8px;
  }

  .queue-open-label {
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .full-transport {
    grid-template-columns: 38px 62px 38px;
    column-gap: 16px;
  }

  .full-output-actions {
    gap: 5px;
  }

  .full-output-actions .queue-open-button {
    min-width: 56px;
    padding: 0 6px;
  }

  .full-output-row {
    padding-left: 10px;
    padding-right: 10px;
  }

  .full-output-row img {
    width: 27px;
    height: 27px;
  }

  .full-repeat-dock .repeat-button {
    width: 34px;
    height: 34px;
  }
}

/* WebPlay 2.9.5.7 · keep the administrator settings entry reachable on
   narrow phones without pushing it outside the header viewport. */
@media (max-width: 520px) {
  .site-header {
    gap: 8px;
    padding-inline: 12px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .brand-product {
    font-size: 23px;
  }

  .brand-signature {
    display: none;
  }

  .header-actions {
    flex: 0 0 auto;
  }

  .header-admin-link {
    min-height: 34px;
    padding: 0 9px;
    font-size: 9px;
  }
}

/* WebPlay 2.9.5.7 · navigation must remain visible on every public viewport. */
.header-actions .header-admin-link {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
@media (max-width: 520px) {
  .header-actions {
    gap: 5px;
  }
  .header-actions .header-admin-link {
    min-height: 32px;
    padding-inline: 7px;
    font-size: 8px;
  }
}

/* WebPlay 2.9.5.7 · collection, favorite controls and final footer alignment. */
.tab-bar {
  grid-template-columns: repeat(7, minmax(104px, 1fr)) minmax(104px, .72fr);
}

.hero-title-row,
.full-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.hero-title-row h1,
.full-title-row h1 {
  min-width: 0;
  margin-right: 0;
}

.favorite-button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  cursor: pointer;
  line-height: 1;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.favorite-button:hover,
.favorite-button:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  outline: none;
}

.favorite-button.is-active,
.favorite-button[aria-pressed="true"] {
  border-color: #ffbd22;
  background: color-mix(in srgb, #ffd13f 13%, var(--surface));
  outline: none;
}

.favorite-star {
  width: 82%;
  height: 82%;
  display: block;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .32));
}

.favorite-star svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.favorite-star-fill {
  fill: #fff;
  stroke: #d9dde7;
  stroke-width: 2.6;
  stroke-linejoin: round;
  transition: fill .16s ease, stroke .16s ease;
}

.favorite-star-shine {
  fill: rgba(255, 255, 255, .52);
  pointer-events: none;
}

.favorite-button.is-active .favorite-star-fill,
.favorite-button[aria-pressed="true"] .favorite-star-fill {
  fill: #ffd13f;
  stroke: #ffb715;
}

.favorite-button.is-active .favorite-star-shine,
.favorite-button[aria-pressed="true"] .favorite-star-shine {
  fill: rgba(255, 245, 185, .58);
}

.favorite-button:active { transform: scale(.94); }
.favorite-button:disabled { opacity: .35; cursor: default; }
.full-favorite-button { width: 48px; height: 48px; }

.collection-card { margin-top: 18px; }
.collection-state { margin: 0 0 14px; }
.collection-list { display: grid; gap: 10px; }
.collection-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  overflow: hidden;
}

.collection-play {
  min-width: 0;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.collection-play:hover,
.collection-play:focus-visible { background: color-mix(in srgb, var(--accent) 7%, transparent); outline: none; }
.collection-play img { width: 58px; height: 58px; object-fit: cover; border-radius: 11px; }
.collection-item-copy { min-width: 0; display: grid; gap: 5px; }
.collection-item-copy strong,
.collection-item-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collection-item-copy strong { font-size: 14px; }
.collection-item-copy span,
.collection-duration { color: var(--muted); font-size: 10px; }
.collection-duration { padding-left: 8px; font-variant-numeric: tabular-nums; }
.collection-remove {
  width: 48px;
  height: 48px;
  margin-right: 12px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-light);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  cursor: pointer;
  font-size: 22px;
}
.collection-empty {
  min-height: 180px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
}
.collection-empty strong { color: var(--text); font-size: 18px; }
.collection-empty span { font-size: 11px; }

.footer-transport-stack {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 2px;
}

.footer-controls > .footer-transport-stack .transport-buttons {
  transform: translateY(-4px);
}

.footer-transport-stack .control-state {
  width: 100%;
  min-height: 12px;
  margin-top: -2px;
  color: var(--muted);
  text-align: center;
  font-size: 7px;
  letter-spacing: .045em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 821px) {
  .footer-device-stack {
    transform: translateY(-5px);
  }
  .footer-device-meta {
    padding-left: 43px;
  }
  .footer-queue-open { order: initial; }
}

@media (max-width: 1120px) {
  .tab-bar { grid-template-columns: repeat(7, minmax(94px, 1fr)) minmax(86px, .72fr); }
}

@media (max-width: 820px) {
  .tab-bar { grid-template-columns: none; }
  .hero-title-row,
  .full-title-row { justify-content: center; }
  .hero-title-row .favorite-button { width: 38px; height: 38px; font-size: 22px; }
  .full-title-row { position: relative; width: 100%; }
  .full-title-row h1 { padding-inline: 42px; }
  .full-favorite-button { position: absolute; right: 0; width: 40px; height: 40px; font-size: 23px; }
  .collection-play { grid-template-columns: 48px minmax(0, 1fr); padding: 9px; }
  .collection-play img { width: 48px; height: 48px; }
  .collection-duration { display: none; }
  .collection-remove { width: 42px; height: 42px; margin-right: 8px; }
  .footer-controls > .footer-transport-stack .transport-buttons { transform: none; }
  .footer-transport-stack .control-state { display: none; }
}

@media (max-width: 520px) {
  .header-actions .header-admin-link {
    min-width: 72px;
    justify-content: center;
  }
}

/* WebPlay 2.9.5.7 · only the requested navigation/footer corrections. */
@media (max-width: 820px) {
  /* Restore the former non-scrolling mobile navigation: one full-width row
     per destination, with no sideways swipe or clipped tabs. */
  .tab-bar {
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow-x: visible;
    overflow-y: visible;
  }

  .tab-button,
  .search-button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 5px 12px;
  }

  .search-button {
    justify-content: center;
  }

  .search-button > strong {
    display: inline;
  }

  .search-button > span {
    font-size: 16px;
  }

  body {
    padding-bottom: 172px;
  }

  /* Keep track information on the left and restore OUTPUT ZONE + Queue above
     all five transport buttons on the right. */
  .now-playing-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    min-height: 148px;
    padding: 10px 10px 28px;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 46%);
    align-items: center;
    gap: 8px;
  }

  .footer-now-playing-trigger {
    min-height: 104px;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 9px;
  }

  .footer-now-playing-trigger > img {
    width: 54px;
    height: 54px;
  }

  .footer-controls {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    align-content: center;
    gap: 5px;
  }

  .footer-device-stack {
    min-width: 0;
    display: grid;
    justify-items: start;
    gap: 3px;
    transform: none;
  }

  .footer-device {
    width: 100%;
    gap: 6px;
  }

  .footer-device-icon {
    width: 28px !important;
    height: 28px !important;
  }

  .footer-device strong {
    max-width: 114px;
    margin-top: 2px;
    font-size: 9px;
  }

  .footer-device-meta {
    min-width: 0;
    padding-left: 34px;
    display: flex;
    align-items: center;
  }

  .footer-queue-open {
    min-height: 20px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 7px;
  }

  .footer-queue-label {
    display: inline;
  }

  .footer-transport-stack {
    width: 100%;
    justify-items: center;
  }

  .footer-controls > .footer-transport-stack .transport-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 25px 48px 25px 27px 27px;
    justify-content: center;
    align-items: center;
    column-gap: 2px;
    transform: none;
  }

  .footer-transport-stack .transport-skip {
    width: 25px;
    height: 34px;
  }

  .footer-transport-stack .transport-playpause {
    width: 48px;
    height: 48px;
  }

  .footer-transport-stack .transport-repeat {
    width: 27px;
    height: 34px;
  }

  .footer-transport-stack .control-state {
    display: none;
  }

  .footer-progress-wrap {
    left: 73px;
    right: calc(46% + 18px);
    bottom: 8px;
  }
}

@media (max-width: 380px) {
  .now-playing-bar {
    grid-template-columns: minmax(0, 1fr) 158px;
  }

  .footer-now-playing-trigger {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 7px;
  }

  .footer-now-playing-trigger > img {
    width: 48px;
    height: 48px;
  }

  .footer-progress-wrap {
    left: 65px;
    right: 168px;
  }

  .footer-controls > .footer-transport-stack .transport-buttons {
    grid-template-columns: 24px 46px 24px 26px 26px;
    column-gap: 2px;
  }

  .footer-transport-stack .transport-playpause {
    width: 46px;
    height: 46px;
  }
}

/* Samsung Internet's "desktop site" uses a tablet-sized CSS viewport. Give
   that band explicit columns so Play/Next/Repeat cannot collapse together. */
@media (min-width: 821px) and (max-width: 1199px) {
  .now-playing-bar {
    padding-inline: 14px;
    grid-template-columns: minmax(240px, 1.1fr) minmax(110px, .65fr) minmax(360px, 1.45fr);
    gap: 12px;
  }

  .footer-controls {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(132px, 158px) minmax(218px, 1fr);
    justify-content: center;
    gap: 10px;
  }
}

@media (min-width: 821px) {
  .footer-device-stack {
    justify-self: end;
    transform: none;
  }

  .footer-transport-stack {
    justify-self: center;
  }

  .footer-controls > .footer-transport-stack .transport-buttons {
    display: grid;
    grid-template-columns: 32px 54px 32px 34px 34px;
    justify-content: center;
    align-items: center;
    column-gap: 6px;
    transform: none;
  }

  .footer-transport-stack #control-repeat-one {
    margin-left: 6px;
  }
}

@media (min-width: 1200px) {
  .now-playing-bar {
    grid-template-columns: minmax(320px, 1fr) minmax(220px, 1.2fr) minmax(460px, 1.35fr);
  }

  .footer-controls {
    width: 100%;
    grid-template-columns: minmax(160px, 190px) minmax(260px, 290px);
    justify-content: center;
    gap: 18px;
  }
}

/* WebPlay 2.9.8.3 · requested UI changes only.
   Desktop remains on the final 2.9.5.7 layout except for the requested optical
   star alignment; responsive layout changes are isolated to mobile. */
.footer-mobile-progress-row {
  display: none;
}

.favorite-button,
.hero-title-row .favorite-button,
.full-favorite-button,
.favorite-button.full-favorite-button,
.favorite-button:hover,
.favorite-button:focus-visible,
.favorite-button.is-active,
.favorite-button[aria-pressed="true"] {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.favorite-star-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: grayscale(1) saturate(0) brightness(1.9) contrast(.62) drop-shadow(0 2px 2px rgba(0, 0, 0, .38));
  transition: filter .16s ease, transform .16s ease;
}

.favorite-button.is-active .favorite-star-image,
.favorite-button[aria-pressed="true"] .favorite-star-image {
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .38));
}

.favorite-button:active .favorite-star-image {
  transform: scale(.94);
}

/* The supplied PNG has a soft lower shadow. On the desktop title line that
   makes the visible star look lower even though the button box is centered. */
@media (min-width: 821px) {
  .hero-title-row .favorite-star-image,
  .full-title-row .favorite-star-image {
    transform: translateY(-3px);
  }

  .hero-title-row .favorite-button:active .favorite-star-image,
  .full-title-row .favorite-button:active .favorite-star-image {
    transform: translateY(-3px) scale(.94);
  }
}

@media (max-width: 820px) {
  .tab-bar {
    height: 58px;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-flow: column;
    grid-auto-columns: auto;
    overflow: hidden;
  }

  .tab-button,
  .search-button {
    width: auto;
    min-width: 0;
    min-height: 58px;
    padding: 3px 1px;
    justify-content: center;
    border-bottom-width: 3px;
    font-size: clamp(7px, 2.3vw, 10px);
    line-height: 1.15;
    letter-spacing: 0;
    white-space: normal;
  }

  .search-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
  }

  .search-button > span {
    font-size: 13px;
    line-height: 1;
  }

  .search-button > strong {
    display: block;
    font-size: inherit;
    line-height: 1.1;
  }

  .hero-copy,
  .hero-title-row,
  .hero-title-row h1,
  #footer-title {
    text-align: left;
  }

  .hero-title-row {
    justify-content: flex-start;
  }

  .hero-title-row .favorite-button,
  .full-favorite-button,
  .favorite-button.full-favorite-button {
    width: 28px;
    height: 28px;
  }

  body {
    padding-bottom: 172px;
  }

  .now-playing-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    min-height: 148px;
    padding: 9px 10px 10px;
    display: grid;
    grid-template-areas:
      "track controls"
      "mobile-progress mobile-progress";
    grid-template-columns: minmax(0, 1fr) minmax(168px, 48%);
    grid-template-rows: minmax(0, 1fr) 14px;
    align-items: center;
    gap: 7px 8px;
  }

  .footer-now-playing-trigger {
    grid-area: track;
    min-width: 0;
    min-height: 102px;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
  }

  .footer-now-playing-trigger > img {
    width: 56px;
    height: 56px;
  }

  .footer-track {
    min-width: 0;
    align-content: center;
    grid-template-rows: repeat(3, min-content);
    gap: 2px;
  }

  .footer-track > .footer-time,
  .now-playing-bar > .footer-progress-wrap {
    display: none;
  }

  .footer-track strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .footer-track > #footer-artist {
    font-size: 10px;
  }

  .footer-controls {
    grid-area: controls;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 5px;
  }

  .footer-device-stack {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transform: none;
  }

  .footer-device-meta {
    order: 1;
    min-width: 0;
    padding: 0;
    display: flex;
  }

  .footer-device {
    order: 2;
    width: auto;
    min-width: 0;
    gap: 4px;
  }

  .footer-device-icon {
    width: 24px !important;
    height: 24px !important;
  }

  .footer-device strong {
    max-width: 88px;
    margin: 0;
    font-size: 8px;
  }

  .footer-device small {
    font-size: 5px;
  }

  .footer-queue-open {
    min-height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 7px;
  }

  .footer-queue-label {
    display: inline;
  }

  .footer-transport-stack {
    width: 100%;
    justify-self: stretch;
  }

  .footer-controls > .footer-transport-stack .transport-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 22px 36px 22px 25px 25px;
    justify-content: center;
    align-items: center;
    column-gap: 3px;
    transform: none;
  }

  .footer-transport-stack .transport-skip {
    width: 22px;
    height: 30px;
  }

  .footer-transport-stack .transport-playpause {
    width: 36px;
    height: 36px;
  }

  .footer-transport-stack .transport-playpause:not(.is-playing) #control-playpause-icon {
    display: inline-block;
    font-size: 19px;
    line-height: 1;
    transform: translateX(1px);
  }

  .footer-transport-stack .transport-playpause.is-playing #control-playpause-icon {
    font-size: 13px;
    line-height: 1;
  }

  .footer-transport-stack .transport-repeat {
    width: 25px;
    height: 30px;
  }

  .footer-transport-stack .control-state {
    display: none;
  }

  .footer-mobile-progress-row {
    grid-area: mobile-progress;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    transform: translateY(-16px);
  }

  .footer-mobile-time {
    min-width: 0;
    height: 14px;
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 14px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .footer-mobile-progress-wrap {
    width: 100%;
    min-width: 0;
    height: 14px;
    display: flex;
    align-items: center;
    align-self: center;
  }

  .footer-mobile-progress-wrap .progress-track {
    width: 100%;
    height: 14px;
    min-height: 14px;
    margin-top: 0;
  }

  .footer-mobile-progress-wrap .progress-track::before,
  .footer-mobile-progress-wrap .progress-value {
    height: 6px;
  }
}

@media (max-width: 380px) {
  .now-playing-bar {
    grid-template-columns: minmax(0, 1fr) 168px;
  }

  .footer-now-playing-trigger {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px;
  }

  .footer-now-playing-trigger > img {
    width: 52px;
    height: 52px;
  }

  .footer-transport-stack .transport-playpause {
    width: 34px;
    height: 34px;
  }

  .footer-controls > .footer-transport-stack .transport-buttons {
    grid-template-columns: 21px 34px 21px 24px 24px;
    column-gap: 2px;
  }
}

/* WebPlay 2.9.8.3 · final full-player alignment overrides. */
@media (max-width: 820px) {
  /* Center against the full surface, not the grid space left after Close. */
  .now-playing-header {
    position: sticky;
  }

  .now-playing-header .full-quality {
    position: absolute;
    left: 50%;
    justify-self: auto;
    transform: translateX(-50%);
  }

  /* Keep the star directly beside the title instead of at the row's edge. */
  .full-title-row {
    position: static;
    width: 100%;
    justify-content: center;
    gap: 9px;
  }

  .full-title-row h1 {
    flex: 0 1 auto;
    max-width: calc(100% - 37px);
    padding-inline: 0;
  }

  .full-favorite-button,
  .favorite-button.full-favorite-button {
    position: static;
    right: auto;
  }
}

@media (min-width: 821px) {
  /* Keep title/star centered; align only artist and album to the left. */
  .full-track-copy > p,
  .full-track-copy > span {
    text-align: left;
  }
}

/* WebPlay 2.9.8.3 · keep desktop / Samsung desktop-site transport visually
   identical to the mobile transport size without changing the surrounding
   footer layout. The full player uses the same 62 px play circle as mobile. */
.full-transport .full-playpause {
  width: 62px;
  height: 62px;
}

@media (min-width: 821px) {
  .footer-transport-stack .transport-playpause {
    width: 36px;
    height: 36px;
  }

  .footer-transport-stack .transport-playpause:not(.is-playing) #control-playpause-icon {
    display: inline-block;
    font-size: 19px;
    line-height: 1;
    transform: translateX(1px);
  }

  .footer-transport-stack .transport-playpause.is-playing #control-playpause-icon {
    font-size: 13px;
    line-height: 1;
  }

  .footer-transport-stack .control-state {
    margin-top: 4px;
  }
}


/* WebPlay 2.9.8.3 · My Collection uses the exact same supplied star artwork
   as the now-playing favorite button and can start the complete saved list. */
.collection-play-all {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-light);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.collection-play-all:hover,
.collection-play-all:focus-visible {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  outline: none;
}

.collection-play-all:disabled {
  opacity: .38;
  cursor: default;
}

.collection-remove {
  display: grid;
  place-items: center;
  padding: 0;
}

.collection-star-image {
  width: 31px;
  height: 31px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .28));
}

@media (max-width: 820px) {
  .collection-play-all {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 10px;
  }
  .collection-star-image {
    width: 27px;
    height: 27px;
  }
}

/* WebPlay 2.9.8.3 · final transport / repeat geometry.
   Keep Play/Pause dimensions untouched. Previous/Next and repeat are slightly
   larger, while repeat 1/A are vector strokes inside the same 24x24 SVG. This
   removes all font-baseline / Samsung Internet optical-offset ambiguity. */
.transport-repeat,
.full-repeat-dock .repeat-button,
.full-transport .repeat-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  text-align: center;
}

.footer-transport-stack .transport-repeat {
  border-radius: 50%;
}

.repeat-glyph {
  display: block;
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.repeat-glyph .repeat-loop {
  stroke-width: 1.9;
}

/* The 1/A mark is drawn as centred SVG geometry, not font text. It is large
   enough to read on mobile but still thinner than the repeat loop so the two
   shapes do not merge. No browser-dependent CSS transform is used. */
.repeat-glyph .repeat-mode-mark {
  stroke-width: 1.15;
}

.transport-repeat > .repeat-glyph {
  width: 21px;
  height: 21px;
}

.full-repeat-dock .repeat-button > .repeat-glyph,
.full-transport .repeat-button > .repeat-glyph {
  width: 27px;
  height: 27px;
}

#full-control-previous,
#full-control-next {
  font-size: 22px;
  line-height: 1;
}

.transport-skip {
  font-size: 16px;
  line-height: 1;
}

@media (min-width: 821px) {
  /* Equal visible gaps: Previous / Play / Next / Repeat-one / Repeat-all. */
  .footer-controls > .footer-transport-stack .transport-buttons {
    width: auto;
    grid-template-columns: 26px 40px 26px 32px 32px;
    column-gap: 8px;
    justify-content: center;
    align-items: center;
  }

  .footer-transport-stack #control-repeat-one {
    margin-left: 0;
  }

  .footer-transport-stack .transport-skip {
    width: 26px;
  }

  .footer-transport-stack .transport-playpause {
    width: 40px;
    height: 40px;
  }

  .footer-transport-stack .transport-repeat {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  #full-control-previous,
  #full-control-next {
    font-size: 21px;
  }

  .full-repeat-dock .repeat-button > .repeat-glyph,
  .full-transport .repeat-button > .repeat-glyph {
    width: 25px;
    height: 25px;
  }

  .transport-skip {
    font-size: 15px;
  }

  .transport-repeat > .repeat-glyph {
    width: 20px;
    height: 20px;
  }
}


/* WebPlay 2.9.9.1 · Composer moves below Artist and mobile signature returns. */
.artist-composer-card {
  margin-top: 18px;
}

@media (min-width: 821px) {
  .tab-bar {
    grid-template-columns: repeat(6, minmax(104px, 1fr)) minmax(104px, .72fr);
  }
}

@media (max-width: 820px) {
  .tab-bar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .brand-signature {
    display: inline;
    flex: 0 0 auto;
    max-width: 92px;
    overflow: hidden;
    color: var(--accent-light);
    font-size: clamp(11px, 3.1vw, 13px);
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    transform: translateY(-3px);
  }
}

/* WebPlay 2.9.9.7 · compact mobile favourite centered beside the track title. */
@media (max-width: 820px) {
  .hero-title-row {
    gap: 7px;
    align-items: center;
  }

  .hero-title-row .favorite-button {
    width: 22px;
    height: 22px;
    align-self: center;
    transform: translateY(-3px);
  }

  .hero-title-row .favorite-star-image {
    width: 22px;
    height: 22px;
  }

  .full-favorite-button,
  .favorite-button.full-favorite-button {
    width: 24px;
    height: 24px;
  }
}


/* 2.9.9.7 · offscreen search rows should not compete with live audio. */
.search-result-item {
  content-visibility: auto;
  contain-intrinsic-size: 96px;
}

/* WebPlay 2.9.9.7.2 · stable header Output Zone, compact Works tools, unified clock and My Collection. */
.site-header {
  justify-content: space-between !important;
}
.header-actions {
  margin-left: auto;
  position: relative;
  z-index: 1;
}
/* The picker moved from the hero card to the header in 2.9.9.7.2.
   The existing menu backdrop uses z-index:1000; raise the header itself while
   the menu is open so backdrop-filter stacking contexts cannot cover the menu. */
body.zone-menu-open .site-header {
  position: relative;
  z-index: 1400;
}
body.zone-menu-open .hero-card {
  z-index: auto;
}
.header-zone-picker {
  margin-right: 0 !important;
  margin-left: 0;
}
.header-zone-button {
  min-width: 184px;
  min-height: 54px;
  padding-block: 8px;
}
.header-zone-picker .zone-menu {
  left: auto !important;
  right: 0 !important;
  transform: none !important;
}

.hero-progress-inline {
  margin-top: 34px;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: 18px;
}
.hero-progress-inline .hero-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #807b8e;
  font-size: 16px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hero-progress-inline .progress-track {
  margin-top: 0;
  width: 100%;
}

.work-tools-hero {
  min-height: 0;
  padding: clamp(28px, 4vw, 46px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background:
    radial-gradient(circle at 88% 22%, rgba(var(--accent-rgb), .18), transparent 30%),
    linear-gradient(120deg, var(--surface-accent), var(--surface-2) 58%, var(--surface));
}
.work-tools-hero > .section-label { margin: 0; }
.work-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.work-tool-button {
  min-height: 58px;
  width: 100%;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
}
.work-tools-hero .work-reset-state {
  max-width: none;
  width: 100%;
  text-align: left;
  min-height: 18px;
}

.score-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}
.album-favorite-button {
  min-height: 48px;
  padding: 0 14px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}
.album-favorite-button .favorite-star-image { width: 28px; height: 28px; object-fit: contain; }
.album-favorite-button.is-active,
.album-favorite-button[aria-pressed="true"] {
  border-color: #ffbd22;
  background: color-mix(in srgb, #ffd13f 13%, var(--surface));
}
.album-favorite-button:disabled { opacity: .38; cursor: default; }

.collection-dashboard {
  padding: clamp(22px, 4vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 20%, rgba(var(--accent-rgb), .13), transparent 30%),
    var(--surface);
}
.collection-dashboard-copy { min-width: 0; }
.collection-dashboard h1 {
  margin: 4px 0 7px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.035em;
}
.collection-state { margin: 0; min-height: 1.45em; }
.collection-state:empty { display: none; }
.collection-summary {
  display: flex;
  align-items: center;
  gap: 8px;
}
.collection-summary > .collection-summary-link {
  min-width: 78px;
  min-height: 62px;
  padding: 9px 12px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.collection-summary > .collection-summary-link:hover,
.collection-summary > .collection-summary-link:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  outline: none;
}
.collection-summary strong { color: var(--text); font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
.collection-summary small { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.collection-columns {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 16px;
}
.collection-card {
  margin-top: 0 !important;
  /* NOW SINGING is sticky above this card. JavaScript updates the clearance
     from the card's measured height so summary-button scrolling never hides
     half an album list or the first saved track. */
  scroll-margin-top: var(--current-lyric-sticky-clearance, 320px);
}
.collection-section-heading { margin-bottom: 14px; }
.collection-section-heading h2 { margin: 4px 0 0; }
.collection-album-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
}
.collection-album-item {
  min-width: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}
.collection-album-play {
  width: 100%;
  padding: 10px;
  display: grid;
  gap: 8px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.collection-album-play:hover,
.collection-album-play:focus-visible { background: color-mix(in srgb, var(--accent) 7%, transparent); outline: none; }
.collection-album-play > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.collection-album-copy { min-width: 0; display: grid; gap: 4px; padding-right: 32px; }
.collection-album-copy strong,
.collection-album-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collection-album-copy strong { font-size: 13px; }
.collection-album-copy span { color: var(--muted); font-size: 10px; }
.collection-album-remove {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #ffbd22;
  border-radius: 50%;
  background: color-mix(in srgb, #ffd13f 12%, var(--surface));
  cursor: pointer;
}
.collection-album-remove img { width: 22px; height: 22px; object-fit: contain; }
.collection-empty.collection-album-empty { min-height: 160px; grid-column: 1 / -1; }

@media (max-width: 900px) {
  .collection-dashboard { grid-template-columns: minmax(0, 1fr) auto; }
  .collection-columns { grid-template-columns: 1fr; }
  .work-tool-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .hero-progress-inline .hero-time { font-size: 11px; }
}

@media (max-width: 720px) {
  .site-header { gap: 10px; padding-inline: 14px; }
  .brand { gap: 10px; min-width: 0; }
  .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
  .brand-product { font-size: 27px; }
  .brand-signature { display: none; }
  .header-zone-button { min-width: 0; width: min(44vw, 178px); min-height: 46px; grid-template-columns: 26px minmax(0,1fr) 14px; gap: 7px; padding: 6px 9px; }
  .header-zone-button .zone-device-icon { width: 24px; height: 24px; }
  .header-zone-button .zone-button-copy small { font-size: 7px; margin-bottom: 2px; }
  .header-zone-button .zone-button-copy strong { font-size: 10px; }
  .header-zone-picker .zone-menu { width: min(390px, calc(100vw - 20px)); right: 0 !important; left: auto !important; }
  .hero-progress-inline { margin-top: 28px; gap: 10px; }
  .work-tools-hero { padding: 24px 18px; }
  .work-tool-button { min-height: 50px; font-size: 12px; }
  .collection-dashboard { grid-template-columns: 1fr; padding: 20px; }
  .collection-summary { justify-content: flex-start; }
  .collection-album-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-card { align-items: flex-start; }
  .score-card-actions { flex-direction: column-reverse; align-items: flex-end; }
  .album-favorite-button { min-height: 42px; font-size: 10px; }
}

@media (max-width: 480px) {
  .hero-progress-inline .hero-time { font-size: 10px; }
}

@media (max-width: 420px) {
  .header-zone-button { width: 42vw; }
  .collection-album-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
}

/* WebPlay 2.9.9.35 · serialized stream transitions and native playback guards. */
.hero-card {
  grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
  row-gap: clamp(18px, 3vw, 30px);
}

.hero-progress-inline {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  margin-top: 0;
}

.hero-progress-inline .progress-track {
  min-width: 0;
}

.album-favorite-button.is-active .favorite-star-image,
.album-favorite-button[aria-pressed="true"] .favorite-star-image {
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .38));
}

.score-card-actions {
  min-height: 116px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.collection-label-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  object-fit: contain;
  vertical-align: -3px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .28));
}

.collection-dashboard {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
}

.collection-dashboard-copy {
  padding-right: 58px;
}

.collection-item {
  position: relative;
  display: block;
}

.collection-play {
  width: 100%;
  padding-right: 76px;
}

.collection-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  margin: 0;
}

.collection-album-remove {
  top: 9px;
  bottom: auto;
}

.lyric-line {
  padding-right: 76px;
}

@media (max-width: 820px) {
  .hero-card {
    grid-template-columns: 115px minmax(0, 1fr);
  }

  .score-card-actions {
    min-height: 104px;
    flex-direction: column;
    align-items: flex-end;
  }

  .lyric-time {
    display: block;
    top: 16px;
    right: 10px;
    color: var(--muted);
  }

  .lyric-line {
    padding-right: 70px;
  }

  .collection-dashboard-copy {
    padding-right: 52px;
  }

}

@media (max-width: 480px) {
  .hero-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .hero-progress-inline {
    gap: 10px;
  }
}

/* WebPlay 2.9.9.35 · collection proportions, stacked saved lists and
   Samsung Internet Desktop-site containment. */
.collection-dashboard {
  grid-template-columns: minmax(0, 1fr) auto;
}

.collection-dashboard-copy {
  min-width: 0;
  padding-right: 0;
}

.collection-dashboard h1 {
  font-size: clamp(34px, 8vw, 50px);
  line-height: 1.08;
  white-space: nowrap;
}

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

.collection-tracks-heading > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.collection-tracks-heading .section-label {
  margin: 0;
}

.collection-play-all-inline {
  min-height: 40px;
  padding-inline: 15px;
  font-size: 11px;
}

@media (max-width: 720px) {
  .collection-dashboard {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .collection-dashboard h1 {
    white-space: nowrap;
  }

  .collection-summary {
    justify-content: flex-start;
  }

  .collection-tracks-heading > div {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .collection-play-all-inline {
    width: 100%;
  }
}

/* Samsung Internet's Desktop site reports a tablet/desktop viewport from an
   Android phone. The class is set by app-2.9.9.35.js only for that mode. A
   bounded zoom restores the physical portrait ratio; these scoped grids keep
   the header and five transport buttons from sharing a collapsed desktop row. */
html.is-mobile-desktop-site {
  zoom: var(--mobile-desktop-scale, 1);
}

html.is-mobile-desktop-site body {
  width: calc(100% / var(--mobile-desktop-scale, 1));
  min-width: 0;
  overflow-x: hidden;
  padding-bottom: 190px;
}

html.is-mobile-desktop-site .site-header {
  gap: 10px;
  padding-inline: 14px;
}

html.is-mobile-desktop-site .brand {
  min-width: 0;
  gap: 10px;
}

html.is-mobile-desktop-site .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

html.is-mobile-desktop-site .brand-product {
  font-size: 27px;
}

html.is-mobile-desktop-site .brand-signature {
  display: none;
}

html.is-mobile-desktop-site .header-zone-button {
  min-width: 0;
  width: min(44vw, 178px);
  min-height: 46px;
  grid-template-columns: 26px minmax(0, 1fr) 14px;
  gap: 7px;
  padding: 6px 9px;
}

html.is-mobile-desktop-site .tab-bar {
  height: 58px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-flow: row;
  overflow: hidden;
}

html.is-mobile-desktop-site .tab-button,
html.is-mobile-desktop-site .search-button {
  width: auto;
  min-width: 0;
  min-height: 58px;
  padding: 3px 1px;
  justify-content: center;
  border-bottom-width: 3px;
  font-size: clamp(8px, 2.3vw, 11px);
  line-height: 1.15;
  letter-spacing: 0;
  white-space: normal;
}

html.is-mobile-desktop-site .search-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

html.is-mobile-desktop-site .content-grid {
  grid-template-columns: 1fr;
}

html.is-mobile-desktop-site .collection-dashboard {
  grid-template-columns: 1fr;
}

html.is-mobile-desktop-site .collection-album-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.is-mobile-desktop-site .now-playing-bar {
  left: 10px;
  right: 10px;
  bottom: 10px;
  min-height: 148px;
  padding: 9px 10px 10px;
  display: grid;
  grid-template-areas:
    "track controls"
    "mobile-progress mobile-progress";
  grid-template-columns: minmax(0, 1fr) minmax(168px, 48%);
  grid-template-rows: minmax(0, 1fr) 14px;
  align-items: center;
  gap: 7px 8px;
}

html.is-mobile-desktop-site .footer-now-playing-trigger {
  grid-area: track;
  min-width: 0;
  min-height: 102px;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
}

html.is-mobile-desktop-site .footer-now-playing-trigger > img {
  width: 56px;
  height: 56px;
}

html.is-mobile-desktop-site .footer-track {
  min-width: 0;
  align-content: center;
  grid-template-rows: repeat(3, min-content);
  gap: 2px;
}

html.is-mobile-desktop-site .footer-track > .footer-time,
html.is-mobile-desktop-site .now-playing-bar > .footer-progress-wrap {
  display: none;
}

html.is-mobile-desktop-site .footer-controls {
  grid-area: controls;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 5px;
}

html.is-mobile-desktop-site .footer-device-stack {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: none;
}

html.is-mobile-desktop-site .footer-device-meta {
  order: 1;
  min-width: 0;
  padding: 0;
  display: flex;
}

html.is-mobile-desktop-site .footer-device {
  order: 2;
  width: auto;
  min-width: 0;
  gap: 4px;
}

html.is-mobile-desktop-site .footer-device-icon {
  width: 24px !important;
  height: 24px !important;
}

html.is-mobile-desktop-site .footer-device strong {
  max-width: 88px;
  margin: 0;
  font-size: 8px;
}

html.is-mobile-desktop-site .footer-device small {
  font-size: 5px;
}

html.is-mobile-desktop-site .footer-queue-open {
  min-height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 7px;
}

html.is-mobile-desktop-site .footer-transport-stack {
  width: 100%;
  justify-self: stretch;
}

html.is-mobile-desktop-site .footer-controls > .footer-transport-stack .transport-buttons {
  width: 100%;
  display: grid;
  grid-template-columns: 25px 48px 25px 27px 27px;
  justify-content: center;
  align-items: center;
  column-gap: 2px;
  transform: none;
}

html.is-mobile-desktop-site .footer-transport-stack .transport-skip {
  width: 25px;
  height: 34px;
}

html.is-mobile-desktop-site .footer-transport-stack .transport-playpause {
  width: 48px;
  height: 48px;
}

html.is-mobile-desktop-site .footer-transport-stack .transport-repeat {
  width: 27px;
  height: 34px;
}

html.is-mobile-desktop-site .footer-transport-stack .control-state {
  display: none;
}

html.is-mobile-desktop-site .footer-mobile-progress-row {
  grid-area: mobile-progress;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  transform: translateY(-16px);
}

html.is-mobile-desktop-site .footer-mobile-progress-wrap {
  width: 100%;
  min-width: 0;
  height: 14px;
  display: flex;
  align-items: center;
}

html.is-mobile-desktop-site .footer-mobile-progress-wrap .progress-track {
  width: 100%;
  height: 14px;
  min-height: 14px;
  margin-top: 0;
}

/* WebPlay 2.9.9.35 · UI-only mobile scroll, seek preview and title sizing. */
.seek-track.is-seekable {
  touch-action: pan-y;
}

.seek-track.is-scrubbing {
  overflow: visible;
  cursor: grabbing;
}

.seek-track.is-scrubbing .progress-value {
  transition: none;
}

.seek-track.is-scrubbing::after {
  content: attr(data-seek-preview);
  position: absolute;
  left: var(--seek-preview-percent, 0%);
  bottom: calc(50% + 10px);
  z-index: 8;
  min-width: 42px;
  padding: 5px 8px 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 62%, transparent);
  border-radius: 8px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 94%, #000 6%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .36);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}

/* One visual step smaller than the previous release. Body copy and controls stay unchanged. */
.hero-copy h1 {
  font-size: clamp(27px, 3.6vw, 54px);
}

.score-card h1,
.profile-hero h1,
.lyrics-heading h1,
.work-hero h1 {
  font-size: clamp(31px, 4.5vw, 56px);
}

.full-track-copy h1 {
  font-size: clamp(29px, 4vw, 52px);
}

.collection-dashboard h1 {
  font-size: clamp(28px, 3.6vw, 44px);
}

@media (max-width: 820px) {
  /* overflow:hidden created a scroll container only on ALBUM, so its sticky
     NOW SINGING card was anchored to that panel instead of the viewport.
     clip keeps the radar's horizontal guard without creating a scrollport. */
  #panel-album.is-active {
    overflow-x: clip;
    overflow-y: visible;
  }

  .hero-copy h1 {
    font-size: clamp(18px, 5.4vw, 27px);
  }

  .score-card h1,
  .profile-hero h1,
  .lyrics-heading h1,
  .work-hero h1 {
    font-size: clamp(25px, 7.2vw, 36px);
  }

  .collection-dashboard h1 {
    font-size: clamp(27px, 7.2vw, 44px);
  }

  .full-track-copy h1 {
    font-size: clamp(27px, 7.2vw, 40px);
  }

  .footer-mobile-progress-wrap .seek-track.is-scrubbing::after {
    bottom: calc(50% + 8px);
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .full-track-copy h1 {
    font-size: clamp(25px, 7.6vw, 34px);
  }
}

html.is-mobile-desktop-site .hero-copy h1 {
  font-size: clamp(18px, 5.4vw, 27px);
}

html.is-mobile-desktop-site .score-card h1,
html.is-mobile-desktop-site .profile-hero h1,
html.is-mobile-desktop-site .lyrics-heading h1,
html.is-mobile-desktop-site .work-hero h1 {
  font-size: clamp(25px, 7.2vw, 36px);
}
.collection-album-status:not(:empty) {
  display: block;
  padding: 0 14px 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
