/* RADIO GRIND — Stage 13 Performance Guard for Templates SAFE
   CSS-only performance profiles. No API/player/data selectors are changed. */

body.rg-performance-reduced-motion,
body.rg-performance-reduced-motion * {
  scroll-behavior: auto !important;
  animation-duration: .001ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  transition-delay: 0ms !important;
}

body.rg-performance-low-device {
  --shadow: none;
  --shadow-soft: none;
  --glass: rgba(255,255,255,.045);
}

body.rg-performance-low-device .card,
body.rg-performance-low-device .track-card,
body.rg-performance-low-device .modal-content,
body.rg-performance-low-device .dropdown-menu,
body.rg-performance-low-device .rg-board-block-hero .card,
body.rg-performance-low-device .rg-board-block-promo .card,
body.rg-performance-low-device .rg-board-block-about_panel .card {
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.rg-performance-low-device .rg-board-block-promo .card::before,
body.rg-performance-low-device .rg-board-block-hero .card::before,
body.rg-performance-low-device .rg-board-block-about_panel .card::before,
body.rg-performance-low-device .track-card::before,
body.rg-performance-low-device .track-card::after {
  display: none !important;
}

body.rg-performance-strict-safe,
body.rg-performance-strict-safe * {
  scroll-behavior: auto !important;
  animation-duration: .001ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  transition-delay: 0ms !important;
}

body.rg-performance-strict-safe {
  --shadow: none;
  --shadow-soft: none;
  --glass: rgba(255,255,255,.035);
}

body.rg-performance-strict-safe .card,
body.rg-performance-strict-safe .track-card,
body.rg-performance-strict-safe .modal-content,
body.rg-performance-strict-safe .dropdown-menu,
body.rg-performance-strict-safe .rg-board-block-hero .card,
body.rg-performance-strict-safe .rg-board-block-promo .card,
body.rg-performance-strict-safe .rg-board-block-about_panel .card {
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.rg-performance-strict-safe .rg-board-block-promo .card::before,
body.rg-performance-strict-safe .rg-board-block-hero .card::before,
body.rg-performance-strict-safe .rg-board-block-about_panel .card::before,
body.rg-performance-strict-safe .track-card::before,
body.rg-performance-strict-safe .track-card::after {
  display: none !important;
}

@media (max-width: 768px) {
  body.rg-performance-low-device .rg-board-block-promo,
  body.rg-performance-strict-safe .rg-board-block-promo,
  body.rg-performance-strict-safe .rg-board-block-about_panel {
    display: none !important;
  }

  body.rg-performance-low-device .container,
  body.rg-performance-strict-safe .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body.rg-performance-low-device .row,
  body.rg-performance-strict-safe .row {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.rg-performance-balanced,
  body.rg-performance-balanced *,
  body.rg-performance-low-device,
  body.rg-performance-low-device * {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
}
