@font-face {
  font-family: "Pretendard Fallback";
  src: local("Apple SD Gothic Neo"), local("Malgun Gothic"), local("system-ui");
  size-adjust: 100%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --bg: #0a0d14;
  --bg-deep: #07080d;
  --panel: #11151f;
  --panel-2: #1a2030;
  --line: #2a3142;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f5f7fa;
  --muted: #9aa4b8;
  --dim: #5b6478;
  --orange: #ff8c1a;
  --gold: #ffd23f;
  --blue: #3b82f6;
  --green: #7bd3b5;
  --danger: #ff5c7a;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", "Pretendard", "Pretendard Fallback", system-ui, sans-serif;
  font-feature-settings: "tnum";
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.hanana-fans-header-mounted body {
  padding-top: var(--hanana-fans-header-height, 44px);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(255, 140, 26, 0.1), transparent 34%),
    linear-gradient(240deg, rgba(59, 130, 246, 0.09), transparent 36%),
    var(--bg);
}

body::after {
  z-index: -1;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    repeating-linear-gradient(115deg, transparent 0 24px, rgba(255, 140, 26, 0.025) 24px 25px);
  background-size: 42px 42px, 42px 42px, auto;
}

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
p,
figure {
  margin: 0;
}

.app-shell {
  min-height: 100vh;
  padding: clamp(14px, 2.4vw, 28px);
}

html.hanana-fans-header-mounted .app-shell {
  min-height: calc(100vh - var(--hanana-fans-header-height, 44px));
}

.workspace {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.topbar {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  min-height: 150px;
  padding-top: clamp(14px, 3vh, 34px);
}

.topbar::before {
  content: "AUDIO";
  position: absolute;
  right: 0;
  bottom: -20px;
  z-index: -1;
  color: transparent;
  font-family: "Chakra Petch", "Pretendard", system-ui, sans-serif;
  font-size: clamp(72px, 14vw, 180px);
  font-weight: 700;
  line-height: 0.85;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  text-shadow: 0 0 64px rgba(255, 140, 26, 0.08);
}

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

.eyebrow {
  margin-bottom: 8px;
  color: var(--orange);
  font-family: "Chakra Petch", "Pretendard", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  width: min(640px, 100%);
  color: transparent;
  background: linear-gradient(180deg, #fff5c2 0%, var(--gold) 34%, #c98a1a 66%, #fff5c2 86%);
  background-clip: text;
  filter: drop-shadow(0 16px 34px rgba(255, 140, 26, 0.24));
  font-family: "Black Han Sans", "Pretendard", system-ui, sans-serif;
  font-size: clamp(42px, 5.8vw, 72px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
  -webkit-background-clip: text;
}

.topbar__lead {
  width: min(680px, 100%);
  margin-top: 14px;
  color: rgba(245, 247, 250, 0.86);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 750;
  line-height: 1.52;
  word-break: keep-all;
}

.format-pill {
  align-self: center;
  max-width: 34vw;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 140, 26, 0.28);
  border-radius: 999px;
  background: rgba(7, 8, 13, 0.72);
  color: var(--muted);
  font-family: "Chakra Petch", "Pretendard", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url-form {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid rgba(255, 140, 26, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(17, 21, 31, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), 0 0 42px rgba(255, 140, 26, 0.08);
  backdrop-filter: blur(14px) saturate(1.1);
}

.field-label {
  display: block;
  margin: 0 0 8px 2px;
  color: rgba(245, 247, 250, 0.8);
  font-size: 13px;
  font-weight: 800;
}

.input-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
}

.input-row input {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 8, 13, 0.82);
  color: var(--text);
  outline: none;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 700;
}

.input-row input::placeholder {
  color: var(--dim);
}

.input-row input:focus {
  border-color: rgba(255, 140, 26, 0.72);
  background: rgba(7, 8, 13, 0.92);
  box-shadow: 0 0 0 3px rgba(255, 140, 26, 0.16);
}

.primary-button,
.history-header button,
.pitch-buttons button,
.player-button,
.download-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 8, 13, 0.72);
  color: var(--text);
  font-weight: 800;
}

.primary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 56px;
  gap: 8px;
  border-color: rgba(255, 140, 26, 0.58);
  background: var(--orange);
  color: #080b12;
  font-size: 15px;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.primary-button:hover,
.primary-button:focus {
  border-color: var(--gold);
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(8, 11, 18, 0.22);
  border-top-color: #080b12;
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

.is-loading .button-icon {
  display: none;
}

.is-loading .button-spinner {
  display: inline-block;
}

.audio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.58fr);
  gap: 10px;
  margin-top: 10px;
  align-items: stretch;
}

.audio-stage,
.control-panel,
.pitch-map-section,
.history-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.055), transparent 42%),
    linear-gradient(180deg, rgba(26, 32, 48, 0.96), rgba(9, 12, 18, 0.96));
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.22);
}

