/* ==========================================================================
   FILMY — Przebieg zabiegu oczami lekarza  (#filmy-zabiegi)
   Odtwarzacz pionowy 9:16 + zakładki zabiegów + jedna karta opisu
   (panele leżą jeden na drugim i przenikają się — układ strony nie skacze).
   Paleta i typografia zgodne z sekcją #proces (burgund, koral, Cormorant/Jost).
   ========================================================================== */

.pv {
  --pv-burgundy: #400D1C;
  --pv-coral: #EA8F85;
  --pv-cream: #FAF8F5;
  --pv-ink: #1A1A1A;
  --pv-muted: #555052;
  --pv-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pv-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  margin-top: clamp(72px, 8vw, 120px);
  position: relative;
  font-family: 'Jost', -apple-system, sans-serif;
  color: var(--pv-ink);
}

.pv::before {
  content: '';
  display: block;
  width: min(220px, 40%);
  height: 1px;
  margin: 0 auto clamp(48px, 5vw, 72px);
  background: linear-gradient(90deg, transparent, rgba(234, 143, 133, 0.7), transparent);
}

/* ---------- Reveal ---------- */
.pv.pv-ready [data-pv-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--pv-ease), transform 0.9s var(--pv-ease);
}
.pv.pv-ready [data-pv-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Nagłówek ---------- */
.pv-header {
  text-align: center;
  margin: 0 auto clamp(36px, 4.5vw, 60px);
  max-width: 720px;
}
.pv-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pv-coral);
  margin-bottom: 18px;
}
.pv-kicker-line {
  width: 0;
  height: 1px;
  background: var(--pv-coral);
  opacity: 0.7;
  transition: width 1.1s var(--pv-ease) 0.25s;
}
.pv-header.is-in .pv-kicker-line { width: clamp(18px, 4vw, 42px); }
.pv-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--pv-ink);
}
.pv-title em { font-style: italic; color: var(--pv-burgundy); }
.pv-lead {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: var(--pv-muted);
  margin: 0 auto;
}

/* ---------- Układ ---------- */
.pv-layout {
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

/* ---------- Scena odtwarzacza ---------- */
.pv-stage {
  position: relative;
  margin: 0 auto;
  width: min(100%, 400px, calc(76vh * 9 / 16));
  outline: none;
}
@supports (height: 1svh) {
  .pv-stage { width: min(100%, 400px, calc(76svh * 9 / 16)); }
}

.pv-glow {
  position: absolute;
  inset: 6% -14% -6%;
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(234, 143, 133, 0.34), transparent 70%),
    radial-gradient(55% 45% at 75% 75%, rgba(64, 13, 28, 0.2), transparent 70%);
  filter: blur(38px);
  z-index: 0;
  animation: pvBreathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pvBreathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* UWAGA: bez preserve-3d / will-change — na telefonach psują kompozycję wideo (czarny obraz) */
.pv-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 9 / 16;
  border-radius: clamp(24px, 3vw, 34px);
  overflow: hidden;
  background: #1a1013;
  border: 1px solid rgba(234, 143, 133, 0.45);
  box-shadow: 0 30px 70px rgba(64, 13, 28, 0.22), 0 8px 22px rgba(64, 13, 28, 0.12);
  transition: transform 0.5s var(--pv-ease), box-shadow 0.5s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.pv-frame.is-tilting { transition: transform 0.12s linear; }
.pv-stage:focus-visible .pv-frame {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--pv-coral), 0 30px 70px rgba(64, 13, 28, 0.22);
}

.pv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1a1013;
  border-radius: inherit;
  display: block;
  opacity: 1;
  transition: opacity 0.28s ease;
}
.pv-frame.is-switching .pv-video { opacity: 0; }

/* winiety dla czytelności interfejsu */
.pv-frame::before,
.pv-frame::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 2;
}
.pv-frame::before { top: 0; height: 20%; background: linear-gradient(180deg, rgba(20, 8, 12, 0.5), transparent); }
.pv-frame::after { bottom: 0; height: 22%; background: linear-gradient(0deg, rgba(20, 8, 12, 0.7), transparent); }

