/* A quiet frame around the player, on desktop and mobile. */
.brand { font-size: 16px; font-weight: 400; letter-spacing: 3px; }
.skin-link { color: #7a8271; font-size: 11px; letter-spacing: 1px; padding: 12px 0 12px 12px; }
.skin-link span { margin-left: 10px; }
main { display: grid; place-items: center; padding: 32px 20px; }
.listening { height: 24px; }
.listening p:empty { display: none; }
.player-bottom { gap: 20px; }

/* The record takes the remaining height; playback controls keep their size. */
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  body {
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
      env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  .masthead, footer { width: calc(100% - 40px); flex-shrink: 0; }
  .masthead { height: clamp(44px, 7dvh, 62px); }
  main {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    padding: 10px 16px 12px;
  }
  .intro { margin: 0; }
  .eyebrow { font-size: 8px; }
  h1 { font-size: clamp(27px, 4.2dvh, 35px); line-height: 1.2; margin: 7px 0; }
  .intro p { font-size: 10px; line-height: 1.6; letter-spacing: 1px; }
  .player {
    width: min(100%, 450px);
    height: 100%;
    max-height: 580px;
    min-height: 0;
    align-self: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 16px 22px 0;
  }
  .deck-top { flex-shrink: 0; font-size: 9px; }
  .turntable { flex: 1; min-height: 0; height: auto; margin: 12px 0 0; }
  .record {
    height: calc(100% - 24px);
    max-height: min(260px, calc(100vw - 112px));
    width: auto;
    aspect-ratio: 1;
    left: 50%;
    top: 50%;
    margin: 0;
    translate: -50% -50%;
  }
  .tonearm { height: 68%; right: 16px; top: 16px; }
  .arm { height: calc(100% - 36px); }
  .arm::after { top: auto; bottom: -14px; }
  .listening { flex-shrink: 0; height: 24px; }
  .listening p { font-size: 10px; }
  .timeline { flex-shrink: 0; }
  .controls { flex-shrink: 0; margin: 12px 0; }
  .play-button { width: 58px; height: 58px; }
  .player-bottom { flex-shrink: 0; height: 47px; font-size: 8px; letter-spacing: .5px; }
  .afterword { display: none; }
  footer { min-height: 0; height: 28px; font-size: 7px; letter-spacing: .3px; }
  footer > span:nth-child(2) { font-size: 8px; }
}
@media (max-width: 820px) and (max-height: 660px), (max-height: 500px) and (pointer: coarse) {
  .eyebrow { display: none; }
  main { padding-top: 6px; gap: 8px; }
  h1 { margin: 0 0 5px; font-size: 27px; }
  .player { padding-top: 12px; }
  .turntable { margin-top: 8px; }
  .label-top, .label-bottom, .table-note { display: none; }
  .label-title { top: 16%; font-size: 10px; letter-spacing: 0; }
  .tonearm { right: 8px; top: 8px; }
  .controls { margin-block: 8px; }
}
@media (max-width: 820px) and (max-height: 520px), (max-height: 500px) and (pointer: coarse) {
  main { grid-template-rows: minmax(0, 1fr); }
  .intro, .turntable, footer { display: none; }
  .player { max-height: 270px; justify-content: center; }
}
@media (max-width: 820px) and (max-height: 400px), (max-height: 400px) and (pointer: coarse) {
  .masthead { display: none; }
}
