/**
 * VidCellar Player 2.0 — styles.
 *
 * Every themable value is a CSS custom property set from VidCellar → Player
 * (printed inline by VidCellar_Player_Settings::css_vars()). Defaults below
 * keep the player usable when the inline block is missing.
 *
 * Class prefix: vcp-  (the 1.x .vc-controls / .vc-progress rules in style.css
 * are left untouched for older server-rendered markup).
 *
 * Copyright (C) 2026  Suhaib Siddiqi — GPLv2 or later.
 */

.vcp-shell,
.vc-player {
  --vcp-primary: #1683d8;
  --vcp-accent: #fff;
  --vcp-bar-bg: rgba(0, 0, 0, .65);
  --vcp-bar-solid: #000;
  --vcp-menu-bg: #16181d;
  --vcp-radius: 8px;
  --vcp-logo-width: 96px;
  --vcp-logo-opacity: .8;
  --vcp-caption-size: 1.25rem;
  --vcp-caption-bg: rgba(0, 0, 0, .75);
  --vcp-caption-shadow: none;
  --vcp-transcript-height: 320px;
  --vcp-sticky-width: 360px;
  --vcp-sticky-offset: 16px;
  --vcp-btn: 40px;
  --vcp-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------------ *
 * Shell: player + controls below + transcript
 * ------------------------------------------------------------------ */
.vcp-shell {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 16px 0 24px;
  box-sizing: border-box;
}
.vcp-shell *, .vcp-shell *::before, .vcp-shell *::after { box-sizing: border-box; }
.vcp-shell .vc-player { margin: 0; max-width: none; }
.vcp-stage { position: relative; width: 100%; }
.vcp-stage--placeholder {
  background: #0b0d10;
  border-radius: var(--vcp-radius);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .04) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .04) 50%, rgba(255, 255, 255, .04) 75%, transparent 75%);
  background-size: 24px 24px;
}

.vcp-below {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

/* Theater: break out of the content column to the full viewport width. */
.vcp-shell--theater {
  width: calc(100vw - var(--vcp-sbw, 0px));
  max-width: none;
  margin-left: calc(50% - 50vw + var(--vcp-sbw, 0px) / 2);
  margin-right: 0;
}
.vcp-shell--theater .vcp-stage { background: #000; }
.vcp-shell--theater .vc-player.vcp:not(.vcp-docked):not(.vcp-fullscreen) {
  aspect-ratio: auto !important;
  height: min(56.25vw, calc(100vh - 140px));
  min-height: 240px;
  border-radius: 0;
  box-shadow: none;
}
.vcp-shell--theater .vcp-below,
.vcp-shell--theater .vcp-transcript { margin-left: 16px; margin-right: 16px; }

/* ------------------------------------------------------------------ *
 * Player box
 * ------------------------------------------------------------------ */
.vc-player.vcp {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  background: #000;
  border-radius: var(--vcp-radius);
  color: var(--vcp-accent);
  font: 500 14px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
}
.vc-player.vcp:focus-visible { box-shadow: 0 0 0 3px var(--vcp-primary); }
.vc-player.vcp[data-vcp-active] { contain: none; }
.vcp .vcp-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  z-index: 1;
}
/* White-label: never let native/browser chrome paint over the player. */
.vcp video::-webkit-media-controls,
.vcp video::-webkit-media-controls-enclosure,
.vcp video::-webkit-media-controls-panel,
.vcp video::-webkit-media-controls-start-playback-button,
.vcp video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.vcp video::cue { background: transparent; color: transparent; } /* our overlay draws subtitles */
.vcp .vcp-audio-sink { display: none; }

/* Reset theme button styles inside the player and transcript. */
.vcp button,
.vcp-shell button,
.vcp input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  line-height: 1;
  min-height: 0;
  min-width: 0;
  text-transform: none;
  text-decoration: none;
  text-shadow: none;
  width: auto;
  height: auto;
  cursor: pointer;
}
.vcp button:hover, .vcp button:focus, .vcp-shell button:hover, .vcp-shell button:focus { background: none; color: inherit; box-shadow: none; }

