/* THE NEW SHAME — inner safe area, compatible with the existing
   FFT / bass / treble / loudness player. Do not change its neon outline. */
#player.tns-compact-fft .player-left {
  padding-top: 127px !important;
  padding-bottom: 50px !important;
}
#player.tns-compact-fft .jukebox-marquee {
  top: 38px !important;
}

#player.tns-compact-fft .player-art,
#player.tns-compact-fft .now-playing,
#player.tns-compact-fft .transport,
#player.tns-compact-fft .seek-line,
#player.tns-compact-fft .volume-line,
#player.tns-compact-fft .tns-fft-eight,
#player.tns-compact-fft .tns-tone-panel {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

#player.tns-compact-fft .now-playing {
  overflow: hidden;
}

@media (max-width: 850px) {
  #player.tns-compact-fft .player-left {
    padding-bottom: 55px !important;
  }
}

@media (max-width: 490px) {
  /* The 42px side inset is inside the unchanged neon jukebox frame. */
  /* Keep the headline clear of the pink curve at the top of the arch. */
  #player.tns-compact-fft .jukebox-marquee {
    top: 57px !important;
  }
  #player.tns-compact-fft .player-left {
    grid-template-columns: 49px minmax(0, 1fr);
    column-gap: 9px;
    row-gap: 9px;
    padding: 114px 42px 57px !important;
  }

  #player.tns-compact-fft .player-art {
    width: 47px;
    height: 47px;
  }
  #player.tns-compact-fft .now-playing {
    min-height: 47px;
    padding: 4px 7px;
  }
  #player.tns-compact-fft .now-playing h3 {
    font-size: clamp(11px, 3.2vw, 14px);
    line-height: 1.12;
    overflow-wrap: anywhere;
    margin: 2px 0;
  }
  #player.tns-compact-fft .now-playing p,
  #player.tns-compact-fft .now-playing .mono {
    font-size: 9px;
    line-height: 1.2;
  }

  #player.tns-compact-fft .transport {
    width: min(100%, 230px);
    justify-self: center;
    justify-content: center;
    gap: 7px;
  }
  #player.tns-compact-fft .transport button {
    box-sizing: border-box;
    flex: 0 0 auto;
    min-width: 35px;
    height: 37px;
    padding: 0 7px;
  }
  #player.tns-compact-fft .transport .play-main {
    width: 44px;
    height: 42px;
  }

  #player.tns-compact-fft .seek-line,
  #player.tns-compact-fft .volume-line {
    width: calc(100% - 14px);
    justify-self: center;
    gap: 5px;
  }
  #player.tns-compact-fft .seek-line input[type="range"],
  #player.tns-compact-fft .volume-line input[type="range"] {
    min-width: 0;
    max-width: 100%;
  }
  #player.tns-compact-fft .tns-fft-eight {
    width: calc(100% - 12px);
    justify-self: center;
  }

  /* Tone controls fit horizontally and stay above the lower neon rail. */
  #player.tns-compact-fft .tns-tone-panel {
    width: calc(100% - 12px);
    justify-self: center;
    gap: 5px;
    padding: 7px 4px;
  }
  #player.tns-compact-fft .tns-tone-knobs {
    gap: 6px;
    flex-shrink: 1;
  }
  #player.tns-compact-fft .tns-tone-knob-wrap {
    min-width: 42px;
    gap: 3px;
  }
  #player.tns-compact-fft .tns-tone-dial {
    width: 38px;
    height: 38px;
  }
  #player.tns-compact-fft .tns-loudness-button {
    padding: 6px 5px;
    font-size: 8px;
    letter-spacing: .03em;
  }
}

@media (max-width: 360px) {
  #player.tns-compact-fft .player-left {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 7px;
    padding-left: 32px !important;
    padding-right: 32px !important;
    padding-bottom: 61px !important;
  }
  #player.tns-compact-fft .player-art {
    width: 42px;
    height: 42px;
  }
  #player.tns-compact-fft .now-playing {
    min-height: 42px;
  }
  #player.tns-compact-fft .transport {
    gap: 4px;
  }
}
