/* ==========================================================================
   Relay player — Netflix-inspired playback UI
   ========================================================================== */

:root {
  --red: #e50914;
  --red-bright: #f6121d;
  --black: #000;
  --panel: #141414;
  --panel-2: #232323;
  --panel-3: #2d2d2d;
  --text: #ffffff;
  --muted: #b3b3b3;
  --dim: #8c8c8c;
  --line: rgba(255, 255, 255, 0.12);
  --track: rgba(255, 255, 255, 0.26);
  --buffer: rgba(255, 255, 255, 0.4);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Helvetica Neue", Helvetica, "Segoe UI", Roboto, Arial, sans-serif;
  --caption-size: clamp(19px, 2.15vw, 34px);
  --caption-bg: transparent;
  --caption-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.7);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

body {
  overscroll-behavior: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Lucide icons: stroked by default. Shapes that read better solid (play, pause)
   are filled through the helper classes below — fill/stroke inherit into <use>. */
.icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  pointer-events: none;
}

.icon--play,
.icon--pause {
  fill: currentColor;
  stroke: none;
}

.icon--next,
.icon--replay {
  fill: currentColor;
  stroke: currentColor;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Stage
   ========================================================================== */

.app,
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.stage {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  isolation: isolate;
}

.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.stage.is-hidden-cursor {
  cursor: none;
}

.shade {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

.shade--top {
  top: 0;
  height: min(22vh, 190px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.45) 42%,
    rgba(0, 0, 0, 0) 100%
  );
}

.shade--bottom {
  bottom: 0;
  height: min(34vh, 290px);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.18) 74%,
    rgba(0, 0, 0, 0) 100%
  );
}

.stage.controls-hidden .shade {
  opacity: 0;
}

/* ==========================================================================
   Top bar
   ========================================================================== */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  padding: calc(var(--safe-top) + clamp(14px, 2.4vh, 26px)) calc(var(--safe-right) + clamp(18px, 3vw, 46px)) 0
    calc(var(--safe-left) + clamp(18px, 3vw, 46px));
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

