/* Shared application shell. Public views, blind views and private views stay separate. */
:root {
  /* A+I CHART v6.1 — warm ivory paper, ink text, Claude-style terracotta accent */
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-2: #f4f2ec;
  --surface-3: #ece9e0;
  --line: #e7e3d8;
  --line-strong: #d6d0c2;
  --ink: #1f1e1c;
  --ink-2: #3d3a35;
  --muted: #6f6b63;
  --accent: #d97757;
  --accent-strong: #c15f3c;
  --accent-deep: #9e4a2e;
  --accent-soft: #f5e1d6;
  --accent-tint: #fbf1eb;
  --ok: #4f7a5a;
  --paper: var(--bg);
  --mint: var(--accent-soft);
  --font-sans: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --font-serif: 'Source Serif 4', 'Noto Serif KR', 'Nanum Myeongjo', Georgia, serif;
  --shadow-1: 0 1px 2px rgb(31 30 28 / 0.04), 0 2px 8px rgb(31 30 28 / 0.04);
  --shadow-2: 0 2px 6px rgb(31 30 28 / 0.05), 0 12px 32px rgb(31 30 28 / 0.08);
  --side: 236px;
  --header: 72px;
  --player: 96px;
  --mobile-nav: 64px;
  --radius: 16px;
  --radius-sm: 10px;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  accent-color: var(--accent-strong);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}
button svg,
a svg {
  pointer-events: none;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.38;
  letter-spacing: -1.4px;
  margin-bottom: 0;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.55px;
  line-height: 1.45;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.subtle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--accent);
  margin-bottom: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 200;
  top: -100px;
  left: 20px;
  background: white;
  padding: 12px;
  border: 2px solid var(--accent);
}
.skip-link:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
.mobile-break,
.mobile-brand {
  display: none;
}
.sidebar {
  position: fixed;
  inset: 0 auto var(--player) 0;
  width: var(--side);
  padding: 34px 18px 24px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  padding: 0 10px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 20px;
  letter-spacing: -2px;
  font-weight: 500;
}
.brand-dot {
  color: var(--accent);
}
.nav-caption {
  padding-left: 10px;
  font-size: 11px;
  color: var(--muted);
  margin: 18px 0 32px;
}
.desktop-nav {
  display: grid;
  gap: 8px;
}
.desktop-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.desktop-nav a:hover {
  background: var(--surface-2);
}
.desktop-nav a[aria-current='page'] {
  background: var(--line);
  color: var(--accent-strong);
}
.nav-live {
  font-size: 9px;
  background: var(--surface);
  padding: 3px 5px;
  border-radius: 5px;
  margin-left: auto;
  color: var(--ink-2);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.6;
}
.sidebar-bottom p {
  margin: 7px 0 10px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-strong);
  border-radius: 50%;
  margin-right: 7px;
  flex-shrink: 0;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 5px 0;
  font-weight: 600;
}
.text-button svg {
  width: 15px;
  height: 15px;
}
.site-header {
  height: var(--header);
  margin-left: var(--side);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 97%, transparent);
}
.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 460px;
  flex: 1;
}
.search-form svg {
  color: var(--muted);
}
.search-form input {
  width: 100%;
  background: transparent;
  border: 0;
  font-size: 12px;
  padding: 12px 0;
  min-width: 0;
}
.search-submit {
  font-size: 11px;
  color: var(--muted);
  padding: 8px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.demo-badge {
  font-size: 10px;
  color: var(--muted);
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--line);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 11px 17px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.button-dark {
  background: var(--ink);
  color: var(--surface);
}
.button-dark:hover {
  background: var(--accent-strong);
}
.button-outline {
  background: transparent;
  border: 1px solid var(--line-strong);
}
.button-outline:hover:not(:disabled) {
  background: var(--line);
}
.button svg {
  width: 16px;
  height: 16px;
}
.full {
  width: 100%;
}
main {
  margin-left: var(--side);
  padding: 35px 40px calc(var(--player) + 24px);
  max-width: 1680px;
  outline: none;
}
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.date-label {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.hero {
  border-radius: var(--radius);
  background: var(--line);
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  min-height: 318px;
  overflow: hidden;
  position: relative;
}
.hero-copy {
  padding: 30px 35px 32px;
  z-index: 1;
}
.pill {
  display: inline-flex;
  align-items: center;
  background: var(--line);
  color: var(--ink-2);
  border-radius: 20px;
  font-size: 10px;
  padding: 5px 9px;
  white-space: nowrap;
  gap: 2px;
}
.pill-light {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 10px;
}
.hero h2 {
  font-size: 36px;
  line-height: 1.28;
  letter-spacing: -1.6px;
  margin: 19px 0 14px;
}
.hero p {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 23px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-link {
  font-size: 11px;
  font-weight: 600;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}
.record {
  width: 245px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, var(--ink) 0 2px, var(--ink) 3px 4px, var(--ink) 5px 7px);
  box-shadow: 14px 15px 0 color-mix(in srgb, var(--accent-strong) 12%, transparent);
  transform: rotate(-15deg);
  display: grid;
  place-items: center;
}
.record-label {
  display: grid;
  align-content: center;
  text-align: center;
  width: 98px;
  height: 98px;
  border: 5px solid var(--ink);
  background: var(--line-strong);
  border-radius: 50%;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 700;
  line-height: 1.5;
}
.record-label span {
  font-size: 17px;
  margin-top: 5px;
  letter-spacing: 0;
}
.record-caption {
  position: absolute;
  bottom: 23px;
  right: 26px;
  font-size: 9px;
  letter-spacing: 2px;
  line-height: 1.7;
  text-align: right;
  color: var(--ink-2);
}
.art-cross {
  position: absolute;
  top: 28px;
  right: 33px;
  font-size: 25px;
  font-weight: 200;
  color: var(--muted);
}
.round-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 3px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  flex-wrap: wrap;
}
.round-strip > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.round-strip strong {
  font-size: 11px;
}
.round-strip > div > span:last-child {
  color: var(--muted);
}
.round-strip > .text-button {
  margin-left: auto;
}
.small-status {
  padding: 4px 6px;
  background: var(--line);
  border-radius: 5px;
  color: var(--accent-strong);
  font-size: 9px;
}
.small-status.secondary {
  background: var(--line);
  color: var(--accent-strong);
}
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  gap: 32px;
  margin-top: 32px;
}
.home-primary {
  min-width: 0;
}
.section-block {
  margin-bottom: 38px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 19px;
  margin-bottom: 0;
}
.section-heading .eyebrow {
  margin-bottom: 5px;
}
.section-description {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.8;
}
.text-link {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.song-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.song-card {
  min-width: 0;
}
.cover {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  font-size: 13px;
  letter-spacing: 4px;
  font-weight: 600;
  isolation: isolate;
}
.cover::before,
.cover::after {
  content: '';
  position: absolute;
  z-index: -1;
}
.cover-1 {
  background: var(--ink-2);
}
.cover-1::before {
  width: 150%;
  height: 150%;
  border: 1px solid var(--muted);
  border-radius: 50%;
  left: 30%;
  top: 30%;
  box-shadow:
    0 0 0 18px var(--ink-2),
    0 0 0 19px var(--muted),
    0 0 0 40px var(--ink-2),
    0 0 0 41px var(--muted);
}
.cover-2 {
  background: var(--line-strong);
  color: var(--ink-2);
}
.cover-2::before {
  width: 120%;
  height: 80%;
  background: var(--muted);
  transform: rotate(-28deg);
  left: -10%;
  top: 65%;
}
.cover-2::after {
  width: 38%;
  height: 38%;
  background: var(--accent-soft);
  border-radius: 50%;
  top: 20%;
  right: 15%;
}
.cover-3 {
  background: var(--muted);
}
.cover-3::before {
  width: 70%;
  height: 150%;
  background: var(--muted);
  transform: rotate(36deg);
  left: 70%;
  top: -20%;
}
.cover-3::after {
  width: 60%;
  height: 140%;
  background: var(--ink-2);
  transform: rotate(36deg);
  left: -20%;
  top: -10%;
}
.cover-4 {
  background: var(--muted);
}
.cover-4::before {
  width: 66%;
  height: 66%;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  left: 17%;
  top: 17%;
  box-shadow:
    0 0 0 10px var(--accent),
    0 0 0 11px var(--accent);
}
.cover-5 {
  background: var(--ink-2);
}
.cover-6 {
  background: var(--muted);
}
.cover-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--ink) 13%, transparent);
}
.cover-play svg {
  width: 15px;
  height: 15px;
}
.song-card h3 {
  font-size: 13px;
  margin: 12px 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.2px;
}
.song-card > p {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 8px;
}
.song-card .pill {
  font-size: 9px;
  padding: 4px 7px;
}
.song-card .card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-detail {
  font-size: 10px;
  color: var(--muted);
  padding: 3px;
}
.activity-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.compact {
  align-items: center;
  margin-bottom: 15px;
}
.compact h2 {
  font-size: 14px;
}
.activity-score {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 4px;
}
.activity-score strong {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -1px;
}
.activity-score > span {
  font-size: 11px;
  color: var(--muted);
}
.activity-card > .muted {
  font-size: 10px;
}
.activity-list {
  display: grid;
  gap: 13px;
  margin: 23px 0;
}
.activity-list label {
  font-size: 10px;
  color: var(--ink-2);
  display: block;
}
.activity-list label > span {
  float: right;
  color: var(--muted);
}
.activity-list progress {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 8px;
  appearance: none;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}
