/* ===========================================================================
   LYM embed player — visual tokens (local scope so the player stays
   self-contained; kept aligned with the admin theme's accent/radius/easing).
   Behavior contract from earlier phases is UNCHANGED: overlay lifecycle,
   [hidden] discipline, pointer-events, and z-index stacking are identical.
   =========================================================================== */
:root {
  --p-fg:         #f4f5f7;
  --p-fg-muted:   rgba(255, 255, 255, 0.70);
  --p-fg-dim:     rgba(255, 255, 255, 0.50);
  --p-surface:    rgba(15, 15, 18, 0.72);
  --p-surface-strong: rgba(15, 15, 18, 0.92);
  --p-border:     rgba(255, 255, 255, 0.18);
  --p-border-strong: rgba(255, 255, 255, 0.30);
  /* --p-accent is set inline by player.js from the server's app-settings
     (POST /api/settings). Every accent-derived shade below uses color-mix
     so a single override cascades through rings, tints, and shadows. */
  --p-accent:       #38bdf8;
  --p-accent-hover: color-mix(in srgb, var(--p-accent) 70%, #ffffff 30%);
  --p-ring:         color-mix(in srgb, var(--p-accent) 45%, transparent);

  --p-radius-sm:   6px;
  --p-radius-md:   10px;
  --p-radius-lg:   16px;
  --p-radius-pill: 999px;

  --p-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --p-shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --p-shadow-lg: 0 14px 44px rgba(0, 0, 0, 0.55);

  --p-blur: blur(12px);
  --p-blur-strong: blur(16px);

  --p-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --p-dur-fast: 160ms;
  --p-dur-med: 240ms;

  --p-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
            Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ---------------------------------------------------------------------------
   PRESERVED: the [hidden] contract from the earlier fix. Do NOT change
   these properties — a lot of overlay correctness rides on them.
--------------------------------------------------------------------------- */
[hidden] {
  display: none !important;
  pointer-events: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  color: var(--p-fg);
  font-family: var(--p-font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.lym-player {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lym-player video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

/* ---------------------------------------------------------------------------
   Base overlays (loading + error). z-index 2, unchanged.
--------------------------------------------------------------------------- */
.lym-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lym-overlay-loading {
  background: rgba(0, 0, 0, 0.32);
  pointer-events: none; /* decorative — never traps clicks */
}

.lym-overlay-error {
  background: rgba(0, 0, 0, 0.85);
  pointer-events: auto; /* opaque fatal state — captures clicks */
  -webkit-backdrop-filter: var(--p-blur);
  backdrop-filter: var(--p-blur);
}

.lym-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.20);
  border-top-color: var(--p-fg);
  border-radius: 50%;
  animation: lym-spin 0.9s linear infinite;
}

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

.lym-message {
  text-align: center;
  max-width: 80%;
  padding: 22px 26px;
  background: var(--p-surface-strong);
  border-radius: var(--p-radius-md);
  border: 1px solid var(--p-border);
  box-shadow: var(--p-shadow-md);
}

.lym-message-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.lym-message-body {
  font-size: 13px;
  color: var(--p-fg-muted);
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   "Coming soon" placeholder — shown when the video isn't `ready` yet
   (uploading / queued / processing / failed). Full-frame overlay with an
   optional dimmed poster background, a centered message, and a subtle
   accent-tinted pulse to signal "we're working on it, this will upgrade."
   Mobile-first — the message uses clamp() so it scales cleanly from a
   ~320px mobile iframe up to a 1080p desktop embed.

   z-index 3 sits above the loading spinner (2) but below the unmute (4)
   and CTA (6). In practice those never render concurrently with the
   placeholder — the moment status flips to `ready` the placeholder is
   torn down before the ready-state overlays boot.
--------------------------------------------------------------------------- */
.lym-placeholder {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #0b0b0f;
  color: var(--p-fg);
  overflow: hidden;
  animation: lym-placeholder-in var(--p-dur-med) var(--p-ease);
}

@keyframes lym-placeholder-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Poster background is set inline via background-image on this layer so
   the scrim below it can dim it uniformly across the frame. Positioned
   with cover so a portrait poster fills a landscape iframe (and vice
   versa) without letterboxing gaps. */
.lym-placeholder-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  /* Slight blur so any text baked into a custom poster doesn't compete
     with the message overlay on top; a straight dim would leave sharp
     poster elements dueling for attention. */
  filter: blur(8px) saturate(0.9);
  transform: scale(1.06); /* hides blur edge feathering */
  opacity: 0.55;
}

/* Dark radial scrim on top of the poster so the message stays legible
   over any image (bright, busy, dark, whatever the operator uploaded).
   Even without a poster this reads as a subtle vignette. */
.lym-placeholder-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center,
                    rgba(0, 0, 0, 0.35) 0%,
                    rgba(0, 0, 0, 0.72) 100%);
}

.lym-placeholder-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: min(560px, 92%);
  text-align: center;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.45));
}