/* ---------- Górny pasek ---------- */
.pv-topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.pv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  font-family: 'Montserrat', 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pv-burgundy);
  white-space: nowrap;
}
.pv-chip i { font-style: normal; font-weight: 600; opacity: 0.55; font-size: 11px; }
.pv-chip b { display: inline-block; font-weight: 800; }
.pv-chip--tag { max-width: 62%; overflow: hidden; text-overflow: ellipsis; }
.pv-chip.is-bump b,
.pv-chip--tag.is-bump { animation: pvChipIn 0.55s var(--pv-spring); }
@keyframes pvChipIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* ---------- Duży przycisk Play ---------- */
.pv-bigplay {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.45s var(--pv-spring), opacity 0.35s ease, visibility 0.35s;
}
.pv-bigplay-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pv-burgundy);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s var(--pv-spring), background 0.25s ease, color 0.25s ease;
}
.pv-bigplay-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  opacity: 0;
  animation: pvRing 2.8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.pv-bigplay-ring--2 { animation-delay: 1.4s; }
@keyframes pvRing {
  0% { transform: scale(1); opacity: 0.8; }
  80%, 100% { transform: scale(1.95); opacity: 0; }
}
.pv-bigplay:hover .pv-bigplay-disc { transform: scale(1.08); background: var(--pv-burgundy); color: #fff; }
.pv-bigplay:active .pv-bigplay-disc { transform: scale(0.94); }
.pv-bigplay:focus-visible .pv-bigplay-disc { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--pv-coral); }
.pv-frame.is-playing .pv-bigplay,
.pv-frame.is-ended .pv-bigplay {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.7);
  pointer-events: none;
}

/* ---------- Spinner ---------- */
.pv-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.pv-frame.is-loading .pv-spinner { opacity: 1; animation: pvSpin 0.8s linear infinite; }
@keyframes pvSpin { to { transform: rotate(360deg); } }

/* ---------- Ekran końcowy ---------- */
.pv-end {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(30, 8, 15, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: pvFadeIn 0.5s ease both;
}
.pv-end[hidden] { display: none; }
@keyframes pvFadeIn { from { opacity: 0; } to { opacity: 1; } }
.pv-end-label {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 26px;
  color: #fff;
}
.pv-end-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  min-width: 190px;
  max-width: 100%;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  font-family: 'Montserrat', 'Jost', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.3s var(--pv-spring), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  animation: pvRise 0.6s var(--pv-ease) both;
}
.pv-end-btn:nth-of-type(2) { animation-delay: 0.08s; }
@keyframes pvRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pv-end-btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.14); }
.pv-end-btn--primary { background: #fff; color: var(--pv-burgundy); border-color: #fff; }
.pv-end-btn--primary:hover { background: var(--pv-coral); color: #fff; border-color: var(--pv-coral); }
.pv-end-btn--primary svg { transition: transform 0.3s var(--pv-spring); flex: 0 0 auto; }
.pv-end-btn--primary:hover svg { transform: translateX(4px); }

/* ---------- Pasek sterowania ---------- */
.pv-controls {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(24, 9, 14, 0.58);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: opacity 0.4s ease, transform 0.5s var(--pv-ease);
}
.pv-frame.is-playing.is-idle .pv-controls,
.pv-frame.is-playing.is-idle .pv-topbar { opacity: 0; }
.pv-frame.is-playing.is-idle .pv-controls { transform: translateY(8px); pointer-events: none; }
.pv-frame.is-playing.is-idle { cursor: none; }

.pv-ctl {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, transform 0.25s var(--pv-spring);
}
.pv-ctl:hover { background: rgba(255, 255, 255, 0.16); }
.pv-ctl:active { transform: scale(0.88); }
.pv-ctl:focus-visible { outline: 2px solid var(--pv-coral); outline-offset: 1px; }
.pv-ctl svg { display: block; }
.pv-ctl .pv-ico-pause, .pv-ctl .pv-ico-muted { display: none; }
.pv-frame.is-playing .pv-ctl .pv-ico-play { display: none; }
.pv-frame.is-playing .pv-ctl .pv-ico-pause { display: block; }
.pv-frame.is-muted .pv-ctl .pv-ico-vol { display: none; }
.pv-frame.is-muted .pv-ctl .pv-ico-muted { display: block; }

.pv-time {
  flex: 0 0 auto;
  min-width: 30px;
  font-family: 'Montserrat', 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
}

/* Suwak postępu */
.pv-seek {
  position: relative;
  flex: 1 1 auto;
  min-width: 36px;
  height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  outline: none;
  --p: 0;
  --b: 0;
}
.pv-seek-track {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  transition: height 0.2s ease;
}
.pv-seek:hover .pv-seek-track,
.pv-seek.is-drag .pv-seek-track,
.pv-seek:focus-visible .pv-seek-track { height: 6px; }
.pv-seek-buffer, .pv-seek-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
.pv-seek-buffer { width: calc(var(--b) * 100%); background: rgba(255, 255, 255, 0.28); }
.pv-seek-fill { width: calc(var(--p) * 100%); background: linear-gradient(90deg, #f3b1a9, var(--pv-coral)); }
.pv-seek-handle {
  position: absolute;
  top: 50%;
  left: calc(var(--p) * 100%);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transform: scale(0);
  transition: transform 0.25s var(--pv-spring);
  pointer-events: none;
}
.pv-seek:hover .pv-seek-handle,
.pv-seek.is-drag .pv-seek-handle,
.pv-seek:focus-visible .pv-seek-handle { transform: scale(1); }
@media (pointer: coarse) { .pv-seek-handle { transform: scale(1); } }

/* ---------- Podpis ---------- */
.pv-caption {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  text-align: center;
}
.pv-caption-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.3;
  color: var(--pv-ink);
}
.pv-caption-title.is-bump { animation: pvChipIn 0.6s var(--pv-spring); }
.pv-caption-by {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pv-coral);
}

/* ==========================================================================
   PRAWA STRONA: zakładki + karta opisu
   ========================================================================== */
.pv-side { min-width: 0; }

.pv-side-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pv-burgundy);
}
.pv-side-count { color: var(--pv-coral); letter-spacing: 0.14em; }