.activity-list progress::-webkit-progress-bar {
  background: var(--line);
}
.activity-list progress::-webkit-progress-value {
  background: var(--muted);
  border-radius: 10px;
}
.activity-list progress::-moz-progress-bar {
  background: var(--muted);
}
.rail-note {
  margin-top: 23px;
  padding: 0 4px;
}
.rail-note h2 {
  font-size: 15px;
}
.rail-note > a {
  font-size: 11px;
  line-height: 1.8;
}
.rail-note > p:last-child {
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
}
.chart-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
.chart-table th {
  font-size: 9px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
}
.chart-table td {
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.chart-table th:first-child,
.chart-table td:first-child {
  padding-left: 0;
  width: 35px;
}
.rank {
  font-size: 14px;
  color: var(--muted);
}
.chart-song {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.chart-cover {
  width: 42px;
  flex-shrink: 0;
  border-radius: 7px;
  font-size: 8px;
  letter-spacing: 1px;
}
.chart-song strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
}
.chart-song small {
  color: var(--muted);
  font-size: 9px;
}
.chart-score {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.chart-play {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.chart-play svg {
  width: 13px;
  height: 13px;
}
.change-up {
  color: var(--muted);
  font-size: 10px;
}
.change-flat {
  color: var(--muted);
  font-size: 10px;
}
.section-footnote {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 22px;
}
.filter-bar {
  display: flex;
  gap: 8px;
  margin: 24px 0 20px;
  flex-wrap: wrap;
}
.filter-bar button {
  font-size: 12px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--muted);
}
.filter-bar button[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.discovery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
}
.chart-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 15px;
}
.notice-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 12px;
  line-height: 1.7;
  flex-wrap: wrap;
}
.notice-divider {
  margin: 0 12px;
  color: var(--muted);
}
.audition-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 32px;
  margin-top: 27px;
}
.blind-stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 35px;
  text-align: center;
}
.blind-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin: 0 auto 25px;
  background: var(--line);
  border-radius: 50%;
  overflow: hidden;
}
.blind-art > span {
  font-size: 62px;
  font-weight: 200;
  color: var(--muted);
}
.blind-orbit {
  position: absolute;
  width: 130%;
  height: 55%;
  border: 1px solid var(--muted);
  border-radius: 50%;
  transform: rotate(-28deg);
}
.blind-stage h2 {
  font-size: 25px;
  margin: 12px 0;
}
.blind-stage p {
  font-size: 13px;
  color: var(--muted);
}
.blind-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 25px 0 20px;
}
.blind-stage .subtle {
  font-size: 10px;
}
.audition-guide {
  padding: 12px 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.audition-guide h2 {
  font-size: 17px;
  color: var(--ink);
}
.audition-guide h3 {
  font-size: 15px;
  color: var(--ink);
}
.audition-guide ol {
  padding-left: 20px;
}
.audition-guide li {
  margin-bottom: 13px;
}
.audition-guide hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
.studio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.studio-stats article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.studio-stats article > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.studio-stats strong {
  font-size: 32px;
  display: block;
  margin-top: 15px;
  letter-spacing: -1px;
}
.studio-stats small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.studio-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 20px;
}
.studio-panel > h2 {
  font-size: 18px;
}
.my-track {
  display: flex;
  align-items: center;
  gap: 18px;
}
.my-track > .cover {
  width: 60px;
  flex-shrink: 0;
}
.my-track h3 {
  margin-bottom: 5px;
}
.my-track p {
  margin: 0;
}
.my-track > .button:first-of-type {
  margin-left: auto;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 25px 0;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 20px;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
}
.metrics-grid strong {
  display: block;
  font-size: 18px;
  color: var(--ink);
  margin-top: 9px;
}
.score-details {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 12px;
}
.score-details summary {
  cursor: pointer;
  font-weight: 600;
}
.score-details dl > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.score-details dd {
  margin: 0;
  white-space: nowrap;
}
.score-details .subtle {
  margin: 15px 0 0;
}
.community-list {
  display: grid;
  gap: 18px;
}
.community-list article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}
.community-list h2 {
  font-size: 20px;
  margin: 14px 0 10px;
}
.community-list p {
  font-size: 13px;
  color: var(--muted);
}
.community-list footer {
  font-size: 11px;
  color: var(--muted);
}
.empty-state {
  padding: 55px 25px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}