.vcp-icon { display: block; width: 24px; height: 24px; fill: currentColor; pointer-events: none; }
.vcp-sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.vcp-layers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* Big play button */
.vc-player.vcp .vcp-big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--vcp-primary);
  color: var(--vcp-accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .35);
  transition: transform .18s var(--vcp-ease), opacity .18s;
}
.vc-player.vcp .vcp-big-play .vcp-icon { width: 38px; height: 38px; }
.vc-player.vcp .vcp-big-play:hover { transform: translate(-50%, -50%) scale(1.07); background: var(--vcp-primary); }
.vc-player.vcp .vcp-big-play:focus-visible { outline: 3px solid var(--vcp-accent); outline-offset: 3px; }
.vcp.vcp-playing .vcp-big-play,
.vcp.vcp-ad-playing .vcp-big-play,
.vcp.vcp-docked .vcp-big-play,
.vcp.vcp-starting .vcp-big-play,
.vcp.vcp-waiting .vcp-big-play { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.9); }

/* Network buffering stays behind the poster/video. The progress bar remains
   available, but it never covers the picture or turns Play into a spinner. */
.vcp .vcp-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 4px solid rgba(255, 255, 255, .25);
  border-top-color: var(--vcp-primary);
  border-radius: 50%;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.vcp.vcp-waiting .vcp-spinner { display: none; opacity: 0; animation: none; }
@keyframes vcp-spin { to { transform: rotate(360deg); } }

.vcp .vcp-error {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: min(90%, 560px);
  padding: 14px 18px;
  border-radius: var(--vcp-radius);
  background: rgba(0, 0, 0, .85);
  color: #fff;
  text-align: center;
  transform: translate(-50%, -50%);
}
.vcp .vcp-error[hidden] { display: none; }

/* ------------------------------------------------------------------ *
 * Control bar
 * ------------------------------------------------------------------ */
.vcp .vcp-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 28px 12px 6px;
  background: linear-gradient(to top, var(--vcp-bar-bg) 0%, var(--vcp-bar-bg) 40%, transparent 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s var(--vcp-ease);
  pointer-events: none;
}
.vcp.vcp-controls-visible .vcp-bar,
.vcp.vcp-paused .vcp-bar,
.vcp.vcp-menu-open .vcp-bar,
.vcp:has(.vcp-bar :focus-visible) .vcp-bar { opacity: 1; transform: none; pointer-events: auto; }
.vcp.vcp-playing:not(.vcp-controls-visible):not(.vcp-menu-open) { cursor: none; }
.vcp.vcp-ad-playing .vcp-bar { display: none; }

.vcp .vcp-row { display: flex; align-items: center; gap: 2px; min-height: var(--vcp-btn); }
.vcp .vcp-group { display: flex; align-items: center; gap: 2px; min-width: 0; }
.vcp .vcp-group--left { flex: 0 1 auto; overflow: hidden; }
.vcp .vcp-group--right { flex: 0 0 auto; }
.vcp .vcp-spacer { flex: 1 1 auto; }

.vc-player.vcp .vcp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--vcp-btn);
  height: var(--vcp-btn);
  border-radius: 50%;
  color: var(--vcp-accent);
  opacity: .92;
  transition: background-color .15s, opacity .15s, transform .15s;
}
.vc-player.vcp .vcp-btn:hover { opacity: 1; background: rgba(255, 255, 255, .14); }
.vc-player.vcp .vcp-btn:focus-visible { outline: 2px solid var(--vcp-primary); outline-offset: 1px; opacity: 1; }
.vc-player.vcp .vcp-btn[hidden] { display: none; }
.vc-player.vcp .vcp-btn.is-active,
.vc-player.vcp .vcp-btn[aria-pressed="true"] { color: var(--vcp-accent); }
.vc-player.vcp .vcp-btn--captions.is-active::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 3px;
  margin-top: 26px;
  border-radius: 2px;
  background: var(--vcp-primary);
}
.vc-player.vcp .vcp-btn--settings[aria-expanded="true"] .vcp-icon { transform: rotate(30deg); }
.vc-player.vcp .vcp-btn--settings .vcp-icon { transition: transform .25s var(--vcp-ease); }

