/* eK9 watch page: a YouTube-style player and description */

:root {
  --bg: #ffffff;
  --text: #0f0f0f;
  --text-2: #606060;
  --box: #f2f2f2;
  --box-hover: #e5e5e5;
  --link: #065fd4;
  --accent: #e53935;
  --dialog: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --text: #f1f1f1;
    --text-2: #aaaaaa;
    --box: #272727;
    --box-hover: #3a3a3a;
    --link: #3ea6ff;
    --dialog: #212121;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }

/* ---------- page ---------- */
.masthead {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 max(24px, env(safe-area-inset-left));
}
.brand { display: inline-flex; padding: 6px 0; }
.brand img { display: block; height: 20px; width: auto; }

.watch { max-width: 1280px; margin: 0 auto; padding: 0 24px 48px; }

.meta { padding-top: 12px; }
.title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.owner { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.owner__avatar { width: 40px; height: 40px; border-radius: 50%; display: block; }
.owner__name { font-size: 16px; font-weight: 500; line-height: 22px; }

/* Download button (YouTube-style pill). The film is fetched in parts and saved as one MP4. */
.action {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 18px;
  background: var(--box);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 36px;
  white-space: nowrap;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.action:hover { background: var(--box-hover); }
.action:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.action[aria-busy="true"] { cursor: progress; }
.action svg { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* Download dialog: subtitles burned in or not, full quality or a smaller file */
.dl-dialog {
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--dialog);
  color: var(--text);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}
.dl-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.dl-dialog form { margin: 0; padding: 24px 24px 16px; }
.dl-dialog__title { margin: 0 0 16px; font-size: 20px; font-weight: 500; line-height: 28px; }
.dl-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.dl-group__label { padding: 0; margin: 0 0 8px; font-size: 14px; font-weight: 500; line-height: 20px; }
.dl-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--box);
  box-shadow: inset 0 0 0 2px transparent;
  cursor: pointer;
}
.dl-option:hover { background: var(--box-hover); }
.dl-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--link); }
.dl-option:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.dl-option input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--link); cursor: pointer; }
.dl-option__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-option__name { font-size: 15px; font-weight: 500; line-height: 22px; }
.dl-option__meta { font-size: 13px; line-height: 18px; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 359px) { .dl-group { grid-template-columns: 1fr; } }
.dl-dialog__foot { display: flex; justify-content: flex-end; gap: 8px; }
.dl-cancel,
.dl-go {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.dl-cancel { background: transparent; color: var(--link); }
.dl-cancel:hover { background: var(--box); }
.dl-go { background: var(--text); color: var(--bg); }
.dl-go:hover { opacity: 0.85; }
.dl-cancel:focus-visible,
.dl-go:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.description {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--box);
  font-size: 14px;
  line-height: 20px;
}
.description p { margin: 0 0 12px; max-width: 80ch; }
.description__meta { font-weight: 500; }
.description__heading { margin: 16px 0 8px; font-size: 16px; line-height: 22px; font-weight: 700; }

.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.chapter {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.chapter:hover, .chapter:focus-visible { background: var(--box-hover); outline: none; }
.chapter.is-current { background: var(--box-hover); }
.chapter__thumb {
  flex: none;
  width: 120px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
  display: block;
}
.chapter__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.chapter__title { font-size: 14px; font-weight: 500; line-height: 20px; }
.chapter__time {
  align-self: flex-start;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--link);
  background: color-mix(in srgb, var(--link) 12%, transparent);
}

.noscript { padding: 12px; color: var(--text-2); }

@media (max-width: 720px) {
  .masthead { height: 48px; padding: 0 12px; }
  .watch { padding: 0 0 32px; }
  .meta { padding: 12px 12px 0; }
  .title { font-size: 18px; line-height: 26px; }
  .chapter__thumb { width: 96px; }
}

/* ---------- player ---------- */
.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  font-family: "Roboto", Arial, sans-serif;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  container: player / inline-size;
}
@media (max-width: 720px) { .player { border-radius: 0; } }

