/**
 * UX-5 Playback page — sole presentation owner (fresh reconstruction)
 * SSOT: reference/ux4-playback-design-approved.png + UX5_REFERENCE_MEASUREMENT.md
 * Scope: .play-page only
 */

.play-page {
  --p-max: 1376px;
  --p-gutter: 32px;
  --p-gap: 14px;
  --p-radius-sm: 8px;
  --p-radius-md: 15px;
  --p-radius-lg: 16px;
  --p-accent: var(--tipsy-accent);
  --p-surface: rgba(255, 255, 255, 0.045);
  --p-surface-elevated: rgba(255, 255, 255, 0.065);
  --p-surface-hover: rgba(255, 255, 255, 0.08);
  --p-border: rgba(255, 255, 255, 0.1);
  --p-text: var(--tipsy-text, #f3f4f6);
  --p-muted: var(--tipsy-secondary);
  --p-action-h: 40px;
  --p-action-r: 9px;
  --p-ep-w: 48px;
  --p-ep-h: 40px;
  --p-next-thumb-w: 84px;
  --p-next-thumb-h: 52px;
  --p-next-row: 56px;
  --p-ctrl-icon: 20px;
  --p-seek-rail: 3px;
  --p-seek-hit: 20px;
  color: var(--p-text);
}

.play-page .play-container {
  width: 100%;
  max-width: var(--p-max);
  margin-inline: auto;
  padding-inline: var(--p-gutter);
  display: flex;
  flex-direction: column;
  gap: var(--p-gap);
}

.play-page .play-breadcrumb {
  margin: 0;
  font-size: 12px;
  color: var(--p-muted);
}

.play-page .play-stage {
  display: flex;
  flex-direction: column;
  gap: var(--p-gap);
  min-width: 0;
}

@media (min-width: 1024px) {
  .play-page .play-stage {
    display: grid;
    grid-template-columns: minmax(0, 76fr) minmax(0, 24fr);
    column-gap: var(--p-gap);
    align-items: start;
  }
}

.play-page .play-player {
  min-width: 0;
}

.play-page .play-player .tipsy-play__player-wrap,
.play-page .play-player .tipsy-player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--p-radius-md);
  border: 1px solid var(--p-border);
  background: #000;
  overflow: hidden;
}

.play-page .play-player .tipsy-play__player-host {
  position: absolute;
  inset: 0;
}

.play-page .play-player .tipsy-play__player-host video,
.play-page .play-player .tipsy-play__player-host iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.play-page .tipsy-play__player-wrap.is-custom-controls-ready video::-webkit-media-controls-enclosure,
.play-page .tipsy-play__player-wrap.is-custom-controls-ready video::-webkit-media-controls {
  display: none !important;
}

.play-page .tipsy-player-ui {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transition: opacity 220ms ease;
}

.play-page .tipsy-play__player-wrap.is-custom-controls-ready .tipsy-player-ui {
  visibility: visible;
}

.play-page .tipsy-play__player-wrap.is-player-ui-visible .tipsy-player-ui {
  opacity: 1;
  pointer-events: auto;
}

.play-page .tipsy-play__player-wrap:not(.is-player-ui-visible) .tipsy-player-ui,
.play-page .tipsy-play__player-wrap:not(.is-player-ui-visible) .tipsy-player-ui * {
  pointer-events: none !important;
}

.play-page .tipsy-player-ui__gradient {
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 35%, rgba(0, 0, 0, 0.92) 100%);
  pointer-events: none;
}

.play-page .tipsy-player-ui__seek {
  position: relative;
  z-index: 1;
  padding: 0 10px;
  margin-bottom: 8px;
}

