/* Videá: mriežka reelov a prehrávač (dialog). Desktop: video + svetlý panel vedľa, mobil: video na celú obrazovku a panel dole. */
.vd-main { color: var(--burgundy); overflow-x: clip; } /* filter tém siaha k okrajom obrazovky; stránka sa nesmie posúvať do strany (Erik 22. 10.) */
.vd-wrap { width: min(100% - 2 * var(--app-space-5), 1120px); margin: 0 auto; padding: calc(var(--nav-h) + var(--app-space-7)) 0 calc(var(--app-space-7) * 1.5); }
.vd-head { max-width: 720px; margin-bottom: var(--app-space-6); }
.vd-eyebrow { margin: 0 0 var(--app-space-3); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--burgundy) 70%, transparent); }
.vd-head h1 { margin: 0 0 var(--app-space-3); font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; }
.vd-lead { margin: 0; font-size: 18px; line-height: 1.55; color: color-mix(in srgb, var(--burgundy) 80%, transparent); }

.vd-filter { display: flex; gap: var(--app-space-2); margin: 0 calc(var(--gutter) * -1) var(--app-space-6); padding: 2px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.vd-filter::-webkit-scrollbar { display: none; }
.vd-chip { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid color-mix(in srgb, var(--burgundy) 18%, transparent); border-radius: var(--radius-pill); background: transparent; color: var(--burgundy); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.vd-chip:hover { background: color-mix(in srgb, var(--burgundy) 7%, transparent); }
.vd-chip[aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
.vd-chip:focus-visible, .vd-card-link:focus-visible, .vd-v-btn:focus-visible, .vd-sound:focus-visible, .vd-pause:focus-visible, .vd-v-more:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

.vd-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--app-space-5) var(--app-space-4); }
@media (min-width: 700px) { .vd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .vd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--app-space-7) var(--app-space-5); } }
.vd-card[hidden] { display: none; }
.vd-card-link { display: grid; gap: var(--app-space-3); color: inherit; text-decoration: none; }
.vd-thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--cocoa-deep); box-shadow: var(--shadow-card); }
.vd-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.vd-card-link:hover .vd-thumb img { transform: scale(1.04); }
.vd-play { position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--white) 88%, transparent); color: var(--burgundy); box-shadow: var(--shadow-float); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.vd-play svg { width: 20px; height: 20px; margin-left: 2px; }
.vd-card-link:hover .vd-play { transform: scale(1.08); }
.vd-dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--void) 60%, transparent); color: var(--white); font-size: 12px; font-weight: 600; }
.vd-card-body { display: grid; gap: 4px; }
.vd-card-topic { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--burgundy) 82%, transparent); }
.vd-card-title { font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--burgundy); }

.vd-end-card { display: grid; gap: var(--app-space-4); justify-items: center; text-align: center; max-width: 560px; margin: calc(var(--app-space-7) * 1.5) auto 0; padding: var(--app-space-7) var(--app-space-6); background: var(--white); border-radius: 28px; box-shadow: var(--shadow-card); }
.vd-end-card p { margin: 0; font-size: 18px; line-height: 1.5; text-wrap: balance; }

/* Prehrávač */
.vd-viewer { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--burgundy); overflow: hidden; }
.vd-viewer[open] { display: flex; align-items: center; justify-content: center; gap: var(--app-space-6); animation: vd-in .35s cubic-bezier(.2, .7, .2, 1); }
.vd-viewer::backdrop { background: color-mix(in srgb, var(--void) 72%, transparent); backdrop-filter: blur(14px); }
@keyframes vd-in { from { opacity: 0; transform: scale(.97); } }
.vd-v-stage { position: relative; height: min(92vh, 900px); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: var(--void); box-shadow: var(--shadow-float); touch-action: pan-x; }
.vd-v-video { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.vd-v-video.is-switching { opacity: .2; }
.vd-sound { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--void) 45%, transparent); color: var(--white); cursor: pointer; backdrop-filter: blur(6px); }
.vd-sound svg { grid-area: 1 / 1; }
.vd-sound .vd-sound-on, .vd-sound[aria-pressed="true"] .vd-sound-off { display: none; }
.vd-sound[aria-pressed="true"] .vd-sound-on { display: block; }
.vd-sound.vd-pause { right: 66px; }
.vd-pause .vd-play-icon, .vd-pause[aria-pressed="true"] .vd-pause-icon { display: none; }
.vd-pause[aria-pressed="true"] .vd-play-icon { display: block; }
.vd-progress { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--white) 30%, transparent); overflow: hidden; }
.vd-progress span { display: block; height: 100%; width: 0; background: var(--white); }