.player.is-fs { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.player.pseudo-fs {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}
/* phone held upright: the player turns a quarter clockwise to fill the screen in landscape
   (sizes come from watch.js: --fs-w is the window height, --fs-h the window width) */
.player.pseudo-fs.is-rotated {
  inset: auto;
  top: 0;
  left: 0;
  width: var(--fs-w, 100vh);
  height: var(--fs-h, 100vw);
  transform-origin: 0 0;
  transform: translateX(var(--fs-h, 100vw)) rotate(90deg);
}
.player.pseudo-fs .shield { touch-action: none; }
.player.is-fs.controls-off { cursor: none; }

/* the 16:9 picture area: video, captions and watermark always sit on the picture */
.stage { position: absolute; inset: 0; container-type: inline-size; }
.player.is-fs .stage {
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(100%, 177.7778vh);
  height: min(100%, 56.25vw);
  transform: translate(-50%, -50%);
}
@supports (height: 100dvh) {
  .player.is-fs .stage { width: min(100%, 177.7778dvh); }
}
/* size the picture from the player's own box, which stays right when the player is turned sideways */
.player.is-fs { container-type: size; }
@supports (width: 1cqh) {
  .player.is-fs .stage { width: min(100cqw, 177.7778cqh); height: min(100cqh, 56.25cqw); }
}
.stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  pointer-events: none;
}

.watermark {
  position: absolute;
  top: 4.5%;
  right: 3%;
  width: 10%;
  min-width: 56px;
  height: auto;
  opacity: 0.75;
  pointer-events: none;
  /* soft dark edge keeps the white mark readable over the white app screens */
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.45)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.captions {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 5%;
  text-align: center;
  pointer-events: none;
  transition: bottom 0.2s ease;
}
.player.is-started:not(.controls-off) .captions { bottom: calc(5% + 52px); }
.player.is-fs.is-started:not(.controls-off) .captions { bottom: calc(5% + 60px); }
.captions-text {
  display: inline;
  padding: 0.1em 0.45em;
  font-size: 18px;
  font-size: clamp(13px, 2.15cqi, 46px);
  line-height: 1.45;
  white-space: pre-line;
  color: #fff;
  background: rgba(8, 8, 8, 0.75);
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.captions-text:empty { display: none; }

.shield { position: absolute; inset: 0; z-index: 1; }

/* big play (before the first play) */
.big-play {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.72);
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}
.big-play svg { width: 40px; height: 40px; fill: #fff; margin-left: 4px; }
.big-play:hover, .big-play:focus-visible { background: var(--accent); outline: none; transform: scale(1.06); }
.player.is-unstarted .big-play { display: flex; }

/* spinner */
.spinner {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.player.is-waiting .spinner { opacity: 1; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* centre flash after click (play / pause) */
.bezel {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
}
.bezel svg { width: 100%; height: 100%; fill: #fff; display: block; }
.bezel.is-on { animation: bezel 0.5s ease-out forwards; }
@keyframes bezel { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(2); } }

/* double-tap / key skip hints */
.seek-hint {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 32%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
}
.seek-hint--back { left: 0; border-radius: 0 50% 50% 0 / 0 50% 50% 0; }
.seek-hint--fwd { right: 0; border-radius: 50% 0 0 50% / 50% 0 0 50%; }
.seek-hint__arrows { font-size: 12px; letter-spacing: -2px; }
.seek-hint.is-on { animation: hint 0.6s ease-out forwards; }
@keyframes hint { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }

/* toast (volume, speed, captions) */
.toast {
  position: absolute;
  z-index: 5;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.62);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.toast.is-on { opacity: 1; }

/* touch: centre play/pause and skip buttons */
.touch-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  gap: clamp(24px, 9cqi, 72px);
  transition: opacity 0.2s;
}
.tc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
}
.tc--play { width: 60px; height: 60px; padding: 12px; }
.tc svg { width: 100%; height: 100%; fill: #fff; display: block; }
@media (hover: none) and (pointer: coarse) {
  .player.is-started .touch-controls { display: flex; }
  .player.controls-off .touch-controls { opacity: 0; pointer-events: none; }
  .player.is-ended .touch-controls, .player.is-waiting .tc--play { visibility: hidden; }
  /* small phone player: the centre buttons would sit on the captions, so captions step aside while controls show */
  @container player (max-width: 560px) {
    .player.is-started:not(.controls-off) .captions { opacity: 0; }
  }
}
.captions { transition: bottom 0.2s ease, opacity 0.2s ease; }

/* end screen */
.end-screen {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}
.player.is-ended .end-screen { display: flex; }
.replay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.replay svg { width: 64px; height: 64px; fill: #fff; padding: 10px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); }
.replay:hover svg, .replay:focus-visible svg { background: var(--accent); }
.replay:focus-visible { outline: none; }

.error-screen {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}
.error-screen[hidden] { display: none; }

/* ---------- controls ---------- */
.gradient {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 136px;
  max-height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.34) 45%, rgba(0, 0, 0, 0));
  pointer-events: none;
  transition: opacity 0.25s;
}
.chrome {
  position: absolute;
  z-index: 4;
  left: 12px;
  right: 12px;
  bottom: 0;
  transition: opacity 0.25s;
}
.player.is-unstarted .gradient, .player.is-unstarted .chrome { display: none; }
.player.controls-off .gradient, .player.controls-off .chrome { opacity: 0; pointer-events: none; }
.player.is-fs .chrome {
  left: max(24px, env(safe-area-inset-left));
  right: max(24px, env(safe-area-inset-right));
  bottom: env(safe-area-inset-bottom);
}
/* turned sideways: the screen's top edge is the picture's left, its bottom edge (home bar) the picture's right */
.player.is-rotated .chrome {
  left: max(24px, env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-bottom));
  bottom: env(safe-area-inset-left);
}