/* Subtle accent-tinted pulse — signals "not idle, still preparing" without
   being frantic. Two elements: a solid center dot and a sonar ring pinging
   outward. Both derive color from --p-accent so the account brand cascades.
   On the failure state we hide this (see .lym-placeholder.is-failed below)
   because "unavailable" isn't an in-progress condition. */
.lym-placeholder-pulse {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lym-placeholder-pulse-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--p-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--p-accent) 55%, transparent);
  animation: lym-placeholder-dot 2.4s ease-in-out infinite;
}
.lym-placeholder-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--p-accent) 65%, transparent);
  animation: lym-placeholder-ring 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}
@keyframes lym-placeholder-dot {
  0%, 100% { transform: scale(1);    opacity: 0.95; }
  50%      { transform: scale(1.15); opacity: 1;    }
}
@keyframes lym-placeholder-ring {
  0%   { transform: scale(0.7); opacity: 0.85; }
  70%  { transform: scale(1.6); opacity: 0;    }
  100% { transform: scale(1.6); opacity: 0;    }
}

.lym-placeholder-msg {
  font-size: clamp(20px, 4.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  color: #ffffff;
  /* Break long words if an operator writes something without spaces so
     nothing overflows a phone-width iframe. */
  overflow-wrap: anywhere;
}

/* Secondary "still preparing — check back soon" hint. Shown after the
   poll cap is hit; kept small and dim so it reads as a soft aside. */
.lym-placeholder-sub {
  font-size: clamp(12px, 2.6vw, 14px);
  font-weight: 500;
  color: var(--p-fg-muted);
  line-height: 1.45;
  max-width: 40ch;
}

/* Failed state — no pulse, warmer neutral tone, message is the operator's
   "unavailable" copy. Class toggled by player.js when status='failed'. */
.lym-placeholder.is-failed .lym-placeholder-pulse { display: none; }
.lym-placeholder.is-failed .lym-placeholder-msg   { color: var(--p-fg-muted); font-weight: 600; }

@media (max-width: 480px) {
  .lym-placeholder { padding: 16px; }
  .lym-placeholder-content { gap: 14px; }
  .lym-placeholder-pulse { width: 40px; height: 40px; }
  .lym-placeholder-pulse-dot { width: 12px; height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lym-placeholder,
  .lym-placeholder-pulse-dot,
  .lym-placeholder-pulse-ring { animation: none; }
  .lym-placeholder-pulse-ring { opacity: 0.6; }
}

/* ---------------------------------------------------------------------------
   Unmute overlay — VSL-style full-frame click target. The whole surface is
   the button (pointer-events:auto, cursor:pointer, role=button in HTML);
   inner content is pointer-events:none so no child element can create a
   dead zone. Blue radial wash + centered icon/type make it visually obvious
   the video isn't in its "real" state yet. Clicking anywhere calls
   unmuteAndRestart (unmute → seek 0 → play → hide).

   z-index 4 keeps it below the CTA overlay (6) and quality selector (5).
--------------------------------------------------------------------------- */
.lym-unmute {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #ffffff;
  pointer-events: auto;
  cursor: pointer;
  /* Radial vignette derived from --p-accent so the wash follows the
     account's brand color. Edges fall to a mostly-opaque near-black so
     white type + icon stay legible over any bright accent. */
  background:
    radial-gradient(ellipse at center,
                    color-mix(in srgb, var(--p-accent) 45%, transparent) 0%,
                    color-mix(in srgb, var(--p-accent) 18%, rgba(0, 0, 0, 0.80)) 100%);
  transition: background var(--p-dur-med) var(--p-ease);
  animation: lym-unmute-breathe 4s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.lym-unmute:hover {
  background:
    radial-gradient(ellipse at center,
                    color-mix(in srgb, var(--p-accent) 52%, transparent) 0%,
                    color-mix(in srgb, var(--p-accent) 14%, rgba(0, 0, 0, 0.86)) 100%);
}

.lym-unmute:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: -6px;
}

.lym-unmute-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: min(560px, 92%);
  /* Content is decorative — clicks belong to the wrapper. */
  pointer-events: none;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.45));
}