.stage.controls-hidden .topbar {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.back-btn {
  width: clamp(40px, 3.4vw, 50px);
  height: clamp(40px, 3.4vw, 50px);
  border-radius: 50%;
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
}

.back-btn .icon {
  width: 26px;
  height: 26px;
}

.back-btn:hover {
  background: #2b2b2b;
  border-color: rgba(255, 255, 255, 0.3);
}

.back-btn:active {
  transform: scale(0.94);
}

.title-block {
  min-width: 0;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.show-title {
  margin: 0;
  font-size: clamp(17px, 1.55vw, 25px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-title {
  margin: 4px 0 0;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.74);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Center layer
   ========================================================================== */

.center-layer {
  position: absolute;
  inset: 0;
  z-index: 16;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.center-controls {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.6vw, 46px);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  pointer-events: none;
}

.stage.is-paused .center-controls,
.stage.is-touch.controls-visible .center-controls {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.stage.is-ended .center-controls {
  opacity: 0 !important;
  pointer-events: none !important;
}

.round-btn {
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.16s, transform 0.16s, border-color 0.16s;
}

.round-btn:hover {
  background: #2b2b2b;
  border-color: rgba(255, 255, 255, 0.28);
}
  border-color: rgba(255, 255, 255, 0.34);
}

.round-btn:active {
  transform: scale(0.92);
}

.play-round {
  width: clamp(66px, 6.4vw, 88px);
  height: clamp(66px, 6.4vw, 88px);
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.4);
}

.play-round .icon {
  width: clamp(30px, 3vw, 40px);
  height: clamp(30px, 3vw, 40px);
  margin-left: 3px;
}

.seek-round {
  width: clamp(48px, 4.4vw, 60px);
  height: clamp(48px, 4.4vw, 60px);
}

.seek-round .icon {
  width: clamp(27px, 2.6vw, 34px);
  height: clamp(27px, 2.6vw, 34px);
}

/* Desktop keeps ±10 in the bottom bar; mobile puts them around play. */
.seek-round {
  display: none;
}

.stage.is-ended .play-round .icon--play {
  display: none;
}

.stage.is-ended .play-round .icon--pause {
  display: block;
}

.center-replay {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  display: grid;
  place-items: center;
  pointer-events: auto;
  z-index: 2;
}

.center-replay .icon {
  width: 44px;
  height: 44px;
}

.spinner {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: spin 0.9s linear infinite;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* double-tap seek feedback */
.seek-flash {
  position: absolute;
  top: 50%;
  width: 120px;
  height: 120px;
  margin-top: -60px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

.seek-flash .icon {
  width: 30px;
  height: 30px;
}

.seek-flash span {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
  white-space: nowrap;
}

.seek-flash.left {
  left: 10%;
}

.seek-flash.right {
  right: 10%;
}

.seek-flash.show {
  animation: seekPop 0.78s var(--ease) both;
}

@keyframes seekPop {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  16% {
    opacity: 1;
    transform: scale(1);
  }
  72% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

/* ==========================================================================
   Pause card — "You're watching"
   ========================================================================== */

.pause-card {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  animation: pauseIn 0.24s var(--ease);
}

@keyframes pauseIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pause-card__inner {
  position: absolute;
  top: clamp(120px, 30vh, 260px);
  left: calc(var(--safe-left) + clamp(18px, 3vw, 46px));
  right: calc(var(--safe-right) + clamp(18px, 3vw, 46px));
  max-width: 560px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.pause-card__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b7b7b7;
}

.pause-card__title {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.pause-card__season {
  margin: 12px 0 0;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

.pause-card__name {
  margin: 14px 0 0;
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 700;
}

.pause-card__overview {
  margin: 10px 0 0;
  max-width: 480px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pause-card__state {
  position: absolute;
  right: calc(var(--safe-right) + clamp(18px, 3vw, 46px));
  bottom: calc(var(--safe-bottom) + clamp(96px, 13vh, 130px));
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 740px) {
  .pause-card__inner {
    top: clamp(96px, 22vh, 190px);
  }

  .pause-card__overview {
    -webkit-line-clamp: 3;
    font-size: 13.5px;
  }

  .pause-card__state {
    bottom: calc(var(--safe-bottom) + 104px);
    font-size: 12px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .pause-card__inner {
    top: calc(var(--safe-top) + 58px);
  }

  .pause-card__title {
    font-size: clamp(22px, 3vw, 30px);
  }

  .pause-card__overview {
    display: none;
  }

  .pause-card__state {
    bottom: calc(var(--safe-bottom) + 78px);
  }
}

/* ==========================================================================
   Controls
   ========================================================================== */

.controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0 calc(var(--safe-right) + clamp(18px, 3vw, 46px)) calc(var(--safe-bottom) + clamp(12px, 1.6vw, 20px))
    calc(var(--safe-left) + clamp(18px, 3vw, 46px));
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

.stage.controls-hidden .controls {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.stage.panel-open .controls,
.stage.panel-open .topbar {
  opacity: 0 !important;
  pointer-events: none !important;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.5vw, 8px);
}

.control-group--right {
  gap: clamp(2px, 0.45vw, 6px);
}

/* --- scrubber ------------------------------------------------------------ */

.scrubber {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  margin: 0 0 2px;
  outline-offset: 4px;
}

.scrub-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--track);
  transition: height 0.14s var(--ease);
  overflow: visible;
}

.scrubber:hover .scrub-track,
.scrubber.is-dragging .scrub-track {
  height: 6px;
}

.scrub-buffer,
.scrub-played {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: inherit;
  pointer-events: none;
}

.scrub-buffer {
  background: var(--buffer);
}

.scrub-played {
  background: var(--red);
}

.scrub-handle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
  transition: width 0.14s var(--ease), height 0.14s var(--ease), box-shadow 0.14s;
  pointer-events: none;
}

.scrubber:hover .scrub-handle,
.scrubber.is-dragging .scrub-handle {
  width: 18px;
  height: 18px;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.28), 0 0 14px rgba(229, 9, 20, 0.45);
}

.scrubber.is-dragging .scrub-handle {
  background: #fff;
}

.scrub-tooltip {
  position: absolute;
  bottom: 28px;
  left: 0;
  width: 214px;
  padding: 0 0 3px;
  margin-left: 0;
  background: rgba(15, 15, 15, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  overflow: hidden;
  z-index: 4;
}

.scrubber:hover .scrub-tooltip,
.scrubber.is-dragging .scrub-tooltip {
  opacity: 1;
}

.scrub-tooltip__time {
  padding: 7px 9px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.scrub-tooltip__thumb {
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.scrub-tooltip__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- icon buttons -------------------------------------------------------- */

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.15s, transform 0.15s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn:active {
  transform: scale(0.93);
}

.icon-btn .icon {
  width: 25px;
  height: 25px;
}

.text-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 10px;
  border-radius: 3px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.text-btn:hover {
  background: rgba(255, 255, 255, 0.11);
}

.text-btn .icon {
  width: 23px;
  height: 23px;
}

.text-btn span {
  line-height: 1;
}

.text-btn.is-active {
  color: var(--red);
}

.next-btn {
  color: #fff;
}

.speed-btn span {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
}

.time {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.time-sep {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 2px;
}

/* --- volume -------------------------------------------------------------- */

.volume {
  display: flex;
  align-items: center;
  border-radius: 21px;
}

.volume-track {
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.2s var(--ease), opacity 0.2s var(--ease), margin 0.2s var(--ease);
  display: flex;
  align-items: center;
  margin-left: 0;
}

.volume:hover .volume-track,
.volume:focus-within .volume-track {
  width: 88px;
  opacity: 1;
  margin-left: 4px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 82px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    #fff 0%,
    #fff var(--vol, 100%),
    rgba(255, 255, 255, 0.3) var(--vol, 100%),
    rgba(255, 255, 255, 0.3) 100%
  );
  cursor: pointer;
  outline-offset: 6px;
}

.volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: transparent;
}

.volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: transparent;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.volume-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 0;
}

.icon--vol-low,
.icon--vol-mute {
  display: none;
}

.volume.is-low .icon--vol {
  display: none;
}

.volume.is-low .icon--vol-low {
  display: block;
}

.volume.is-muted .icon--vol,
.volume.is-muted .icon--vol-low {
  display: none;
}

.volume.is-muted .icon--vol-mute {
  display: block;
}

.icon--pause {
  display: none;
}

.is-playing .icon--play {
  display: none;
}

.is-playing .icon--pause {
  display: block;
}

.icon--fs-exit {
  display: none;
}

.is-fullscreen .icon--fs {
  display: none;
}

.is-fullscreen .icon--fs-exit {
  display: block;
}

/* ==========================================================================
   Captions
   ========================================================================== */

.captions {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: clamp(88px, 13vh, 168px);
  z-index: 24;
  display: flex;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  transition: bottom 0.24s var(--ease);
}

.captions__inner {
  max-width: min(92vw, 1100px);
}

.caption-line {
  display: inline-block;
  margin: 0 auto;
  padding: 0.08em 0.38em 0.12em;
  border-radius: 3px;
  background: var(--caption-bg);
  color: #fff;
  font-size: var(--caption-size);
  line-height: 1.34;
  font-weight: 500;
  letter-spacing: 0.002em;
  text-shadow: var(--caption-shadow);
  white-space: pre-line;
  text-wrap: balance;
}

.captions[dir="rtl"] .caption-line {
  direction: rtl;
  unicode-bidi: plaintext;
}

.captions.size-small {
  --caption-size: clamp(15px, 1.55vw, 24px);
}

.captions.size-large {
  --caption-size: clamp(23px, 2.7vw, 42px);
}

.captions.bg-on {
  --caption-bg: rgba(0, 0, 0, 0.68);
  --caption-shadow: none;
}

.stage.controls-visible .captions {
  bottom: clamp(112px, 17vh, 210px);
}

/* ==========================================================================
   Skip intro
   ========================================================================== */

.skip-pill {
  position: absolute;
  right: calc(var(--safe-right) + clamp(18px, 3vw, 46px));
  bottom: calc(var(--safe-bottom) + clamp(96px, 13vh, 128px));
  z-index: 32;
  padding: 11px 22px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: #181818;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  transition: background 0.16s, border-color 0.16s;
}

.skip-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

/* ==========================================================================
   Episodes & settings sheets
   ========================================================================== */

.scrim {
  position: absolute;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.scrim.is-open {
  opacity: 1;
}

.sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(470px, 94vw);
  display: flex;
  flex-direction: column;
  background: #141414;
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.62);
  transform: translateX(102%);
  transition: transform 0.34s var(--ease);
  padding-top: var(--safe-top);
  visibility: hidden;
}

.sheet.is-open {
  transform: translateX(0);
  visibility: visible;
}

.sheet--episodes {
  width: min(500px, 96vw);
}

.sheet__grab {
  display: none;
}

.sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3vh, 28px) 24px 14px;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.sheet__title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sheet__close {
  width: 38px;
  height: 38px;
  margin: -2px -6px 0 0;
  background: rgba(255, 255, 255, 0.07);
}

.sheet__close .icon {
  width: 21px;
  height: 21px;
}

.sheet__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 16px calc(30px + var(--safe-bottom));
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a transparent;
}

.sheet__body::-webkit-scrollbar {
  width: 7px;
}

.sheet__body::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 4px;
}

.season-row {
  padding: 0 24px 10px;
  flex: 0 0 auto;
}

.select-wrap {
  position: relative;
  width: 100%;
}

.season-select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  padding: 0 42px 0 14px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #232323;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.select-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: #b3b3b3;
  pointer-events: none;
}

/* --- episode cards ------------------------------------------------------- */

.episode-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 10px calc(30px + var(--safe-bottom));
}

.ep-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 13px;
  align-items: start;
  padding: 10px;
  border-radius: 5px;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.ep-card:hover {
  background: #1f1f1f;
}

.ep-card.is-current {
  background: #1c1c1c;
  border-left-color: var(--red);
}

.ep-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  background: #232323;
}