.play-page .tipsy-player-seek {
  position: relative;
  height: var(--p-seek-hit);
  display: flex;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.play-page .tipsy-player-seek:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

.play-page .tipsy-player-seek:focus:not(:focus-visible) {
  outline: none;
}

.play-page .tipsy-player-seek__track,
.play-page .tipsy-player-seek__buffered,
.play-page .tipsy-player-seek__progress {
  position: absolute;
  left: 0;
  height: var(--p-seek-rail);
  border-radius: 999px;
  pointer-events: none;
}

.play-page .tipsy-player-seek__track {
  right: 0;
  background: rgba(255, 255, 255, 0.22);
}

.play-page .tipsy-player-seek__buffered {
  width: 0;
  background: rgba(255, 255, 255, 0.32);
}

.play-page .tipsy-player-seek__progress {
  width: 0;
  background: var(--p-accent);
}

.play-page .tipsy-player-seek__thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--p-accent);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.play-page .tipsy-play__player-wrap.is-player-ui-visible .tipsy-player-seek__thumb,
.play-page .tipsy-play__player-wrap.is-control-scrubbing .tipsy-player-seek__thumb,
.play-page .tipsy-play__player-wrap.is-player-ui-visible .tipsy-player-seek:hover .tipsy-player-seek__thumb {
  opacity: 1;
}

.play-page .tipsy-player-seek__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(8, 10, 16, 0.92);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}

.play-page .tipsy-player-ui__controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px 10px;
  min-width: 0;
  overflow: hidden;
}

.play-page .tipsy-player-ui__left,
.play-page .tipsy-player-ui__right {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.play-page .tipsy-player-ui__left {
  flex: 1 1 auto;
  overflow: hidden;
}

.play-page .tipsy-player-ui__right {
  flex: 0 0 auto;
  margin-inline-start: auto;
}

.play-page .tipsy-player-ui__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.play-page .tipsy-player-ui__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 1px;
}

.play-page .tipsy-player-ui__btn:focus:not(:focus-visible) {
  outline: none;
}

.play-page .tipsy-player-ui__svg {
  display: block;
  width: var(--p-ctrl-icon);
  height: var(--p-ctrl-icon);
  flex-shrink: 0;
}

.play-page .tipsy-player-ui__btn--play .tipsy-player-ui__svg--pause {
  display: none;
}

.play-page .tipsy-player-ui__btn--play.is-playing .tipsy-player-ui__svg--play {
  display: none;
}

.play-page .tipsy-player-ui__btn--play.is-playing .tipsy-player-ui__svg--pause {
  display: block;
}

.play-page .tipsy-player-ui__time {
  margin-inline-start: 6px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0.95;
}

.play-page .tipsy-player-ui__volume-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.play-page .tipsy-player-ui__volume-pop {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  padding: 0 !important;
  margin: 0;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  display: flex;
  align-items: center;
  transition: max-width 180ms ease, opacity 180ms ease, margin 180ms ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .play-page .tipsy-play__player-wrap.is-control-volume-active .tipsy-player-ui__volume-pop,
  .play-page .tipsy-player-ui__volume-wrap:hover .tipsy-player-ui__volume-pop,
  .play-page .tipsy-player-ui__volume-wrap:focus-within .tipsy-player-ui__volume-pop {
    width: auto;
    max-width: 88px;
    opacity: 1;
    margin-inline-start: 4px;
    pointer-events: auto;
  }
}

.play-page .tipsy-player-ui__volume-range {
  width: 72px !important;
  height: var(--p-seek-rail) !important;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  accent-color: var(--p-accent);
  cursor: pointer;
  writing-mode: horizontal-tb !important;
  direction: ltr !important;
}

.play-page .tipsy-player-ui__volume-range::-webkit-slider-runnable-track {
  height: var(--p-seek-rail);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.play-page .tipsy-player-ui__volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--p-accent);
}

.play-page .tipsy-player-ui__volume-range:focus-visible {
  outline: none;
}

.play-page .tipsy-play__tap-play {
  display: none !important;
}

.play-page .play-next {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: var(--p-radius-lg);
  border: 1px solid var(--p-border);
  background: var(--p-surface-elevated);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .play-page .play-next {
    max-height: calc((min(var(--p-max), 100vw) - var(--p-gutter) * 2 - var(--p-gap)) * 0.76 * 9 / 16);
  }
}