.empty-state h2 {
  font-size: 18px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 24px 0;
  display: flex;
  gap: 17px;
  align-items: center;
  flex-wrap: wrap;
}
.site-footer > span:first-child {
  font-size: 13px;
  font-weight: 700;
}
.site-footer p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.site-footer > .subtle {
  margin-left: auto;
  font-size: 9px;
}
.site-footer > .text-button {
  font-size: 10px;
}
.global-player {
  height: var(--player);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 14px 30px;
  box-shadow: 0 -5px 20px color-mix(in srgb, var(--ink) 2%, transparent);
}
.player-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.player-cover {
  width: 52px;
  height: 52px;
  background: var(--line);
  display: grid;
  place-items: center;
  border-radius: 9px;
  flex-shrink: 0;
  color: var(--ink-2);
}
.player-track strong {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 270px;
}
.player-track > div:last-child {
  min-width: 0;
}
.player-track span:not([data-icon]) {
  font-size: 10px;
  color: var(--muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin-bottom: 11px;
}
.player-controls button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
}
.player-controls .play-main {
  width: 34px;
  height: 34px;
  color: white;
  background: var(--ink);
  border-radius: 50%;
}
.player-controls .play-main svg {
  width: 16px;
}
.player-controls [aria-pressed='true'] {
  color: var(--accent-strong);
}
.seek-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  color: var(--muted);
}
.seek-row input {
  width: 100%;
  accent-color: var(--muted);
  height: 4px;
}
.player-status {
  text-align: right;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  color: var(--muted);
}
.player-status .text-button {
  font-size: 10px;
  color: var(--ink-2);
}
.mobile-nav {
  display: none;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player) + 18px);
  transform: translateX(-50%);
  max-width: min(520px, 90vw);
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  z-index: 100;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--ink) 13%, transparent);
  line-height: 1.6;
}
dialog {
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 85dvh;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  padding: 25px 28px;
  color: var(--ink);
  overflow: auto;
}
dialog::backdrop {
  background: color-mix(in srgb, var(--ink) 44%, transparent);
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-header h2 {
  font-size: 20px;
  margin: 0;
}
.dialog-header button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
}
#dialog-content p,
#dialog-content li {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
}
#dialog-content ul,
#dialog-content ol {
  padding-left: 20px;
}
.dialog-field {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  font-size: 12px;
}
.dialog-field input,
.dialog-field textarea {
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}
.dialog-field textarea {
  min-height: 90px;
  resize: vertical;
}
.dialog-submit {
  margin-top: 12px;
}
@media (min-width: 1600px) {
  main {
    margin-right: auto;
  }
  .home-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .hero-art .record {
    width: 280px;
  }
}
@media (max-width: 1200px) {
  :root {
    --side: 204px;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  main {
    padding-left: 28px;
    padding-right: 28px;
  }
  .site-header {
    padding: 0 28px;
  }
  .hero-copy {
    padding: 30px 25px;
  }
  .hero h2 {
    font-size: 33px;
  }
  .record {
    width: 205px;
  }
  .home-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 23px;
  }
  .song-grid {
    gap: 12px;
  }
  .home-primary h2 {
    font-size: 17px;
  }
  .header-actions {
    gap: 10px;
  }
  .demo-badge {
    display: none;
  }
  .discovery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-primary .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .hero-actions {
    gap: 12px;
    flex-wrap: wrap;
  }
  .global-player {
    gap: 20px;
    padding: 14px 22px;
  }
}
@media (max-width: 1000px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
  .home-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .home-rail .rail-note {
    padding: 15px 10px;
  }
  .activity-list {
    grid-template-columns: 1fr 1fr;
  }
  .activity-score strong {
    font-size: 30px;
  }
  .hero-art .record {
    width: 175px;
  }
  .hero-art .record-label {
    width: 80px;
    height: 80px;
    font-size: 9px;
  }
  .record-caption {
    font-size: 8px;
  }
  .hero-copy p {
    font-size: 11px;
  }
  .audition-layout {
    grid-template-columns: 1fr;
  }
  .audition-guide {
    padding: 20px;
  }
  .global-player {
    grid-template-columns: 1fr 1fr;
  }
  .player-status {
    display: none;
  }
  .studio-stats {
    gap: 12px;
  }
  .studio-stats article {
    padding: 20px;
  }
  .studio-stats strong {
    font-size: 28px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  :root {
    --side: 0px;
    --header: 116px;
    --player: 114px;
  }
  .sidebar {
    display: none;
  }
  .site-header {
    height: var(--header);
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 13px;
    align-content: center;
  }
  .mobile-brand {
    display: block;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.5px;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-submit {
    min-height: 33px;
    padding: 7px 10px;
    font-size: 10px;
  }
  .header-submit svg {
    display: none;
  }
  .avatar {
    width: 29px;
    height: 29px;
  }
  .search-form {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0 12px;
    gap: 8px;
  }
  .search-form input {
    font-size: 11px;
    padding: 9px 0;
  }
  .search-form svg {
    width: 16px;
    height: 16px;
  }
  main {
    padding: 27px 20px calc(var(--player) + var(--mobile-nav) + 24px);
  }
  h1 {
    font-size: 25px;
    letter-spacing: -1px;
  }
  .page-title {
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
  }
  .page-title > .button {
    font-size: 10px;
    padding: 8px;
    min-height: 35px;
    flex-shrink: 0;
  }
  .mobile-break {
    display: block;
  }
  .date-label {
    display: none;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy {
    padding: 25px;
    max-width: 76%;
  }
  .hero h2 {
    font-size: 29px;
    letter-spacing: -1.2px;
    margin: 17px 0 12px;
  }
  .hero-copy p {
    font-size: 11px;
    margin-bottom: 18px;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-link {
    font-size: 10px;
  }
  .hero-art {
    position: absolute;
    inset: 0 -85px 0 auto;
    width: 200px;
    opacity: 0.55;
    pointer-events: none;
  }
  .hero-art .record {
    width: 190px;
    transform: rotate(-20deg);
  }
  .hero-art .record-label {
    width: 80px;
    height: 80px;
  }
  .record-caption,
  .art-cross {
    display: none;
  }
  .hero .pill-light {
    font-size: 9px;
  }
  .round-strip {
    gap: 13px 20px;
    padding: 17px 0;
    font-size: 10px;
  }
  .round-strip > .text-button {
    margin-left: 0;
    flex-basis: 100%;
    font-size: 10px;
  }
  .round-strip strong {
    font-size: 10px;
  }
  .round-strip > div {
    gap: 6px;
  }
  .home-layout {
    margin-top: 27px;
    gap: 0;
  }
  .section-block {
    margin-bottom: 28px;
  }
  .section-heading {
    margin-bottom: 14px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .home-primary .section-heading h2 {
    font-size: 17px;
  }
  .section-description {
    font-size: 11px;
  }
  .song-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .song-card h3 {
    font-size: 11px;
    margin-top: 9px;
  }
  .song-card > p {
    font-size: 9px;
  }
  .cover {
    border-radius: 9px;
    font-size: 10px;
    letter-spacing: 2px;
  }
  .cover-play {
    width: 27px;
    height: 27px;
    right: 7px;
    bottom: 7px;
  }
  .cover-play svg {
    width: 12px;
    height: 12px;
  }
  .song-card .pill {
    font-size: 8px;
    padding: 3px 5px;
  }
  .card-detail {
    font-size: 8px;
  }
  .home-rail {
    grid-template-columns: 1fr;
    margin-top: 7px;
    gap: 5px;
  }
  .activity-card {
    padding: 20px;
  }
  .activity-card .activity-list {
    margin: 18px 0;
  }
  .rail-note {
    display: none;
  }
  .chart-table {
    font-size: 10px;
  }
  .chart-table td {
    padding: 12px 5px;
  }
  .chart-table th {
    padding: 9px 5px;
  }
  .chart-song {
    gap: 8px;
  }
  .chart-cover {
    width: 35px;
    border-radius: 5px;
  }
  .chart-song strong {
    font-size: 11px;
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .chart-song small {
    font-size: 8px;
  }
  .chart-score {
    font-size: 12px;
  }
  .change-column {
    display: none;
  }
  .chart-play {
    width: 27px;
    height: 27px;
  }
  .chart-table th:first-child,
  .chart-table td:first-child {
    width: 22px;
  }
  .discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }
  .filter-bar {
    gap: 7px;
  }
  .filter-bar button {
    font-size: 10px;
    padding: 8px 12px;
  }
  .chart-meta {
    flex-direction: column;
    gap: 7px;
    font-size: 9px;
  }
  .notice-strip {
    font-size: 10px;
    padding: 13px;
  }
  .notice-divider {
    display: none;
  }
  .audition-layout {
    gap: 10px;
  }
  .blind-stage {
    padding: 25px 15px;
  }
  .blind-art {
    width: 145px;
    height: 145px;
  }
  .blind-stage h2 {
    font-size: 21px;
  }
  .audition-guide {
    padding: 20px 5px;
  }
  .studio-stats {
    gap: 8px;
    margin: 22px 0;
  }
  .studio-stats article {
    padding: 13px 10px;
  }
  .studio-stats article > span {
    font-size: 9px;
  }
  .studio-stats strong {
    font-size: 23px;
  }
  .studio-stats small {
    font-size: 9px;
  }
  .studio-panel {
    padding: 20px;
  }
  .my-track {
    gap: 12px;
    flex-wrap: wrap;
  }
  .my-track > .cover {
    width: 45px;
  }
  .my-track h3 {
    font-size: 15px;
  }
  .my-track p {
    font-size: 10px;
  }
  .my-track > .button:first-of-type {
    margin-left: 0;
  }
  .my-track .button {
    font-size: 10px;
    min-height: 35px;
  }
  .metrics-grid {
    font-size: 10px;
    padding: 15px;
  }
  .metrics-grid strong {
    font-size: 16px;
  }
  .score-details {
    font-size: 10px;
  }
  .score-details dd {
    font-size: 10px;
  }
  .score-details dt {
    max-width: 70%;
    line-height: 1.7;
  }
  .community-list article {
    padding: 22px;
  }
  .community-list h2 {
    font-size: 17px;
  }
  .community-list p {
    font-size: 12px;
  }
  .site-footer {
    gap: 12px;
    font-size: 10px;
  }
  .site-footer > .subtle {
    margin-left: 0;
    flex-basis: 100%;
  }
  .site-footer p {
    font-size: 9px;
  }
  .global-player {
    bottom: var(--mobile-nav);
    grid-template-columns: 1fr;
    gap: 8px;
    height: var(--player);
    padding: 11px 20px;
    align-content: center;
  }
  .player-track {
    gap: 10px;
    padding-right: 90px;
  }
  .player-cover {
    width: 30px;
    height: 30px;
    border-radius: 6px;
  }
  .player-cover svg {
    width: 16px;
    height: 16px;
  }
  .player-track strong {
    font-size: 10px;
    max-width: 220px;
  }
  .player-track span:not([data-icon]) {
    font-size: 8px;
  }
  .player-main {
    display: contents;
  }
  .player-controls {
    position: absolute;
    right: 17px;
    top: 13px;
    gap: 7px;
    margin: 0;
  }
  .player-controls button {
    width: 24px;
    height: 24px;
  }
  .player-controls .play-main {
    width: 29px;
    height: 29px;
  }
  .player-controls #previous-button {
    display: none;
  }
  .player-controls svg {
    width: 16px;
    height: 16px;
  }
  .seek-row {
    font-size: 8px;
    gap: 8px;
  }
  .player-status {
    display: flex;
    position: static;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    font-size: 8px;
  }
  .player-status .text-button {
    font-size: 8px;
    padding: 0;
  }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav);
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: var(--surface);
    border-top: 1px solid var(--line);
    z-index: 50;
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 8px;
    color: var(--muted);
  }
  .mobile-nav a[aria-current='page'] {
    color: var(--accent-strong);
    font-weight: 700;
  }
  .mobile-nav svg {
    width: 18px;
    height: 18px;
  }
  .toast {
    bottom: calc(var(--player) + var(--mobile-nav) + 12px);
    font-size: 11px;
  }
  .dialog-header h2 {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.cover-wrap {
  position: relative;
}
.discovery-grid .empty-state {
  grid-column: 1/-1;
}
.search-form button {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .hero-copy {
    max-width: 100%;
  }
  .hero h2 {
    font-size: 28px;
  }
  .hero-art {
    opacity: 0.18;
    right: -110px;
  }
}

/* Version 1.1 additions: components share the original layout tokens. */
.cover-wrap {
  position: relative;
}
.languages {
  display: flex;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
  flex-shrink: 0;
}
.languages button {
  font-size: 11px;
  padding: 7px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.languages button[aria-pressed='true'] {
  background: var(--line);
  color: var(--ink);
  font-weight: 700;
}
.nav-symbol {
  font-size: 22px;
  width: 22px;
  display: inline-block;
  text-align: center;
}
.desktop-nav a {
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-form button {
  white-space: nowrap;
  flex-shrink: 0;
}
.site-header {
  gap: 20px;
}
.header-actions {
  gap: 12px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.1px;
  line-height: 1.4;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
}
.home-hero-grid .hero {
  grid-template-columns: 1fr 0.5fr;
}
.hero h2 {
  font-size: 32px;
}
.hero-copy {
  padding: 28px;
}
.hero-art .record {
  width: 180px;
}
.notice-carousel {
  border-radius: 18px;
  padding: 25px;
  background: var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.notice-carousel h2 {
  font-size: 21px;
  line-height: 1.5;
  margin-top: 18px;
}
.notice-carousel p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-2);
}
.slide-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}
.slide-buttons button {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}
.slide-buttons span {
  font-size: 11px;
}
.rail-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
  margin-bottom: 18px;
  background: var(--surface);
}
.rail-card h2 {
  font-size: 17px;
}
.rail-card p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.rail-card .activity-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-strong);
}
.activity-number small {
  font-size: 13px;
  font-weight: 400;
}
.activity-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 11px;
  gap: 6px;
  margin: 14px 0;
}
.activity-item progress {
  width: 100%;
  height: 5px;
  accent-color: var(--ink-2);
}
.chart-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 20px 0 12px;
}
.chart-toolbar .button {
  font-size: 11px;
  min-height: 34px;
  padding: 9px 13px;
}
.chart-meta {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding: 20px 0;
}
.table-scroll {
  overflow-x: auto;
}
.chart-table {
  width: 100%;
  table-layout: fixed;
}
.chart-table th:nth-child(1) {
  width: 50px;
}
.chart-table th:nth-child(3) {
  width: 100px;
}
.chart-table th:nth-child(4) {
  width: 118px;
}
.chart-song {
  min-width: 0;
}
.chart-song > div {
  min-width: 0;
}
.chart-song strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.creator-link {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.song-card .creator-link {
  display: inline;
}
.mini-cover {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  border-radius: 8px;
  color: var(--surface);
  background: var(--ink-2);
}
.row-actions {
  white-space: nowrap;
}
.row-actions button {
  width: 30px;
  height: 30px;
  font-size: 17px;
  color: var(--muted);
}
.row-actions button[aria-pressed='true'] {
  color: var(--accent);
}
.policy-details {
  margin-top: 25px;
  font-size: 12px;
  line-height: 1.9;
}
.policy-details summary {
  cursor: pointer;
}
.chart-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 23px;
}
.chart-tabs button {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
}
.chart-tabs button[aria-pressed='true'] {
  background: var(--ink);
  color: white;
}
.blind-stage .cover {
  width: 210px;
  height: 210px;
  margin: auto auto 24px;
}
.blind-stage {
  border-radius: 20px;
  background: var(--line);
  padding: 35px;
  text-align: center;
}
.blind-stage h2 {
  font-size: 25px;
}
.blind-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}
.blind-guide {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.blind-guide h2 {
  font-size: 18px;
  margin-top: 20px;
}
.blind-guide p {
  font-size: 12px;
  line-height: 1.9;
}
.round-banner {
  padding: 15px;
  border-radius: 10px;
  background: var(--line);
  font-size: 12px;
  line-height: 1.8;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 26px;
}
.studio-summary {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  align-items: center;
}
.profile-avatar {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--line);
  color: var(--accent-strong);
  font-size: 29px;
  font-weight: bold;
}
.entry-card {
  display: flex;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: white;
  margin-bottom: 18px;
}
.entry-card > .cover {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}
.entry-copy {
  min-width: 0;
}
.entry-copy h3 {
  margin-top: 0;
}
.entry-copy p {
  font-size: 12px;
  line-height: 1.7;
}
.result-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 10px;
  margin-top: 15px;
}
.result-metrics strong {
  display: block;
  font-size: 14px;
  margin-top: 5px;
}
.creator-hero {
  display: flex;
  gap: 24px;
  padding: 30px;
  background: var(--line);
  border-radius: 18px;
  margin-bottom: 30px;
}
.creator-stats {
  display: flex;
  gap: 30px;
  font-size: 12px;
}
.creator-stats strong {
  font-size: 22px;
  display: block;
  margin-top: 10px;
}
.discovery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.genre-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.chip {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 11px;
}
.chip[aria-pressed='true'] {
  background: var(--line-strong);
}
.empty-state {
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: 15px;
  text-align: center;
  color: var(--muted);
  grid-column: 1/-1;
}
dialog {
  max-width: 760px;
  width: calc(100% - 40px);
  max-height: 90vh;
  border: 0;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 20px 80px color-mix(in srgb, var(--ink) 25%, transparent);
}
dialog::backdrop {
  background: color-mix(in srgb, var(--ink) 40%, transparent);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.dialog-header h2 {
  font-size: 21px;
}
.dialog-header button {
  font-size: 27px;
}
.dialog-header + div {
  font-size: 13px;
  line-height: 1.9;
}
.dialog-header + div h3 {
  margin-top: 24px;
}
form label {
  display: block;
  font-size: 12px;
  margin: 12px 0;
}
form label > input:not([type='checkbox']),
form select,
form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: block;
  margin-top: 6px;
  background: var(--surface);
  font: inherit;
}
input[type='file'] {
  font-size: 11px;
  max-width: 100%;
}
form small,
form label > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 7px;
}
.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
}
.genre-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
}
.genre-options label {
  margin: 3px;
  font-size: 11px;
}
.genre-options input {
  accent-color: var(--accent-strong);
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.consent input {
  margin-top: 5px;
}
#cover-preview {
  width: 90px;
  height: 90px;
  object-fit: cover;
  margin-top: 9px;
}
#player-title {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 290px;
  display: block;
}
.player-controls button {
  font-family: Arial, sans-serif;
}
.player-controls .play-main {
  font-size: 16px;
}
.player-status {
  font-size: 10px;
}
.community-list p {
  line-height: 1.9;
}
.site-footer {
  margin-top: 30px;
}
#search-form {
  margin: 0;
}
#search-form input {
  width: 100%;
}
+ @media(max-width:1250px) {
  .home-hero-grid {
    grid-template-columns: 1fr 225px;
  }
  .hero h2 {
    font-size: 28px;
  }
  .hero-art .record {
    width: 145px;
  }
  .home-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 22px;
  }
  .header-actions {
    gap: 7px;
  }
  .site-header {
    gap: 13px;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .discovery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
+ @media(max-width:1000px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }
  .notice-carousel {
    min-height: 170px;
  }
  .notice-carousel h2 {
    margin-top: 8px;
    margin-bottom: 6px;
    font-size: 19px;
  }
  .slide-buttons {
    padding-top: 12px;
    justify-content: flex-end;
  }
  .notice-carousel p {
    margin-bottom: 8px;
  }
  .home-layout,
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .home-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .hero h2 {
    font-size: 32px;
  }
  .hero-art .record {
    width: 190px;
  }
  .studio-grid > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}
