/* Stránka s komiksovými videi (lanvura.com/cs/videa/ …). Načítá se jen na ní, nad site.css; landing.css se nepoužívá.
   Barvy webu a rodin z brand kitu (karta má data-lv-family → --lv-accent), komiksový obrys --vd-ink, světlý i tmavý
   režim (prefers-color-scheme i ruční přepínač data-theme), pohyb vypne prefers-reduced-motion. */

.vd {
  --vd-ink: #23212c;
  --vd-paper: #fffdf7;
  --vd-dot: rgba(91, 75, 219, .13);
  --vd-cap: #fde68a;
  --vd-cap-ink: #3b2a00;
  --vd-grad-text: linear-gradient(100deg, #5331e0 0%, #9333ea 50%, #db2777 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vd {
    --vd-ink: #d9d4ea; --vd-paper: #1b1926; --vd-dot: rgba(169, 159, 255, .12);
    --vd-grad-text: linear-gradient(100deg, #b3a1ff 0%, #d8b4fe 50%, #f9a8d4 100%);
  }
}
:root[data-theme="dark"] .vd {
  --vd-ink: #d9d4ea; --vd-paper: #1b1926; --vd-dot: rgba(169, 159, 255, .12);
  --vd-grad-text: linear-gradient(100deg, #b3a1ff 0%, #d8b4fe 50%, #f9a8d4 100%);
}
.vd-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- hlavička ---------- */
.vd-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.vd-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, var(--vd-dot) 1.6px, transparent 2px) 0 0 / 14px 14px;
  -webkit-mask-image: radial-gradient(70% 90% at 80% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 90% at 80% 30%, #000 20%, transparent 75%); }
.vd-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.vd-rec { display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: #ef4444; vertical-align: 1px;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .18); animation: vd-rec 1.6s ease-in-out infinite; }
@keyframes vd-rec { 50% { opacity: .35; } }
.vd-title { font-size: clamp(2.2rem, 5.6vw, 4.2rem); letter-spacing: -.045em; line-height: 1.02; }
.vd-title span { display: block; background: var(--vd-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vd-lead { margin-top: 18px; font-size: clamp(1.04rem, 1.5vw, 1.22rem); color: var(--text-2); max-width: 36em; }
.vd-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 18px; font-size: 14.5px; color: var(--text-3); }
.vd-note svg { color: var(--accent-text); flex: none; }
.vd-count { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 700; }

/* vějíř tří obálek */
.vd-fan { position: relative; height: clamp(260px, 34vw, 420px); }
.vd-fan img { position: absolute; top: 4%; left: 50%; width: auto; height: 88%; aspect-ratio: 9 / 16; object-fit: cover;
  border: 3px solid var(--vd-ink); border-radius: 18px; background: var(--surface-2); box-shadow: 7px 7px 0 var(--accent);
  transform: translateX(calc(-50% + (var(--k) - 1) * 62%)) rotate(calc((var(--k) - 1) * 9deg)); transform-origin: 50% 90%;
  animation: vd-fan .9s var(--lv-ease-spring, cubic-bezier(.34, 1.56, .64, 1)) both; animation-delay: calc(var(--k) * 90ms); }
.vd-fan img:nth-child(2) { z-index: 2; top: 0; height: 96%; }
@keyframes vd-fan { from { opacity: 0; transform: translateX(-50%) rotate(0) scale(.9); } }

/* ---------- filtry ---------- */
.vd-sec { padding: clamp(8px, 2vw, 16px) 0 clamp(48px, 7vw, 88px); }
.vd-filters { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(18px, 3vw, 28px); }
.js .vd-filters { display: flex; }
.vd-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 2px solid var(--line-2); font: inherit; font-size: 15px; font-weight: 650;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.vd-chip small { font-size: 12px; font-weight: 700; color: var(--text-3); }
.vd-chip:hover { border-color: var(--vd-ink); }
.vd-chip[aria-pressed="true"] { background: var(--vd-ink); border-color: var(--vd-ink); color: var(--bg); }
.vd-chip[aria-pressed="true"] small { color: inherit; opacity: .7; }
.vd-chip:active { transform: scale(.97); }

/* ---------- mřížka karet 9:16 ---------- */
.vd-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 3vw, 32px) clamp(14px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
@media (min-width: 560px) { .vd-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
@media (min-width: 1100px) { .vd-grid { grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; } }
.vd-card { --tilt: -1.2deg; min-width: 0; }
.vd-card:nth-child(even) { --tilt: 1.1deg; }
.vd-card:nth-child(3n) { --tilt: -.6deg; }
.vd-card[hidden] { display: none; }
.vd-open { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 18px; color: #fff; text-decoration: none;
  border: 3px solid var(--vd-ink); background: var(--surface-2); box-shadow: 6px 6px 0 var(--lv-accent, var(--accent));
  transform: rotate(var(--tilt)); transition: transform .35s var(--lv-ease-spring, cubic-bezier(.34, 1.56, .64, 1)), box-shadow .25s; }
.vd-open img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.vd-open::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(10, 8, 20, .55)); }
@media (hover: hover) {
  .vd-open:hover { transform: rotate(0) translate(-3px, -3px); box-shadow: 10px 10px 0 var(--lv-accent, var(--accent)); }
  .vd-open:hover img { transform: scale(1.06); }
  .vd-open:hover .vd-play { transform: translate(-50%, -50%) scale(1.1); }
}
.vd-open:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; transform: rotate(0); }
.vd-open:active { transform: rotate(0) translate(2px, 2px); box-shadow: 3px 3px 0 var(--lv-accent, var(--accent)); }
.vd-play { position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--lv-accent, var(--accent)); border: 3px solid var(--vd-ink);
  transform: translate(-50%, -50%); transition: transform .25s var(--lv-ease-spring, ease); box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .55); }