.ep-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ep-card__num {
  position: absolute;
  left: 6px;
  bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 4px #000;
}

.ep-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  transition: opacity 0.15s;
}

.ep-card:hover .ep-card__play,
.ep-card:focus-visible .ep-card__play {
  opacity: 1;
}

.ep-card__play .icon {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

@media (hover: none), (pointer: coarse) {
  .ep-card__play {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0) 58%);
    place-items: end end;
    padding: 5px;
  }

  .ep-card__play .icon {
    width: 20px;
    height: 20px;
    box-sizing: content-box;
    padding: 5px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
  }
}

.ep-card__body {
  min-width: 0;
  padding-top: 1px;
}

.ep-card__top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.ep-card__label {
  font-size: 11px;
  font-weight: 700;
  color: #b3b3b3;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ep-card.is-current .ep-card__label {
  color: var(--red);
}

.ep-card__name {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ep-card__overview {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #a5a5a5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-card__progress {
  height: 2px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
  overflow: hidden;
}

.ep-card__progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
}

.ep-card.is-current .ep-card__name::after {
  content: " · Now playing";
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ep-empty,
.ep-loading {
  padding: 40px 24px;
  text-align: center;
  color: #8c8c8c;
  font-size: 14px;
  line-height: 1.6;
}

.ep-skeleton {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 13px;
  padding: 10px;
  opacity: 0.55;
}

.ep-skeleton__thumb {
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  background: #262626;
  animation: pulse 1.4s ease-in-out infinite;
}

.ep-skeleton__lines {
  padding-top: 6px;
}

.ep-skeleton__line {
  height: 11px;
  border-radius: 3px;
  background: #262626;
  margin-bottom: 9px;
  animation: pulse 1.4s ease-in-out infinite;
}

.ep-skeleton__line--short {
  width: 62%;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

/* --- settings ------------------------------------------------------------ */

.setting {
  padding: 16px 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.setting:last-child {
  border-bottom: 0;
}

.setting__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8c8c8c;
}

.setting__empty {
  margin: 8px 0 0;
  color: #8c8c8c;
  font-size: 13px;
}

.option-list {
  display: flex;
  flex-direction: column;
}

.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 46px;
  padding: 8px 8px;
  border-radius: 4px;
  color: #cfcfcf;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.option.is-selected {
  color: #fff;
  font-weight: 600;
}

.option .icon {
  width: 21px;
  height: 21px;
  color: var(--red);
}

.option__label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.option__code {
  font-size: 11px;
  font-weight: 700;
  color: #8c8c8c;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.appearance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px;
  min-height: 48px;
}

.appearance-label {
  font-size: 14px;
  color: #d2d2d2;
  font-weight: 500;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: #262626;
  border-radius: 4px;
}

.segmented button {
  min-width: 44px;
  height: 34px;
  padding: 0 12px;
  border-radius: 3px;
  color: #c9c9c9;
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
}

.segmented button:hover {
  color: #fff;
}

.segmented button.is-selected {
  background: #fff;
  color: #000;
}

.segmented--text button {
  min-width: 54px;
}

#sizeSegmented button:nth-child(1) {
  font-size: 11px;
}