+ @media(max-width:760px) {
  .site-header {
    padding: 15px 18px 12px;
    gap: 10px;
  }
  .header-actions {
    gap: 7px;
    margin-left: auto;
  }
  .header-actions > .button {
    font-size: 10px;
    padding: 9px 10px;
    min-height: 30px;
  }
  .languages {
    gap: 0;
    padding: 2px;
  }
  .languages button {
    font-size: 9px;
    padding: 6px;
  }
  .avatar {
    display: none;
  }
  .mobile-brand {
    font-size: 13px;
  }
  .search-form {
    order: 3;
  }
  .home-hero-grid {
    gap: 14px;
  }
  .hero h2 {
    font-size: 27px;
  }
  .hero-copy {
    max-width: 100%;
    padding: 23px;
  }
  .hero-art {
    opacity: 0.17;
    right: -90px;
  }
  .notice-carousel {
    padding: 20px;
    min-height: 170px;
  }
  .home-rail {
    display: block;
  }
  h1 {
    font-size: 25px;
  }
  .page-title {
    margin-bottom: 20px;
  }
  .chart-tabs button {
    font-size: 11px;
    padding: 9px 14px;
  }
  .chart-toolbar {
    gap: 7px;
  }
  .chart-toolbar .button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .chart-toolbar .text-button {
    font-size: 9px;
  }
  .chart-table th:nth-child(1) {
    width: 32px;
  }
  .chart-table th:nth-child(3) {
    width: 60px;
  }
  .chart-table th:nth-child(4) {
    width: 78px;
  }
  .row-actions button {
    width: 22px;
    font-size: 16px;
  }
  .chart-song {
    gap: 7px;
  }
  .mini-cover {
    width: 25px;
    height: 25px;
    font-size: 10px;
  }
  .chart-song strong {
    font-size: 11px;
  }
  .creator-link {
    font-size: 9px;
  }
  .chart-table td {
    padding: 13px 3px;
  }
  .chart-meta {
    font-size: 9px;
    gap: 10px;
  }
  .chart-meta span:last-child {
    display: none;
  }
  .blind-grid {
    display: block;
  }
  .blind-stage {
    padding: 24px;
  }
  .blind-stage .cover {
    width: 190px;
    height: 190px;
  }
  .blind-guide {
    margin-top: 20px;
  }
  .blind-actions .button {
    font-size: 11px;
    padding: 10px;
  }
  .studio-grid > aside {
    display: block;
  }
  .entry-card {
    padding: 16px;
    gap: 14px;
  }
  .entry-card > .cover {
    width: 70px;
    height: 70px;
  }
  .entry-copy h3 {
    font-size: 16px;
  }
  .result-metrics {
    gap: 11px;
    font-size: 9px;
  }
  .result-metrics strong {
    font-size: 12px;
  }
  .entry-copy p {
    font-size: 10px;
  }
  .creator-hero {
    padding: 22px;
    gap: 15px;
  }
  .creator-stats {
    gap: 18px;
    font-size: 10px;
  }
  .creator-stats strong {
    font-size: 18px;
  }
  .discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .song-grid {
    gap: 10px;
  }
  .song-card h3 {
    font-size: 12px;
  }
  .song-card p {
    font-size: 9px;
  }
  .form-two {
    grid-template-columns: 1fr;
  }
  .dialog-header h2 {
    font-size: 18px;
  }
  dialog {
    padding: 20px;
  }
  .global-player {
    padding: 10px 18px;
  }
  .player-track {
    padding-right: 135px;
  }
  .player-controls {
    right: 17px;
    gap: 5px;
  }
  .player-controls #previous {
    display: none;
  }
  #player-title {
    max-width: 180px;
    font-size: 10px;
  }
  .player-main {
    display: contents;
  }
  .player-controls button {
    font-size: 13px;
  }
  .mobile-nav a {
    font-size: 9px;
  }
  .nav-symbol {
    font-size: 20px;
  }
  .hero-actions {
    gap: 14px;
  }
  .hero-actions .hero-link {
    font-size: 10px;
  }
}
+/* Community: compact text rows; exactly 20 records per page at the API boundary. */
.board-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0;
}
.board-list {
  border-top: 2px solid var(--ink);
}
.board-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 130px 180px;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  font-size: 14px;
}
.board-title {
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  padding: 5px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-title:hover {
  text-decoration: underline;
}
.board-number,
.board-author,
.board-row time {
  color: var(--muted);
  font-size: 12px;
}
.board-comments {
  color: var(--accent);
  font-size: 12px;
}
.board-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 25px 0;
}
.board-pagination button {
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: white;
  cursor: pointer;
}
.board-pagination button[aria-current='page'] {
  background: var(--ink);
  color: white;
}
.board-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (max-width: 650px) {
  .board-row {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 4px 8px;
  }
  .board-title {
    white-space: normal;
  }
  .board-author {
    grid-column: 2;
  }
  .board-row time {
    grid-column: 2;
  }
  .board-pagination {
    gap: 4px;
  }
  .board-pagination button {
    padding: 8px 10px;
  }
}
.brand-showcase {
  margin-bottom: 32px;
}
.brand-showcase img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: 16px;
}
.brand-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.brand-switch button {
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: white;
  cursor: pointer;
}
.brand-switch button[aria-pressed='true'] {
  background: var(--ink);
  color: white;
}
.brand-showcase small {
  color: var(--muted);
}
.brand-story {
  max-width: 900px;
  margin: 28px 0 42px;
  line-height: 1.8;
}
.brand-story h1 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.35;
}
.brand-lead {
  font-size: 20px;
}
/* Home introduction: the site's principles as a short list. */
.brand-points {
  margin: 12px 0 16px;
  padding-left: 1.2em;
}
.brand-points li {
  margin: 6px 0;
}
.brand-beta {
  padding-top: 12px;
  color: var(--accent-strong);
}
.consent-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.desktop-nav {
  max-height: calc(100dvh - 230px);
  overflow: auto;
}
.desktop-nav a {
  padding: 10px 12px;
  font-size: 13px;
}
.home-hero-grid {
  margin-bottom: 28px;
}
.brand-showcase img {
  max-height: 290px;
}
.brand-story {
  margin-top: 16px;
}
.brand-story h1 {
  font-size: 28px;
}
.brand-story p {
  font-size: 14px;
}
.reading-page {
  max-width: 850px;
  font-size: 16px;
  line-height: 1.9;
}
.reading-page h1 {
  font-size: 32px;
}
.reading-page h2 {
  margin-top: 28px;
}
.about-brand {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}
.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-strong);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}
.srs-intro {
  background: var(--line);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
}
.srs-intro p {
  font-size: 13px;
  line-height: 1.9;
}
.srs-intro h2 {
  font-size: 20px;
  margin-top: 0;
}
.weight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.weight-grid > div {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 10px;
  padding: 14px;
}
.weight-grid strong {
  font-size: 25px;
  color: var(--accent-strong);
}
.weight-grid span {
  font-size: 12px;
}
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.community-line {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: center;
  padding: 15px 8px;
  border-bottom: 1px solid var(--line);
}
.post-category {
  font-size: 11px;
  color: var(--accent-strong);
  background: var(--line);
  padding: 6px 8px;
  border-radius: 7px;
}
.board-title small {
  font-size: 10px;
  color: var(--muted);
  margin-left: 8px;
}
.post-body {
  white-space: pre-wrap;
}
.admin-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.admin-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.admin-item strong {
  font-size: 13px;
  display: block;
}
.admin-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.admin-buttons button,
.admin-post button {
  padding: 7px 9px;
  background: var(--line);
  border-radius: 6px;
  font-size: 11px;
}
.admin-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 55px;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.admin-post select {
  width: 100%;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}
