/* File: wp-content/themes/stric/assets/css/video-watch.css */
/* ====== Osnovni layout stranice ====== */
.watch-page .watch-card {
  margin: 0 auto;
  max-width: 1100px;
}
.watch-page .watch-header h1 {
  font-size: clamp(22px, 2.6vw, 40px);
  margin: 16px 0 24px;
}
.watch-page .watch-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .watch-page .watch-layout {
    /* levi: video, desni: info */
    grid-template-columns: 480fr 520fr;
    gap: 40px;
  }
}

/* ====== Levi (video) stub ====== */
.watch-page .watch-left .watch-video-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: #000;
  border-radius: 0;
  overflow: hidden;
}

/* ====== Desni (info) stub ====== */
.watch-page .watch-right {
  align-self: start;
}
.watch-page .watch-right .watch-section-title {
  font-size: clamp(16px, 1.6vw, 22px);
  margin: 0 0 8px;
}
.watch-page .watch-right .watch-desc {
  line-height: 1.6;
  margin-bottom: 16px;
}
.watch-page .watch-right .watch-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.watch-page .watch-right .watch-meta-list li {
  margin: 6px 0;
}
.watch-page .watch-right .btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: #00343b;
  color: #fff;
  text-decoration: none;
}
.watch-page .watch-right .btn:hover { opacity: .9; }

/* ====== Globalni grid fallback (šire od 1100px) ====== */
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}
@media (max-width: 992px) {
  .watch-layout { grid-template-columns: 1fr; }
}

/* ====== Video wrapper (portret-friendly, skraćena visina) ====== */
.watch-video-wrap {
  position: relative;
  width: 100%;
  max-width: 1080px;
  /* plići player, zadržava prirodnu proporciju videa */
  height: clamp(420px, 72vh, 820px);
  margin: 0 auto 1.25rem;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .watch-video-wrap { height: clamp(360px, 65vh, 720px); }
}

/* Kadar za pan pri uvećanju (skriveni skrolovi) */
.watch-video-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
  scrollbar-width: none;
}
.watch-video-frame::-webkit-scrollbar { display: none; }

/* Sam video: puni visinu kadra; širina se prilagođava (portret ostaje portret) */
.watch-video {
  height: 100%;
  width: 100%;
  max-width: none;
  object-fit: cover;
  transform-origin: center center;
  transition: transform .2s ease;
  display: block;
  margin: 0 auto;
  background: #000;
}

/* ====== Centralni Play/Pause ====== */
.watch-play-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .2s ease;
  z-index: 3;
}
.watch-play-toggle svg {
  width: 28px;
  height: 28px;
  display: block;
}
.watch-video-wrap.is-playing .watch-play-toggle {
  opacity: 0;
  pointer-events: none;
}

/* ====== Zoom kontrole ====== */
.watch-zoom-controls {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
}
.zoom-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 768px) {
  .watch-zoom-controls { display: none; }
}

/* Kursor pri panu */
.watch-video-wrap.is-zoomed .watch-video { cursor: grab; }
.watch-video-wrap.is-zoomed .watch-video.grabbing { cursor: grabbing; }

/* ====== Povezani videi ====== */
.watch-related {
  margin-top: 32px;
}
.watch-related .watch-section-title {
  font-size: clamp(18px, 1.8vw, 24px);
  margin: 0 0 14px;
}
.watch-related-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
@media (min-width: 1200px) {
  .watch-related-grid { grid-template-columns: repeat(6, 1fr); }
}
.watch-related-item { display: block; }
.watch-related-link {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.watch-related-thumb {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16; /* portretni thumb */
  background: #111;
  border-radius: 10px;
  overflow: hidden;
}
.watch-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.watch-related-play {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(0,0,0,.6);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}
.watch-related-title {
  font-size: 14px;
  line-height: 1.35;
}

/* ====== Fokus vidljivost (a11y) ====== */
.watch-play-toggle:focus-visible,
.zoom-btn:focus-visible,
.watch-related-link:focus-visible {
  outline: 2px solid #00A3B0;
  outline-offset: 2px;
}

/* ====== Sitne UX dorade ====== */
.watch-video-wrap .watch-video::-webkit-media-controls-enclosure {
  background: transparent;
}
