.zype-binge-player {
  --bg: #070a14;
  --text: #eef2ff;
  --muted: #9aa6c3;
  --primary: #ff2d95;
  --accent: #4db8ff;
  --progress: #d7e0ff;
  --border: #2a3150;
  --surface: #12162a;
  --control: #f0f4ff;
  --control-disabled: #5b6585;
  --focus: #4db8ff;
  --page-glow: radial-gradient(ellipse 90% 55% at 50% -8%, rgba(77, 184, 255, 0.18), transparent 58%),
    radial-gradient(ellipse 70% 45% at 85% 18%, rgba(255, 45, 149, 0.12), transparent 52%),
    radial-gradient(ellipse 60% 40% at 10% 70%, rgba(108, 74, 255, 0.1), transparent 55%);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --app-max: 560px;
  --artwork-size: min(72vw, 420px);
  --control-size: 44px;
  /* Pause-ad intrinsic frames; media viewport height follows the active variant. */
  --pause-ad-aspect: 1672 / 941; /* ad_pause.png + audio.png */
  --pause-ad-aspect-mobile: 2172 / 724; /* mobile_ad_pause.png + audio_mobile.png */
  --media-viewport-aspect: var(--pause-ad-aspect);
}

/* Compact + Menu Below use the mobile pause banner; variant attr wins when set. */
.zype-binge-player[data-compact="true"],
.zype-binge-player[data-menu-mode="persistent"][data-selected-layout="menu-bottom"] {
  --media-viewport-aspect: var(--pause-ad-aspect-mobile);
}

.zype-binge-player[data-pause-image-variant="mobile"] {
  --media-viewport-aspect: var(--pause-ad-aspect-mobile);
}

.zype-binge-player[data-pause-image-variant="desktop"] {
  --media-viewport-aspect: var(--pause-ad-aspect);
}

/* box-sizing only inside the player root (never global). */
.zype-binge-player,
.zype-binge-player *,
.zype-binge-player *::before,
.zype-binge-player *::after {
  box-sizing: border-box;
}

/* Former html/body surface + typography, now owned by the component root. */
.zype-binge-player {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--page-glow);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: normal;
  text-align: left;
  letter-spacing: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.zype-binge-player button,
.zype-binge-player input {
  font: inherit;
  color: inherit;
}

.zype-binge-player button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.zype-binge-player [hidden] {
  display: none !important;
}

.zype-binge-player button:disabled {
  cursor: default;
  color: var(--control-disabled);
}

.zype-binge-player img {
  max-width: 100%;
  display: block;
}

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

/*
 * Component root. The player is an embedded, fixed-height box (default 640px):
 * the page itself is never locked or resized. Content that does not fit scrolls
 * inside .layout-root so controls stay reachable in short containers.
 */
.zype-binge-player {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: var(--zype-binge-height, 640px);
  min-height: 0;
  max-height: var(--zype-binge-max-height, none);
  max-width: var(--app-max);
  margin: 0 auto;
  overflow: hidden;
  padding:
    calc(0.35rem + var(--safe-top))
    calc(0.75rem + var(--safe-right))
    calc(1rem + var(--safe-bottom))
    calc(0.75rem + var(--safe-left));
}

.zype-binge-player .boot-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 90, 120, 0.45);
  background: rgba(80, 16, 28, 0.85);
  color: #ffc9d1;
  border-radius: 8px;
}

.zype-binge-player .top-bar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.5rem;
  min-height: 48px;
  padding: 0.15rem 0.15rem 0.35rem;
}

.zype-binge-player .brand-slot {
  display: flex;
  align-items: center;
  grid-column: 1;
  justify-self: start;
  min-width: 0;
  min-height: var(--logo-max-height, 48px);
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.zype-binge-player .live-home-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  outline: none;
}

.zype-binge-player .live-home-link:hover,
.zype-binge-player .live-home-link:focus-visible {
  color: inherit;
  text-decoration: none;
}

.zype-binge-player .live-home-link:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus);
}

.zype-binge-player .live-home-link[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
  opacity: 0.72;
}

.zype-binge-player .station-logo {
  width: auto;
  height: var(--logo-max-height, 48px);
  max-width: min(var(--logo-max-width, 180px), 100%);
  max-height: var(--logo-max-height, 48px);
  object-fit: contain;
  object-position: left center;
  /* Prevent intrinsic image size from inflating parent grid tracks. */
  min-width: 0;
  min-height: 0;
  pointer-events: none;
}

.zype-binge-player .station-title {
  margin: 0;
  min-width: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.zype-binge-player .station-logo[hidden],
.zype-binge-player .station-title[hidden],
.zype-binge-player .layout-picker[hidden],
.zype-binge-player .layout-menu[hidden] {
  display: none !important;
}

.zype-binge-player .header-center {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: min(68vw, 22rem);
}

.zype-binge-player .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem;
  grid-column: 3;
  justify-self: end;
  min-width: 0;
}