.vd-play svg { margin-left: 4px; }
.vd-play::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8);
  animation: vd-ring 2.4s ease-out infinite; }
.vd-card:nth-child(2) .vd-play::before { animation-delay: .8s; } .vd-card:nth-child(3) .vd-play::before { animation-delay: 1.6s; }
@keyframes vd-ring { 0% { transform: scale(.85); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.vd-dur { position: absolute; z-index: 1; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(10, 8, 20, .72);
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.vd-tag { position: absolute; z-index: 1; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 4px 10px; border-radius: 9px;
  background: var(--vd-cap); color: var(--vd-cap-ink); border: 2px solid var(--vd-ink); font-size: 12.5px; font-weight: 750; line-height: 1.25;
  transform: rotate(-2deg); box-shadow: 2px 2px 0 var(--vd-ink); }
.vd-meta { padding: 16px 4px 0; }
.vd-card-title { font-size: clamp(1rem, 1.6vw, 1.14rem); line-height: 1.25; letter-spacing: -.015em; }
.vd-meta p { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.vd-more { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 10px; font-size: 14.5px; font-weight: 700;
  color: var(--lv-accent-text, var(--accent-text)); text-decoration: none; }
.vd-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.vd-more svg { transition: transform .2s; } .vd-more:hover svg { transform: translateX(3px); }
.vd-more .flag, .vd-cta .flag { width: 18px; height: 13px; border-radius: 2px; flex: none; }
@media (max-width: 559px) {
  .vd-play { width: 52px; height: 52px; } .vd-play svg { width: 24px; height: 24px; }
  .vd-meta p { display: none; }
  .vd-meta { padding-top: 12px; }
  .vd-tag { font-size: 11.5px; padding: 3px 8px; }
}

/* ---------- závěr ---------- */
.vd-outro { padding: 0 0 clamp(56px, 8vw, 104px); }
.vd-outro-card { position: relative; overflow: hidden; text-align: center; padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 64px);
  border-radius: var(--radius-lg); color: #fff; background: linear-gradient(135deg, #4b2fd6 0%, #7c3aed 50%, #be185d 100%);
  border: 3px solid var(--vd-ink); box-shadow: 8px 8px 0 var(--vd-ink); }
.vd-outro-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle, rgba(255, 255, 255, .22) 1.6px, transparent 2px) 0 0 / 14px 14px; }
.vd-outro-card > * { position: relative; }
.vd-outro-card .section-lead { color: rgba(255, 255, 255, .9); max-width: 34em; margin: 14px auto 0; }
.vd-outro-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 26px; }
.vd-outro .vd-ok { color: #fff; }
.vd-disclaimer { margin-top: 22px; font-size: 13.5px; color: rgba(255, 255, 255, .78); font-style: italic; }
.vd-ok { font-size: 14px; font-weight: 650; color: var(--ok); }
.vd-ok:empty { display: none; }

/* ---------- přehrávač přes celou obrazovku ---------- */
html.vd-lock { overflow: hidden; }
.vd-player { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #08070c; color: #fff; overflow: hidden; color-scheme: dark; }
.vd-player::backdrop { background: rgba(8, 7, 12, .9); }
.vd-player[open] { animation: vd-open .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes vd-open { from { opacity: 0; transform: scale(.97); } }
.vd-stage { position: relative; height: 100%; }
.vd-frame { position: absolute; left: 0; right: 0; top: 0; height: min(100%, calc(100vw * 16 / 9)); overflow: hidden; background: #000;
  touch-action: none; will-change: transform; }
.vd-frame.is-in-next { animation: vd-in-next .34s cubic-bezier(.2, .7, .2, 1); }
.vd-frame.is-in-prev { animation: vd-in-prev .34s cubic-bezier(.2, .7, .2, 1); }
@keyframes vd-in-next { from { transform: translateY(18%); opacity: 0; } }
@keyframes vd-in-prev { from { transform: translateY(-18%); opacity: 0; } }
.vd-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vd-tap { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0;
  background: transparent; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vd-tap-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(10, 8, 20, .55);
  border: 2px solid rgba(255, 255, 255, .7); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.vd-tap-icon svg { margin-left: 4px; }
.vd-player.is-paused .vd-tap-icon { opacity: 1; transform: none; }
.vd-tap:focus-visible .vd-tap-icon { opacity: 1; outline: 3px solid #fff; outline-offset: 3px; }
.vd-sound { position: absolute; z-index: 2; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px 0 14px; border-radius: 999px; cursor: pointer;
  background: #fff; color: #14121c; border: 3px solid #14121c; font: inherit; font-size: 15.5px; font-weight: 750;
  box-shadow: 4px 4px 0 #8b7dff; animation: vd-nudge 2.2s ease-in-out infinite; }
.vd-sound.is-on { left: 14px; transform: none; min-height: 44px; width: 44px; padding: 0; justify-content: center; animation: none;
  background: rgba(10, 8, 20, .55); color: #fff; border: 2px solid rgba(255, 255, 255, .5); box-shadow: none; }
.vd-sound.is-on span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes vd-nudge { 0%, 70%, 100% { transform: translateX(-50%) rotate(0); } 76% { transform: translateX(-50%) rotate(-4deg); }
  82% { transform: translateX(-50%) rotate(4deg); } 88% { transform: translateX(-50%) rotate(-2deg); } }
.vd-progress { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .22); }
.vd-progress span { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.vd-end { position: absolute; inset: 0; z-index: 3; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 12px;
  padding: 20px; background: rgba(8, 7, 12, .62); }
.vd-end[hidden] { display: none; }
.vd-side { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 26px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(8, 7, 12, .8) 22%, #08070c 60%); pointer-events: none; }
.vd-side > * { pointer-events: auto; }
.vd-side-top { display: flex; align-items: center; gap: 10px; }
.vd-counter { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .65); font-variant-numeric: tabular-nums; }
.vd-side-tag { padding: 2px 9px; border-radius: 8px; background: #fde68a; color: #3b2a00; font-size: 12px; font-weight: 750; }
.vd-side-tag:empty { display: none; }
.vd-side-title { margin-top: 4px; font-size: 1.04rem; line-height: 1.25; letter-spacing: -.01em; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.vd-side-lead { display: none; margin-top: 8px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.vd-side-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; }
.vd-ctas { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; min-width: 0; }
.vd-ctas:empty { display: none; }
.vd-cta { --h: 44px; padding: 0 16px; font-size: 15.5px; background: var(--lv-accent, #8b7dff); color: var(--lv-on-accent, #fff);
  border: 2px solid #fff; box-shadow: 3px 3px 0 #fff; }
.vd-cta:hover { color: var(--lv-on-accent, #fff); filter: brightness(1.08); }
.vd-cta + .vd-cta { --h: 40px; font-size: 14px; background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; }
.vd-share { --h: 44px; flex: none; background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.vd-share:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.vd-ctas:not(:empty) + .vd-share { width: 44px; padding: 0; justify-content: center; }
.vd-ctas:not(:empty) + .vd-share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vd-player .vd-ok { margin-top: 6px; color: #86efac; }
.vd-swipe { position: absolute; z-index: 6; left: 50%; top: 62%; display: none; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: 999px; background: rgba(10, 8, 20, .78); color: #fff; font-size: 14px; font-weight: 650; white-space: nowrap;
  transform: translateX(-50%); pointer-events: none; }
.vd-player.is-hint .vd-swipe { display: inline-flex; animation: vd-hint 3s ease forwards; }
@keyframes vd-hint { 0% { opacity: 0; transform: translate(-50%, 12px); } 12%, 75% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -12px); } }
.vd-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; padding: 0;
  background: rgba(10, 8, 20, .55); color: #fff; border: 2px solid rgba(255, 255, 255, .45); transition: background-color .15s, transform .15s; }
.vd-btn:hover { background: rgba(255, 255, 255, .18); }
.vd-btn:active { transform: scale(.94); }
.vd-btn:disabled { opacity: .3; cursor: default; }
.vd-btn:focus-visible, .vd-sound:focus-visible, .vd-player .btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vd-close { position: absolute; z-index: 5; right: 14px; top: calc(14px + env(safe-area-inset-top)); }
.vd-nav { position: absolute; z-index: 5; right: 14px; top: 38%; display: grid; gap: 12px; }

/* počítač / tablet na šířku: video uprostřed, popis vedle */
@media (min-width: 900px) and (min-aspect-ratio: 1 / 1) {
  .vd-stage { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 3vw, 48px); padding: 24px 96px 24px 24px; }
  .vd-frame { position: relative; flex: none; height: calc(100% - 8px); width: auto; aspect-ratio: 9 / 16; border-radius: 22px;
    border: 3px solid rgba(255, 255, 255, .85); box-shadow: 10px 10px 0 #5b4bdb; }
  .vd-side { position: static; width: min(360px, 32vw); padding: 0; background: none; }
  .vd-side-title { font-size: clamp(1.35rem, 2vw, 1.8rem); -webkit-line-clamp: 4; margin-top: 10px; }
  .vd-side-lead { display: block; }
  .vd-side-row { flex-direction: column; margin-top: 22px; }
  .vd-ctas:not(:empty) + .vd-share { width: auto; padding: 0 16px; }
  .vd-ctas:not(:empty) + .vd-share span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .vd-player.is-hint .vd-swipe { display: none; }
  .vd-close { right: 24px; top: 24px; }
  .vd-nav { right: 24px; top: 50%; transform: translateY(-50%); }
  .vd-btn { width: 52px; height: 52px; }
}
@media (max-width: 899px), (max-aspect-ratio: 1 / 1) {
  .vd-nav { top: auto; bottom: calc(132px + env(safe-area-inset-bottom)); }
  .vd-nav .vd-btn { width: 42px; height: 42px; }
}

/* ---------- mobil ---------- */
@media (max-width: 760px) {
  .vd-hero-grid { grid-template-columns: 1fr; }
  .vd-fan { height: 210px; order: -1; margin: 0 auto -6px; width: 100%; max-width: 360px; }
  .vd-title { font-size: clamp(2.1rem, 9.4vw, 2.8rem); }
}

/* ---------- omezený pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  .vd-rec, .vd-play::before, .vd-sound, .vd-fan img, .vd-player[open], .vd-player.is-hint .vd-swipe, .vd-frame.is-in-next, .vd-frame.is-in-prev { animation: none !important; }
  .vd-open, .vd-open img, .vd-chip, .vd-more svg { transition: none; }
  .vd-open:hover img { transform: none; }
}