.audio-stage {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.stage-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

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

.track-copy h2 {
  margin-bottom: 7px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 850;
  line-height: 1.16;
}

.track-copy p,
.status-line {
  color: var(--muted);
  line-height: 1.55;
}

.thumb-chip {
  width: 116px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(7, 8, 13, 0.72);
}

.thumb-chip img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.analyzer-card,
.pitch-map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 140, 26, 0.12), transparent 32%),
    rgba(7, 8, 13, 0.82);
}

.analyzer-card {
  min-height: 236px;
}

.analyzer-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(7, 8, 13, 0.88), rgba(26, 32, 48, 0.68), rgba(7, 8, 13, 0.88)),
    rgba(7, 8, 13, 0.58);
  pointer-events: none;
}

.analyzer-overlay[hidden] {
  display: none;
}

.analyzer-skeleton {
  position: absolute;
  inset: 0 0 30px 0;
  display: flex;
  align-items: end;
  gap: 9px;
  padding: 26px 28px;
}

.analyzer-skeleton span {
  flex: 1;
  height: 36%;
  min-height: 30px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, rgba(255, 210, 63, 0.74), rgba(255, 140, 26, 0.22));
  opacity: 0.62;
  animation: skeletonPulse 980ms ease-in-out infinite;
}

.analyzer-skeleton span:nth-child(2) {
  height: 58%;
  animation-delay: 80ms;
}

.analyzer-skeleton span:nth-child(3) {
  height: 42%;
  animation-delay: 160ms;
}

.analyzer-skeleton span:nth-child(4) {
  height: 70%;
  animation-delay: 240ms;
}

.analyzer-skeleton span:nth-child(5) {
  height: 50%;
  animation-delay: 320ms;
}

.overlay-status {
  position: relative;
  z-index: 3;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  min-width: min(360px, 100%);
  padding: 14px 16px;
  border: 1px solid rgba(255, 140, 26, 0.3);
  border-radius: 8px;
  background: rgba(7, 8, 13, 0.82);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.overlay-status__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 140, 26, 0.44);
  animation: pulse 1s ease-out infinite;
}

.overlay-status strong {
  color: var(--gold);
  font-weight: 950;
}

.overlay-status span:last-child {
  grid-column: 1 / -1;
}

.analyzer-overlay.is-error .overlay-status {
  border-color: rgba(255, 92, 122, 0.42);
  color: rgba(255, 190, 202, 0.94);
}

.analyzer-overlay.is-error .overlay-status__dot,
.analyzer-overlay.is-error .overlay-status strong {
  color: var(--danger);
  background: var(--danger);
}

.audio-stage.is-processing #spectrumCanvas,
.audio-stage.is-processing .eq-labels {
  opacity: 0.36;
}

canvas {
  display: block;
  width: 100%;
}

#spectrumCanvas {
  height: 194px;
}

.eq-labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 0 12px 10px;
  color: rgba(154, 164, 184, 0.74);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.eq-labels span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-map-section {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 14px;
}

.section-heading h2 {
  color: var(--text);
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  font-weight: 900;
}

.section-heading p:not(.eyebrow) {
  max-width: 390px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  text-align: right;
  word-break: keep-all;
}

.pitch-map {
  min-height: 260px;
}

#pitchCanvas {
  height: 260px;
}

.pitch-map__labels {
  position: absolute;
  inset: 10px 0 auto 0;
  z-index: 3;
  display: block;
  color: rgba(154, 164, 184, 0.68);
  font-size: 12px;
  font-weight: 750;
  pointer-events: none;
}

.pitch-map__labels span {
  position: absolute;
  top: 0;
}

.pitch-map__labels span:first-child {
  left: 12px;
}

.pitch-map__labels span:last-child {
  left: var(--pitch-current-x, calc(100% - 72px));
  transform: translateX(-50%);
}

.pitch-live-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.pitch-now-line {
  position: absolute;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, transparent, rgba(255, 210, 63, 0.94), transparent);
  box-shadow: 0 0 18px rgba(255, 210, 63, 0.25);
  opacity: 0;
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    top 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    height 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 140ms ease;
  will-change: transform;
}

.pitch-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid rgba(7, 8, 13, 0.84);
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.13), 0 0 18px rgba(255, 210, 63, 0.34);
  opacity: 0;
  transform: translate3d(-80px, -80px, 0);
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 140ms ease;
  will-change: transform, opacity;
}

.pitch-marker span {
  position: absolute;
  left: 50%;
  bottom: 12px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(7, 8, 13, 0.82);
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateX(-50%);
}

audio {
  display: none;
}