.zype-binge-player .layout-picker {
  position: relative;
}

.zype-binge-player .layout-menu {
  position: absolute;
  top: calc(100% + 0.3rem);
  right: 0;
  z-index: 60;
  display: flex;
  gap: 0.3rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.zype-binge-player .layout-option {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--control);
}

.zype-binge-player .layout-option svg {
  width: 1.4rem;
  height: 1.4rem;
}

.zype-binge-player .layout-option:hover,
.zype-binge-player .layout-option:focus-visible,
.zype-binge-player .layout-option.is-selected {
  background: rgba(77, 184, 255, 0.16);
}

.zype-binge-player .layout-option.is-selected {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.zype-binge-player .menu-open-btn {
  flex: 0 0 auto;
}

.zype-binge-player .icon-btn {
  width: var(--control-size);
  height: var(--control-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--control);
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.zype-binge-player .icon-btn svg {
  width: 1.45rem;
  height: 1.45rem;
}

.zype-binge-player .icon-btn:hover:not(:disabled),
.zype-binge-player .icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.zype-binge-player .icon-btn:focus-visible,
.zype-binge-player .control-btn:focus-visible,
.zype-binge-player .search-input:focus-visible,
.zype-binge-player .progress-range:focus-visible,
.zype-binge-player .volume-range:focus-visible,
.zype-binge-player .load-more-btn:focus-visible,
.zype-binge-player .media-row:focus-visible,
.zype-binge-player .browser-back:focus-visible,
.zype-binge-player .next-up-btn:focus-visible,
.zype-binge-player .layout-option:focus-visible,
.zype-binge-player .layout-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.zype-binge-player .player-shell {
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "art"
    "progress"
    "controls"
    "meta";
  align-content: start;
  align-items: stretch;
  gap: 0.85rem;
  padding-bottom: 0.5rem;
  min-width: 0;
}

.zype-binge-player .player-shell.has-status-message {
  grid-template-areas:
    "art"
    "progress"
    "controls"
    "meta"
    "status";
}

.zype-binge-player .artwork-block {
  grid-area: art;
  min-width: 0;
}

.zype-binge-player .artwork-meta {
  grid-area: meta;
  position: relative;
  text-align: center;
  padding: 0.15rem 0.75rem 0;
  min-width: 0;
}

.zype-binge-player .program-info {
  grid-area: status;
  text-align: center;
  padding: 0 0.75rem;
  min-height: 0;
}

.zype-binge-player .program-info[hidden] {
  display: none !important;
  margin: 0;
  padding: 0;
}

.zype-binge-player .meta-toggle {
  display: none;
}

.zype-binge-player .artwork-meta-panel {
  min-width: 0;
}

/*
 * Shared media viewport: .artwork-stage height follows the active pause-ad
 * aspect (--media-viewport-aspect), not artwork intrinsic dimensions.
 */
.zype-binge-player .artwork-stage {
  position: relative;
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: var(--media-viewport-aspect);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  background: #070a14;
  margin: 0.15rem 0 0.35rem;
}

.zype-binge-player .artwork-blur {
  display: none;
  position: absolute;
  inset: -12% -18%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(28px) saturate(1.15);
  transform: scale(1.18);
  opacity: 0.95;
}

.zype-binge-player .artwork-scrim {
  display: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.28)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.zype-binge-player .delivery-toggle {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(7, 10, 20, 0.78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.zype-binge-player .delivery-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.zype-binge-player .delivery-toggle:hover:not(:disabled) {
  background: rgba(18, 24, 48, 0.92);
}

.zype-binge-player .delivery-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--focus);
}

.zype-binge-player .delivery-toggle:disabled,
.zype-binge-player .delivery-toggle[aria-disabled="true"] {
  opacity: 0.55;
}

.zype-binge-player .delivery-icon[hidden] {
  display: none !important;
}

.zype-binge-player .delivery-note {
  margin: 0 0 0.35rem;
  padding: 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  color: var(--muted);
}

.zype-binge-player .delivery-note[hidden] {
  display: none !important;
}

.zype-binge-player[data-next-up="open"][data-delivery-toggle="on"] .next-up.next-up--top-right {
  right: 3.6rem;
}

.zype-binge-player .artwork-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  box-shadow: none;
  background: #070a14;
  aspect-ratio: auto;
}

.zype-binge-player .pause-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #070a14;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.zype-binge-player .pause-image-overlay[hidden] {
  display: none !important;
}

.zype-binge-player .pause-image-overlay.is-shown {
  opacity: 1;
  visibility: visible;
  /* Controls live in the header; keep the ad surface fully viewable. */
  pointer-events: none;
}