.demo-admin-note {
  font-size: 12px;
  padding: 14px;
  background: var(--accent-soft);
  border-radius: 9px;
  line-height: 1.7;
}
.slide-image {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 10px;
}
.event-preview {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}
.crop-panel {
  padding: 14px;
  margin: 12px 0;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--line);
}
.crop-panel p {
  font-size: 11px;
  line-height: 1.7;
}
.crop-panel canvas {
  display: block;
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 1;
  touch-action: none;
  cursor: grab;
  background: var(--line-strong);
}
.crop-panel input[type='range'] {
  padding: 0;
}
.crop-controls {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.crop-controls button {
  font-size: 11px;
  min-height: 36px;
}
.sidebar-bottom {
  bottom: 14px;
}
.site-header {
  min-width: 0;
}
.mobile-nav {
  overflow-x: auto;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.admin-buttons button:disabled {
  opacity: 0.3;
}
@media (max-width: 1000px) {
  .admin-columns {
    grid-template-columns: 1fr;
  }
  .brand-showcase img {
    max-height: 230px;
  }
}
@media (max-width: 760px) {
  .mobile-nav {
    grid-template-columns: repeat(9, minmax(70px, 1fr));
    overflow-x: auto;
  }
  .mobile-nav a {
    min-width: 70px;
  }
  .mobile-nav a .nav-symbol {
    font-size: 16px;
  }
  .home-hero-grid {
    margin-top: 4px;
  }
  .brand-story h1 {
    font-size: 24px;
  }
  .brand-story p {
    font-size: 13px;
  }
  .weight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .srs-intro {
    padding: 18px;
  }
  .community-line {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 8px;
  }
  .community-line .board-author {
    grid-column: 2;
  }
  .board-title {
    white-space: normal;
  }
  .board-title small {
    display: block;
    margin-left: 0;
  }
  .admin-post {
    grid-template-columns: minmax(0, 1fr) 110px 45px;
  }
  .admin-post span {
    overflow-wrap: anywhere;
  }
  .reading-page {
    font-size: 14px;
  }
  .reading-page h1 {
    font-size: 27px;
  }
  .site-header #header-submit {
    padding: 7px;
    font-size: 9px;
  }
  .notice-carousel {
    min-height: 190px;
  }
  .about-brand {
    max-height: 190px;
  }
  dialog {
    width: calc(100% - 20px);
    max-height: 85dvh;
  }
  .chart-table {
    min-width: 340px;
  }
  .table-scroll {
    max-width: 100%;
  }
  .brand-showcase img {
    max-height: 190px;
  }
}
.crop-panel {
  grid-column: 1/-1;
}
.studio-section-header {
  position: sticky;
  top: calc(var(--header) + 8px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-2);
  padding: 15px 0;
  border-bottom: 1px solid var(--line-strong);
}
.studio-section-header h2 {
  font-size: 19px;
  margin: 0;
}
.studio-pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.studio-pagination button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--line);
  font-size: 24px;
}
.studio-pagination button:disabled {
  opacity: 0.3;
  cursor: default;
}
.studio-results {
  margin-bottom: 32px;
}
.studio-result-row {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-strong);
}
.studio-result-row > .cover {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
}
.studio-result-row h3 {
  margin: 0 0 7px;
  font-size: 17px;
}
.studio-result-row small {
  color: var(--muted);
  font-size: 11px;
}
.studio-song-line {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 120px 30px 30px;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
}
.studio-song-line small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.footer-banner {
  margin-top: 45px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}
.footer-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/1;
  object-fit: contain;
}
.footer-banner-placeholder {
  aspect-ratio: 4/1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(110deg, var(--surface-2), var(--line));
  color: var(--ink);
}
.footer-banner-placeholder strong {
  font-size: clamp(24px, 4vw, 44px);
}
.footer-banner-placeholder span {
  font-size: 14px;
}
@media (max-width: 760px) {
  .studio-section-header {
    top: calc(var(--header) + 4px);
    padding: 10px 0;
  }
  .studio-section-header h2 {
    font-size: 15px;
  }
  .studio-pagination {
    font-size: 10px;
    gap: 5px;
  }
  .studio-pagination button {
    width: 28px;
    height: 28px;
  }
  .studio-song-line {
    grid-template-columns: 25px minmax(0, 1fr) 70px 22px 22px;
    gap: 6px;
    font-size: 10px;
  }
  .studio-result-row h3 {
    font-size: 15px;
  }
  .footer-banner img,
  .footer-banner-placeholder {
    aspect-ratio: 16/9;
  }
  .footer-banner-placeholder span {
    font-size: 12px;
  }
}
body {
  font-family: var(--font-sans);
  letter-spacing: -0.025em;
  line-height: 1.65;
  color: var(--ink);
}
h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.25;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.8rem, 3.3vw, 2.65rem);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.beta-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 5px;
  margin: 12px 0;
}
.hero,
.notice-carousel,
.rail-card,
.blind-stage {
  border-radius: 20px;
}
.hero h2 {
  font-size: clamp(2rem, 3.7vw, 3.25rem);
}
.song-card {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  min-width: 0;
}
.song-card h3 {
  overflow-wrap: anywhere;
}
.card-bottom {
  flex-wrap: wrap;
  gap: 8px;
}
.card-bottom button {
  min-height: 40px;
}
.playlist-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.playlist-line > span:first-child,
.playlist-line > label:first-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.playlist-line button {
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.policy-note {
  padding: 16px;
  background: var(--accent-tint);
  border-radius: 12px;
}
.profile-avatar {
  overflow: hidden;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 10px 0;
  background: white;
}
.faq-item summary {
  padding: 16px;
  font-weight: 650;
  cursor: pointer;
}
.faq-item p {
  padding: 0 16px 16px;
  margin: 0;
  white-space: pre-line;
}
#faq-search {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  margin: 16px 0;
}
.reading-page {
  max-width: 840px;
}
.chart-table {
  font-variant-numeric: tabular-nums;
}
.row-actions {
  white-space: normal;
}
.row-actions button {
  min-width: 36px;
  min-height: 40px;
}
.site-footer {
  flex-wrap: wrap;
}
.footer-banner img {
  width: 100%;
  height: auto;
}
.blind-stage .cover {
  max-width: 340px;
  margin: auto;
}
.genre-filters {
  flex-wrap: wrap;
}
.form-two > * {
  min-width: 0;
}
dialog {
  max-height: 85dvh;
  overflow: auto;
}
.global-player {
  padding-bottom: env(safe-area-inset-bottom);
}
.player-status {
  max-width: 130px;
}
.sidebar .brand {
  font-weight: 900;
}
.community-line .board-title {
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
  .home-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .discovery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .chart-toolbar {
    flex-wrap: wrap;
  }
  .header-actions {
    gap: 8px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 15px;
  }
  .site-header {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px;
    gap: 10px;
  }
  .search-form {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-actions .button {
    font-size: 12px;
    padding: 8px;
  }
  .languages button {
    font-size: 11px;
    padding: 6px;
  }
  .home-hero-grid,
  .home-rail,
  .blind-grid,
  .admin-columns,
  .form-two {
    grid-template-columns: 1fr;
  }
  .discovery-grid,
  .song-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .hero {
    padding: 24px;
  }
  .hero-art {
    opacity: 0.4;
    max-width: 140px;
  }
  .mobile-nav {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: hidden;
    height: 66px;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav a {
    font-size: 10px;
    min-width: 0;
    padding: 5px 2px;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
  }
  .mobile-nav .nav-symbol {
    display: block;
    font-size: 19px;
  }
  .global-player {
    bottom: calc(66px + env(safe-area-inset-bottom));
    height: auto;
    min-height: 100px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1fr;
    padding: 10px 12px;
    gap: 8px;
  }
  .player-track {
    min-width: 0;
  }
  .player-track strong {
    max-width: 38vw;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  .player-status {
    display: none;
  }
  .player-main {
    min-width: 0;
  }
  .player-controls button {
    min-width: 30px;
    min-height: 36px;
  }
  .player-cover {
    display: none;
  }
  main,
  #main {
    padding-bottom: 210px;
  }
  .chart-table {
    min-width: 0;
    width: 100%;
    font-size: 12px;
  }
  .chart-table th,
  .chart-table td {
    padding: 10px 4px;
  }
  .chart-song {
    gap: 7px;
  }
  .chart-song strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .chart-score {
    white-space: nowrap;
  }
  .row-actions {
    width: 72px;
  }
  .row-actions button {
    font-size: 12px;
    min-width: 30px;
    padding: 4px;
  }
  .chart-toolbar {
    gap: 6px;
  }
  .chart-toolbar .button {
    padding: 9px 12px;
    font-size: 12px;
  }
  .profile-avatar {
    flex-shrink: 0;
  }
  .community-line {
    grid-template-columns: 75px minmax(0, 1fr);
  }
  .board-author {
    display: none;
  }
  dialog {
    width: calc(100% - 24px);
    max-height: 85dvh;
    padding: 16px;
  }
  .section-heading {
    gap: 12px;
  }
  .footer-banner-placeholder {
    min-height: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.hero h2,
.notice-carousel h3,
h1,
h2 {
  word-break: keep-all;
  overflow-wrap: break-word;
}
.beta-badge {
  align-self: flex-start;
}
.desktop-nav {
  gap: 4px;
}

/* ==========================================================================
   A+I CHART v6.1 design layer
   Warm ivory paper · ink typography · terracotta accent (Claude-inspired).
   Serif display (Source Serif 4 / Noto Serif KR) + Pretendard text.
   ========================================================================== */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
.hero h2,
.brand-story h1,
.reading-page h1,
.page-title h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1,
.page-title h1 {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.2;
  margin: 2px 0 10px;
}
h2 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.3;
}
h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 6px;
}
.section-description,
.subtle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.section-description {
  max-width: 68ch;
  margin-bottom: 18px;
}
a {
  text-underline-offset: 3px;
}
.text-link {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 13px;
}
.text-link:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Shell: sidebar ---------- */
.sidebar {
  width: var(--side);
  padding: 26px 16px 20px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.brand {
  gap: 10px;
  padding: 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.12);
}
.brand-word {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
}
.brand-word em {
  font-style: normal;
  color: var(--accent-strong);
}
.nav-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 22px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--muted);
}
.beta-badge {
  display: inline-block;
  margin: 0;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.desktop-nav {
  gap: 2px;
}
.desktop-nav a {
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition:
    background 0.15s,
    color 0.15s;
}
.desktop-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.desktop-nav a[aria-current='page'] {
  background: var(--accent-tint);
  color: var(--accent-deep);
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-symbol {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
}
.nav-symbol .icon {
  width: 19px;
  height: 19px;
}
.sidebar-bottom {
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- Shell: header ---------- */
.site-header {
  height: var(--header);
  padding: 0 36px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  position: sticky;
  top: 0;
  z-index: 15;
}
.search-form {
  position: relative;
  max-width: 420px;
  height: 42px;
  padding: 0 6px 0 14px;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.search-form .search-icon {
  width: 17px;
  height: 17px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.search-form input {
  font-size: 14px;
  padding: 0;
  height: 100%;
  outline: none;
}
.search-form input:focus-visible {
  outline: none;
}
.search-form button,
#search-button {
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12.5px;
  font-weight: 700;
}
#search-button:hover {
  background: var(--accent-strong);
}
.header-actions {
  gap: 10px;
}
.languages {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.languages button {
  min-width: 36px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.languages button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Buttons ---------- */
.button {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  gap: 8px;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.05s;
}
.button:active:not(:disabled) {
  transform: translateY(1px);
}
.button .icon {
  width: 16px;
  height: 16px;
}
.button-accent,
.button-dark {
  background: var(--accent);
  color: #fff;
}
.button-accent:hover:not(:disabled),
.button-dark:hover:not(:disabled) {
  background: var(--accent-strong);
}
.button-outline {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.button-outline:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--ink-2);
}
.text-button {
  font-size: 13px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink-2);
}
.icon-button:hover {
  background: var(--surface-2);
  color: var(--accent-strong);
}
[aria-pressed='true'] > .icon,
.icon-button[aria-pressed='true'] {
  color: var(--accent-strong);
}

/* ---------- Layout ---------- */
main {
  padding: 32px 40px calc(var(--player) + 32px);
  max-width: 1440px;
}
.page-title {
  align-items: flex-end;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-block {
  margin-top: 40px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.section-heading h2 {
  margin: 0;
}
.rail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-1);
}
.rail-card h2 {
  font-size: 1.15rem;
}
.home-layout {
  gap: 32px;
}
.home-rail {
  display: grid;
  gap: 16px;
  align-content: start;
}

/* ---------- Home hero ---------- */
.home-hero-grid {
  gap: 16px;
}
.hero {
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft) 0%, transparent 55%),
    linear-gradient(180deg, var(--surface) 0%, var(--accent-tint) 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  min-height: 300px;
  box-shadow: var(--shadow-1);
}
.hero-copy {
  padding: 34px 38px;
}
.hero h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 16px 0 14px;
}
.pill {
  background: var(--surface);
  border: 1px solid var(--accent-soft);
  color: var(--accent-deep);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 10px;
}
.hero-actions {
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 4px;
}
.hero-link {
  font-size: 13.5px;
  color: var(--ink-2);
}
.hero-link:hover {
  color: var(--accent-strong);
}
.record {
  background: radial-gradient(circle, var(--ink) 0 58%, #2c2a27 59% 60%, var(--ink) 61% 100%);
  box-shadow:
    18px 14px 0 var(--accent-soft),
    var(--shadow-2);
}
.record-label {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-serif);
}
.record-label span {
  color: #fff;
}
.notice-carousel {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 22px;
  padding: 28px;
}
.notice-carousel .eyebrow {
  color: var(--accent);
}
.notice-carousel h2 {
  color: var(--bg);
  font-size: 1.35rem;
}
.notice-carousel p {
  color: color-mix(in srgb, var(--bg) 72%, transparent);
}
.notice-carousel .text-link {
  color: var(--accent);
}
.slide-buttons button {
  border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent);
  color: var(--bg);
  background: transparent;
}
.slide-buttons button:hover {
  background: color-mix(in srgb, var(--bg) 12%, transparent);
}
#slide-count {
  color: color-mix(in srgb, var(--bg) 70%, transparent);
}
.round-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.round-status span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  display: inline-block;
}
.dot-live {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: live 2s ease-in-out infinite;
}
@keyframes live {
  50% {
    box-shadow: 0 0 0 7px transparent;
  }
}

