/* ============================================================
   AFLM — Video biblioteka page styles
   ============================================================ */

.vid-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; color: var(--gold-400);
  margin-bottom: 18px;
}
.vid-back:hover { color: var(--gold-300); }

/* ---------- Hero ---------- */
.vid-hero {
  position: relative; background: radial-gradient(ellipse at 15% 0%, #12233b 0%, var(--navy-950) 62%);
  color: var(--text-light); padding: 96px 0 130px; overflow: hidden;
}
.vid-hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 72px; align-items: center; }
.vid-hero-text h1 { font-size: clamp(2.2rem, 3.8vw, 3.2rem); margin-top: 20px; color: var(--text-light); }
.vid-tagline { margin: 20px 0 0; font-size: 1.14rem; font-weight: 600; color: var(--gold-300); line-height: 1.6; }
.vid-desc { margin: 22px 0 0; max-width: 520px; color: var(--text-muted-onnavy); line-height: 1.9; font-size: 0.98rem; }

.vid-feature-row { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.vid-feature { display: flex; align-items: center; gap: 13px; max-width: 160px; }
.vid-feature .ic {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; color: var(--gold-400);
}
.vid-feature span { font-size: 0.8rem; font-weight: 600; color: var(--text-muted-onnavy); line-height: 1.45; }

.vid-hero-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid rgba(255,255,255,0.08); }
.vid-hero-image img { width: 100%; display: block; }

@media (max-width: 900px) {
  .vid-hero-grid { grid-template-columns: 1fr; }
  .vid-hero-image { order: -1; }
}

/* ---------- Public / professional split ---------- */
.vid-split { padding: 0 0 110px; margin-top: -54px; position: relative; z-index: 2; }
.vid-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.vid-split-card {
  display: flex; background: var(--bg-page); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vid-split-card:hover { transform: translateY(-4px); }
.vid-split-card img { width: 36%; object-fit: cover; display: block; flex-shrink: 0; }
.vid-split-card-body { padding: 42px 40px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.vid-split-card .eyebrow2 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 12px; }
.vid-split-card h3 { font-size: 1.5rem; color: var(--ink); margin-bottom: 16px; line-height: 1.3; }
.vid-split-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 28px; }
.vid-split-card .btn { align-self: flex-start; line-height: 1.3; white-space: normal; }
.vid-split-note { display: block; margin-top: 12px; font-size: 0.74rem; color: var(--text-muted); }

.vid-stats-row { display: flex; justify-content: space-between; gap: 32px; margin-top: 76px; flex-wrap: wrap; }
.vid-stat { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 220px; }
.vid-stat .ic {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-alt-2); display: flex; align-items: center; justify-content: center; color: var(--gold-600);
}
.vid-stat strong { display: block; font-size: 0.95rem; color: var(--ink); margin-bottom: 4px; }
.vid-stat span { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 800px) {
  .vid-split-grid { grid-template-columns: 1fr; }
  .vid-split-card { flex-direction: column; }
  .vid-split-card img { width: 100%; aspect-ratio: 16/9; }
  .vid-split-card-body { padding: 32px 28px; }
}

/* ---------- Access code gate ---------- */
.vid-gate {
  max-width: 540px; margin: 0 auto; text-align: center;
  background: var(--navy-800); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 52px 44px;
}
.vid-gate h2 { font-size: 1.4rem; color: var(--text-light); margin-bottom: 14px; }
.vid-gate-form-wrap p { font-size: 0.9rem; color: var(--text-muted-onnavy); line-height: 1.7; margin-bottom: 30px; }
.vid-gate-form-wrap p a { color: var(--gold-400); font-weight: 600; }
.vid-gate-form { display: flex; gap: 12px; }
.vid-gate-form input {
  flex: 1; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.05);
  color: #fff; font-size: 0.92rem; font-family: inherit;
}
.vid-gate-form input::placeholder { color: var(--text-muted-onnavy); }
.vid-gate-form input:focus { outline: none; border-color: var(--gold-500); }
.vid-gate-error { display: none; color: #e38a8a; font-size: 0.8rem; margin-top: 16px; }
.vid-gate-error.show { display: block; }

.vid-gate-success { display: none; }
.vid-gate-check {
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
  width: 48px; height: 48px; border-radius: 50%; background: rgba(207,157,79,0.15); color: var(--gold-400);
}
.vid-gate-success p { font-size: 0.9rem; color: var(--text-muted-onnavy); line-height: 1.7; margin-bottom: 28px; }

.vid-gate.unlocked .vid-gate-form-wrap { display: none; }
.vid-gate.unlocked .vid-gate-success { display: block; }

@media (max-width: 560px) {
  .vid-gate { padding: 40px 26px; }
  .vid-gate-form { flex-direction: column; }
}

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }

.video-card {
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  background: var(--bg-page); border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.on-navy .video-card {
  background: var(--navy-800); border-color: rgba(255,255,255,0.08);
}
.on-navy .video-card:hover { border-color: var(--gold-500); }

.video-thumb {
  position: relative; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
}
.on-navy .video-thumb { background: linear-gradient(135deg, var(--navy-700), var(--navy-950)); }

.video-thumb .ep-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(6,15,28,0.72); color: #fff;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 20px;
}

.video-thumb .play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.video-card:hover .play-btn { background: var(--gold-500); border-color: var(--gold-500); transform: scale(1.06); }
.video-thumb .play-btn svg { width: 16px; height: 16px; color: #fff; margin-left: 2px; }

.video-card-body { padding: 20px 22px 24px; }
.video-card-body h4 { font-size: 0.98rem; line-height: 1.4; color: var(--ink); margin-bottom: 12px; }
.on-navy .video-card-body h4 { color: var(--text-light); }
.video-card-body .watch {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-600); display: inline-flex; align-items: center; gap: 6px;
}
.on-navy .video-card-body .watch { color: var(--gold-400); }

@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- "Uskoro" toast ---------- */
.video-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 999;
  transform: translateX(-50%) translateY(16px);
  background: var(--navy-950); color: #fff;
  padding: 14px 24px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  box-shadow: var(--shadow-card);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 90vw; text-align: center;
}
.video-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