.zype-binge-player .pause-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  /* Keep full ad (copy + QR) visible; never crop or stretch. */
  object-fit: contain;
  object-position: center;
  background: #070a14;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Pause open: keep the locked stage; overlay fills it (no intrinsic height swap). */
.zype-binge-player[data-pause-image="open"] .artwork-stage {
  min-height: 0;
  height: auto;
  aspect-ratio: var(--media-viewport-aspect);
  align-items: stretch;
  justify-content: stretch;
  background: #070a14;
}

.zype-binge-player[data-pause-image="open"] .artwork-blur,
.zype-binge-player[data-pause-image="open"] .artwork-scrim,
.zype-binge-player[data-pause-image="open"] .artwork-image {
  display: none;
}

.zype-binge-player[data-pause-image="open"] .pause-image-overlay {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  opacity: 1;
  visibility: visible;
}

.zype-binge-player[data-pause-image="open"] .pause-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.zype-binge-player .pause-image-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.zype-binge-player .pause-image-actions[hidden] {
  display: none !important;
}

.zype-binge-player .pause-image-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(12, 16, 32, 0.82);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.zype-binge-player .pause-image-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.zype-binge-player .pause-image-btn:hover,
.zype-binge-player .pause-image-btn:focus-visible {
  background: rgba(18, 24, 48, 0.94);
  border-color: rgba(255, 255, 255, 0.45);
}

.zype-binge-player .pause-image-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.zype-binge-player .pause-image-resume {
  background: rgba(255, 45, 149, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
}

.zype-binge-player .pause-image-resume:hover,
.zype-binge-player .pause-image-resume:focus-visible {
  background: rgba(255, 45, 149, 1);
}

.zype-binge-player .pause-image-btn[hidden] {
  display: none !important;
}

.zype-binge-player[data-pause-image="open"] .header-playback-status {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .zype-binge-player .pause-image-overlay {
    transition: none;
  }
}

.zype-binge-player .next-up {
  position: absolute;
  z-index: 4;
  top: 0.65rem;
  right: 0.65rem;
  width: min(26.25rem, calc(100% - 1.3rem));
  max-height: calc(100% - 1.3rem);
  overflow: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "thumb head"
    "thumb copy";
  column-gap: 1rem;
  row-gap: 0.3rem;
  align-items: stretch;
  padding: 0.7rem 0.7rem 0.85rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.zype-binge-player .next-up[hidden],
.zype-binge-player .next-up-thumb[hidden] {
  display: none !important;
}

.zype-binge-player .next-up.is-shown {
  animation: zype-binge-next-up-in 180ms ease;
}

@keyframes zype-binge-next-up-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zype-binge-player .next-up-kicker {
  grid-area: head;
  margin: 0;
  align-self: center;
  min-height: 2.1rem;
  padding-right: 4.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.zype-binge-player .next-up-body {
  display: contents;
}

.zype-binge-player .next-up-thumb {
  grid-area: thumb;
  width: 7.125rem;
  height: 100%;
  min-height: 7.125rem;
  align-self: stretch;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.zype-binge-player .next-up-copy {
  grid-area: copy;
  align-self: start;
  min-width: 0;
}

.zype-binge-player .next-up-title,
.zype-binge-player .next-up-countdown {
  margin: 0;
}

.zype-binge-player .next-up-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zype-binge-player .next-up-countdown {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.zype-binge-player .next-up-actions {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem;
}

.zype-binge-player .next-up-btn {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  line-height: 0;
}

.zype-binge-player .next-up-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.zype-binge-player .next-up-close {
  border: 0;
  background: transparent;
  color: var(--text);
}

.zype-binge-player .next-up-play {
  border: 0;
  background: transparent;
  color: var(--primary);
}

.zype-binge-player .next-up-btn:hover:not(:disabled),
.zype-binge-player .next-up-btn:focus-visible {
  filter: brightness(1.08);
}

.zype-binge-player .next-up-btn:disabled {
  opacity: 0.55;
}

/* Next Up overlays the locked media viewport; do not grow stage height. */
.zype-binge-player[data-compact="true"][data-next-up="open"] .artwork-stage {
  min-height: 0;
}

.zype-binge-player[data-compact="true"] .next-up {
  top: 0.45rem;
  right: 0.45rem;
  width: min(23.25rem, calc(100% - 0.9rem));
  padding: 0.6rem 0.6rem 0.75rem 0.7rem;
}

.zype-binge-player[data-compact="true"] .next-up-thumb {
  width: 6.375rem;
  min-height: 6.375rem;
  height: 100%;
}

.zype-binge-player[data-compact="true"] .next-up-kicker {
  font-size: 0.74rem;
  min-height: 2rem;
  padding-right: 4.4rem;
}

.zype-binge-player[data-compact="true"] .next-up-title {
  font-size: 1rem;
}

.zype-binge-player[data-compact="true"] .next-up-countdown {
  font-size: 0.86rem;
}

.zype-binge-player[data-compact="true"] .next-up-btn {
  width: 2.4rem;
  height: 2.4rem;
  min-height: 2.4rem;
}

.zype-binge-player .progress-section {
  grid-area: progress;
  padding: 0 0.35rem;
}

.zype-binge-player .progress-track-wrap {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
}

.zype-binge-player .progress-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--progress) 0 var(--progress-fill, 0%),
    rgba(215, 224, 255, 0.22) var(--progress-fill, 0%) 100%
  );
  outline: none;
  margin: 0;
  cursor: pointer;
}

.zype-binge-player .progress-range:disabled {
  cursor: default;
  opacity: 0.85;
}

.zype-binge-player .progress-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--progress);
  border: 0;
  box-shadow: 0 0 0 2px var(--bg);
}