.vd-v-panel { width: 380px; height: min(92vh, 900px); display: flex; flex-direction: column; background: var(--paper); border-radius: 26px; box-shadow: var(--shadow-float); overflow: hidden; }
.vd-v-top { display: flex; align-items: center; justify-content: space-between; gap: var(--app-space-3); padding: 14px 14px 14px 22px; border-bottom: 1px solid color-mix(in srgb, var(--burgundy) 10%, transparent); }
.vd-v-count { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: color-mix(in srgb, var(--burgundy) 65%, transparent); }
.vd-v-nav { display: flex; gap: 6px; }
.vd-v-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--burgundy) 14%, transparent); border-radius: 50%; background: var(--white); color: var(--burgundy); cursor: pointer; }
.vd-v-btn:hover { background: color-mix(in srgb, var(--burgundy) 7%, var(--white)); }
.vd-v-btn:disabled { opacity: .35; cursor: default; }
.vd-v-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.vd-viewer h2.vd-v-title { margin: 0 0 6px; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; color: var(--burgundy); }
.vd-v-more { display: none; }
.vd-v-details h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--burgundy) 65%, transparent); }
.vd-v-details p { margin: 0; font-size: 16px; line-height: 1.55; }
.vd-v-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vd-v-points li { position: relative; padding: 12px 14px 12px 40px; background: var(--white); border-radius: 16px; font-size: 15px; line-height: 1.5; }
.vd-v-points li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); }
.vd-v-details .vd-v-exercise { margin-top: 18px; padding: 12px 14px; border: 1px dashed color-mix(in srgb, var(--burgundy) 25%, transparent); border-radius: 16px; }
.vd-v-exercise span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--burgundy) 65%, transparent); }
.vd-v-details .vd-v-note { margin-top: 14px; font-size: 13px; color: color-mix(in srgb, var(--burgundy) 70%, transparent); }
.vd-v-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vd-v-topiclink { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 15px; font-weight: 600; color: var(--burgundy) !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--burgundy) 30%, transparent); }
.vd-v-topiclink .icon { width: 16px; height: 16px; }
.vd-v-topiclink[hidden] { display: none; }
.vd-v-actions { padding: 14px 22px 18px; border-top: 1px solid color-mix(in srgb, var(--burgundy) 10%, transparent); }
.vd-v-actions .btn { width: 100%; justify-content: center; }
.vd-v-handle, .vd-stage-close { display: none; }

/* Bez profilu: počítadlo videí zadarmo, zamknuté karty a výzva v prehrávači */
.vd-free { display: inline-grid; grid-template-columns: auto auto; align-items: center; justify-content: start; gap: 4px 10px; margin: var(--app-space-4) 0 0; padding: 12px 18px; border-radius: 20px; background: var(--white); box-shadow: var(--v3-card-shadow, var(--shadow-card)); font-size: 15px; font-weight: 600; color: var(--burgundy); }
.vd-free .icon { width: 18px; height: 18px; }
.vd-free-cta { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--burgundy) !important; text-decoration: underline; text-underline-offset: 3px; }
.vd-lock-chip { position: absolute; left: 10px; top: 10px; display: none; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--white) 92%, transparent); color: var(--burgundy); font-size: 12px; font-weight: 600; }
.vd-lock-chip .icon { width: 14px; height: 14px; }
.vd-card.is-locked .vd-lock-chip { display: inline-flex; }
.vd-card.is-locked .vd-play { display: none; }
.vd-card.is-locked .vd-thumb img { filter: saturate(.7) brightness(.82); }
.vd-locked { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 28px; text-align: center; color: var(--white); background: color-mix(in srgb, var(--void) 76%, transparent); backdrop-filter: blur(4px); }
.vd-locked[hidden] { display: none; }
.vd-locked-icon { display: grid; place-items: center; width: 56px; height: 56px; padding: 15px; border-radius: 50%; background: var(--white); color: var(--burgundy); }
.vd-viewer .vd-locked h3 { margin: 4px 0 0; font-size: 24px; line-height: 1.2; color: var(--white); }
.vd-locked p { margin: 0; max-width: 32ch; font-size: 16px; line-height: 1.5; color: color-mix(in srgb, var(--white) 88%, transparent); }
.vd-locked .btn { margin-top: 8px; }
.vd-locked-login a { color: var(--white) !important; font-weight: 600; text-decoration: underline; }
.vd-viewer.is-locked .vd-sound, .vd-viewer.is-locked .vd-progress { display: none; }
@media (min-width: 600px) { .vd-free { border-radius: var(--radius-pill); grid-template-columns: auto auto auto; } .vd-free-cta { grid-column: auto; } }

