.pgmrp-wrap {
  --pgm-bg1: #2a1022;
  --pgm-bg2: #150c2a;
  --pgm-card: rgba(255, 255, 255, .085);
  --pgm-line: rgba(255, 255, 255, .24);
  --pgm-text: #fff1fb;
  --pgm-muted: #f0cbe5;
  --pgm-title: #fff7fb;
  --pgm-accent: #ffb43b;
  --pgm-accent2: #ff7a59;
  --pgm-pill: rgba(255, 255, 255, .15);
  --pgm-shadow: rgba(0, 0, 0, .35);
  box-sizing: border-box;
  container-name: pgmrp;
  container-type: inline-size;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 170, 55, .22), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(149, 50, 161, .34), transparent 32%),
    linear-gradient(135deg, var(--pgm-bg1), var(--pgm-bg2));
  color: var(--pgm-text);
  overflow: clip;
  isolation: isolate;
}

.pgmrp-wrap,
.pgmrp-wrap * {
  box-sizing: border-box;
}

.pgmrp-wrap img,
.pgmrp-wrap audio {
  max-width: 100%;
}

.pgmrp-wrap button,
.pgmrp-wrap a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.pgmrp-wrap[data-active-theme="light"] {
  --pgm-bg1: #fff7d7;
  --pgm-bg2: #ead9ff;
  --pgm-card: rgba(255, 255, 255, .68);
  --pgm-line: rgba(91, 33, 77, .18);
  --pgm-text: #5b214d;
  --pgm-muted: #7b3b68;
  --pgm-title: #5b214d;
  --pgm-pill: rgba(255, 255, 255, .76);
  --pgm-shadow: rgba(91, 33, 77, .18);
}

.pgmrp-shell {
  width: min(100%, 1180px);
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  border: 1px solid var(--pgm-line);
  border-radius: clamp(18px, 2.4vw, 34px);
  padding: clamp(16px, 3vw, 46px);
  background: linear-gradient(135deg, var(--pgm-card), rgba(255, 255, 255, .035));
  box-shadow: 0 32px 90px var(--pgm-shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.pgmrp-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.pgmrp-mini-logo {
  width: clamp(50px, 5.3vw, 62px);
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffcf3f, #ff8158);
  display: grid;
  place-items: center;
  color: #5b214d;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 12px 28px rgba(255, 122, 89, .38);
}

.pgmrp-live {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--pgm-pill);
  font-weight: 900;
  color: #ff2f5f;
  box-shadow: 0 12px 24px rgba(255, 47, 95, .14);
  font-size: 15px;
  white-space: nowrap;
}

.pgmrp-live span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff2f5f;
  box-shadow: 0 0 0 5px rgba(255, 47, 95, .18);
  animation: pgmrpPulseDot 1.5s infinite;
}

.pgmrp-theme-switch {
  justify-self: center;
  display: flex;
  max-width: 100%;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--pgm-pill);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
}

.pgmrp-theme-btn {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: var(--pgm-muted);
  font-weight: 900;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.pgmrp-theme-btn.is-active {
  background: linear-gradient(135deg, #ffcf3f, #ff8158);
  color: #5b214d;
  box-shadow: 0 7px 16px rgba(255, 122, 89, .24);
}

.pgmrp-grid {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 74px);
  min-width: 0;
}

.pgmrp-art-area,
.pgmrp-content {
  min-width: 0;
}

.pgmrp-art-area {
  display: grid;
  place-items: center;
}

.pgmrp-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(210px, 28vw, 370px);
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffbf31, #ff7a59, #b24fc6);
  box-shadow: 0 0 46px rgba(255, 122, 89, .38), inset 0 0 0 15px rgba(255, 255, 255, .11);
}

.pgmrp-disc::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.4vw, 16px);
  border: 2px solid rgba(255, 255, 255, .36);
  border-radius: 50%;
  pointer-events: none;
}