.zype-binge-player .progress-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--progress);
  border: 0;
}

.zype-binge-player .progress-range:disabled::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  background: transparent;
  box-shadow: none;
}

.zype-binge-player .progress-range:disabled::-moz-range-thumb {
  width: 0;
  height: 0;
  border: 0;
  background: transparent;
}

.zype-binge-player .progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  gap: 1rem;
}

.zype-binge-player .time-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.zype-binge-player .controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  min-height: 56px;
  padding: 0.15rem 0;
}

.zype-binge-player .control-btn {
  color: var(--control);
}

.zype-binge-player .control-btn svg {
  width: 1.55rem;
  height: 1.55rem;
}

.zype-binge-player .play-btn svg {
  width: 1.85rem;
  height: 1.85rem;
}

.zype-binge-player .play-btn .icon-play[hidden],
.zype-binge-player .play-btn .icon-pause[hidden],
.zype-binge-player .play-btn .icon-replay[hidden],
.zype-binge-player .play-btn .icon-loading[hidden] {
  display: none !important;
}

.zype-binge-player .play-btn .icon-loading:not([hidden]) {
  animation: zype-binge-play-spin 0.85s linear infinite;
}

@keyframes zype-binge-play-spin {
  to {
    transform: rotate(360deg);
  }
}

.zype-binge-player .skip-btn {
  position: relative;
}

.zype-binge-player .skip-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  transform: translateY(1px);
}

.zype-binge-player .live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.zype-binge-player .live-badge[hidden] {
  display: none !important;
}

.zype-binge-player .live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(255, 45, 149, 0.45);
  animation: zype-binge-live-pulse 1.8s ease-out infinite;
}

@keyframes zype-binge-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 45, 149, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 45, 149, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 45, 149, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zype-binge-player .live-dot,
  .zype-binge-player .playback-status[data-status="playing"] .playback-status-dot,
  .zype-binge-player .playback-status[data-status="buffering"] .playback-status-dot,
  .zype-binge-player .play-btn .icon-loading:not([hidden]) {
    animation: none;
  }

  .zype-binge-player .icon-btn,
  .zype-binge-player .media-browser,
  .zype-binge-player .browser-backdrop,
  .zype-binge-player .next-up,
  .zype-binge-player .next-up.is-shown {
    animation: none;
    transition: none !important;
  }
}

.zype-binge-player .volume-wrap {
  position: relative;
}

.zype-binge-player .volume-wrap .control-btn[aria-pressed="true"] {
  color: var(--accent);
}

.zype-binge-player .volume-panel {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 0.4rem);
  transform: translateX(50%);
  display: none;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  z-index: 5;
}

.zype-binge-player .volume-wrap:hover .volume-panel,
.zype-binge-player .volume-wrap:focus-within .volume-panel {
  display: block;
}

.zype-binge-player .volume-range {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 3px;
  border-radius: 999px;
  background: rgba(215, 224, 255, 0.22);
  outline: none;
}

.zype-binge-player .volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--control);
  border: 0;
}

.zype-binge-player .volume-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--control);
  border: 0;
}

.zype-binge-player .program-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.zype-binge-player .program-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.35;
}

.zype-binge-player .meta-toggle[hidden] {
  display: none !important;
}

.zype-binge-player .playback-status,
.zype-binge-player .header-playback-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  min-height: 1.2em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.zype-binge-player .header-playback-status {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(42vw, 11rem);
  padding: 0.15rem 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.zype-binge-player .go-live-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 1.75rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #e10600;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.zype-binge-player .go-live-btn:hover {
  background: #c10500;
  color: #fff;
}

.zype-binge-player .go-live-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--focus);
}

.zype-binge-player .go-live-btn[hidden] {
  display: none !important;
}