/* ----- zakładki ----- */
.pv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pv-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(234, 143, 133, 0.3);
  background: var(--pv-cream);
  color: var(--pv-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--pv-spring), background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.35s ease;
}
.pv.pv-ready .pv-tab {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s var(--pv-ease) calc(var(--i) * 60ms + 120ms),
    transform 0.7s var(--pv-ease) calc(var(--i) * 60ms + 120ms),
    background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.4s ease;
}
.pv.pv-ready.is-in .pv-tab { opacity: 1; transform: none; }
/* po wejściu animacji hover/active działają bez opóźnienia */
.pv.pv-ready.is-in.is-settled .pv-tab { transition: transform 0.35s var(--pv-spring), background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.35s ease; }
.pv-tab:hover { border-color: rgba(234, 143, 133, 0.7); box-shadow: 0 10px 24px rgba(64, 13, 28, 0.08); }
.pv.is-settled .pv-tab:hover { transform: translateY(-2px); }
.pv-tab:active { transform: scale(0.97) !important; }
.pv-tab:focus-visible { outline: 2px solid var(--pv-coral); outline-offset: 2px; }
.pv-tab.is-active {
  background: var(--pv-burgundy);
  border-color: var(--pv-burgundy);
  color: #fff;
  box-shadow: 0 14px 30px rgba(64, 13, 28, 0.25);
}

.pv-tab-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #2a1a20;
}
.pv-tab-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
  transition: transform 0.7s var(--pv-ease);
}
.pv-tab:hover .pv-tab-thumb img { transform: scale(1.12); }

/* pierścień postępu wokół miniatury */
.pv-tab-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pv-ring-bg, .pv-ring-fg { fill: none; stroke-width: 3; }
.pv-ring-bg { stroke: rgba(255, 255, 255, 0.28); }
.pv-ring-fg {
  stroke: var(--pv-coral);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p, 0) * 100);
}
.pv-tab.is-active .pv-tab-ring { opacity: 1; }
.pv-tab.is-active .pv-tab-thumb { overflow: visible; }
.pv-tab.is-active .pv-tab-thumb img { border-radius: 50%; }