#sizeSegmented button:nth-child(2) {
  font-size: 14px;
}

#sizeSegmented button:nth-child(3) {
  font-size: 17px;
}

.caption-sample {
  margin: 12px 8px 4px;
  padding: 22px 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #050505;
  text-align: center;
  color: #fff;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
  text-shadow: var(--caption-shadow);
  transition: background 0.15s, font-size 0.15s;
}

.caption-sample.bg-on {
  background: #000;
  text-shadow: none;
}

.caption-sample.bg-on span {
  background: rgba(0, 0, 0, 0.68);
  padding: 2px 6px;
  border-radius: 2px;
}

.caption-sample.size-small {
  font-size: 14px;
}

.caption-sample.size-large {
  font-size: 21px;
}

/* ==========================================================================
   Speed menu
   ========================================================================== */

.speed-menu {
  position: absolute;
  right: calc(var(--safe-right) + clamp(18px, 3vw, 46px));
  bottom: calc(var(--safe-bottom) + clamp(76px, 9vh, 96px));
  z-index: 65;
  width: 198px;
  padding: 10px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.62);
  animation: menuIn 0.18s var(--ease);
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.speed-menu__title {
  margin: 2px 8px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8c8c8c;
}

.speed-menu__list {
  display: flex;
  flex-direction: column;
}