.zype-binge-player .playback-status-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #b0b0b0;
  flex: 0 0 auto;
}

.zype-binge-player .playback-status[data-status="playing"] {
  color: #1f7a3f;
}

.zype-binge-player .playback-status[data-status="playing"] .playback-status-dot {
  background: #2f9e4f;
  box-shadow: 0 0 0 0 rgba(47, 158, 79, 0.4);
  animation: zype-binge-status-pulse 1.8s ease-out infinite;
}

.zype-binge-player .playback-status[data-status="paused"],
.zype-binge-player .playback-status[data-status="stopped"] {
  color: var(--muted);
}

.zype-binge-player .playback-status[data-status="paused"] .playback-status-dot,
.zype-binge-player .playback-status[data-status="stopped"] .playback-status-dot {
  background: #b0b0b0;
}

.zype-binge-player .playback-status[data-status="buffering"] {
  color: var(--text);
}

.zype-binge-player .playback-status[data-status="buffering"] .playback-status-dot {
  background: transparent;
  border: 1.5px solid var(--control);
  border-right-color: transparent;
  animation: zype-binge-play-spin 0.8s linear infinite;
}

.zype-binge-player .playback-status[data-status="error"] {
  color: #9b1c1c;
}

.zype-binge-player .playback-status[data-status="error"] .playback-status-dot {
  background: #c0392b;
}

@keyframes zype-binge-status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 158, 79, 0.4);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(47, 158, 79, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 158, 79, 0);
  }
}

.zype-binge-player .status-message {
  margin: 0;
  min-height: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.zype-binge-player .status-message:empty {
  display: none;
}

.zype-binge-player .status-message.is-error {
  color: #9b1c1c;
}

.zype-binge-player .status-message.is-info {
  color: var(--text);
}

.zype-binge-player .embed-host {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #070a14;
  pointer-events: none;
}

.zype-binge-player[data-delivery="audio"] .embed-host,
.zype-binge-player:not([data-delivery]) .embed-host {
  opacity: 0;
  z-index: 0;
}

/* hideNativeEmbed (data-hide-embed="true"): in audio mode the embed is clipped away
   visually. Video mode always shows the video stage; hiding never strands the video. */
.zype-binge-player[data-hide-embed="true"][data-delivery="audio"] .embed-host,
.zype-binge-player[data-hide-embed="true"]:not([data-delivery]) .embed-host {
  clip-path: inset(50%);
}

.zype-binge-player[data-delivery="video"] .embed-host,
.zype-binge-player[data-hide-embed="false"] .embed-host {
  opacity: 1;
  z-index: 2;
  clip-path: none;
}

/* Native embed requested (hideNativeEmbed=false): leave its controls usable. */
.zype-binge-player[data-hide-embed="false"] .embed-host {
  pointer-events: auto;
}

.zype-binge-player[data-delivery="video"] .artwork-image,
.zype-binge-player[data-delivery="video"] .artwork-blur,
.zype-binge-player[data-delivery="video"] .artwork-scrim,
.zype-binge-player[data-hide-embed="false"] .artwork-image,
.zype-binge-player[data-hide-embed="false"] .artwork-blur,
.zype-binge-player[data-hide-embed="false"] .artwork-scrim {
  visibility: hidden;
}

.zype-binge-player .embed-host .bitmovinplayer-container,
.zype-binge-player .embed-host video,
.zype-binge-player .embed-host iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
}

.zype-binge-player .embed-host video {
  object-fit: contain !important;
  object-position: center !important;
  background: #070a14;
}

.zype-binge-player .live-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.zype-binge-player .browser-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 30;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.zype-binge-player .browser-backdrop.is-open {
  opacity: 1;
}

.zype-binge-player .media-browser {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(100%, var(--app-max));
  z-index: 40;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s ease, visibility 0s linear 0.22s;
  padding:
    calc(0.35rem + var(--safe-top))
    calc(0.85rem + var(--safe-right))
    calc(0.85rem + var(--safe-bottom))
    calc(0.85rem + var(--safe-left));
}

.zype-binge-player .media-browser.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.22s ease, visibility 0s linear 0s;
}

.zype-binge-player .layout-root {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.zype-binge-player .browser-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  min-height: 48px;
}

.zype-binge-player .browser-prefs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  width: 100%;
  min-width: 0;
  padding: 0.1rem 2.75rem 0.1rem 0;
}

.zype-binge-player[data-menu-mode="persistent"] .browser-prefs {
  padding-right: 0;
}

.zype-binge-player .close-btn {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--muted);
}

.zype-binge-player .pref-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.zype-binge-player .pref-switch-label {
  line-height: 1.2;
}