.lym-unmute-icon-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Sonar ring — pings outward from behind the icon. Positioned absolutely
   inside the icon-wrap so it never nudges the icon's optical center. */
.lym-unmute-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.55);
  animation: lym-unmute-ping 2.2s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}

.lym-unmute-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  color: #ffffff;
}

.lym-unmute-headline {
  font-size: clamp(22px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.lym-unmute-subhead {
  font-size: clamp(16px, 3.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0.96;
}

@keyframes lym-unmute-ping {
  0%   { transform: scale(1);    opacity: 0.85; }
  75%  { transform: scale(1.45); opacity: 0;    }
  100% { transform: scale(1.45); opacity: 0;    }
}

@keyframes lym-unmute-breathe {
  0%, 100% { opacity: 1;    }
  50%      { opacity: 0.94; }
}

/* Small viewports: shrink icon + collapse gap so nothing overflows a
   ~390px-wide iframe or a phone in portrait. Type already scales via
   clamp() min so headline/subhead stay readable at their floor sizes. */
@media (max-width: 480px) {
  .lym-unmute { padding: 16px; }
  .lym-unmute-content { gap: 12px; }
  .lym-unmute-icon-wrap { width: 68px; height: 68px; }
  .lym-unmute-icon { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .lym-unmute      { animation: none; }
  .lym-unmute-ring { animation: none; opacity: 0.9; }
}

/* ---------------------------------------------------------------------------
   Fallback big-play button (autoplay blocked outright). Wrapper stays
   transparent + pointer-events:none so native controls remain clickable.
--------------------------------------------------------------------------- */
.lym-play-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 4;
}

.lym-play-btn {
  pointer-events: auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--p-surface);
  border: 2px solid var(--p-border-strong);
  color: var(--p-fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-backdrop-filter: var(--p-blur);
  backdrop-filter: var(--p-blur);
  box-shadow: var(--p-shadow-md);
  transition: transform var(--p-dur-med) var(--p-ease),
              background var(--p-dur-med) var(--p-ease),
              border-color var(--p-dur-med) var(--p-ease);
}

.lym-play-btn:hover {
  transform: scale(1.06);
  background: var(--p-surface-strong);
  border-color: var(--p-accent);
}

.lym-play-btn:active { transform: scale(0.98); }

.lym-play-btn:focus-visible {
  outline: 2px solid var(--p-accent);
  outline-offset: 4px;
}

.lym-play-btn svg {
  width: 40px;
  height: 40px;
  transform: translateX(3px); /* optical centering for the triangle */
  color: var(--p-accent);
}

/* ---------------------------------------------------------------------------
   Pause overlay — shown only AFTER the viewer has engaged (first real
   play fired), so the poster+native-controls view on load doesn't get a
   giant button over it. Whole surface is a click target (wrapper is
   role=button); inner circle is decorative so no dead zones.

   z-index 3 sits above native controls (2 in Chrome/Firefox) but below
   the unmute overlay (4) and CTA (6) so those always win when active.
--------------------------------------------------------------------------- */
.lym-pause {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.28);
  /* Fades between hidden and visible. .is-visible is added on show,
     removed on hide; player.js sequences the [hidden] toggle around the
     transition so the element never intercepts clicks while it's faded
     out. Non-visible defaults are opacity:0 + pointer-events:none —
     redundant with the transitioned-out state but guarantees the "faded
     but still in the tree" mid-frame can't catch a click. */
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease,
              background var(--p-dur-fast) var(--p-ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.lym-pause.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* No wrapper-hover styling. The wrapper spans the whole video frame
   (position:absolute; inset:0), so ANY mouse position over the player
   triggers .lym-pause:hover. Previous rules on this selector shifted
   either the button's fill or the wrapper's own tint — both read as
   "the button color changes when I move the mouse over the video,"
   which contradicts the operator-chosen accent. Hover feedback lives
   on the button's transform only (see .lym-pause:hover .lym-pause-btn). */

@media (prefers-reduced-motion: reduce) {
  /* Snappy fade already; reduced-motion collapses it to instant so the
     overlay pops in/out without any easing. */
  .lym-pause { transition-duration: 0s; }
}

.lym-pause:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: -6px;
}

/* Circular filled button — accent from CSS custom property so the admin
   Settings modal can swap the color account-wide. Pulsing scale + glow
   draws the eye without being frantic. Ring/shadow use color-mix so any
   accent value renders a matching halo. */
.lym-pause-btn {
  width: clamp(72px, 14vw, 116px);
  height: clamp(72px, 14vw, 116px);
  border-radius: 50%;
  /* Solid, at-rest accent. background-color (not the shorthand) so no
     other background-* property can inadvertently intercept. Explicit
     opacity:1 defends against any ancestor opacity animation leaking a
     "washed out" appearance into the button fill. */
  background-color: var(--p-accent);
  background-image: none;
  opacity: 1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* clicks belong to the wrapper */
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 0 0 0 color-mix(in srgb, var(--p-accent) 45%, transparent);
  animation: lym-pause-pulse 2.2s ease-out infinite;
  /* NB: `background` intentionally NOT in the transition list. If the
     account accent lands via applyPlayerAccentColor after this element
     has painted, we want the color to snap to the new value — animating
     it reads as a "revert" to the reader (the button briefly wears one
     hue then eases into another). Transform stays transitioned for the
     hover scale-up. */
  transition: transform var(--p-dur-med) var(--p-ease);
}

/* Hover feedback is scale-only. We deliberately do NOT swap in a
   lightened accent shade here. Why: .lym-pause is a full-frame overlay
   (inset:0), so .lym-pause:hover matches whenever the mouse is anywhere
   over the player — not just over the button. A previous rule swapped
   background to --p-accent-hover in this selector, which meant the
   button read as a lightened color ALL the time the viewer had a mouse
   over the video, and only snapped to the true accent when the mouse
   left the page entirely. The button now paints pure --p-accent in
   every state; the scale-up is the only hover cue. */
.lym-pause:hover .lym-pause-btn {
  transform: scale(1.04);
}

.lym-pause:active .lym-pause-btn { transform: scale(0.98); }

.lym-pause-icon {
  width: 42%;
  height: 42%;
  /* Play-triangle optical centering — the glyph's visual weight sits
     left of geometric center, so nudge right. */
  transform: translateX(6%);
}

@keyframes lym-pause-pulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.45),
      0 0 0 0 color-mix(in srgb, var(--p-accent) 55%, transparent);
  }
  70% {
    transform: scale(1.05);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.45),
      0 0 0 22px color-mix(in srgb, var(--p-accent) 0%, transparent);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.45),
      0 0 0 0 color-mix(in srgb, var(--p-accent) 0%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lym-pause-btn { animation: none; }
}