.play-page .play-next__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 6px;
  flex-shrink: 0;
}

.play-page .play-next__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.play-page .play-next__auto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--p-muted);
  cursor: pointer;
}

.play-page .play-next__auto-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.play-page .play-next__auto-track {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.play-page .play-next__auto-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.play-page .play-next__auto-input:checked + .play-next__auto-track {
  background: var(--p-accent);
}

.play-page .play-next__auto-input:checked + .play-next__auto-track::after {
  transform: translateX(16px);
}

.play-page .play-next__list {
  list-style: none;
  margin: 0;
  padding: 0 6px 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.play-page .play-next__link {
  display: grid;
  grid-template-columns: var(--p-next-thumb-w) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: var(--p-next-row);
  padding: 3px 6px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.3;
}

.play-page .play-next__link:hover {
  background: var(--p-surface-hover);
}

.play-page .play-next__item.is-current .play-next__link {
  background: rgba(255, 77, 109, 0.12);
}

.play-page .play-next__thumb {
  width: var(--p-next-thumb-w);
  height: var(--p-next-thumb-h);
  border-radius: var(--p-radius-sm);
  background: #111 center / cover no-repeat;
}

.play-page .play-next__item.is-current .play-next__label {
  color: var(--p-accent);
  font-weight: 600;
}

.play-page .play-next__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 10px;
  color: var(--p-accent);
}

.play-page .play-next__wave::before,
.play-page .play-next__wave::after {
  content: "";
  display: block;
  width: 2px;
  height: 8px;
  background: currentColor;
}

.play-page .play-next__wave {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
}

.play-page .play-next__foot {
  padding: 8px;
  flex-shrink: 0;
}

.play-page .play-next__all {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  border-radius: var(--p-radius-sm);
  background: var(--p-surface-hover);
  color: inherit;
  font-size: 12px;
  text-decoration: none;
}

.play-page .play-next__empty {
  margin: 0;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--p-muted);
}

.play-page .play-info {
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-md);
  background: var(--p-surface-elevated);
  padding: 14px 16px;
}

.play-page .play-info__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

@media (min-width: 768px) {
  .play-page .play-info__layout {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 20px;
  }
}

.play-page .play-info__content {
  min-width: 0;
}

.play-page .play-info__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.play-page .play-info__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--p-muted);
}

.play-page .play-info__sep {
  margin: 0 6px;
  opacity: 0.55;
}

.play-page .play-info__synopsis {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--p-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.play-page .play-info__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.play-page .play-info__action,
.play-page .play-info__actions .tipsy-favorite--action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-action-r);
  background: rgba(255, 255, 255, 0.06);
  color: var(--p-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.play-page .play-info__action-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.play-page .play-info__action:hover,
.play-page .play-info__actions .tipsy-favorite--action:hover {
  background: var(--p-surface-hover);
  border-color: rgba(255, 255, 255, 0.16);
}

.play-page .play-info__actions .tipsy-favorite--action.is-active {
  border-color: var(--p-accent);
  background: var(--p-accent);
  color: #fff;
}

.play-page .play-info__playback {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-areas:
    "source-label source-body"
    "ep-label ep-body";
  gap: 8px 14px;
  margin-top: 10px;
  align-items: start;
}

.play-page .play-info__playback .tipsy-media-episode-rail {
  display: contents;
}

.play-page .play-info__row-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--p-text);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: max-content;
}

.play-page .play-info__row-label--source {
  grid-area: source-label;
  align-self: center;
}

.play-page .play-info__row-label--episodes {
  grid-area: ep-label;
  align-self: center;
}

.play-page .play-info__playback .tipsy-media-episode-rail__source-nav,
.play-page .play-info__playback .tipsy-media-episode-rail__source {
  grid-area: source-body;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  min-width: 0;
  align-items: flex-start;
}