/* ---------- How it works ---------- */
.how-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 8px;
}
.how-step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 2px;
  align-items: baseline;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.how-step:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.how-num {
  grid-row: span 2;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}
.how-step strong {
  font-size: 15px;
}
.how-step p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Song cards & progress ---------- */
.song-grid,
.discovery-grid {
  gap: 18px;
}
.song-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px 10px;
  box-shadow: var(--shadow-1);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.song-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.song-card h3 {
  margin: 12px 2px 2px;
  font-size: 15px;
}
.song-card h3 .text-button {
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  padding: 0;
}
.song-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 0 2px 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.creator-link {
  color: var(--ink-2);
  font-weight: 600;
}
.creator-link:hover {
  color: var(--accent-strong);
}
.cover-wrap {
  border-radius: 12px;
  overflow: hidden;
}
.cover-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-2);
}
.cover-play .icon {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}
.card-bottom {
  display: flex;
  align-items: center;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.card-bottom .text-button {
  margin-left: auto;
  color: var(--muted);
  padding: 6px 8px;
}
.listener-progress {
  margin: 4px 2px 10px;
  display: grid;
  gap: 5px;
}
.listener-progress span {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--p), var(--surface-3) var(--p));
}
.listener-progress small {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.progress-note {
  margin: 4px 2px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ok);
}
.cover-1 {
  background: linear-gradient(135deg, #f1d3c4, #d97757);
}
.cover-2 {
  background: linear-gradient(135deg, #2b2a27, #5a4a40);
}
.cover-3 {
  background: linear-gradient(135deg, #efe7d8, #c9b48f);
}
.cover-4 {
  background: linear-gradient(135deg, #c15f3c, #7a3a24);
}
.cover-5 {
  background: linear-gradient(135deg, #e7e3d8, #9d968a);
}
.cover-6 {
  background: linear-gradient(135deg, #f6e6dd, #e29c80);
}
.cover span {
  color: rgb(255 255 255 / 0.85);
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
}

/* ---------- Charts ---------- */
.srs-intro {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 26px 18px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-1);
}
.srs-intro-head h2 {
  margin: 0 0 16px;
}
.weight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.weight-grid .weight {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 16px 16px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.weight strong {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1;
  color: var(--accent-strong);
}
.weight strong small {
  font-family: var(--font-sans);
  font-size: 13px;
  margin-left: 2px;
  color: var(--muted);
}
.weight span {
  font-weight: 700;
  font-size: 14px;
}
.weight p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.weight i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: var(--w);
  background: var(--accent);
  border-radius: 0 4px 0 0;
}
.weight-total {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.chart-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 12px;
}
.chart-tabs .tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
  background: transparent;
  border: 0;
}
.chart-tabs .tab[aria-pressed='true'] {
  background: var(--surface);
  color: var(--accent-deep);
  box-shadow: var(--shadow-1);
}
.chart-tab-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 20px;
  padding: 12px 16px;
  margin-bottom: 14px;
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}
.chart-tab-info p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 80ch;
}
.chart-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.table-scroll {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  box-shadow: var(--shadow-1);
}
.chart-table {
  width: 100%;
  border-collapse: collapse;
}
.chart-table th {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}
.chart-table th abbr {
  text-decoration: none;
  cursor: help;
}
.chart-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}
.chart-table tbody tr:last-child td {
  border-bottom: 0;
}
.chart-table tbody tr:hover {
  background: var(--accent-tint);
}
.chart-table .rank {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  width: 64px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.chart-table tbody tr:nth-child(-n + 3) .rank {
  color: var(--accent-strong);
}
.chart-song {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chart-song strong {
  font-size: 14.5px;
}
.chart-song .creator-link {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.mini-cover {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.mini-cover .icon {
  width: 15px;
  height: 15px;
  opacity: 0;
  transition: opacity 0.15s;
}
tr:hover .mini-cover .icon,
.mini-cover:focus-visible .icon {
  opacity: 1;
}
.chart-score {
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chart-score small {
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  margin-left: 2px;
}
.row-actions button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
}
.row-actions button:hover {
  background: var(--surface-2);
  color: var(--accent-strong);
}
.row-actions .icon {
  width: 16px;
  height: 16px;
}
.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  line-height: 1.7;
}
.empty-state .button {
  margin-top: 10px;
}
.policy-details {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
}
.policy-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-weight: 700;
  cursor: pointer;
}
.policy-details summary .icon {
  color: var(--accent-strong);
}
.chart-rules ul {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.chart-rules li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}
.chart-rules li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.chart-rules li strong {
  margin-right: 8px;
  color: var(--ink);
}

/* ---------- Audition ---------- */
.blind-grid {
  gap: 20px;
}
.blind-stage,
.blind-guide {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-1);
}
.blind-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.guide-list {
  margin: 0 0 18px;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}
.guide-list li::marker {
  color: var(--accent-strong);
  font-weight: 700;
}
.round-banner {
  padding: 10px 14px;
  background: var(--accent-tint);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-deep);
}

/* ---------- Notices, community ---------- */
.notice-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.notice-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.notice-list li:last-child {
  border-bottom: 0;
}
.notice-list .text-button {
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  padding: 0;
}
.notice-list .text-button:hover {
  color: var(--accent-strong);
}
.notice-list time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.category-tabs,
.genre-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.chip:hover {
  border-color: var(--ink-2);
}
.chip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.board-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.community-line {
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.community-line:last-child {
  border-bottom: 0;
}
.community-line:hover {
  background: var(--bg);
}
.community-line.is-notice {
  background: var(--accent-tint);
}
.community-line.is-notice .post-category {
  background: var(--accent);
  color: #fff;
}
.community-line.is-hidden,
.admin-post.is-hidden {
  opacity: 0.5;
}
.post-category {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.board-title {
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.board-title:hover {
  color: var(--accent-strong);
}
.board-title small {
  color: var(--accent-strong);
  font-weight: 500;
}
.board-author,
.community-line time {
  font-size: 12.5px;
  color: var(--muted);
}
.board-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.board-pagination button {
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
}
.board-pagination button[aria-current='page'] {
  background: var(--ink);
  color: var(--bg);
}
.post-body {
  white-space: pre-line;
  line-height: 1.75;
}
.search-summary {
  margin: -6px 0 14px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- Brand story (home bottom) ---------- */
.brand-showcase {
  margin-top: 48px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-height: 360px;
}
.brand-showcase img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}
.brand-story {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: left;
}
.brand-story h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}
.brand-story p {
  color: var(--ink-2);
  line-height: 1.85;
}
.brand-lead {
  font-size: 1.05rem;
  color: var(--ink) !important;
}
.brand-beta {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-deep) !important;
}
.reading-page {
  max-width: 760px;
}
.reading-page p {
  line-height: 1.85;
  color: var(--ink-2);
}
.about-brand {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin: 10px 0 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  display: grid;
  gap: 16px;
  margin-top: 56px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
  font-size: 11px;
  border-radius: 9px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.footer-links a {
  color: var(--ink-2);
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--accent-strong);
}
.footer-legal p {
  margin: 0 0 4px;
  line-height: 1.6;
}
.footer-banner {
  margin-top: 40px;
  border-radius: 18px;
  overflow: hidden;
}
.footer-banner-placeholder {
  background: linear-gradient(120deg, var(--ink), #3a2c24 60%, var(--accent-strong));
  color: var(--bg);
}
.footer-banner-placeholder strong {
  font-family: var(--font-serif);
}

/* ---------- Player ---------- */
.global-player {
  height: var(--player);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgb(31 30 28 / 0.05);
}
.player-cover {
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
#player-title {
  font-size: 14px;
}
#player-meta {
  font-size: 12.5px;
  color: var(--muted);
}
.player-controls {
  gap: 10px;
}
.player-controls button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--ink-2);
}
.player-controls button:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--ink);
}
.player-controls .play-main {
  width: 46px;
  height: 46px;
  background: var(--ink);
  color: var(--bg);
}
.player-controls .play-main:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}
.player-controls .play-main .icon {
  width: 20px;
  height: 20px;
}
#seek {
  accent-color: var(--accent);
}
.seek-row span {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Dialogs & forms ---------- */
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgb(31 30 28 / 0.25);
}
dialog::backdrop {
  background: rgb(31 30 28 / 0.45);
  backdrop-filter: blur(2px);
}
.dialog-header h2 {
  font-size: 1.35rem;
}
#dialog-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
}
#dialog-close:hover {
  background: var(--surface-2);
}
dialog input:not([type='checkbox']):not([type='radio']):not([type='range']),
dialog select,
dialog textarea,
.rail-card input:not([type='checkbox']):not([type='radio']),
.rail-card select {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  padding: 10px 12px;
  font-size: 14px;
}
dialog input:focus,
dialog select:focus,
dialog textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 8px 0;
}
.consent input {
  margin-top: 4px;
  accent-color: var(--accent-strong);
}
.consent-pilot {
  border-color: var(--accent-soft);
  background: var(--accent-tint);
}
.policy-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: 13.5px;
}
.login-lead {
  color: var(--ink-2);
}
.login-buttons {
  display: grid;
  gap: 10px;
  margin: 14px 0 10px;
}
.login-buttons .button {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 15px;
  position: relative;
}
.login-logo {
  position: absolute;
  left: 18px;
  font-weight: 800;
}
.login-kakao {
  background: #fee500;
  color: rgb(0 0 0 / 0.85);
}
.login-kakao:hover:not(:disabled) {
  background: #f5dc00;
}
.login-google {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.login-google .login-logo {
  color: #4285f4;
}
.toast {
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13.5px;
  box-shadow: var(--shadow-2);
}
.skip-link:focus {
  background: var(--accent);
  color: #fff;
}

/* ---------- Mobile navigation ---------- */
.mobile-nav {
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  color: var(--muted);
}
.mobile-nav a[aria-current='page'] {
  color: var(--accent-strong);
}
.mobile-brand {
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-weight: 700;
}
.mobile-brand .brand-mark {
  width: 28px;
  height: 28px;
  font-size: 10px;
  border-radius: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .weight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-strip {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1000px) {
  .site-header {
    padding: 0 20px;
  }
  main {
    padding: 24px 20px calc(var(--player) + var(--mobile-nav) + 24px);
  }
}
@media (max-width: 760px) {
  body {
    font-size: 14.5px;
  }
  .mobile-brand {
    display: inline-flex;
  }
  .site-header {
    position: sticky;
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 10px;
  }
  .search-form {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }
  #header-submit {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .button {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 13px;
  }
  main {
    padding: 18px 16px calc(var(--player) + var(--mobile-nav) + 20px);
  }
  .hero-copy {
    padding: 24px 22px;
  }
  .hero h2 {
    font-size: 1.9rem;
  }
  .page-title {
    flex-direction: column;
    align-items: flex-start;
  }
  .weight-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .weight strong {
    font-size: 26px;
  }
  .chart-tabs {
    display: flex;
    overflow-x: auto;
  }
  .chart-table .actions-column,
  .chart-table .row-actions {
    display: none;
  }
  .chart-table .rank {
    width: 40px;
    font-size: 17px;
  }
  .community-line {
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
  }
  .community-line .board-author,
  .community-line time {
    grid-column: 2;
    font-size: 12px;
  }
  .brand-showcase {
    max-height: 220px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dot-live {
    animation: none;
  }
  .song-card,
  .how-step {
    transition: none;
  }
}
.row-actions {
  white-space: nowrap;
  width: 1%;
}
.notice-list li {
  flex-direction: column;
  gap: 2px;
}
.chart-song .text-button {
  padding: 0;
}
/* Mobile player, navigation and hero: one explicit layout instead of the stacked legacy rules above. */
@media (max-width: 760px) {
  :root {
    --player: 104px;
    --mobile-nav: 62px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-art {
    display: none;
  }
  .global-player {
    bottom: calc(var(--mobile-nav) + env(safe-area-inset-bottom));
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'track controls'
      'seek seek';
    align-items: center;
    gap: 6px 10px;
    padding: 8px 14px 10px;
  }
  .player-track {
    grid-area: track;
    min-width: 0;
    padding-right: 0;
    gap: 10px;
  }
  .player-track > div:last-child {
    min-width: 0;
  }
  .player-track strong {
    display: block;
    max-width: none;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .player-track span:not([data-icon]) {
    font-size: 11.5px;
  }
  .player-cover {
    width: 38px;
    height: 38px;
  }
  .player-main {
    display: contents;
  }
  .player-controls {
    grid-area: controls;
    position: static;
    gap: 2px;
  }
  .player-controls button {
    width: 36px;
    height: 36px;
  }
  .player-controls .play-main {
    width: 42px;
    height: 42px;
  }
  #previous,
  #show-queue {
    display: none;
  }
  .seek-row {
    grid-area: seek;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
  }
  .seek-row span {
    font-size: 11px;
  }
  .player-status {
    display: none;
  }
  .mobile-nav {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    height: calc(var(--mobile-nav) + env(safe-area-inset-bottom));
    padding: 0 4px env(safe-area-inset-bottom);
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 6px 2px;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
  }
  .mobile-nav .nav-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-nav .nav-symbol .icon {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 760px) {
  .home-hero-grid .hero {
    grid-template-columns: 1fr;
    padding: 0;
  }
}
.chart-song .text-button {
  text-align: left;
  justify-content: flex-start;
}
.blind-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
  align-items: start;
}
.blind-stage {
  padding: 28px;
  text-align: center;
}
.blind-stage .cover {
  max-width: 260px;
  margin: 0 auto 14px;
  border-radius: 16px;
  box-shadow: var(--shadow-2);
}
.blind-actions {
  justify-content: center;
}
.blind-guide {
  padding: 24px 26px;
}
.blind-guide h2 {
  margin-bottom: 14px;
}
@media (max-width: 1000px) {
  .blind-grid {
    grid-template-columns: 1fr;
  }
}
/* v6.3 — registration mode choice and audition notice */
.mode-options {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 0;
  border: 0;
}
.mode-options legend {
  margin-bottom: 8px;
  font-weight: 700;
}
.mode-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.mode-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.mode-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.7;
}
.mode-option input {
  margin-top: 4px;
  accent-color: var(--accent);
}
.mode-option span {
  display: grid;
  gap: 4px;
}
.mode-option small {
  color: var(--muted);
}
.mode-option .round-banner,
.mode-option .mode-unavailable {
  color: var(--accent-deep);
}
.notice-banner {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  color: var(--accent-deep);
}

/* v6.3 D — home main cards, song page, notifications */
.hero-carousel .hero-text {
  max-width: 34em;
  margin: 10px 0 14px;
  color: var(--ink-2);
}
.hero-note {
  margin: 8px 0 0;
  color: var(--accent-deep);
  font-weight: 600;
}
.hero-buttons {
  margin-top: 18px;
}
.hero-image {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.notify-button {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}
#notify-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
}
.notify-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.notify-list li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.notify-list li.is-unread {
  background: var(--accent-tint);
}
.notify-list a {
  color: var(--ink);
  text-decoration: none;
}
.notify-list time {
  color: var(--muted);
  font-size: 12px;
}
.song-page {
  display: grid;
  grid-template-columns: minmax(180px, 320px) 1fr;
  gap: 32px;
  align-items: start;
}
.song-page-cover .cover {
  width: 100%;
  aspect-ratio: 1;
}
.song-page h1 {
  margin: 6px 0;
}
.song-page form textarea {
  width: 100%;
  min-height: 80px;
}
@media (max-width: 760px) {
  .song-page {
    grid-template-columns: 1fr;
  }
}

.hero-buttons button {
  color: var(--ink);
  border-color: var(--line-strong);
}
.hero-buttons span {
  color: var(--muted);
}

/* v6.3 E — footer banners, creator links */
.footer-banner .banner-slide[hidden] {
  display: none;
}
.footer-banner.is-rotating {
  position: relative;
}
.banner-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgb(31 30 28 / 0.6);
  color: #fff;
  font-size: 13px;
}
.banner-controls button {
  min-width: 32px;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.creator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.creator-out-link {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.inline-form {
  display: flex;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
}

/* v6.3 — chart rows fit their box on tablets and desktops (four 36px action buttons) */
@media (min-width: 761px) {
  .chart-table th:nth-child(4) {
    width: 164px;
  }
  .row-actions {
    white-space: nowrap;
  }
}

/* v6.4 — "19" mark */
.badge-19 {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border: 1.5px solid #c0392b;
  border-radius: 4px;
  color: #c0392b;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  vertical-align: middle;
}

/* v6.4 — evidence step inside the registration form */
.evidence-picker {
  margin: 14px 0;
  border: 0;
  padding: 0;
}
.evidence-picker legend {
  font-weight: 700;
  margin-bottom: 8px;
}
.evidence-options {
  display: grid;
  /* At most three saved screenshots: always side by side, small on phones. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.evidence-option {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.evidence-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.evidence-option img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-2);
}
.evidence-option small {
  font-size: 12px;
  color: var(--muted);
}
/* Radio + title on one line, the radio at its natural size. */
.evidence-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.evidence-head input[type='radio'] {
  width: auto;
  margin: 0;
  flex: none;
  accent-color: var(--accent);
}
/* New screenshot: its own full-width box below the saved ones, fields stacked inside it. */
.evidence-new {
  margin-top: 10px;
  cursor: default;
}
.evidence-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.evidence-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
}
.evidence-fields input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 560px) {
  .evidence-fields {
    grid-template-columns: 1fr;
  }
  .evidence-options {
    gap: 6px;
  }
  .evidence-options .evidence-option {
    padding: 6px;
  }
  .evidence-options .evidence-head {
    font-size: 11px;
    gap: 4px;
  }
  .evidence-options .evidence-option small {
    font-size: 10px;
  }
}
.evidence-guide {
  margin-top: 10px;
}
.evidence-guide-body {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  align-items: start;
  font-size: 13px;
}
.evidence-example {
  width: 100%;
  max-width: 220px;
}
@media (max-width: 760px) {
  .evidence-guide-body {
    grid-template-columns: 1fr;
  }
}
.queue-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

/* Uploaded cover art: show the image alone, without the default pattern drawn on top. */
[class*="cover-"][style*="background-image"]::before,
[class*="cover-"][style*="background-image"]::after {
  display: none;
}

/* Player bar: song title and creator on one line, each a link (title → song page, creator → creator page). */
.player-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}
#player-title,
#player-meta {
  display: block;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  padding: 6px 0;
}
#player-title {
  flex: 0 1 auto;
  font-size: 13px;
  font-weight: 700;
}
#player-meta {
  flex: 0 10 auto;
  font-size: 12px;
  color: var(--muted);
}
#player-title[href]:hover,
#player-meta[href]:hover {
  text-decoration: underline;
}
@media (max-width: 760px) {
  .player-line {
    gap: 10px;
  }
  #player-title {
    font-size: 11px;
  }
  #player-meta {
    font-size: 10px;
  }
}