/* ---------------------------------------------------------------------------
   Quality selector (top-right).
--------------------------------------------------------------------------- */
.lym-quality {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  opacity: 0;
  transition: opacity var(--p-dur-med) var(--p-ease);
}

.lym-player:hover .lym-quality,
.lym-player.paused .lym-quality,
.lym-quality:focus-within {
  opacity: 1;
}

.lym-quality select {
  background: var(--p-surface);
  color: var(--p-fg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-sm);
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  -webkit-backdrop-filter: var(--p-blur);
  backdrop-filter: var(--p-blur);
  transition: background var(--p-dur-fast) var(--p-ease),
              border-color var(--p-dur-fast) var(--p-ease);
}

.lym-quality select:hover {
  background: var(--p-surface-strong);
  border-color: var(--p-border-strong);
}

.lym-quality select:focus-visible {
  outline: 2px solid var(--p-accent);
  outline-offset: 2px;
}

.lym-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------------------------------------------------------------------------
   End-of-video CTA. z-index: 6 (top of stack). Wrapper is pointer-events:
   auto so the card + button + replay all take clicks directly. Obeys
   [hidden]. All lifecycle handling stays in JS — CSS only styles.
--------------------------------------------------------------------------- */
.lym-cta-wrap {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: var(--p-blur);
  backdrop-filter: var(--p-blur);
  animation: lym-cta-fade var(--p-dur-med) var(--p-ease);
}