.progress {
  position: relative;
  height: 18px;
  cursor: pointer;
  touch-action: none;
  outline: none;
}
.progress__track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 3px;
  display: flex;
  gap: 2px;
  transition: height 0.1s;
}
.progress:hover .progress__track, .player.is-scrubbing .progress__track { height: 5px; }
.progress:focus-visible .progress__track { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
.seg {
  position: relative;
  height: 100%;
  min-width: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  transition: transform 0.1s;
}
.progress:hover .seg.is-hot, .player.is-scrubbing .seg.is-hot { transform: scaleY(1.6); }
.seg i {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.seg .seg__buf { background: rgba(255, 255, 255, 0.4); }
.seg .seg__hov { background: rgba(255, 255, 255, 0.5); }
.seg .seg__play { background: var(--accent); }

.progress__scrubber {
  position: absolute;
  left: 0;
  bottom: 7.5px;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  margin-bottom: -6.5px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.1s;
  pointer-events: none;
}
.progress:hover .progress__scrubber, .player.is-scrubbing .progress__scrubber { transform: scale(1); }
@media (hover: none) { .player:not(.controls-off) .progress__scrubber { transform: scale(1); } }

.preview {
  position: absolute;
  bottom: 30px;
  left: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}
.preview.is-on { display: flex; }
.preview__thumb {
  width: 160px;
  height: 90px;
  border: 2px solid #fff;
  border-radius: 8px;
  background-color: #000;
  background-repeat: no-repeat;
}
.preview__chapter { margin-top: 6px; max-width: 220px; font-size: 13px; font-weight: 500; text-align: center; }
.preview__chapter:empty { display: none; }
.preview__time { margin-top: 2px; font-size: 13px; font-weight: 500; }

.bar { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.bar__left, .bar__right { display: flex; align-items: center; height: 100%; min-width: 0; }
.bar__left { flex: 1; }
.player.is-fs .bar { height: 56px; }

.btn {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.92;
}
.btn:hover, .btn:focus-visible { opacity: 1; outline: none; }
.btn:focus-visible { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85); border-radius: 8px; }
.btn svg { width: 100%; height: 100%; fill: #fff; display: block; }
.player.is-fs .btn { width: 54px; height: 54px; padding: 13px; }

/* tooltips like the familiar player */
@media (hover: hover) {
  .btn[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 9px;
    border-radius: 4px;
    background: rgba(28, 28, 28, 0.9);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    white-space: nowrap;
    pointer-events: none;
  }
  .bar__left .btn--play[data-tip]:hover::after { left: 0; transform: none; }
  .btn--fs[data-tip]:hover::after { left: auto; right: 0; transform: none; }
  .player.menu-open .btn--settings::after { display: none; }
}

.btn--settings svg { transition: transform 0.2s; }
.btn--settings[aria-expanded="true"] svg { transform: rotate(30deg); }
.btn--cc::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 9px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.15s;
}
.btn--cc[aria-pressed="true"]::before { transform: scaleX(1); }
.player.is-fs .btn--cc::before { left: 13px; right: 13px; bottom: 10px; }

.volume { display: flex; align-items: center; height: 100%; }
.volume__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 100%;
  margin: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition: width 0.2s, opacity 0.2s, margin 0.2s;
  --vol: 100%;
}
.volume:hover .volume__slider, .volume:focus-within .volume__slider, .player.is-vol-drag .volume__slider {
  width: 64px;
  margin-right: 8px;
  opacity: 1;
}
.volume__slider:focus-visible { outline: none; }
.volume__slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, #fff var(--vol), rgba(255, 255, 255, 0.25) var(--vol));
}
.volume__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  border: 0;
}
.volume__slider::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); }
.volume__slider::-moz-range-progress { height: 3px; border-radius: 2px; background: #fff; }
.volume__slider::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
@media (hover: none) { .volume__slider { display: none; } }

.time {
  flex: none;
  padding: 0 8px 0 4px;
  font-size: 13px;
  line-height: 48px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}
.player.is-fs .time { font-size: 15px; }
.time__sep, .time__total { opacity: 0.85; }

.chapter-label {
  display: flex;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  line-height: 48px;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}
.chapter-label__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-label__name:empty, .chapter-label__name:empty ~ * { display: none; }
.chapter-label:has(.chapter-label__name:empty) { display: none; }
.player.is-fs .chapter-label { font-size: 15px; }

@container player (max-width: 520px) {
  .chapter-label { display: none; }
  .btn { width: 40px; height: 40px; padding: 9px; }
  .bar { height: 44px; }
  .time { line-height: 44px; font-size: 12px; }
  .chrome { left: 8px; right: 8px; }
}

/* settings menu */
.menu {
  position: absolute;
  z-index: 8;
  right: 12px;
  bottom: 62px;
  min-width: 250px;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 78px);
  overflow-y: auto;
  padding: 8px 0;
  border-radius: 12px;
  background: rgba(28, 28, 28, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 14px;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}
.player.is-fs .menu { bottom: 74px; right: max(24px, env(safe-area-inset-right)); }
.player.is-rotated .menu { right: max(24px, env(safe-area-inset-bottom)); }
.menu[hidden] { display: none; }
.mi {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 40px;
  padding: 0 14px 0 16px;
  border: 0;
  background: transparent;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.mi:hover, .mi:focus-visible { background: rgba(255, 255, 255, 0.1); outline: none; }
.mi svg { width: 24px; height: 24px; fill: #fff; flex: none; }
.mi__label { flex: 1; font-weight: 500; }
.mi__value { opacity: 0.9; display: flex; align-items: center; gap: 2px; }
.mi__value svg { width: 20px; height: 20px; }
.mi__check { width: 24px; flex: none; }
.mi--header { border-bottom: 1px solid rgba(255, 255, 255, 0.18); margin-bottom: 8px; height: 48px; }
.mi sup { font-size: 9px; font-weight: 700; margin-left: 2px; color: var(--accent); vertical-align: super; }

@media (prefers-reduced-motion: reduce) {
  .bezel.is-on, .seek-hint.is-on { animation-duration: 0.01s; }
  .player.is-waiting .spinner { animation-duration: 2s; }
}
