/* Productio web — video "Productio za 2 minuty" + statické doplňky (bez Reactu). */

.pv [hidden], .pv-jump[hidden], #mobile-menu[hidden] { display: none !important; }

/* ---- video v hero ---- */
.pv { margin: 3.5rem auto 0; max-width: 960px; scroll-margin-top: 112px; text-align: left; }
.pv-frame {
  position: relative; aspect-ratio: 1440 / 860; overflow: hidden;
  border-radius: 16px; border: 1px solid #243352; background: #121d30;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(58, 182, 255, 0.08), 0 0 80px rgba(24, 96, 240, 0.18);
}
.pv-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #121d30; }

.pv-play {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(18, 29, 48, 0) 55%, rgba(18, 29, 48, 0.75) 100%);
  color: #fff; font: inherit;
}
.pv-play-circle {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: #1860f0; box-shadow: 0 0 0 10px rgba(24, 96, 240, 0.25), 0 12px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
  animation: pv-pulse 2.4s ease-out infinite;
}
.pv-play-circle svg { width: 38px; height: 38px; margin-left: 6px; fill: #fff; }
.pv-play:hover .pv-play-circle, .pv-play:focus-visible .pv-play-circle { transform: scale(1.08); background: #3ab6ff; }
.pv-play:focus-visible { outline: 3px solid #3ab6ff; outline-offset: -3px; }
.pv-play-label {
  position: absolute; left: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.8rem; border-radius: 999px; background: rgba(18, 29, 48, 0.85); border: 1px solid #243352;
  font-size: 0.85rem; color: #c8d0dc;
}
.pv-play-label strong { color: #fff; font-weight: 600; }
@keyframes pv-pulse {
  0% { box-shadow: 0 0 0 0 rgba(24, 96, 240, 0.55), 0 12px 40px rgba(0, 0, 0, 0.45); }
  70% { box-shadow: 0 0 0 22px rgba(24, 96, 240, 0), 0 12px 40px rgba(0, 0, 0, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(24, 96, 240, 0), 0 12px 40px rgba(0, 0, 0, 0.45); }
}

.pv-end {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem; padding: 1.5rem; text-align: center; background: rgba(18, 29, 48, 0.94);
}
.pv-end[hidden] { display: none; }
.pv-end-title { color: #f8fafc; font-size: clamp(1.15rem, 2.6vw, 1.75rem); font-weight: 600; line-height: 1.25; }
.pv-end-sub { color: #8892a4; font-size: 0.95rem; margin-top: -0.5rem; }
.pv-end-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.pv-btn {
  display: inline-flex; align-items: center; padding: 0.85rem 1.4rem; border-radius: 0.375rem;
  font-weight: 500; cursor: pointer; transition: background 0.2s, border-color 0.2s; font: inherit;
}
.pv-btn-primary { background: #1860f0; color: #fff; border: 1px solid #1860f0; }
.pv-btn-primary:hover { background: #3ab6ff; border-color: #3ab6ff; }
.pv-btn-ghost { background: transparent; color: #f8fafc; border: 1px solid #243352; }
.pv-btn-ghost:hover { border-color: #1860f0; }

/* kapitoly */
.pv-chapters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.1rem; }
.pv-chap {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem; border-radius: 999px;
  border: 1px solid #243352; background: rgba(18, 21, 28, 0.6); color: #c8d0dc; font-size: 0.85rem;
  cursor: pointer; white-space: nowrap; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pv-chap:hover { border-color: #1860f0; color: #fff; }
.pv-chap.is-active { border-color: #3ab6ff; background: rgba(58, 182, 255, 0.12); color: #fff; }
.pv-chap-t { color: #3ab6ff; font-variant-numeric: tabular-nums; font-weight: 600; }
.pv-chap[hidden] { display: none; }

/* přepis */
.pv-transcript { margin: 1rem auto 0; max-width: 720px; color: #8892a4; font-size: 0.9rem; text-align: center; }
.pv-transcript summary { cursor: pointer; display: inline-block; padding: 0.25rem 0.5rem; }
.pv-transcript summary:hover { color: #f8fafc; }
.pv-transcript[open] summary { margin-bottom: 0.5rem; }
.pv-transcript p { text-align: left; line-height: 1.65; margin-top: 0.6rem; }

/* odkaz z karty funkce na místo ve videu */
.pv-jump {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.9rem;
  color: #3ab6ff; font-size: 0.875rem; font-weight: 600;
}
.pv-jump:hover { color: #fff; }
.pv-jump-t { color: #8892a4; font-weight: 500; font-variant-numeric: tabular-nums; }

/* lightbox karuselu (dříve React) */
.site-lightbox {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem;
  background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(4px); cursor: zoom-out;
}
.site-lightbox img { max-width: 95vw; max-height: 92vh; object-fit: contain; border-radius: 0.5rem; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); }
.site-lightbox button {
  position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.25rem; cursor: pointer; border: 0;
}

@media (max-width: 640px) {
  .pv { margin-top: 2.5rem; }
  .pv-frame { border-radius: 12px; }
  .pv-play-circle { width: 68px; height: 68px; }
  .pv-play-circle svg { width: 28px; height: 28px; margin-left: 4px; }
  .pv-play-label { left: 10px; bottom: 10px; font-size: 0.75rem; padding: 0.3rem 0.6rem; }
  .pv-chapters {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 0.25rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .pv-chapters::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pv-play-circle { animation: none; }
}

/* ---- video jako dlaždice (náhled + text); po kliknutí se rozbalí na plnou velikost ---- */
.pv-tile-text { display: none; }
.pv--tile {
  display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 1.75rem; align-items: center;
  max-width: 900px; padding: 1.25rem; border-radius: 16px;
  /* rámeček ve stylu karty „Za 14 dní s Productio“, jen v modré barvě značky */
  border: 1px solid rgba(58, 182, 255, 0.4);
  background: linear-gradient(rgba(58, 182, 255, 0.06), rgba(58, 182, 255, 0.06)), rgba(18, 29, 48, 0.92);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 40px rgba(24, 96, 240, 0.18);
}
.pv--tile .pv-frame { border-radius: 10px; box-shadow: none; }
.pv--tile .pv-play-circle { width: 64px; height: 64px; }
.pv--tile .pv-play-circle svg { width: 26px; height: 26px; margin-left: 4px; }
.pv--tile .pv-play-label, .pv--tile .pv-chapters, .pv--tile .pv-transcript { display: none; }
.pv--tile .pv-tile-text { display: flex; flex-direction: column; gap: 0.55rem; cursor: pointer; text-align: left; }
.pv-tile-kicker { color: #3ab6ff; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.pv-tile-title { color: #f8fafc; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.2; }
.pv-tile-desc { color: #c8d0dc; font-size: 1rem; line-height: 1.55; }
.pv-tile-more { color: #3ab6ff; font-weight: 600; }
.pv-tile-text:hover .pv-tile-more { color: #fff; }
.pv-grow { animation: pv-grow 0.35s ease-out; }
@keyframes pv-grow { from { opacity: 0.4; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .pv--tile { grid-template-columns: 1fr; gap: 1rem; padding: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) { .pv-grow { animation: none; } }