/* equalizer */
.pv-eq {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  padding-bottom: 9px;
  border-radius: 50%;
  background: rgba(40, 10, 20, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pv-eq i {
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: #fff;
  transform-origin: bottom;
  transform: scaleY(0.25);
}
.pv-tab.is-playing .pv-eq { opacity: 1; }
.pv-tab.is-playing .pv-eq i { animation: pvEq 0.9s ease-in-out infinite; }
.pv-eq i:nth-child(2) { animation-delay: -0.35s !important; }
.pv-eq i:nth-child(3) { animation-delay: -0.7s !important; }
@keyframes pvEq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }

.pv-tab-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pv-tab-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pv-tab-dur {
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--pv-muted);
  transition: color 0.3s ease;
}
.pv-tab.is-active .pv-tab-dur { color: rgba(255, 255, 255, 0.72); }

/* ----- karta opisu: panele nałożone na siebie ----- */
.pv-detail {
  position: relative;
  display: grid;
  margin-top: 20px;
  background: #fff;
  border: 1px solid rgba(234, 143, 133, 0.45);
  border-radius: 28px;
  box-shadow: 0 22px 56px rgba(64, 13, 28, 0.08);
  overflow: hidden;
  transition: height 0.55s var(--pv-ease);
}
.pv.pv-ready .pv-detail {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--pv-ease) 0.45s, transform 0.9s var(--pv-ease) 0.45s, height 0.55s var(--pv-ease);
}
.pv.pv-ready.is-in .pv-detail { opacity: 1; transform: none; }
.pv-detail::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--pv-coral), var(--pv-burgundy));
  z-index: 2;
}

.pv-panel {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: clamp(24px, 2.6vw, 36px) clamp(22px, 2.8vw, 40px) clamp(24px, 2.6vw, 34px) clamp(26px, 3vw, 44px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.pv-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.5s ease 0.12s, visibility 0s;
}

/* duży, ledwo widoczny numer w tle */
.pv-ghost {
  position: absolute;
  right: 22px;
  top: -6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(96px, 11vw, 150px);
  line-height: 1;
  color: rgba(234, 143, 133, 0.16);
  pointer-events: none;
  user-select: none;
  transform: translateY(16px);
  transition: transform 0.9s var(--pv-ease);
}
.pv-panel.is-active .pv-ghost { transform: none; }

/* elementy panelu wjeżdżają kaskadowo */
.pv-panel > *:not(.pv-ghost) {
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.pv-panel.is-active > *:not(.pv-ghost) {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--pv-ease), transform 0.7s var(--pv-ease);
}
.pv-panel.is-active > :nth-child(2) { transition-delay: 0.14s; }
.pv-panel.is-active > :nth-child(3) { transition-delay: 0.2s; }
.pv-panel.is-active > :nth-child(4) { transition-delay: 0.27s; }
.pv-panel.is-active > :nth-child(5) { transition-delay: 0.34s; }
.pv-panel.is-active > :nth-child(6) { transition-delay: 0.42s; }
.pv-panel.is-active > :nth-child(7) { transition-delay: 0.5s; }

.pv-panel-kicker {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pv-coral);
}
.pv-panel-kicker b { margin: 0 4px; font-weight: 700; }
.pv-panel-title {
  margin: 0 0 16px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--pv-ink);
}
.pv-desc {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--pv-muted);
}

.pv-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pv-steps li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(234, 143, 133, 0.14);
  border: 1px solid rgba(234, 143, 133, 0.4);
  font-size: 13px;
  font-weight: 500;
  color: var(--pv-burgundy);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
}
.pv-steps li svg { flex: 0 0 auto; color: var(--pv-coral); }
.pv-steps li svg path { stroke-dasharray: 20; stroke-dashoffset: 20; }
.pv-panel.is-active .pv-steps li {
  animation: pvPill 0.6s var(--pv-spring) forwards;
  animation-delay: calc(0.45s + var(--k, 0) * 80ms);
}
.pv-panel.is-active .pv-steps li svg path {
  animation: pvDraw 0.5s ease forwards;
  animation-delay: calc(0.6s + var(--k, 0) * 80ms);
}
@keyframes pvPill { to { opacity: 1; transform: none; } }
@keyframes pvDraw { to { stroke-dashoffset: 0; } }