.pgmrp-disc img {
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
  border-radius: 50%;
}

.pgmrp-content {
  text-align: center;
}

.pgmrp-kicker {
  margin: 0 0 18px;
  color: var(--pgm-muted);
  font-size: clamp(13px, 1.6vw, 20px);
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.pgmrp-content h1 {
  margin: 0;
  color: var(--pgm-title);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6.8vw, 92px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: .95;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.pgmrp-subtitle {
  max-width: 680px;
  margin: 20px auto 26px;
  color: var(--pgm-muted);
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 900;
  line-height: 1.3;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.pgmrp-nowplaying {
  width: min(100%, 520px);
  min-width: 0;
  margin: 0 auto 18px;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .115);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

.pgmrp-wrap[data-active-theme="light"] .pgmrp-nowplaying {
  background: rgba(255, 255, 255, .62);
}

.pgmrp-label {
  margin-bottom: 9px;
  color: var(--pgm-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pgmrp-title {
  --pgmrp-title-gap: 48px;
  position: relative;
  width: 100%;
  max-width: 100%;
  color: var(--pgm-title);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1.25;
  overflow: hidden;
}

.pgmrp-title-track {
  display: block;
  min-width: 0;
  white-space: nowrap;
}

.pgmrp-title-copy {
  display: block;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgmrp-title-copy-clone {
  display: none;
}

.pgmrp-title.is-scrolling {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.pgmrp-title.is-scrolling .pgmrp-title-track {
  display: flex;
  width: max-content;
  min-width: max-content;
  animation: pgmrpTitleMarquee var(--pgmrp-marquee-duration, 14s) linear infinite;
  will-change: transform;
}

.pgmrp-title.is-scrolling .pgmrp-title-copy {
  display: block;
  flex: 0 0 auto;
  overflow: visible;
  padding-right: var(--pgmrp-title-gap);
  text-align: left;
  text-overflow: clip;
}

.pgmrp-title.is-scrolling:hover .pgmrp-title-track,
.pgmrp-title.is-scrolling:focus-within .pgmrp-title-track {
  animation-play-state: paused;
}

.pgmrp-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pgmrp-led {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
}

.pgmrp-led i {
  width: 9px;
  height: 22px;
  border-radius: 99px;
  background: linear-gradient(#ffd24b, #ff8b45);
  box-shadow: 0 0 15px rgba(255, 170, 55, .55);
  animation: pgmrpBars 1s ease-in-out infinite;
}

.pgmrp-led i:nth-child(2) { height: 34px; animation-delay: .12s; }
.pgmrp-led i:nth-child(3) { height: 42px; animation-delay: .24s; }
.pgmrp-led i:nth-child(4) { height: 24px; animation-delay: .36s; }
.pgmrp-led i:nth-child(5) { height: 18px; animation-delay: .48s; }
.pgmrp-led i:nth-child(6) { height: 39px; animation-delay: .60s; }
.pgmrp-led i:nth-child(7) { height: 29px; animation-delay: .72s; }
.pgmrp-wrap:not(.is-playing) .pgmrp-led i { animation-play-state: paused; opacity: .55; }

.pgmrp-play {
  display: inline-grid;
  place-items: center;
  width: clamp(70px, 7.5vw, 88px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffcf3f, #ff8158);
  color: #fff;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(255, 122, 89, .48), 0 8px 16px rgba(0, 0, 0, .2);
  transition: transform .18s ease;
}

.pgmrp-play:hover { transform: translateY(-2px); }
.pgmrp-play:active { transform: scale(.95); }
.pgmrp-play.is-loading { animation: pgmrpButtonPulse 1s infinite; }

.pgmrp-theme-btn:focus-visible,
.pgmrp-play:focus-visible,
.pgmrp-action:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.pgmrp-status {
  margin: 14px 0 20px;
  color: var(--pgm-muted);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pgmrp-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.pgmrp-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 13px 21px;
  background: var(--pgm-pill);
  color: var(--pgm-text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.pgmrp-description {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--pgm-muted);
  font-size: clamp(16px, 1.65vw, 20px);
  font-weight: 800;
  line-height: 1.48;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

@keyframes pgmrpBars {
  0%, 100% { transform: scaleY(.65); }
  50% { transform: scaleY(1.35); }
}

@keyframes pgmrpPulseDot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(.7); }
}

@keyframes pgmrpButtonPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(.94); }
}

@keyframes pgmrpTitleMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Container queries make the player respond to its Divi/Gutenberg column,
   rather than only to the full browser window. */
@container pgmrp (max-width: 920px) {
  .pgmrp-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pgmrp-disc { width: min(330px, 64cqw); }
  .pgmrp-content h1 { font-size: clamp(48px, 11cqw, 86px); }
  .pgmrp-subtitle { font-size: clamp(18px, 3cqw, 24px); }
  .pgmrp-nowplaying { max-width: 560px; }
  .pgmrp-title { font-size: clamp(22px, 4cqw, 30px); }
}

@container pgmrp (max-width: 600px) {
  .pgmrp-wrap {
    min-height: 0;
    padding: 12px;
  }

  .pgmrp-shell {
    padding: 20px 14px;
    border-radius: 24px;
  }

  .pgmrp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
  }

  .pgmrp-mini-logo {
    width: 52px;
    border-radius: 15px;
    font-size: 14px;
  }

  .pgmrp-live {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 13px;
  }

  .pgmrp-theme-switch {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .pgmrp-theme-btn {
    flex: 1 1 0;
    padding-inline: 10px;
  }

  .pgmrp-disc { width: min(270px, 72cqw); }
  .pgmrp-content h1 { font-size: clamp(42px, 14cqw, 68px); }
  .pgmrp-kicker { margin-bottom: 14px; font-size: 13px; }
  .pgmrp-subtitle { margin: 16px auto 20px; font-size: 18px; }
  .pgmrp-nowplaying { padding: 17px 16px; border-radius: 20px; }
  .pgmrp-title { font-size: clamp(20px, 6cqw, 26px); line-height: 1.27; }
  .pgmrp-led { height: 48px; }
  .pgmrp-status { font-size: 15px; }
  .pgmrp-action { padding: 12px 18px; font-size: 15px; }
  .pgmrp-description { font-size: 15px; line-height: 1.5; }
}

@container pgmrp (max-width: 360px) {
  .pgmrp-wrap { padding: 8px; }
  .pgmrp-shell { padding: 16px 10px; border-radius: 18px; }
  .pgmrp-topbar { gap: 8px; }
  .pgmrp-mini-logo { width: 44px; border-radius: 13px; font-size: 12px; }
  .pgmrp-live { min-height: 34px; gap: 6px; padding: 7px 10px; font-size: 11px; }
  .pgmrp-live span { width: 9px; height: 9px; box-shadow: 0 0 0 3px rgba(255, 47, 95, .18); }
  .pgmrp-theme-switch { gap: 2px; padding: 4px; }
  .pgmrp-theme-btn { min-height: 32px; padding: 7px 5px; font-size: 12px; }
  .pgmrp-grid { gap: 22px; }
  .pgmrp-disc { width: min(210px, 72cqw); }
  .pgmrp-content h1 { font-size: clamp(36px, 15cqw, 48px); }
  .pgmrp-kicker { font-size: 11px; letter-spacing: .1em; }
  .pgmrp-subtitle { font-size: 15px; }
  .pgmrp-nowplaying { padding: 14px 10px; }
  .pgmrp-label { font-size: 10px; }
  .pgmrp-title { font-size: 18px; }
  .pgmrp-actions { gap: 8px; }
  .pgmrp-action { width: 100%; min-height: 42px; padding: 10px 12px; font-size: 14px; }
  .pgmrp-description { font-size: 13px; }
}

/* Viewport-query fallback for browsers without container-query support. */
@supports not (container-type: inline-size) {
  @media (max-width: 1100px) {
    .pgmrp-grid { grid-template-columns: 1fr; gap: 28px; }
    .pgmrp-disc { width: min(330px, 64vw); }
  }

  @media (max-width: 700px) {
    .pgmrp-wrap { min-height: 0; padding: 12px; }
    .pgmrp-shell { padding: 20px 14px; border-radius: 24px; }
    .pgmrp-topbar { display: flex; justify-content: space-between; flex-wrap: wrap; }
    .pgmrp-theme-switch { order: 3; width: 100%; justify-content: center; }
    .pgmrp-theme-btn { flex: 1 1 0; }
    .pgmrp-disc { width: min(270px, 72vw); }
  }

  @media (max-width: 360px) {
    .pgmrp-wrap { padding: 8px; }
    .pgmrp-actions .pgmrp-action { width: 100%; }
  }
}

/* Wide-screen and television presentation. */
@media (min-width: 1600px) {
  .pgmrp-wrap { padding-block: clamp(24px, 5vh, 72px); }
}

@container pgmrp (min-width: 1500px) {
  .pgmrp-shell { width: min(92%, 1500px); }
  .pgmrp-content h1 { font-size: clamp(92px, 6vw, 122px); }
  .pgmrp-title { font-size: 36px; }
  .pgmrp-description { font-size: 22px; }
  .pgmrp-action,
  .pgmrp-status { font-size: 20px; }
  .pgmrp-disc { width: clamp(390px, 25vw, 470px); }
}

/* Keep the complete player comfortably framed on common laptop screens. */
@media (min-width: 921px) and (max-height: 900px) {
  .pgmrp-wrap { padding-block: 10px; }

  @container pgmrp (min-width: 921px) {
    .pgmrp-shell { padding-block: 24px; }
    .pgmrp-topbar { margin-bottom: 18px; }
    .pgmrp-grid { gap: clamp(26px, 4vw, 54px); }
    .pgmrp-disc { width: min(300px, 25vw); }
    .pgmrp-kicker { margin-bottom: 10px; font-size: 14px; }
    .pgmrp-content h1 { font-size: clamp(54px, 5.5vw, 76px); }
    .pgmrp-subtitle { margin-block: 12px 14px; font-size: 18px; }
    .pgmrp-nowplaying { margin-bottom: 8px; padding-block: 14px; }
    .pgmrp-title { font-size: 22px; }
    .pgmrp-led { height: 42px; margin-block: 4px; }
    .pgmrp-play { width: 68px; font-size: 28px; }
    .pgmrp-status { margin-block: 9px 12px; font-size: 14px; }
    .pgmrp-action { min-height: 40px; padding: 10px 17px; font-size: 14px; }
    .pgmrp-description { margin-top: 14px; font-size: 16px; }
  }
}

@media (min-width: 2560px) and (min-height: 1200px) {
  @container pgmrp (min-width: 2560px) {
    .pgmrp-shell {
      width: min(86%, 2200px);
      padding: clamp(56px, 3vw, 86px);
    }

    .pgmrp-mini-logo { width: 86px; font-size: 20px; }
    .pgmrp-live { min-height: 58px; padding-inline: 24px; font-size: 20px; }
    .pgmrp-theme-btn { min-height: 46px; padding-inline: 20px; font-size: 18px; }
    .pgmrp-grid { grid-template-columns: minmax(440px, .9fr) minmax(0, 1.1fr); }
    .pgmrp-disc { width: clamp(500px, 19vw, 680px); }
    .pgmrp-kicker { font-size: 25px; }
    .pgmrp-content h1 { font-size: clamp(128px, 5vw, 180px); }
    .pgmrp-subtitle { font-size: 34px; }
    .pgmrp-nowplaying { width: min(100%, 760px); padding: 28px 32px; }
    .pgmrp-label { font-size: 17px; }
    .pgmrp-title { font-size: 46px; }
    .pgmrp-led { height: 76px; gap: 12px; }
    .pgmrp-led i { width: 13px; }
    .pgmrp-play { width: 118px; font-size: 46px; }
    .pgmrp-status { font-size: 25px; }
    .pgmrp-action { min-height: 60px; padding-inline: 28px; font-size: 23px; }
    .pgmrp-description { max-width: 820px; font-size: 27px; }
  }
}

/* Short landscape phones, dashboards, kiosks and embedded displays. */
@media (max-height: 520px) and (orientation: landscape) {
  .pgmrp-wrap { min-height: 0; padding-block: 10px; }

  @container pgmrp (min-width: 640px) {
    .pgmrp-shell { padding-block: 16px; }
    .pgmrp-topbar { margin-bottom: 14px; }
    .pgmrp-grid { grid-template-columns: minmax(150px, .65fr) minmax(0, 1.35fr); gap: 22px; }
    .pgmrp-disc { width: min(48vh, 230px); }
    .pgmrp-kicker { margin-bottom: 8px; }
    .pgmrp-content h1 { font-size: clamp(38px, 8vh, 58px); }
    .pgmrp-subtitle { margin-block: 8px 10px; font-size: 15px; }
    .pgmrp-nowplaying { margin-bottom: 6px; padding-block: 10px; }
    .pgmrp-led { display: none; }
    .pgmrp-play { width: 58px; }
    .pgmrp-status { margin-block: 8px; font-size: 13px; }
    .pgmrp-action { min-height: 38px; padding: 9px 14px; font-size: 13px; }
    .pgmrp-description { display: none; }
  }
}

/* iPhone Safari compact mode.
   Safari's top and bottom browser bars reduce the usable viewport height, so
   essential listening controls are prioritized and kept in a compact panel. */
@media (max-width: 600px) and (orientation: portrait) {
  .pgmrp-wrap {
    padding:
      max(6px, env(safe-area-inset-top))
      max(6px, env(safe-area-inset-right))
      max(6px, env(safe-area-inset-bottom))
      max(6px, env(safe-area-inset-left));
  }

  .pgmrp-shell {
    padding: 10px;
    border-radius: 18px;
    box-shadow: 0 14px 38px var(--pgm-shadow);
  }

  .pgmrp-topbar {
    gap: 6px;
    margin-bottom: 10px;
  }

  .pgmrp-mini-logo {
    width: 42px;
    border-radius: 12px;
    font-size: 11px;
  }

  .pgmrp-live {
    min-height: 34px;
    gap: 6px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .pgmrp-live span {
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 3px rgba(255, 47, 95, .18);
  }

  .pgmrp-theme-switch {
    gap: 2px;
    padding: 3px;
  }

  .pgmrp-theme-btn {
    min-height: 32px;
    padding: 6px 5px;
    font-size: 12px;
  }

  .pgmrp-grid { gap: 10px; }
  .pgmrp-disc {
    width: min(156px, 40vw);
    width: min(156px, 40cqw);
  }
  .pgmrp-kicker { margin-bottom: 4px; font-size: 10px; letter-spacing: .12em; }
  .pgmrp-content h1 {
    font-size: clamp(36px, 11vw, 44px);
    font-size: clamp(36px, 11cqw, 44px);
    line-height: 1;
  }
  .pgmrp-subtitle { margin: 5px auto 7px; font-size: 13px; line-height: 1.2; }

  .pgmrp-nowplaying {
    margin-bottom: 4px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .pgmrp-label { margin-bottom: 4px; font-size: 9px; }

  .pgmrp-title { font-size: 16px; line-height: 1.2; }

  .pgmrp-led {
    height: 22px;
    gap: 5px;
    margin: 2px 0;
    transform: scale(.68);
  }

  .pgmrp-play { width: 54px; font-size: 22px; }
  .pgmrp-status { margin: 5px 0 7px; font-size: 12px; line-height: 1.25; }
  .pgmrp-actions { gap: 6px; flex-wrap: nowrap; }

  .pgmrp-action {
    width: auto;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .pgmrp-description { display: none; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .pgmrp-wrap {
    padding:
      max(4px, env(safe-area-inset-top))
      max(6px, env(safe-area-inset-right))
      max(4px, env(safe-area-inset-bottom))
      max(6px, env(safe-area-inset-left));
  }

  .pgmrp-shell {
    padding: 8px 12px;
    border-radius: 16px;
    box-shadow: 0 12px 32px var(--pgm-shadow);
  }

  .pgmrp-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 6px;
  }

  .pgmrp-mini-logo { width: 36px; border-radius: 10px; font-size: 10px; }

  .pgmrp-live {
    min-height: 30px;
    gap: 5px;
    padding: 5px 9px;
    font-size: 10px;
  }

  .pgmrp-live span {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px rgba(255, 47, 95, .18);
  }

  .pgmrp-theme-switch {
    order: initial;
    width: auto;
    gap: 2px;
    padding: 3px;
  }

  .pgmrp-theme-btn {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 10px;
  }

  .pgmrp-grid {
    grid-template-columns: minmax(130px, .65fr) minmax(0, 1.35fr);
    gap: 12px;
  }

  .pgmrp-disc {
    width: min(34vh, 142px);
    width: min(34svh, 142px);
  }
  .pgmrp-kicker { margin-bottom: 2px; font-size: 9px; letter-spacing: .1em; }
  .pgmrp-content h1 {
    font-size: clamp(30px, 9vh, 40px);
    font-size: clamp(30px, 9svh, 40px);
    line-height: 1;
  }
  .pgmrp-subtitle { margin: 3px auto 5px; font-size: 11px; line-height: 1.15; }

  .pgmrp-nowplaying {
    margin-bottom: 3px;
    padding: 6px 10px;
    border-radius: 12px;
  }

  .pgmrp-label { margin-bottom: 2px; font-size: 8px; }

  .pgmrp-title { font-size: 14px; line-height: 1.15; }

  .pgmrp-led { display: none; }
  .pgmrp-play { width: 44px; font-size: 18px; }
  .pgmrp-status { margin: 3px 0 5px; font-size: 10px; line-height: 1.2; }
  .pgmrp-actions { gap: 5px; flex-wrap: nowrap; }

  .pgmrp-action {
    width: auto;
    min-height: 31px;
    padding: 6px 10px;
    font-size: 10px;
    white-space: nowrap;
  }

  .pgmrp-description { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pgmrp-wrap *,
  .pgmrp-wrap *::before,
  .pgmrp-wrap *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .pgmrp-title.is-scrolling .pgmrp-title-track {
    display: block;
    width: auto;
    min-width: 0;
    animation: none !important;
  }

  .pgmrp-title.is-scrolling .pgmrp-title-copy {
    display: block;
    overflow: hidden;
    padding-right: 0;
    text-align: center;
    text-overflow: ellipsis;
  }

  .pgmrp-title.is-scrolling .pgmrp-title-copy-clone {
    display: none;
  }
}

@media (prefers-color-scheme: light) {
  .pgmrp-wrap[data-theme="auto"] {
    --pgm-bg1: #fff7d7;
    --pgm-bg2: #ead9ff;
    --pgm-card: rgba(255, 255, 255, .68);
    --pgm-line: rgba(91, 33, 77, .18);
    --pgm-text: #5b214d;
    --pgm-muted: #7b3b68;
    --pgm-title: #5b214d;
    --pgm-pill: rgba(255, 255, 255, .76);
    --pgm-shadow: rgba(91, 33, 77, .18);
  }
}
