/* Small-screen and touch layouts for the public site and Artist Studio. */
.button { min-height: 44px; }
[aria-pressed], .post-actions button { touch-action: manipulation; }
.hero h1, .hero-line, .track h3, .nah-banner h2, .cast-inner h2 {
  overflow-wrap: anywhere;
}
.track-body { min-width: 0; }
#player { width: min(92vw, 900px); }
#player video { width: 100%; object-fit: contain; }
.studio input, .studio textarea, .studio select { font-size: 1rem; }
.studio input[type="file"] { max-inline-size: 100%; }
.studio-nav button, .emoji-bar button, .nah-toolbar button, .post-actions button { min-height: 44px; }
.studio-status { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .top { padding: .85rem 1rem .35rem; gap: .35rem; }
  .top > a { display: inline-flex; align-items: center; min-height: 44px; }
  .top nav { width: 100%; gap: 0 .25rem; justify-content: space-between; }
  .top nav a { display: flex; align-items: center; min-height: 44px; padding: 0 .2rem; overflow-wrap: anywhere; }
  .hero { min-height: max(400px, 68svh); padding-bottom: 1.75rem; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 5rem); }
  .hero::after { background: linear-gradient(0deg,#0b0810 5%,#0b0810d9 28%,#0b08104d 55%,transparent 80%); }
  .hero-copy, .section, .cast-inner { width: calc(100% - 2rem); }
  .tracks { gap: .7rem; }
  .track-body { padding: .75rem; }
  .track-body .button { width: 100%; padding-inline: .35rem; text-align: center; }
  .nah-toolbar { gap: .35rem; }
  .nah-toolbar button { padding-inline: .65rem; }
  .contact .button { max-width: 100%; overflow-wrap: anywhere; }
  .intro-portrait { width: min(78vw, 48svh, 420px); }
  #player { padding: .75rem; }
  #player video { max-height: 65svh; }
  .player-heading h2 { overflow-wrap: anywhere; }

  .studio { margin-top: 1.25rem; }
  .studio-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .25rem; }
  .studio-nav button { padding: .4rem .2rem; text-align: center; overflow-wrap: anywhere; }
  .studio-row { align-items: flex-start; }
  .studio-row-info, .studio-row .studio-actions { width: 100%; }
  .composer-grid { gap: .7rem; }
  .studio-card label { line-height: 1.35; }
  .studio input:not([type="checkbox"]), .studio select { min-height: 44px; }
  .studio-actions .button { text-align: center; }
}

@media (max-width: 360px) {
  .top nav { font-size: .82rem; }
  .tracks { grid-template-columns: minmax(0,1fr); }
  .track img,.cover-empty { aspect-ratio: 4 / 3; }
  .platforms { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-height: 430px) and (orientation: landscape) {
  .intro-scene { gap: .45rem; }
  .intro-portrait { width: min(34vw, 53svh); }
}