.zype-binge-player .pref-switch-control {
  position: relative;
  width: 36px;
  height: 22px;
  flex: 0 0 auto;
}

.zype-binge-player .pref-switch-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 1;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.zype-binge-player .pref-switch-track {
  display: block;
  width: 36px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--border);
  position: relative;
  pointer-events: none;
}

.zype-binge-player .pref-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--control);
  transition: transform 0.15s ease;
}

.zype-binge-player .pref-switch-input:checked + .pref-switch-track {
  background: var(--accent);
  border-color: transparent;
}

.zype-binge-player .pref-switch-input:checked + .pref-switch-track::after {
  transform: translateX(14px);
}

.zype-binge-player .pref-switch-input:focus-visible + .pref-switch-track {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.zype-binge-player .browser-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.zype-binge-player .search-form {
  position: relative;
  margin: 0.35rem 0 0.55rem;
}

.zype-binge-player .search-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 2.75rem 0 0.85rem;
  background: rgba(7, 10, 20, 0.55);
  color: var(--text);
  outline: none;
}

.zype-binge-player .search-input::placeholder {
  color: var(--muted);
}

.zype-binge-player .search-submit {
  position: absolute;
  right: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.zype-binge-player .browser-back {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  align-self: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.35rem 0.15rem;
  margin-bottom: 0.25rem;
}

.zype-binge-player .browser-back svg {
  width: 1.15rem;
  height: 1.15rem;
}

.zype-binge-player .browser-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.15rem 0 0.35rem;
}

.zype-binge-player .browser-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.zype-binge-player .media-list {
  overflow: visible;
  border-top: 1px solid var(--border);
}

.zype-binge-player .program-title,
.zype-binge-player .program-subtitle,
.zype-binge-player .media-row-title,
.zype-binge-player .media-row-meta {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.zype-binge-player .media-row {
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  height: auto;
  min-height: 88px;
  padding: 0.85rem 0.15rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  background: transparent;
}

.zype-binge-player .media-row:hover,
.zype-binge-player .media-row:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.zype-binge-player .media-row.is-selected {
  background: rgba(77, 184, 255, 0.12);
}

.zype-binge-player .media-row.is-live .media-row-title {
  color: var(--accent);
  font-weight: 700;
}

.zype-binge-player .media-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center center;
  background: transparent;
  border-radius: 2px;
  overflow: hidden;
  flex: 0 0 auto;
}

.zype-binge-player .media-row-copy {
  min-width: 0;
}

.zype-binge-player .media-row-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  height: auto;
  white-space: normal;
}

.zype-binge-player .media-row-meta {
  margin: 0.28rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
  height: auto;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.zype-binge-player .browser-footer {
  padding-top: 0.75rem;
}

.zype-binge-player .load-more-btn {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
}

.zype-binge-player .load-more-btn:hover:not(:disabled),
.zype-binge-player .load-more-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.zype-binge-player .load-more-btn:disabled {
  opacity: 0.6;
}

.zype-binge-player[data-menu-open="true"] {
  overflow: hidden;
}

@media (min-width: 769px) {
  .zype-binge-player {
    --artwork-size: min(56vw, 460px);
    --app-max: 640px;
  }

  .zype-binge-player {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
  }

  .zype-binge-player .controls {
    gap: 0.35rem;
  }

  .zype-binge-player .media-browser {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
  }
}

@media (max-width: 420px) {
  .zype-binge-player {
    --control-size: 40px;
    --artwork-size: min(78vw, 340px);
  }

  .zype-binge-player .controls {
    gap: 0;
  }

  .zype-binge-player .control-btn svg {
    width: 1.4rem;
    height: 1.4rem;
  }

  .zype-binge-player .play-btn svg {
    width: 1.65rem;
    height: 1.65rem;
  }

  .zype-binge-player .live-badge {
    font-size: 0.7rem;
  }
}

.zype-binge-player[data-menu-mode="persistent"] {
  --app-max: 1120px;
}

.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-bottom"] {
  --app-max: 720px;
}

.zype-binge-player[data-menu-mode="persistent"] .layout-root {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  grid-template-areas:
    "header header"
    "menu player";
  grid-template-rows: max-content minmax(0, 1fr);
  column-gap: 1.15rem;
  row-gap: 1rem;
  align-items: start;
}

.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-right"] .layout-root {
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  grid-template-areas:
    "header header"
    "player menu";
}

.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-bottom"] .layout-root {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "header"
    "player"
    "menu";
  grid-template-rows: max-content max-content minmax(0, 1fr);
  row-gap: 1rem;
}

.zype-binge-player[data-menu-mode="persistent"] .top-bar {
  grid-area: header;
  align-self: start;
  width: 100%;
  min-height: 48px;
  height: max-content;
}