/* A file that cannot be used: the reason in plain sight under the field. */
.field-error {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fdecea;
  color: #b3261e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

/* The crop has not been applied yet: the Apply button asks to be pressed. */
.crop-controls .needs-press {
  outline: 3px solid #b3261e;
  outline-offset: 3px;
  animation: needs-press 1s ease-in-out 3;
}
@keyframes needs-press {
  50% {
    transform: scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .crop-controls .needs-press {
    animation: none;
  }
}

/* Names that open a creator page (board, comments, notifications). */
.notice-actor {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
a.board-author {
  color: inherit;
}
a.board-author:hover {
  text-decoration: underline;
}

/* ---------- Community board (6.4): title on top, author and counts underneath ---------- */
.feed-row {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.feed-row:last-child {
  border-bottom: 0;
}
.feed-row:hover {
  background: var(--accent-tint);
}
.feed-row.is-notice {
  background: var(--accent-tint);
  border-left: 4px solid var(--accent);
}
.feed-row.is-hidden {
  opacity: 0.5;
}
.feed-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  word-break: keep-all;
}
.feed-title:hover {
  color: var(--accent-deep);
}
.feed-title small {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
}
.feed-category {
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 700;
}
.is-notice .feed-category {
  background: var(--accent);
  color: #fff;
}
.feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 13px;
}
.feed-meta time {
  margin-left: auto;
  font-size: 12px;
}
.feed-author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
a.feed-author:hover span:last-child {
  text-decoration: underline;
  color: var(--accent-deep);
}
.avatar-dot {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.feed-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.feed-count .icon,
.post-action .icon,
.post-comments h2 .icon {
  width: 15px;
  height: 15px;
}

/* ---------- One post on its own page ---------- */
.post-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 0 40px;
}
.post-back {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.post-back:hover {
  color: var(--accent-deep);
}
.post-kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}
.post-heading {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.3;
  word-break: keep-all;
}
.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.post-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: inherit;
}
button.post-action {
  cursor: pointer;
}
button.post-action:hover {
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.post-action[aria-pressed='true'] {
  color: var(--accent-strong);
}
.post-text {
  margin: 28px 0;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -12px 0 28px;
}
.post-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
}
.post-comments {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
}
.post-comments h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 17px;
}
.post-comments h2 span {
  color: var(--accent-strong);
}
.post-comment {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--accent-soft);
}
.post-comment time {
  color: var(--muted);
  font-size: 12px;
}
.post-comment p {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 31px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
#post-comment-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
#post-comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface);
  font: inherit;
  resize: vertical;
}
#post-comment-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
#post-comment-form button {
  justify-self: end;
}
@media (max-width: 760px) {
  .feed-row {
    padding: 14px 16px;
  }
  .feed-title {
    font-size: 15px;
  }
  .feed-meta time {
    margin-left: 0;
  }
  .post-text {
    padding: 18px;
    font-size: 15px;
  }
  .post-comments {
    padding: 18px 16px;
  }
}
.post-delete {
  margin-left: auto;
  border: 1px solid var(--line);
  color: #b3261e;
}
button.post-delete:hover {
  background: #fdecea;
  color: #b3261e;
}