@keyframes lym-cta-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lym-cta-card {
  max-width: min(540px, 90%);
  padding: 32px 36px;
  background: linear-gradient(180deg, rgba(28,28,34,0.94), rgba(20,20,24,0.94));
  color: var(--p-fg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  box-shadow: var(--p-shadow-lg);
  text-align: center;
  animation: lym-cta-rise var(--p-dur-med) var(--p-ease);
}

@keyframes lym-cta-rise {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

.lym-cta-headline {
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.lym-cta-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--p-fg-muted);
  margin-bottom: 24px;
}

/* Primary action — uses the same accent as the admin so the two surfaces
   feel like one product. */
.lym-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--p-accent);
  color: #0a0a0c;
  border: 0;
  border-radius: var(--p-radius-pill);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--p-accent) 35%, transparent);
  transition: transform var(--p-dur-med) var(--p-ease),
              background var(--p-dur-med) var(--p-ease),
              box-shadow var(--p-dur-med) var(--p-ease);
}

.lym-cta-btn:hover {
  background: var(--p-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--p-accent) 45%, transparent);
}

.lym-cta-btn:active { transform: translateY(0); }

.lym-cta-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lym-cta-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--p-dur-med) var(--p-ease);
}

.lym-cta-btn:hover .lym-cta-arrow {
  transform: translateX(3px);
}

/* Replay — small pill in the bottom-right, matches the visual language of
   the unmute pill. */
.lym-cta-replay {
  position: absolute;
  bottom: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--p-surface);
  color: var(--p-fg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-pill);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  -webkit-backdrop-filter: var(--p-blur);
  backdrop-filter: var(--p-blur);
  transition: transform var(--p-dur-med) var(--p-ease),
              background var(--p-dur-med) var(--p-ease),
              border-color var(--p-dur-med) var(--p-ease);
}

.lym-cta-replay:hover {
  background: var(--p-surface-strong);
  border-color: var(--p-border-strong);
  transform: scale(1.03);
}

.lym-cta-replay:active { transform: scale(0.98); }

.lym-cta-replay:focus-visible {
  outline: 2px solid var(--p-accent);
  outline-offset: 3px;
}

.lym-cta-replay svg {
  width: 14px;
  height: 14px;
  color: var(--p-fg-muted);
  transition: color var(--p-dur-med) var(--p-ease);
}

.lym-cta-replay:hover svg {
  color: var(--p-accent);
}

@media (prefers-reduced-motion: reduce) {
  .lym-cta-wrap,
  .lym-cta-card { animation: none; }
}