.play-page .play-info__playback .tipsy-media-episode-rail__source-label,
.play-page .play-info__playback .tipsy-media-episode-rail__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 36px;
  height: auto;
  padding: 0 14px;
  border: 1px solid var(--p-border);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  text-decoration: none;
}

.play-page .play-info__playback .tipsy-media-episode-rail__source-label {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--p-muted);
  cursor: pointer;
}

.play-page .play-info__playback .tipsy-media-episode-rail__source-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.play-page .play-info__playback .tipsy-media-episode-rail__source-input:checked + .tipsy-media-episode-rail__source-label {
  border-color: var(--p-accent);
  color: var(--p-accent);
  background: rgba(255, 77, 109, 0.12);
}

.play-page .play-info__playback .tipsy-media-episode-rail__panels {
  grid-area: ep-body;
  min-width: 0;
}

.play-page .play-info__playback .tipsy-media-episode-rail__panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}

.play-page .play-info__playback .tipsy-media-episode-rail__panel[hidden] {
  display: none !important;
}

.play-page .play-info__playback .tipsy-media-episode-rail__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.play-page .play-info__playback .tipsy-media-episode-rail__list.is-collapsed .tipsy-media-episode-rail__item:nth-child(n+13),
.play-page .play-info__playback .tipsy-media-episode-rail__list:not(.is-expanded) .tipsy-media-episode-rail__item:nth-child(n+13) {
  display: none;
}

.play-page .play-info__playback .tipsy-media-episode-rail__list.is-expanded .tipsy-media-episode-rail__item {
  display: inline-flex;
}

.play-page .play-info__playback .tipsy-media-episode-rail__item {
  width: auto;
  min-width: 0;
  max-width: none;
  border-radius: var(--p-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--p-muted);
}

.play-page .play-info__playback .tipsy-media-episode-rail__item.is-active {
  border-color: var(--p-accent);
  color: #fff;
  background: var(--p-accent);
}

.play-page .play-info__playback .tipsy-play-episode-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 36px;
  height: auto;
  padding: 0 12px;
  margin-left: 0;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--p-muted);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.play-page .play-info__playback .tipsy-media-episode-rail__empty {
  grid-area: source-body;
  margin: 0;
  font-size: 13px;
  color: var(--p-muted);
}

@media (max-width: 359px) {
  .play-page .play-info__playback {
    grid-template-columns: 1fr;
    grid-template-areas:
      "source-label"
      "source-body"
      "ep-label"
      "ep-body";
    gap: 6px;
  }

  .play-page .play-info__row-label--source,
  .play-page .play-info__row-label--episodes {
    align-self: start;
  }
}

.play-page .play-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  min-height: 0;
  padding: 12px 10px;
  border-radius: var(--p-radius-md);
  border: 1px solid var(--p-border);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

@media (min-width: 768px) {
  .play-page .play-info__layout .play-rating {
    justify-self: end;
    align-self: start;
  }
}

.play-page .play-rating__score {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--p-accent);
  line-height: 1;
}

.play-page .play-rating__votes {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--p-muted);
  line-height: 1.3;
}

/* Identity card — mobile geometry (same DOM, presentation only) */
@media (max-width: 767px) {
  .play-page .play-info {
    padding: 12px 14px;
  }

  .play-page .play-info__layout {
    gap: 12px;
  }

  .play-page .play-info__actions {
    margin-top: 8px;
  }

  .play-page .play-info__playback {
    margin-top: 12px;
    gap: 8px 12px;
  }

  .play-page .play-info__row-label--source,
  .play-page .play-info__row-label--episodes {
    align-self: start;
  }

  .play-page .play-rating {
    width: 100%;
    max-width: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
  }

  .play-page .play-rating__score {
    font-size: 22px;
    flex-shrink: 0;
  }

  .play-page .play-rating__votes {
    margin: 0;
    font-size: 13px;
  }

  .play-page .play-info__playback .tipsy-play-episode-expand {
    margin-left: 0;
  }
}