/* The site's own confirm window (replaces the browser's confirm, which in-app browsers block). */
.confirm-dialog {
  max-width: min(420px, calc(100vw - 32px));
  padding: 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(31, 30, 28, 0.25);
}
.confirm-dialog::backdrop {
  background: rgba(31, 30, 28, 0.45);
}
.confirm-dialog p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  word-break: keep-all;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.button-danger {
  background: #b3261e;
  border-color: #b3261e;
  color: #fff;
}
.button-danger:hover {
  background: #8f1e18;
}
/* Delete on a comment: small and quiet until hovered. */
.comment-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.comment-delete {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.comment-delete:hover {
  border-color: #b3261e;
  color: #b3261e;
  background: #fdecea;
}

/* Heart on a comment. */
.comment-tools {
  grid-column: 1 / -1;
  padding-left: 31px;
}
.comment-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  vertical-align: middle;
}
.comment-like .icon {
  width: 13px;
  height: 13px;
}
.comment-like:hover,
.comment-like[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-tint);
}

/* Song feedback uses the board-comment look, across the full width under the song. */
.song-page > .song-feedback {
  grid-column: 1 / -1;
}
.feedback-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.song-page .feedback-form textarea,
.feedback-form textarea {
  width: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface);
  font: inherit;
  resize: vertical;
}
.feedback-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.feedback-form button {
  justify-self: end;
}

/* Profile picture in the small avatar circle. */
.avatar-dot.has-image {
  background: var(--surface-2);
  overflow: hidden;
}
.avatar-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Creator page: featured songs, then a shuffled handful of the rest. */
.creator-songs {
  margin-top: 28px;
}
.creator-songs .section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.creator-songs .section-heading .button {
  margin-left: auto;
}
/* Featured-song picker in the profile editor. */
.featured-picker {
  border: 1px solid var(--accent-soft);
  border-radius: 12px;
  padding: 14px;
  background: var(--accent-tint);
}
.featured-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 10px;
}
.featured-tools input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--surface);
  font: inherit;
}
#featured-count {
  flex-shrink: 0;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 13px;
}
#featured-rows {
  max-height: 320px;
  overflow-y: auto;
}

/* Audition queue: how many songs are waiting for the next round. */
.audition-queue {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 14px 0 22px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
}
.audition-queue p {
  margin: 0 0 4px;
}
.audition-queue progress {
  width: 100%;
  height: 8px;
  accent-color: var(--accent);
}
.queue-count {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  text-align: center;
  line-height: 1.1;
}
.queue-count strong {
  font-size: 26px;
  color: var(--accent-strong);
}
.queue-count span {
  font-size: 12px;
  color: var(--muted);
}
.waiting-badge {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}
.carry-note {
  display: block;
  margin-top: 4px;
  color: var(--accent-deep);
}
.audition-admin {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-2);
}
.discover-count {
  margin: 4px 0 12px;
}

/* Studio published songs: cover (plays the song), title and details, then the actions on the right. */
.studio-song-line {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-template-columns: none;
}
.studio-cover {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
}
.studio-cover .icon {
  width: 16px;
  height: 16px;
  opacity: 0.85;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.studio-song-info {
  flex: 1;
  min-width: 0;
}
.studio-song-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-song-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.studio-song-actions button {
  min-width: 30px;
  height: 30px;
}
.studio-song-actions .icon {
  width: 15px;
  height: 15px;
}
@media (max-width: 760px) {
  .studio-song-line {
    flex-wrap: wrap;
  }
  .studio-cover {
    width: 40px;
    height: 40px;
  }
  .studio-song-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
/* The delete slot keeps its width even when empty, so every row's buttons line up. */
.studio-song-actions .delete-slot {
  display: inline-flex;
  justify-content: flex-end;
  width: 44px;
  flex-shrink: 0;
}
/* Introduction video (home, above the brand introduction; About, at the top). */
.intro-video {
  margin: 8px 0 28px;
}
.intro-video-frame {
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
}
.intro-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Terms & privacy ---------- */
.legal-page h2 {
  font-size: 19px;
}
.legal-page ol,
.legal-page ul {
  padding-left: 1.4em;
}
.legal-table {
  overflow-x: auto;
  margin: 12px 0 16px;
}
.legal-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
.legal-table th,
.legal-table td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: var(--surface);
  color: var(--ink);
}
.footer-policy a {
  color: var(--ink-2);
}