.player-bar {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 58px minmax(104px, 132px);
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 140, 26, 0.12), transparent 42%),
    rgba(7, 8, 13, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.player-button {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 40px;
  padding: 0 10px;
  color: var(--text);
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.player-toggle {
  border-color: rgba(255, 140, 26, 0.5);
  background: linear-gradient(180deg, var(--gold), var(--orange));
  color: #080b12;
  font-size: 17px;
  box-shadow: 0 8px 24px rgba(255, 140, 26, 0.18);
}

.player-mute {
  font-size: 12px;
}

.player-button:hover:not(:disabled),
.player-button:focus:not(:disabled) {
  border-color: rgba(255, 140, 26, 0.72);
  color: var(--gold);
  transform: translateY(-1px);
}

.player-toggle:hover:not(:disabled),
.player-toggle:focus:not(:disabled) {
  color: #080b12;
  filter: brightness(1.05);
}

.player-button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
  transform: none;
}

.player-timeline {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.player-time {
  display: flex;
  justify-content: space-between;
  color: rgba(245, 247, 250, 0.72);
  font-family: "Chakra Petch", "Pretendard", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.volume-control {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: rgba(154, 164, 184, 0.8);
  font-size: 11px;
  font-weight: 800;
}

.volume-control span {
  line-height: 1;
}

.control-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 10px;
}

.control-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.control-heading h2 {
  color: var(--text);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
}

.control-heading output {
  flex: 0 0 auto;
  min-width: 96px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 140, 26, 0.34);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(7, 8, 13, 0.72);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-align: center;
}

.pitch-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pitch-buttons button {
  min-height: 48px;
  padding: 0 10px;
  color: var(--text);
  font-size: 14px;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.pitch-buttons button:hover,
.pitch-buttons button:focus,
.history-header button:hover,
.history-header button:focus,
.download-button:hover,
.download-button:focus {
  border-color: rgba(255, 140, 26, 0.72);
  color: var(--gold);
  transform: translateY(-1px);
}

.pitch-buttons #resetPitch {
  grid-column: 1 / -1;
}

.range-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.download-actions {
  display: grid;
  gap: 8px;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 12px;
  border-color: rgba(255, 140, 26, 0.4);
  color: var(--gold);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, opacity 160ms ease;
  word-break: keep-all;
}

.download-button::before {
  content: "↓";
  margin-right: 8px;
  color: var(--orange);
  font-family: "Chakra Petch", "Pretendard", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.download-button.is-disabled,
.download-button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
  color: var(--muted);
  transform: none;
}

.download-button.is-disabled:hover,
.download-button.is-disabled:focus,
.download-button:disabled:hover,
.download-button:disabled:focus {
  border-color: var(--line);
  color: var(--muted);
  transform: none;
}

.download-progress {
  display: grid;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 140, 26, 0.24);
  border-radius: 6px;
  background: rgba(7, 8, 13, 0.54);
  color: rgba(245, 247, 250, 0.8);
  font-size: 12px;
  font-weight: 850;
}

.download-progress[hidden] {
  display: none;
}

.download-progress i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.download-progress b {
  display: block;
  width: var(--download-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  box-shadow: 0 0 16px rgba(255, 140, 26, 0.3);
  transition: width 160ms ease;
}

.download-progress.is-indeterminate b {
  width: 42%;
  animation: download-indeterminate 1s ease-in-out infinite;
}

@keyframes download-indeterminate {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(250%);
  }
}

.status-line {
  min-height: 48px;
  padding-top: 4px;
}

.status-line.is-error {
  color: var(--danger);
}

.history-panel {
  margin-top: 10px;
  padding: 14px 16px 16px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.history-header h2 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
}

.history-header button {
  min-height: 32px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 8, 13, 0.72);
  color: inherit;
  text-align: left;
}

.history-item img,
.history-thumb {
  width: 54px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--orange), var(--blue));
}

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

.history-item strong {
  font-size: 0.88rem;
}

.history-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(255, 140, 26, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 140, 26, 0);
  }
}

@keyframes skeletonPulse {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.42;
  }
  50% {
    transform: scaleY(1);
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pitch-now-line,
  .pitch-marker {
    transition: opacity 140ms ease;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
    min-height: 190px;
  }

  .format-pill {
    justify-self: start;
    max-width: 100%;
  }

  .audio-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding: 12px;
  }

  h1 {
    font-size: 48px;
  }

  .topbar__lead {
    font-size: 15px;
  }

  .url-form {
    padding: 8px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .primary-button {
    width: 100%;
  }

  .stage-header {
    grid-template-columns: 1fr;
  }

  .thumb-chip {
    width: min(160px, 44vw);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .section-heading p:not(.eyebrow) {
    max-width: 100%;
    text-align: left;
  }

  #spectrumCanvas {
    height: 190px;
  }

  #pitchCanvas {
    height: 230px;
  }

  .pitch-map {
    min-height: 230px;
  }

  .player-bar {
    grid-template-columns: 46px minmax(0, 1fr) 56px;
  }

  .volume-control {
    grid-column: 2 / -1;
  }

  .pitch-buttons {
    grid-template-columns: 1fr;
  }
}