.speed-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  color: #d2d2d2;
  transition: background 0.13s, color 0.13s;
}

.speed-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.speed-option.is-selected {
  color: #fff;
  font-weight: 700;
}

.speed-option .icon {
  width: 18px;
  height: 18px;
  color: var(--red);
}

/* ==========================================================================
   Post-play
   ========================================================================== */

.postplay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: radial-gradient(120% 100% at 70% 20%, rgba(45, 45, 45, 0.35) 0%, rgba(0, 0, 0, 0.92) 55%),
    rgba(0, 0, 0, 0.92);
  overflow-y: auto;
  animation: postIn 0.35s var(--ease);
}

@keyframes postIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.postplay__inner {
  position: relative;
  width: min(560px, 100%);
  margin: auto;
  padding: clamp(20px, 3.6vw, 32px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #181818;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

.postplay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.postplay__media {
  position: relative;
  margin: 14px 0 18px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #222;
}

.postplay__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.postplay__countdown {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(229, 9, 20, 0.94);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.postplay__title {
  margin: 0;
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.postplay__overview {
  margin: 9px 0 0;
  color: #b3b3b3;
  font-size: 13.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.postplay__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s, transform 0.15s, border-color 0.15s;
}

.btn:active {
  transform: scale(0.97);
}

.btn .icon {
  width: 21px;
  height: 21px;
}

.btn--primary {
  background: #fff;
  color: #000;
}

.btn--primary:hover {
  background: rgba(255, 255, 255, 0.82);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.postplay__hint {
  margin: 16px 0 0;
  color: #8c8c8c;
  font-size: 12px;
  line-height: 1.5;
}

.postplay__hint button {
  color: #cfcfcf;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: inherit;
}

.postplay__hint button:hover {
  color: #fff;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + clamp(104px, 14vh, 140px));
  z-index: 72;
  transform: translateX(-50%) translateY(10px);
  max-width: min(88vw, 520px);
  padding: 11px 18px;
  border-radius: 4px;
  background: rgba(28, 28, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Boot
   ========================================================================== */

.boot {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: #000;
  transition: opacity 0.5s var(--ease);
}

.boot.is-done {
  opacity: 0;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--red);
  box-shadow: 0 6px 26px rgba(229, 9, 20, 0.32);
}

.brand__mark svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  margin-left: 2px;
}

.brand__word {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.36em;
  color: #fff;
  padding-left: 2px;
}

.boot__bar {
  width: min(210px, 52vw);
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.boot__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.5s var(--ease);
}

.boot__status {
  margin: -8px 0 0;
  max-width: 80vw;
  color: #8c8c8c;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ==========================================================================
   Fatal
   ========================================================================== */

.fatal {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
}

.fatal__inner {
  max-width: 520px;
  text-align: center;
}

.fatal__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  color: var(--red);
}

.fatal h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fatal p {
  margin: 0 auto;
  max-width: 46ch;
  color: #a9a9a9;
  font-size: 14px;
  line-height: 1.6;
}

.fatal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.fatal__hint {
  margin-top: 22px !important;
  color: #666 !important;
  font-size: 12px !important;
}

.fatal__hint code {
  color: #8f8f8f;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ==========================================================================
   Title screen (back destination)
   ========================================================================== */

.title-screen {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: #000;
  overflow-y: auto;
  animation: titleIn 0.35s var(--ease);
}

@keyframes titleIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.title-screen__bg {
  position: absolute;
  inset: -40px;
  background-position: center;
  background-size: cover;
  filter: blur(42px) brightness(0.32) saturate(1.1);
  transform: scale(1.12);
  pointer-events: none;
}

.title-screen__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 52%, rgba(0, 0, 0, 0.8) 100%),
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.title-screen__back {
  position: absolute;
  top: calc(var(--safe-top) + 20px);
  left: calc(var(--safe-left) + 20px);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.title-screen__content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(var(--safe-top) + clamp(60px, 12vh, 120px)) clamp(22px, 5vw, 56px)
    calc(var(--safe-bottom) + 40px);
  display: grid;
  grid-template-columns: clamp(150px, 18vw, 230px) 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.title-screen__content.is-solo {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.title-screen__poster {
  width: 100%;
  border-radius: 7px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.7);
  display: block;
  background: #1a1a1a;
}

.title-screen__copy {
  max-width: 640px;
}

.title-screen__name {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 58px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.title-screen__overview {
  margin: 16px 0 0;
  color: #d2d2d2;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.6;
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.title-screen__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.title-screen__meta {
  margin: 20px 0 0;
  color: #8c8c8c;
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .text-btn span {
    display: none;
  }

  .speed-btn span {
    display: inline;
  }

  .text-btn {
    padding: 0 9px;
  }
}

@media (max-width: 740px) {
  .time {
    display: none;
  }
}

@media (hover: none) {
  .seek-round {
    display: grid;
  }

  .volume {
    display: none;
  }
}

@media (max-width: 740px) {
  .topbar {
    gap: 12px;
    padding-top: calc(var(--safe-top) + 12px);
    padding-left: calc(var(--safe-left) + 14px);
    padding-right: calc(var(--safe-right) + 14px);
  }

  .back-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.44);
  }

  .back-btn .icon {
    width: 22px;
    height: 22px;
  }

  .show-title {
    font-size: 16px;
  }

  .episode-title {
    font-size: 11.5px;
    margin-top: 2px;
  }

  .controls {
    padding-left: calc(var(--safe-left) + 14px);
    padding-right: calc(var(--safe-right) + 14px);
    padding-bottom: calc(var(--safe-bottom) + 8px);
  }

  .scrubber {
    height: 34px;
    margin-bottom: 0;
  }

  .scrub-track,
  .scrubber:hover .scrub-track,
  .scrubber.is-dragging .scrub-track {
    height: 4px;
  }

  .scrub-handle {
    width: 14px;
    height: 14px;
  }

  .scrubber:hover .scrub-handle,
  .scrubber.is-dragging .scrub-handle {
    width: 18px;
    height: 18px;
  }

  .scrub-tooltip {
    bottom: 30px;
    width: 176px;
  }

  .control-row {
    min-height: 52px;
  }

  .control-group--left {
    display: none;
  }

  .control-group--right {
    flex: 1 1 auto;
    justify-content: space-between;
    gap: 0;
  }

  .control-group--right .text-btn,
  .control-group--right .icon-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .control-group--right .text-btn .icon,
  .control-group--right .icon-btn .icon {
    width: 25px;
    height: 25px;
  }

  .speed-btn span {
    font-size: 12px;
  }

  .captions {
    left: 4%;
    right: 4%;
    bottom: clamp(118px, 19vh, 190px);
  }

  .stage.controls-visible .captions {
    bottom: clamp(132px, 22vh, 220px);
  }

  .next-btn {
    color: #fff;
  }

  .skip-pill {
    right: calc(var(--safe-right) + 14px);
    bottom: calc(var(--safe-bottom) + clamp(112px, 18vh, 160px));
    padding: 10px 18px;
    font-size: 13.5px;
  }

  .unmute-pill {
    top: calc(var(--safe-top) + 70px);
    font-size: 12.5px;
    padding: 9px 15px;
  }

  /* bottom sheets */
  .sheet,
  .sheet--episodes {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: min(82dvh, 760px);
    border-radius: 12px 12px 0 0;
    transform: translateY(104%);
    box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.65);
    padding-top: 0;
    padding-bottom: var(--safe-bottom);
  }

  .sheet.is-open {
    transform: translateY(0);
  }

  .sheet__grab {
    display: block;
    width: 42px;
    height: 4px;
    margin: 9px auto 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.28);
    flex: 0 0 auto;
  }

  .sheet__head {
    padding: 14px 18px 10px;
  }

  .sheet__title {
    font-size: 20px;
  }

  .season-row {
    padding: 0 18px 8px;
  }

  .sheet__body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .episode-list {
    padding-left: 6px;
    padding-right: 6px;
  }

  .ep-card {
    grid-template-columns: 104px 1fr;
    gap: 11px;
    padding: 9px;
  }

  .ep-card__name {
    font-size: 13.5px;
  }

  .ep-card__overview {
    font-size: 11.5px;
  }

  .setting {
    padding-left: 6px;
    padding-right: 6px;
  }

  .speed-menu {
    left: 50%;
    right: auto;
    bottom: calc(var(--safe-bottom) + 84px);
    transform: translateX(-50%);
    width: 210px;
  }

  .toast {
    bottom: calc(var(--safe-bottom) + 120px);
    font-size: 12.5px;
  }

  .postplay {
    padding: 14px;
    place-items: start center;
  }

  .postplay__inner {
    margin-top: auto;
    margin-bottom: auto;
    padding: 18px;
    border-radius: 10px;
  }

  .postplay__actions .btn {
    flex: 1 1 auto;
  }

  .title-screen__content {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: start;
    gap: 22px;
    padding-top: calc(var(--safe-top) + 72px);
  }

  .title-screen__poster {
    width: min(44vw, 170px);
  }

  .title-screen__name {
    font-size: clamp(30px, 9vw, 44px);
  }

  .title-screen__overview {
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 390px) {
  .show-title {
    font-size: 15px;
  }

  .episode-title {
    font-size: 11px;
  }

  .control-group--right .text-btn,
  .control-group--right .icon-btn {
    width: 44px;
    height: 44px;
  }

  .control-group--right .text-btn .icon,
  .control-group--right .icon-btn .icon {
    width: 23px;
    height: 23px;
  }

  .sheet__title {
    font-size: 18px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .topbar {
    padding-top: calc(var(--safe-top) + 8px);
  }

  .back-btn {
    width: 38px;
    height: 38px;
  }

  .show-title {
    font-size: 15px;
  }

  .episode-title {
    font-size: 10.5px;
    margin-top: 1px;
  }

  .controls {
    padding-bottom: calc(var(--safe-bottom) + 4px);
  }

  .scrubber {
    height: 26px;
  }

  .control-row {
    min-height: 44px;
  }

  .control-group--right .text-btn,
  .control-group--right .icon-btn {
    width: 42px;
    height: 42px;
  }

  .seek-round {
    width: 46px;
    height: 46px;
  }

  .play-round {
    width: 60px;
    height: 60px;
  }

  .captions {
    bottom: 78px;
  }

  .stage.controls-visible .captions {
    bottom: 88px;
  }

  .skip-pill {
    bottom: 78px;
  }

  .boot {
    gap: 18px;
  }
}

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