.zype-binge-player[data-menu-mode="persistent"] .player-shell {
  grid-area: player;
  min-width: 0;
  gap: 0.9rem;
}

.zype-binge-player[data-menu-mode="persistent"] .media-browser,
.zype-binge-player[data-menu-mode="persistent"] .media-browser.is-open {
  grid-area: menu;
  position: relative;
  inset: auto;
  width: auto;
  max-width: none;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-height: var(--zype-binge-browser-max-height, 58rem);
  transform: none;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: none;
  transition: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Persistent menu sits below the app header; do not re-apply viewport safe-top. */
  padding:
    0.45rem
    calc(0.85rem + var(--safe-right))
    calc(0.85rem + var(--safe-bottom))
    calc(0.85rem + var(--safe-left));
}

.zype-binge-player[data-menu-mode="persistent"] .browser-backdrop {
  display: none !important;
}

/* Side persistent layouts: same locked media viewport as overlay/pause-ad. */
.zype-binge-player[data-menu-mode="persistent"]:not([data-layout="menu-bottom"]) .media-browser {
  position: sticky;
  top: calc(0.5rem + var(--safe-top));
}

.zype-binge-player[data-menu-mode="persistent"]:not([data-layout="menu-bottom"]) .artwork-stage {
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  aspect-ratio: var(--media-viewport-aspect);
  background: #070a14;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

.zype-binge-player[data-menu-mode="persistent"]:not([data-layout="menu-bottom"]) .artwork-blur,
.zype-binge-player[data-menu-mode="persistent"]:not([data-layout="menu-bottom"]) .artwork-scrim {
  display: none;
}

.zype-binge-player[data-menu-mode="persistent"]:not([data-layout="menu-bottom"]) .artwork-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  box-shadow: none;
  background: #070a14;
}

.zype-binge-player[data-menu-mode="persistent"]:not([data-layout="menu-bottom"]) .progress-section {
  padding-top: 0.15rem;
}

.zype-binge-player[data-menu-mode="persistent"]:not([data-layout="menu-bottom"]) .progress-meta {
  margin-top: 0.45rem;
}

.zype-binge-player[data-menu-mode="persistent"]:not([data-layout="menu-bottom"]) .controls {
  margin-top: 0.15rem;
  padding-top: 0.55rem;
}

.zype-binge-player[data-menu-mode="persistent"]:not([data-layout="menu-bottom"]) .artwork-meta {
  padding-top: 0.35rem;
}

.zype-binge-player[data-menu-mode="persistent"] .browser-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.zype-binge-player[data-menu-mode="persistent"] .media-list {
  flex: none;
  overflow: visible;
  border-top: 1px solid var(--border);
}

/* Menu Below + Always Display Menu: shared pause-ad media viewport. */
.zype-binge-player[data-menu-mode="persistent"][data-selected-layout="menu-bottom"] .player-shell {
  gap: 0.65rem;
}

.zype-binge-player[data-menu-mode="persistent"][data-selected-layout="menu-bottom"] .artwork-stage {
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  aspect-ratio: var(--media-viewport-aspect);
  background: #070a14;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

.zype-binge-player[data-menu-mode="persistent"][data-selected-layout="menu-bottom"] .artwork-blur,
.zype-binge-player[data-menu-mode="persistent"][data-selected-layout="menu-bottom"] .artwork-scrim {
  display: none;
}

.zype-binge-player[data-menu-mode="persistent"][data-selected-layout="menu-bottom"] .artwork-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #070a14;
  box-shadow: none;
}

.zype-binge-player[data-menu-mode="persistent"][data-selected-layout="menu-bottom"] .progress-meta {
  margin-top: 0.4rem;
}

.zype-binge-player[data-menu-mode="persistent"][data-selected-layout="menu-bottom"] .controls {
  padding-top: 0.35rem;
}

/* Live/VOD presentation flags no longer change stage height; images contain in-frame. */
.zype-binge-player[data-menu-mode="persistent"][data-selected-layout="menu-bottom"][data-artwork-presentation="live-banner"] .artwork-stage,
.zype-binge-player[data-menu-mode="persistent"][data-selected-layout="menu-bottom"][data-artwork-presentation="vod-contain"] .artwork-stage {
  min-height: 0;
  max-height: none;
  aspect-ratio: var(--media-viewport-aspect);
}

.zype-binge-player[data-menu-mode="persistent"][data-selected-layout="menu-bottom"][data-artwork-presentation="live-banner"] .artwork-image,
.zype-binge-player[data-menu-mode="persistent"][data-selected-layout="menu-bottom"][data-artwork-presentation="vod-contain"] .artwork-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

/*
 * Persistent layouts inside the fixed-height component box.
 *
 * Menu Below (and compact stacking, which also sets data-layout="menu-bottom"):
 * header, player and a bounded media browser stack; .layout-root scrolls so the
 * search field, toggles and Load More stay reachable in short containers.
 */