.pv-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--pv-cream);
  border: 1px dashed rgba(64, 13, 28, 0.2);
  font-size: 14px;
  line-height: 1.6;
  color: var(--pv-ink);
}
.pv-tip-ico {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pv-burgundy);
  color: #fff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
}
.pv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(234, 143, 133, 0.28);
}

.pv-disclaimer {
  margin: 18px 4px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #8a8486;
}

/* ==========================================================================
   TABLET / TELEFON
   ========================================================================== */
@media (max-width: 960px) {
  .pv-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    max-width: 640px;
  }
  /* wysokość karty opisu animowana z JS (dopasowanie do aktywnego panelu) */
  .pv-detail.is-js-height .pv-panel { align-self: start; }
  .pv-actions { margin-top: 4px; }

  /* zakładki: jedna przewijana linia ze „snapem" */
  .pv-tabs-wrap {
    position: relative;
    margin: 0 -20px;
  }
  .pv-tabs-wrap::before,
  .pv-tabs-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 22px;
    z-index: 2;
    pointer-events: none;
  }
  .pv-tabs-wrap::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
  .pv-tabs-wrap::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
  .pv-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 6px 20px 14px;
    scroll-snap-type: x proximity;
    scroll-padding: 0 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pv-tabs::-webkit-scrollbar { display: none; }
  .pv-tab { flex: 0 0 auto; scroll-snap-align: center; }
  .pv-side-label { margin-bottom: 4px; }
}

@media (max-width: 600px) {
  .pv { margin-top: 64px; }
  .pv-kicker { font-size: 10.5px; letter-spacing: 0.16em; text-align: center; }
  .pv-kicker-line { display: none; }
  /* odtwarzacz + zakładki mieszczą się na jednym ekranie telefonu */
  .pv-stage { width: min(100%, 400px, calc(66vh * 9 / 16)); }
  @supports (height: 1svh) {
    .pv-stage { width: min(100%, 400px, calc(66svh * 9 / 16)); }
  }
  .pv-bigplay { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  .pv-caption { margin-top: 14px; }
  .pv-caption-title { font-size: 17px; }
  .pv-detail { border-radius: 22px; }
  .pv-panel { padding: 20px 16px 18px 21px; }
  .pv-ghost { font-size: 88px; right: 12px; }
  .pv-panel-kicker { font-size: 11px; letter-spacing: 0.14em; max-width: 78%; }
  .pv-panel-title { font-size: 28px; margin-bottom: 12px; }
  .pv-desc { font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
  .pv-steps { gap: 6px; margin-bottom: 14px; }
  .pv-steps li { font-size: 12px; padding: 6px 12px 6px 9px; }
  .pv-tip { font-size: 13.5px; padding: 11px 13px; margin-bottom: 14px; }
  .pv-actions { gap: 0 22px; padding-top: 10px; }
  .pv-controls { left: 8px; right: 8px; bottom: 8px; gap: 0; padding: 2px 4px; }
}
@media (max-width: 360px) {
  #pv-dur { display: none; }
}

/* ---------- Pełny ekran ---------- */
.pv-frame:fullscreen,
.pv-frame:-webkit-full-screen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  border: 0;
  background: #000;
  transform: none !important;
}
.pv-frame:fullscreen .pv-video,
.pv-frame:-webkit-full-screen .pv-video { object-fit: contain; border-radius: 0; }
.pv-frame:fullscreen .pv-controls,
.pv-frame:-webkit-full-screen .pv-controls {
  max-width: 560px;
  margin: 0 auto;
  bottom: max(18px, env(safe-area-inset-bottom));
}

/* ---------- Ruch ograniczony ---------- */
@media (prefers-reduced-motion: reduce) {
  .pv *, .pv *::before, .pv *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .pv.pv-ready [data-pv-reveal], .pv.pv-ready .pv-tab, .pv.pv-ready .pv-detail { opacity: 1; transform: none; }
  .pv-steps li { opacity: 1; transform: none; }
  .pv-steps li svg path { stroke-dashoffset: 0; }
  .pv-bigplay-ring, .pv-glow { display: none; }
}


/* Równe cyfry (lining) w numeracji filmów — domyślne cyfry Cormorant schodzą poniżej linii */
.pv-ghost,
.pv-tab-no {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "pnum" 1;
}
