/* Optimized layout for common 15-inch laptop displays. */
@media (max-width: 1500px), (max-height: 850px) {
  .topbar {
    height: 52px;
    padding: 0 10px;
  }

  .logo {
    font-size: 16px;
  }

  .top-actions {
    gap: 5px;
  }

  .top-actions button,
  .outline,
  .icon-btn {
    padding: 6px 8px;
    font-size: 9px;
  }

  .notice {
    padding: 4px 12px;
    font-size: 9px;
  }

  .dj-app {
    padding: 6px;
  }

  .master-waveforms,
  .master-waveforms canvas {
    height: 48px;
  }

  .controller-grille {
    height: 48px;
    margin-top: 5px;
    border-width: 1px;
  }

  .controller-grille strong {
    font-size: 17px;
  }

  .controller-grille small {
    font-size: 6px;
  }

  .hardware-layout {
    grid-template-columns: minmax(0, 1fr) 230px minmax(0, 1fr) !important;
    gap: 4px !important;
    padding: 4px !important;
  }

  .hardware-layout .deck-head {
    min-height: 42px;
    padding: 5px 7px;
    gap: 6px;
  }

  .deck-head strong {
    font-size: 10px;
  }

  .deck-head small,
  .deck-head > span:last-child {
    font-size: 7px;
  }

  .source-tabs {
    padding: 4px 6px 0;
  }

  .source {
    padding: 4px 6px;
    font-size: 7px;
  }

  .deck-lcd {
    height: 37px !important;
    min-height: 37px;
    max-height: 37px;
  }

  .deck-lcd canvas {
    height: 35px !important;
  }

  .hardware-layout .deck-body {
    min-height: 174px;
    padding: 5px 7px;
  }

  .hardware-layout .platter {
    width: 164px;
    height: 164px;
    border-width: 5px;
  }

  .pitch-box {
    height: 168px;
  }

  .pitch-box input {
    height: 112px;
  }

  .eq-strip {
    gap: 3px;
  }

  .pad-mode-buttons {
    width: 190px;
    margin-bottom: 4px;
  }

  .pad-mode-buttons button {
    padding: 4px 2px;
  }

  .transport {
    min-height: 61px;
    padding: 5px !important;
  }

  .transport .play {
    width: 54px !important;
    min-width: 54px;
    height: 54px !important;
    font-size: 10px !important;
  }

  .transport .cue {
    width: 46px !important;
    min-width: 46px;
    height: 46px !important;
    font-size: 9px !important;
  }

  .transport button:not(.play):not(.cue) {
    min-height: 31px;
    font-size: 8px;
  }

  .hardware-layout .pro-center-mixer {
    padding: 6px !important;
  }

  .pro-center-mixer .mixer-title {
    padding: 5px;
    font-size: 9px;
  }

  .mixer-top-row {
    margin: 5px 0;
  }

  .pro-meter-screen {
    min-height: 70px;
  }

  .pro-meter-screen .meters {
    height: 58px;
  }

  .mixer-channel-eq {
    margin-top: 5px;
  }

  .mixer-channel {
    gap: 3px;
    padding: 5px;
  }

  .mixer-channel-eq .master-knob input {
    height: 75px;
  }

  .pro-center-mixer .channel-faders {
    height: 108px;
    margin-top: 5px;
    padding: 6px 10px;
  }

  .pro-center-mixer .channel-faders input {
    height: 84px;
  }

  .pro-center-mixer .cue-row,
  .pro-center-mixer .cross-label {
    margin-top: 4px;
  }

  .pro-center-mixer .head-controls,
  .pro-center-mixer .cross-label {
    padding: 5px;
  }

  .performance-studio,
  .browser {
    margin-top: 7px;
  }
}

@media (max-width: 1200px) {
  .hardware-layout {
    grid-template-columns: minmax(0, 1fr) 205px minmax(0, 1fr) !important;
  }

  .hardware-layout .platter {
    width: 145px;
    height: 145px;
  }

  .top-actions {
    overflow-x: auto;
    scrollbar-width: none;
  }
}
