﻿/* PresentTool™ Storytelling — section: clip (v3.7.0)
   Custom video player on a black full-bleed surface.
   ──────────────────────────────────────────────────────────── */

.story-section--clip {
  position: relative;
  width: 100vw;
  background: #000;
  color: #fff;
  padding: 70px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pt-clip__head {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 24px;
}
.pt-clip__kicker {
  font-family: var(--pt-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.pt-clip__kicker::before,
.pt-clip__kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.40);
}
.pt-clip__title {
  font-family: var(--pt-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0;
  color: #fff;
}

/* ────── Player ────── */
.pt-clip__player {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  isolation: isolate;
}
.pt-clip__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: cover;
}

/* Big centred play overlay */
.pt-clip__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: none;
  color: #1A1A1A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: opacity 0.24s ease, transform 0.18s ease;
}
.pt-clip__center:hover { transform: translate(-50%, -50%) scale(1.04); }
.pt-clip__center svg { width: 32px; height: 32px; margin-left: 4px; }

/* Scrim + controls */
.pt-clip__scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.70) 100%);
  pointer-events: none;
  z-index: 2;
}
.pt-clip__controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
  z-index: 3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.20s ease, transform 0.20s ease;
}
.pt-clip__controls[data-state="shown"],
.pt-clip__player:hover .pt-clip__controls,
.pt-clip__player:focus-within .pt-clip__controls {
  opacity: 1;
  transform: translateY(0);
}

/* Segment labels above scrubber */
.pt-clip__labels {
  position: relative;
  height: 16px;
  margin: 0 0 2px;
}
.pt-clip__label {
  position: absolute;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pt-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transform: translateX(0);
  white-space: nowrap;
}
.pt-clip__label:first-child { transform: translateX(0); }
.pt-clip__label.is-active   { color: #fff; }
.pt-clip__label-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pt-secondary);
}
.pt-clip__label-time {
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
}

/* Scrubber */
.pt-clip__scrub {
  position: relative;
  padding: 8px 0;
  cursor: pointer;
  outline: none;
}
.pt-clip__scrub:focus-visible .pt-clip__scrub-thumb {
  box-shadow: 0 0 0 3px rgba(200, 149, 108, 0.55), 0 2px 6px rgba(0, 0, 0, 0.40);
}
.pt-clip__scrub-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  overflow: visible;
}
.pt-clip__scrub-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--pt-secondary);
  border-radius: 999px;
  width: 0;
}
.pt-clip__scrub-ticks {
  position: absolute;
  inset: 0;
}
.pt-clip__scrub-tick {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.30);
  transform: translateX(-1px);
}
.pt-clip__scrub-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.40);
  pointer-events: none;
}

/* Bottom row controls */
.pt-clip__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pt-clip__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease;
  padding: 0;
}
.pt-clip__btn:hover,
.pt-clip__btn:focus-visible { background: rgba(255, 255, 255, 0.20); outline: none; }
.pt-clip__btn svg { width: 14px; height: 14px; pointer-events: none; }

/* Play/pause glyph swap */
.pt-clip__play .pt-clip__icon-pause { display: none; }
.pt-clip__play.is-playing .pt-clip__icon-play { display: none; }
.pt-clip__play.is-playing .pt-clip__icon-pause { display: block; }

/* Mute/un-mute glyph swap */
.pt-clip__mute .pt-clip__icon-vol-off { display: none; }
.pt-clip__mute.is-muted .pt-clip__icon-vol-on { display: none; }
.pt-clip__mute.is-muted .pt-clip__icon-vol-off { display: block; }

.pt-clip__time {
  font-family: var(--pt-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  gap: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pt-clip__time-sep { opacity: 0.5; }
.pt-clip__spacer { flex: 1; }

/* Volume slider — minimal cross-browser custom */
.pt-clip__vol {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 14px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.pt-clip__vol::-webkit-slider-runnable-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.30);
  border-radius: 999px;
}
.pt-clip__vol::-moz-range-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.30);
  border-radius: 999px;
}
.pt-clip__vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px; height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.40);
}
.pt-clip__vol::-moz-range-thumb {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.40);
}

/* Section state when playing — fade centre */
.story-section--clip.is-playing .pt-clip__center { opacity: 0; pointer-events: none; }

/* ────── Mobile ────── */
@media (max-width: 720px) {
  .story-section--clip {
    padding: 36px 0 32px;
  }
  .pt-clip__head { margin-bottom: 18px; padding: 0 18px; }
  .pt-clip__title { font-size: 24px; }
  .pt-clip__kicker { font-size: 10.5px; }
  .pt-clip__player {
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
  }
  .pt-clip__center { width: 64px; height: 64px; }
  .pt-clip__center svg { width: 24px; height: 24px; }
  .pt-clip__controls { padding: 10px 12px 12px; gap: 8px; }
  .pt-clip__vol { width: 64px; }
  .pt-clip__labels { display: none; }
  .pt-clip__time { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-clip__center,
  .pt-clip__controls { transition: none; }
}