.play-page .play-description__heading {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.play-page .play-description__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--p-muted);
}

.play-page .play-description__toggle {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--p-accent);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.play-page .play-related__heading {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.play-page .play-related__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .play-page .play-related__track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .play-page .play-related__track {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.play-page .play-related__track .tipsy-video-card--compact .tipsy-video-card__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--p-radius-sm);
}

.play-page .play-related__track .tipsy-video-card--compact .tipsy-video-card__title {
  font-size: 12px;
}

.play-page .tipsy-play__resume-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 12;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.82);
  color: #f3f4f6;
  font-size: 13px;
}

.play-page .tipsy-play__resume-hint[hidden] {
  display: none !important;
}

/* Playback loading — keep visible until media events dismiss (SSOT in tipsy-player-controls.js) */
.play-page .tipsy-play__player-wrap.is-loading .tipsy-play__loading {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 30;
}

.play-page .tipsy-play__player-wrap.is-loading.is-playing.is-host-video .tipsy-play__loading,
.play-page .tipsy-play__player-wrap.is-loading.is-playing.is-opaque-host .tipsy-play__loading {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.play-page .tipsy-play__player-wrap.is-loading.is-buffering .tipsy-play__loading-msg.is-visible {
  opacity: 0;
  visibility: hidden;
}

.play-page .tipsy-play__loading-spinner {
  border-top-color: var(--p-accent, #f472b6);
}

.play-page [data-tipsy-player-subtitle],
.play-page [data-tipsy-player-settings] {
  display: none !important;
}

/* Tablet — hide rate before volume/fullscreen */
@media (max-width: 1023px) {
  .play-page [data-tipsy-player-rate] {
    display: none !important;
  }
}

/* Mobile — keep volume + fullscreen; hide rate */
@media (max-width: 767px) {
  .play-page {
    --p-gutter: 16px;
  }

  .play-page [data-tipsy-player-rate] {
    display: none !important;
  }

  .play-page .tipsy-player-ui__controls {
    gap: 4px;
    padding: 4px 8px 8px;
  }

  .play-page .tipsy-player-ui__left,
  .play-page .tipsy-player-ui__right {
    gap: 2px;
  }

  .play-page .tipsy-player-ui__btn {
    min-width: 40px;
    min-height: 40px;
    padding: 0 4px;
  }

  .play-page .tipsy-player-ui__time {
    font-size: 11px;
    margin-inline-start: 2px;
  }
}

/* Coarse pointer — tap-anchored compact horizontal popup (not legacy vertical panel) */
@media (hover: none), (pointer: coarse) {
  .play-page .tipsy-player-ui__volume-pop {
    position: absolute !important;
    left: 50%;
    right: auto;
    bottom: calc(100% + 6px);
    top: auto;
    transform: translateX(-50%);
    width: auto !important;
    max-width: min(88px, calc(100vw - 24px)) !important;
    padding: 6px 8px !important;
    margin: 0 !important;
    border-radius: 6px !important;
    background: rgba(8, 10, 16, 0.92) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    opacity: 0;
    overflow: visible;
    pointer-events: none;
    display: flex !important;
    transition: opacity 160ms ease;
  }

  .play-page .tipsy-play__player-wrap.is-control-volume-active .tipsy-player-ui__volume-pop {
    opacity: 1;
    pointer-events: auto;
  }

  .play-page .tipsy-player-ui__volume-range {
    width: 64px !important;
  }
}

/* Mute-only platforms — icon stays, slider suppressed */
.play-page .tipsy-play__player-wrap.is-volume-mute-only .tipsy-player-ui__volume-pop {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Narrow mobile — hide seek ±; volume + fullscreen remain */
@media (max-width: 374px) {
  .play-page [data-tipsy-player-seek-back],
  .play-page [data-tipsy-player-seek-forward] {
    display: none !important;
  }
}