/* Volume */
.vcp .vcp-volume { display: flex; align-items: center; }
.vc-player.vcp .vcp-volume-range {
  width: 0;
  height: var(--vcp-btn);
  opacity: 0;
  background: transparent;
  transition: width .2s var(--vcp-ease), opacity .2s, margin .2s;
}
.vcp .vcp-volume:hover .vcp-volume-range,
.vcp .vcp-volume:focus-within .vcp-volume-range { width: 72px; opacity: 1; margin: 0 8px 0 2px; }
.vcp .vcp-volume-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--vcp-accent) var(--vcp-fill, 100%), rgba(255, 255, 255, .3) var(--vcp-fill, 100%));
}
.vcp .vcp-volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--vcp-accent);
}
.vcp .vcp-volume-range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.vcp .vcp-volume-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--vcp-accent); }
.vcp .vcp-volume-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--vcp-accent); }
.vcp .vcp-volume-range:focus-visible { outline: 2px solid var(--vcp-primary); outline-offset: 2px; }
@media (hover: none) { .vcp .vcp-volume-range { display: none; } }

.vcp .vcp-time {
  padding: 0 8px;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
  color: var(--vcp-accent);
}
.vc-player.vcp .vcp-chapter-label {
  max-width: 260px;
  overflow: hidden;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--vcp-accent);
  opacity: .9;
}
.vc-player.vcp .vcp-chapter-label::before { content: "• "; opacity: .7; }
.vc-player.vcp .vcp-chapter-label:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.vc-player.vcp .vcp-chapter-label:focus-visible { outline: 2px solid var(--vcp-primary); }
.vc-player.vcp .vcp-chapter-label[hidden] { display: none; }

/* ------------------------------------------------------------------ *
 * Scrubber with chapter markers
 * ------------------------------------------------------------------ */
.vcp .vcp-scrubber {
  position: relative;
  height: 18px;
  margin: 0 4px 2px;
  cursor: pointer;
  touch-action: none;
  outline: none;
}
.vcp .vcp-scrub-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .25);
  transition: height .12s, margin-top .12s;
}
.vcp .vcp-scrubber:hover .vcp-scrub-track,
.vcp .vcp-scrub--drag .vcp-scrub-track,
.vcp .vcp-scrubber:focus-visible .vcp-scrub-track { height: 6px; margin-top: -3px; }
.vcp .vcp-scrub-buffer,
.vcp .vcp-scrub-hover,
.vcp .vcp-scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; }
.vcp .vcp-scrub-buffer { background: rgba(255, 255, 255, .35); }
.vcp .vcp-scrub-hover { background: rgba(255, 255, 255, .25); opacity: 0; }
.vcp .vcp-scrub--hover .vcp-scrub-hover { opacity: 1; }
.vcp .vcp-scrub-fill { background: var(--vcp-primary); }
.vcp .vcp-scrub-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--vcp-primary);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .15);
  transform: scale(0);
  transition: transform .12s;
}
.vcp .vcp-scrubber:hover .vcp-scrub-thumb,
.vcp .vcp-scrub--drag .vcp-scrub-thumb,
.vcp .vcp-scrubber:focus-visible .vcp-scrub-thumb { transform: scale(1); }
.vcp .vcp-scrubber:focus-visible { box-shadow: 0 0 0 2px var(--vcp-primary); border-radius: 4px; }

/* Chapter markers: a gap in the track + a wider invisible hit area. */
.vcp .vcp-markers { position: absolute; inset: 0; }
.vc-player.vcp .vcp-marker {
  position: absolute;
  top: -7px;
  bottom: -7px;
  width: 14px;
  margin-left: -7px;
  z-index: 2;
  cursor: pointer;
}
.vc-player.vcp .vcp-marker::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  background: var(--vcp-bar-solid);
  opacity: .9;
}
.vc-player.vcp .vcp-marker:hover::before { background: var(--vcp-accent); }
.vc-player.vcp .vcp-marker:hover,
.vc-player.vcp .vcp-marker:focus { background: none; }