.zype-binge-player[data-menu-mode="persistent"] .layout-root {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-bottom"] .layout-root {
  align-items: stretch;
  row-gap: 0.65rem;
  grid-template-rows: max-content max-content auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-bottom"] .player-shell {
  align-self: start;
  height: auto;
  min-height: 0;
  padding-bottom: 0;
}

.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-bottom"] .media-browser,
.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-bottom"] .media-browser.is-open {
  align-self: stretch;
  height: auto;
  min-height: 16rem;
  max-height: var(--zype-binge-browser-max-height, 32rem);
}

.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-bottom"] .browser-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Persistent Menu Left / Menu Right: fill the component box; each column scrolls internally. */
.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-left"] .layout-root,
.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-right"] .layout-root {
  overflow: hidden;
}

.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-left"] .player-shell,
.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-right"] .player-shell {
  align-self: start;
  height: auto;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
}

.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-left"] .media-browser,
.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-right"] .media-browser,
.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-left"] .media-browser.is-open,
.zype-binge-player[data-menu-mode="persistent"][data-layout="menu-right"] .media-browser.is-open {
  align-self: stretch;
  position: relative;
  top: auto;
  height: auto;
  min-height: 0;
  max-height: none;
}

.zype-binge-player[data-meta-mode="overlay"] .player-shell {
  grid-template-areas:
    "art"
    "progress"
    "controls";
}

.zype-binge-player[data-meta-mode="overlay"] .player-shell.has-status-message {
  grid-template-areas:
    "art"
    "progress"
    "controls"
    "status";
}

.zype-binge-player[data-meta-mode="overlay"] .artwork-meta {
  grid-area: art;
  place-self: end stretch;
  z-index: 3;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.zype-binge-player[data-meta-mode="overlay"] .artwork-meta-panel {
  width: 100%;
  max-height: min(42%, 9.5rem);
  overflow: hidden;
  padding: 1.35rem 0.9rem 0.7rem;
  text-align: left;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.88) 100%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.zype-binge-player[data-meta-mode="overlay"] .program-title {
  color: #fff;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zype-binge-player[data-meta-mode="overlay"] .program-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zype-binge-player[data-meta-mode="overlay"] .artwork-block:hover ~ .artwork-meta .artwork-meta-panel,
.zype-binge-player[data-meta-mode="overlay"] .artwork-meta:hover .artwork-meta-panel,
.zype-binge-player[data-meta-mode="overlay"] .artwork-meta:focus-within .artwork-meta-panel,
.zype-binge-player[data-meta-mode="overlay"][data-meta-open="true"] .artwork-meta-panel {
  opacity: 1;
}

.zype-binge-player[data-meta-mode="overlay"] .artwork-block:hover ~ .artwork-meta,
.zype-binge-player[data-meta-mode="overlay"] .artwork-meta:hover,
.zype-binge-player[data-meta-mode="overlay"] .artwork-meta:focus-within,
.zype-binge-player[data-meta-mode="overlay"][data-meta-open="true"] .artwork-meta {
  pointer-events: auto;
}

.zype-binge-player[data-meta-mode="overlay"] .meta-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0.55rem;
  bottom: calc(100% + 0.35rem);
  z-index: 4;
  min-height: 32px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(7, 10, 20, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: auto;
}

.zype-binge-player[data-meta-mode="overlay"] .meta-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .zype-binge-player[data-meta-mode="overlay"] .meta-toggle {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .zype-binge-player[data-meta-mode="overlay"] .artwork-meta-panel {
    opacity: 0;
  }

  .zype-binge-player[data-meta-mode="overlay"][data-meta-open="true"] .artwork-meta-panel {
    opacity: 1;
  }

  .zype-binge-player[data-meta-mode="overlay"][data-meta-open="true"] .artwork-meta {
    pointer-events: auto;
  }

  .zype-binge-player[data-meta-mode="overlay"] .meta-toggle:not([hidden]) {
    display: inline-flex;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zype-binge-player[data-meta-mode="overlay"] .artwork-meta-panel {
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .zype-binge-player[data-menu-mode="persistent"] {
    --app-max: 100%;
  }

  .zype-binge-player .station-logo {
    max-width: min(var(--logo-max-width, 180px), 42vw);
  }
}

/* Go Live: always red with white text, regardless of theme button styles. */
.zype-binge-player button.go-live-btn,
.zype-binge-player button.go-live-btn:hover,
.zype-binge-player button.go-live-btn:focus-visible {
  color: #fff;
}

.zype-binge-player button.go-live-btn {
  background: #e10600;
}

.zype-binge-player button.go-live-btn:hover {
  background: #c10500;
}