@media (max-width: 900px) {
  .vd-viewer[open] { display: block; }
  .vd-v-stage { position: absolute; inset: 0; height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; touch-action: none; }
  .vd-progress { bottom: auto; top: 8px; }
  .vd-sound { top: 18px; }
  .vd-v-panel { position: absolute; left: 10px; right: 10px; bottom: 10px; width: auto; height: auto; max-height: 42vh; border-radius: 24px; transition: max-height .35s cubic-bezier(.2, .7, .2, 1); }
  .vd-v-panel.is-open { max-height: 78vh; }
  .vd-v-top { padding: 8px 8px 8px 18px; }
  .vd-v-scroll { padding: 14px 18px 18px; gap: 6px; }
  .vd-viewer h2.vd-v-title { font-size: 19px; }
  .vd-v-more { display: inline-flex; align-self: flex-start; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--burgundy) 18%, transparent); border-radius: var(--radius-pill); background: var(--white); color: var(--burgundy); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  .vd-v-details { display: none; }
  .vd-v-panel.is-open .vd-v-details { display: block; }
  .vd-v-actions { padding: 10px 14px 14px; }
  .vd-v-panel { display: flex; }
  /* Zbalený panel: len úchyt, názov a rezervácia; rozbalený: všetko (počítadlo, šípky, téma, detaily). */
  .vd-v-panel { max-height: none; }
  .vd-v-panel.is-open { max-height: 78vh; }
  .vd-v-handle { display: block; position: relative; flex: none; width: 100%; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; touch-action: none; }
  .vd-v-handle::before { content: ""; position: absolute; left: 50%; top: 19px; width: 44px; height: 5px; margin-left: -22px; border-radius: 5px; background: color-mix(in srgb, var(--burgundy) 22%, transparent); }
  .vd-v-handle:focus-visible { outline: 2px solid var(--burgundy); outline-offset: -4px; border-radius: 12px; }
  .vd-v-panel:not(.is-open) .vd-v-top, .vd-v-panel:not(.is-open) .vd-card-topic, .vd-v-panel:not(.is-open) .vd-v-row { display: none; }
  .vd-v-panel:not(.is-open) .vd-v-scroll { flex: none; overflow: hidden; padding: 0 18px 6px; }
  .vd-v-panel:not(.is-open) .vd-v-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
  .vd-v-panel:not(.is-open) .vd-v-actions { border-top: 0; padding-top: 6px; }
  .vd-v-panel.is-open .vd-v-top { padding-top: 0; }
  .vd-v-more { display: none; }
  .vd-v-panel, .vd-stage-close { z-index: 3; }
  .vd-locked { padding-bottom: 120px; }
  /* Zbalený panel (Erik 22. 10.): menší, nad videom len úchyt a tlačidlo rezervácie; názov ostáva pre čítačky. */
  .vd-v-panel:not(.is-open) { background: transparent; box-shadow: none; overflow: visible; }
  .vd-v-panel:not(.is-open) .vd-v-handle { height: 26px; }
  .vd-v-panel:not(.is-open) .vd-v-handle::before { top: 8px; background: color-mix(in srgb, var(--white) 75%, transparent); }
  .vd-v-panel:not(.is-open) .vd-v-scroll { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .vd-v-panel:not(.is-open) .vd-v-actions { display: flex; justify-content: center; padding: 0 0 4px; }
  .vd-v-panel:not(.is-open) .vd-v-actions .btn { width: auto; min-height: 48px; padding-inline: 22px; box-shadow: var(--shadow-float); }
  .vd-stage-close { display: grid; place-items: center; position: absolute; top: 18px; left: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--void) 45%, transparent); color: var(--white); cursor: pointer; backdrop-filter: blur(6px); }
  .vd-v-nav [data-close] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vd-viewer[open] { animation: none; }
  .vd-thumb img, .vd-play, .vd-v-panel, .vd-v-video { transition: none; }
}
.vd-v-free { margin: 0 0 var(--app-space-3); padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--burgundy) 8%, var(--white)); color: var(--burgundy); font-size: var(--app-body-sm-size); font-weight: 600; }
.vd-v-free[hidden] { display: none; }