.vcp .vcp-scrub-tip {
  position: absolute;
  bottom: 22px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 240px;
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--vcp-menu-bg);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
.vcp .vcp-scrub--hover .vcp-scrub-tip,
.vcp .vcp-scrub--drag .vcp-scrub-tip { opacity: 1; }
.vcp .vcp-tip-title { max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.vcp .vcp-tip-title:empty { display: none; }
.vcp .vcp-tip-time { font-variant-numeric: tabular-nums; opacity: .85; }

/* ------------------------------------------------------------------ *
 * Settings menu
 * ------------------------------------------------------------------ */
.vcp .vcp-menu {
  position: absolute;
  right: 12px;
  bottom: 70px;
  z-index: 7;
  width: 280px;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 86px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 0;
  border-radius: 10px;
  background: var(--vcp-menu-bg);
  color: #fff;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .45);
  animation: vcp-pop .16s var(--vcp-ease);
  scrollbar-width: thin;
}
.vcp .vcp-menu[hidden] { display: none; }
@keyframes vcp-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.vcp .vcp-menu-list { display: flex; flex-direction: column; }
.vc-player.vcp .vcp-menu-item,
.vc-player.vcp .vcp-menu-option,
.vc-player.vcp .vcp-menu-back {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  color: #fff;
  font-size: 14px;
  text-align: left;
}
.vc-player.vcp .vcp-menu-item:hover,
.vc-player.vcp .vcp-menu-option:hover,
.vc-player.vcp .vcp-menu-back:hover,
.vc-player.vcp .vcp-menu-item:focus-visible,
.vc-player.vcp .vcp-menu-option:focus-visible,
.vc-player.vcp .vcp-menu-back:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.vc-player.vcp .vcp-menu-back { border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 4px; font-weight: 600; }
.vcp .vcp-menu-icon { display: inline-flex; flex: 0 0 auto; opacity: .9; }
.vcp .vcp-menu-icon .vcp-icon { width: 20px; height: 20px; }
.vcp .vcp-menu-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcp .vcp-menu-value { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .7; font-size: 13px; }
.vcp .vcp-menu-chevron .vcp-icon { width: 18px; height: 18px; opacity: .6; }
.vcp .vcp-menu-check { display: inline-flex; width: 20px; flex: 0 0 20px; color: var(--vcp-primary); }
.vcp .vcp-menu-check .vcp-icon { width: 20px; height: 20px; }
.vcp .vcp-menu-hint { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.vcp .vcp-menu-option.is-selected .vcp-menu-label { font-weight: 600; }

/* ------------------------------------------------------------------ *
 * Subtitles overlay
 * ------------------------------------------------------------------ */
.vcp .vcp-captions {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  transition: bottom .25s var(--vcp-ease);
}
.vcp.vcp-controls-visible .vcp-captions,
.vcp.vcp-paused .vcp-captions { bottom: calc(6% + 64px); }
.vcp .vcp-cue {
  display: inline;
  padding: .1em .45em;
  border-radius: 4px;
  background: var(--vcp-caption-bg);
  color: #fff;
  font-size: var(--vcp-caption-size);
  font-weight: 500;
  line-height: 1.4;
  text-shadow: var(--vcp-caption-shadow);
  white-space: pre-wrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.vcp.vcp-fullscreen .vcp-cue { font-size: calc(var(--vcp-caption-size) * 1.5); }
.vcp.vcp-docked .vcp-cue { font-size: .85rem; }
@media (max-width: 600px) { .vcp .vcp-cue { font-size: calc(var(--vcp-caption-size) * .8); } }

/* Logo / watermark */
.vcp .vcp-logo {
  position: absolute;
  width: var(--vcp-logo-width);
  max-width: 30%;
  opacity: var(--vcp-logo-opacity);
  pointer-events: auto;
  line-height: 0;
  transition: opacity .2s;
}
.vcp .vcp-logo[hidden] { display: none; }
.vcp .vcp-logo img { display: block; width: 100%; height: auto; max-width: none; border: 0; box-shadow: none; }
.vcp .vcp-logo--top-left { top: 14px; left: 14px; }
.vcp .vcp-logo--top-right { top: 14px; right: 14px; }
.vcp .vcp-logo--bottom-left { bottom: 18px; left: 14px; }
.vcp .vcp-logo--bottom-right { bottom: 18px; right: 14px; }
.vcp.vcp-controls-visible .vcp-logo--bottom-left,
.vcp.vcp-controls-visible .vcp-logo--bottom-right,
.vcp.vcp-paused .vcp-logo--bottom-left,
.vcp.vcp-paused .vcp-logo--bottom-right { bottom: 78px; }
.vcp.vcp-ad-playing .vcp-logo { opacity: 0; }

/* ------------------------------------------------------------------ *
 * Ads (VidCellar Pro)
 * ------------------------------------------------------------------ */
.vcp .vcp-ad { position: absolute; inset: 0; z-index: 120; background: #000; }
.vcp .vcp-ad[hidden] { display: none; }
.vcp .vcp-ad-video { width: 100%; height: 100%; object-fit: contain; }
.vcp .vcp-ad-badge,
.vcp .vcp-ad-countdown {
  position: absolute;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 12px;
}
.vcp .vcp-ad-badge { top: 12px; left: 12px; font-weight: 600; background: #f5c518; color: #111; }
.vcp .vcp-ad-countdown { right: 12px; bottom: 12px; }

/* ------------------------------------------------------------------ *
 * Fullscreen
 * ------------------------------------------------------------------ */
.vc-player.vcp.vcp-fullscreen,
.vc-player.vcp:fullscreen { width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto !important; border-radius: 0; }
.vcp.vcp-fullscreen .vcp-bar { padding: 40px 24px 14px; }
.vcp.vcp-fullscreen .vcp-row { --vcp-btn: 48px; }
.vcp.vcp-fullscreen .vcp-icon { width: 28px; height: 28px; }
.vcp.vcp-fullscreen .vcp-btn--theater { display: none; }

/* ------------------------------------------------------------------ *
 * Sticky mini-player
 * ------------------------------------------------------------------ */
.vcp .vcp-mini { display: none; }
.vc-player.vcp.vcp-docked {
  position: fixed;
  z-index: 99990;
  width: var(--vcp-sticky-width);
  max-width: calc(100vw - 2 * var(--vcp-sticky-offset));
  height: auto;
  aspect-ratio: 16 / 9 !important;
  border-radius: var(--vcp-radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
  contain: none;
  animation: vcp-dock-in .28s var(--vcp-ease);
}
@keyframes vcp-dock-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.vc-player.vcp.vcp-docked--bottom-right { right: var(--vcp-sticky-offset); bottom: var(--vcp-sticky-offset); }
.vc-player.vcp.vcp-docked--bottom-left { left: var(--vcp-sticky-offset); bottom: var(--vcp-sticky-offset); }
.vc-player.vcp.vcp-docked--top-right { right: var(--vcp-sticky-offset); top: calc(var(--vcp-sticky-offset) + var(--wp-admin--admin-bar--height, 0px)); }
.vc-player.vcp.vcp-docked--top-left { left: var(--vcp-sticky-offset); top: calc(var(--vcp-sticky-offset) + var(--wp-admin--admin-bar--height, 0px)); }
.vc-player.vcp.vcp-docked--bar-bottom,
.vc-player.vcp.vcp-docked--bar-top { left: 0; right: 0; width: 100%; max-width: none; border-radius: 0; }
.vc-player.vcp.vcp-docked--bar-bottom { bottom: 0; }
.vc-player.vcp.vcp-docked--bar-top { top: var(--wp-admin--admin-bar--height, 0px); }
.vcp-shell--theater .vc-player.vcp.vcp-docked { height: auto; }

/* Docked: simplified UI — thin progress bar + mini controls. */
.vcp.vcp-docked .vcp-row,
.vcp.vcp-docked .vcp-menu { display: none; }
.vcp.vcp-docked .vcp-bar { padding: 14px 6px 2px; }
.vcp.vcp-docked .vcp-scrub-tip { display: none; }
.vcp.vcp-docked .vcp-logo { width: calc(var(--vcp-logo-width) * .6); }
.vcp.vcp-docked .vcp-mini {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .2s;
}
.vcp.vcp-docked:hover .vcp-mini,
.vcp.vcp-docked:focus-within .vcp-mini,
.vcp.vcp-docked.vcp-paused .vcp-mini,
.vcp.vcp-docked.vcp-controls-visible .vcp-mini { opacity: 1; }
@media (hover: none) { .vcp.vcp-docked .vcp-mini { opacity: 1; background: rgba(0, 0, 0, .2); } }
.vc-player.vcp .vcp-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
}
.vc-player.vcp .vcp-mini-btn:hover { background: var(--vcp-primary); }
.vc-player.vcp .vcp-mini-btn:focus-visible { outline: 2px solid var(--vcp-accent); outline-offset: 2px; }
.vc-player.vcp .vcp-mini-play { width: 52px; height: 52px; background: var(--vcp-primary); }
.vc-player.vcp .vcp-mini-play .vcp-icon { width: 30px; height: 30px; }
.vc-player.vcp .vcp-mini-close { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; }
.vc-player.vcp .vcp-mini-restore { position: absolute; top: 6px; left: 6px; width: 32px; height: 32px; }
.vc-player.vcp .vcp-mini-close .vcp-icon,
.vc-player.vcp .vcp-mini-restore .vcp-icon { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ *
 * Transcript
 * ------------------------------------------------------------------ */
.vcp-shell .vcp-transcript-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(127, 127, 127, .35);
  border-radius: 999px;
  color: inherit;
  font-size: 14px;
  line-height: 1.2;
}
.vcp-shell .vcp-transcript-toggle .vcp-icon { width: 18px; height: 18px; }
.vcp-shell .vcp-transcript-toggle:hover,
.vcp-shell .vcp-transcript-toggle.is-active { border-color: var(--vcp-primary); color: var(--vcp-primary); }
.vcp-shell .vcp-transcript-toggle:focus-visible { outline: 2px solid var(--vcp-primary); outline-offset: 2px; }

.vcp-transcript {
  --vcp-tr-bg: #fff;
  --vcp-tr-fg: #1d2327;
  --vcp-tr-muted: #646970;
  --vcp-tr-line: rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--vcp-tr-line);
  border-radius: var(--vcp-radius);
  background: var(--vcp-tr-bg);
  color: var(--vcp-tr-fg);
  font: 400 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  .vcp-transcript { --vcp-tr-bg: #15171b; --vcp-tr-fg: #e7e9ec; --vcp-tr-muted: #9aa1a9; --vcp-tr-line: rgba(255, 255, 255, .1); }
}
.vcp-transcript[hidden] { display: none; }
.vcp-tr-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px 6px; }
.vcp-transcript .vcp-tr-title { flex: 1 1 auto; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: inherit; }
.vcp-transcript .vcp-tr-lang {
  max-width: 50%;
  padding: 4px 8px;
  border: 1px solid var(--vcp-tr-line);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
}
.vcp-shell .vcp-tr-close,
.vcp-shell .vcp-tr-nav { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: var(--vcp-tr-muted); }
.vcp-shell .vcp-tr-close:hover,
.vcp-shell .vcp-tr-nav:hover:not(:disabled) { background: var(--vcp-tr-line); color: var(--vcp-tr-fg); }
.vcp-shell .vcp-tr-nav:disabled { opacity: .35; cursor: default; }
.vcp-shell .vcp-tr-close .vcp-icon,
.vcp-shell .vcp-tr-nav .vcp-icon { width: 20px; height: 20px; }
.vcp-tr-searchbar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 14px 8px;
  padding: 0 6px 0 10px;
  border: 1px solid var(--vcp-tr-line);
  border-radius: 8px;
}
.vcp-tr-searchbar:focus-within { border-color: var(--vcp-primary); box-shadow: 0 0 0 1px var(--vcp-primary); }
.vcp-tr-search-icon .vcp-icon { width: 18px; height: 18px; fill: var(--vcp-tr-muted); }
.vcp-transcript .vcp-tr-search {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
}
.vcp-tr-count { font-size: 12px; color: var(--vcp-tr-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vcp-tr-status { margin: 4px 14px 10px; color: var(--vcp-tr-muted); font-size: 14px; }
.vcp-tr-status[hidden] { display: none; }
.vcp-transcript .vcp-tr-list {
  position: relative;
  flex: 1 1 auto;
  max-height: var(--vcp-transcript-height);
  margin: 0;
  padding: 0 6px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: thin;
}
.vcp-transcript .vcp-tr-list:focus-visible { outline: 2px solid var(--vcp-primary); outline-offset: -2px; }
.vcp-transcript .vcp-tr-list li { margin: 0; padding: 0; list-style: none; }
.vcp-transcript .vcp-tr-list li::before { content: none; }
.vcp-shell .vcp-tr-line {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  color: inherit;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  transition: background-color .15s;
}
.vcp-shell .vcp-tr-line:hover { background: var(--vcp-tr-line); }
.vcp-shell .vcp-tr-line:focus-visible { outline: 2px solid var(--vcp-primary); outline-offset: -2px; }
.vcp-shell .vcp-tr-line:focus:not(:focus-visible),
.vcp button:focus:not(:focus-visible) { outline: none; }
.vcp-tr-time {
  flex: 0 0 auto;
  min-width: 3.4em;
  padding-top: 1px;
  color: var(--vcp-primary);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.vcp-tr-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.vcp-tr-voice { font-weight: 600; }
.vcp-shell .vcp-tr-line.is-active { background: color-mix(in srgb, var(--vcp-primary) 16%, transparent); }
.vcp-shell .vcp-tr-line.is-active .vcp-tr-text { font-weight: 600; }
.vcp-tr-list--searching .vcp-tr-line:not(.is-match) { opacity: .55; }
.vcp-transcript mark.vcp-tr-mark { padding: 0 1px; border-radius: 2px; background: #ffe066; color: #111; }
.vcp-tr-line.is-match-current mark.vcp-tr-mark { background: #ff9f1a; box-shadow: 0 0 0 1px #ff9f1a; }
.vcp-shell .vcp-tr-resync {
  align-self: center;
  margin: -46px 0 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--vcp-primary);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  position: relative;
  z-index: 1;
}
.vcp-shell .vcp-tr-resync:hover { background: var(--vcp-primary); color: #fff; filter: brightness(1.08); }
.vcp-shell .vcp-tr-resync[hidden] { display: none; }

/* Side-by-side transcript on wide screens. */
@media (min-width: 960px) {
  .vcp-shell--transcript-side.vcp-shell--transcript-open:not(.vcp-shell--theater) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
    grid-template-areas: "main side";
    gap: 16px;
    align-items: start;
    max-width: 1280px;
  }
  .vcp-shell--transcript-side.vcp-shell--transcript-open:not(.vcp-shell--theater) .vcp-main { grid-area: main; min-width: 0; }
  .vcp-shell--transcript-side.vcp-shell--transcript-open:not(.vcp-shell--theater) .vcp-transcript {
    grid-area: side;
    margin-top: 0;
    height: var(--vcp-stage-h, 420px);
  }
  .vcp-shell--transcript-side.vcp-shell--transcript-open:not(.vcp-shell--theater) .vcp-tr-list { max-height: none; }
}

/* ------------------------------------------------------------------ *
 * Small screens
 * ------------------------------------------------------------------ */
@media (max-width: 600px) {
  .vc-player.vcp { --vcp-btn: 36px; border-radius: min(var(--vcp-radius), 6px); }
  .vcp .vcp-bar { padding: 22px 6px 2px; }
  .vcp .vcp-icon { width: 22px; height: 22px; }
  .vc-player.vcp .vcp-big-play { width: 62px; height: 62px; }
  .vc-player.vcp .vcp-big-play .vcp-icon { width: 30px; height: 30px; }
  .vc-player.vcp .vcp-btn--theater,
  .vc-player.vcp .vcp-btn--pip { display: none; }
  .vc-player.vcp .vcp-chapter-label { display: none; }
  .vcp .vcp-menu { right: 6px; bottom: 6px; max-height: calc(100% - 12px); width: 260px; }
  .vc-player.vcp .vcp-menu-item, .vc-player.vcp .vcp-menu-option, .vc-player.vcp .vcp-menu-back { min-height: 36px; padding: 6px 12px; }
  .vcp.vcp-controls-visible .vcp-captions, .vcp.vcp-paused .vcp-captions { bottom: calc(4% + 52px); }
}
@media (max-width: 420px) {
  .vcp .vcp-time-sep, .vcp .vcp-time-duration { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vcp *, .vcp-shell * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .vc-player.vcp.vcp-docked { animation: none; }
}
@media (forced-colors: active) {
  .vcp .vcp-scrub-fill, .vcp .vcp-scrub-thumb { background: Highlight; }
  .vc-player.vcp .vcp-btn:focus-visible { outline-color: Highlight; }
}

/* ------------------------------------------------------------------ *
 * 2.2 Content protection: paywall card, watermark, pseudo-fullscreen
 * ------------------------------------------------------------------ */
.vc-paywall {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  overflow: hidden;
  border-radius: var(--vcp-radius);
  background: #0b0d10;
  color: #fff;
  isolation: isolate;
}
.vc-paywall--overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  border-radius: inherit;
}
.vc-paywall__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(.8);
  transform: scale(1.08);
  z-index: -2;
}
.vc-paywall__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(8, 10, 14, .55) 0%, rgba(8, 10, 14, .88) 75%);
}
.vc-paywall__card {
  max-width: min(440px, calc(100% - 32px));
  padding: clamp(16px, 4vw, 28px) clamp(16px, 4vw, 32px);
  text-align: center;
  border-radius: 14px;
  background: rgba(18, 20, 26, .78);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.vc-paywall__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 50%;
  color: #fff;
  background: var(--vcp-primary);
}
.vc-paywall__title {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 1.25;
  color: #fff;
}
.vc-paywall__message {
  margin: 0 0 16px;
  font-size: clamp(.88rem, 2vw, 1rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, .82);
}
.vc-paywall__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.vc-paywall__btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .15s var(--vcp-ease), border-color .15s var(--vcp-ease);
}
.vc-paywall__btn:hover { background: rgba(255, 255, 255, .1); }
.vc-paywall__btn--primary { background: var(--vcp-primary); border-color: var(--vcp-primary); }
.vc-paywall__btn--primary:hover { background: var(--vcp-primary); filter: brightness(1.1); }
.vc-paywall__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 420px) {
  .vc-paywall__icon { width: 40px; height: 40px; margin-bottom: 6px; }
  .vc-paywall__message { margin-bottom: 10px; }
}
.vcp.vcp-locked .vcp-bar,
.vcp.vcp-locked .vcp-big-play,
.vcp.vcp-locked .vcp-error,
.vcp.vcp-locked .vcp-spinner,
.vcp.vcp-locked .vc-facade { display: none !important; }
.vc-locked-note {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fcf0e3;
  color: #7a4400;
  font-weight: 600;
}
.vc-noscript { padding: 24px; color: #fff; text-align: center; }

/* Watermark canvas: all critical styles are inline (!important) on the
   element itself; this only covers the very first paint. */
.vcp-watermark { position: absolute; inset: 0; pointer-events: none; }

/* iPhone: full-window player instead of the system fullscreen player,
   which cannot show the watermark. */
.vcp.vcp-pseudo-fs {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147482000 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  border-radius: 0 !important;
  aspect-ratio: auto !important;
  background: #000;
}
.vcp.vcp-pseudo-fs .vcp-video { object-fit: contain; }
html.vcp-pseudo-fs-open, html.vcp-pseudo-fs-open body { overflow: hidden !important; }

/* ------------------------------------------------------------------ *
 * 2.2 Trailer pop-up
 * ------------------------------------------------------------------ */
.vc-trailer { margin: 8px 0 18px; }
.vc-trailer-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 999px;
  background: #111318;
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s var(--vcp-ease, ease), background .15s ease;
}
.vc-trailer-open:hover { background: #1c1f27; transform: translateY(-1px); }
.vc-trailer-open:focus-visible { outline: 2px solid var(--vcp-primary, #1683d8); outline-offset: 3px; }
.vc-trailer-open__thumb { width: 64px; height: 36px; object-fit: cover; border-radius: 999px 6px 6px 999px; }
.vc-trailer-open__icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--vcp-primary, #1683d8);
  color: #fff;
}
.vc-trailer-open__thumb + .vc-trailer-open__icon { margin-left: -26px; box-shadow: 0 0 0 3px #111318; }

.vc-trailer-modal {
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #000;
  color: #fff;
  overflow: visible;
}
.vc-trailer-modal::backdrop { background: rgba(5, 6, 8, .82); backdrop-filter: blur(3px); }
.vc-trailer-modal--fallback {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 100000;
  box-shadow: 0 0 0 100vmax rgba(5, 6, 8, .82);
}
.vc-trailer-modal[open] { animation: vc-modal-in .22s var(--vcp-ease, ease); }
@keyframes vc-modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.vc-trailer-modal--fallback[open] { animation: none; }
.vc-trailer-modal__inner { position: relative; }
.vc-trailer-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 16px;
}
.vc-trailer-modal__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-trailer-modal__close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
}
.vc-trailer-modal__close:hover { background: rgba(255, 255, 255, .2); }
.vc-trailer-modal__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vc-trailer-modal .vcp-shell { margin: 0; max-width: none; }
.vc-trailer-modal .vcp-shell .vc-player,
.vc-trailer-modal .vcp-stage .vcp { border-radius: 0 0 12px 12px; }
.vc-trailer-modal .vcp-btn--theater { display: none !important; }
.vc-trailer-modal .vcp-stage { max-height: calc(100vh - 92px); }
html.vc-modal-open { overflow: hidden; }
@media (max-width: 600px) {
  .vc-trailer-modal { width: 100vw; max-height: 100vh; border-radius: 0; }
  .vc-trailer-modal .vcp-shell .vc-player { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vc-trailer-modal[open] { animation: none; }
  .vc-trailer-open { transition: none; }
}
