/* Restore comfortable scale while preserving the one-screen desktop layout. */
@media (min-width: 901px) {
  body {
    padding-top: 14px !important;
    padding-bottom: 10px !important;
  }

  .section-heading {
    margin: 2px auto 11px !important;
  }

  .section-eyebrow {
    margin-bottom: 6px !important;
    font-size: 10px !important;
  }

  .section-heading h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.1rem) !important;
  }

  .gamemode-toggle {
    margin-bottom: 12px !important;
  }

  .gamemode-pill {
    padding: 4px !important;
    border-radius: 13px !important;
  }

  .gamemode-btn {
    min-width: 96px !important;
    padding: 9px 26px !important;
    font-size: 12px !important;
  }

  .spec-grid {
    max-width: 1080px !important;
    gap: 9px !important;
    margin-bottom: 8px !important;
  }

  .class-card {
    min-height: 90px !important;
    gap: 7px !important;
    padding: 12px 8px 10px !important;
    border-radius: 14px !important;
  }

  .class-card .card-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 11px !important;
  }

  .class-card .card-label {
    font-size: 9.5px !important;
  }

  #midnight-logo {
    margin: 8px auto 7px !important;
    padding: 1px 0 !important;
  }

  .midnight-logo-title {
    font-size: clamp(2.6rem, 4vw, 3.35rem) !important;
  }

  .midnight-logo-classic {
    font-size: clamp(0.9rem, 1.35vw, 1.12rem) !important;
  }

  .midnight-logo-sub {
    font-size: clamp(0.62rem, 0.85vw, 0.76rem) !important;
  }

  #player-section {
    max-width: 1120px !important;
  }

  #player-section .video-holder.glass {
    width: min(1080px, 100%) !important;
    height: min(607.5px, 60.75vw, calc(100dvh - 460px)) !important;
    margin-top: 5px !important;
    padding: 9px !important;
  }

  #statusLabel,
  #nowPlayingTitle,
  #endsAtLabel {
    font-size: 12px !important;
  }
}

/* Medium-height desktops remain roomy without overflowing. */
@media (min-width: 901px) and (max-height: 820px) {
  body {
    padding-top: 8px !important;
  }

  .section-heading {
    margin-bottom: 7px !important;
  }

  .section-heading h2 {
    font-size: 1.55rem !important;
  }

  .gamemode-toggle {
    margin-bottom: 8px !important;
  }

  .gamemode-btn {
    padding-block: 7px !important;
  }

  .spec-grid {
    max-width: 980px !important;
    gap: 7px !important;
    margin-bottom: 5px !important;
  }

  .class-card {
    min-height: 76px !important;
    padding-block: 8px !important;
  }

  .class-card .card-icon {
    width: 38px !important;
    height: 38px !important;
  }

  #midnight-logo {
    margin: 4px auto !important;
  }

  .midnight-logo-title {
    font-size: 2.35rem !important;
  }

  #player-section .video-holder.glass {
    width: min(980px, 100%) !important;
    height: min(551px, calc(100dvh - 365px)) !important;
  }
}
