/* hero.css — Cinematic Hero (шинэчлэгдсэн) */

/* ── Үндсэн контейнер ───────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: flex-end;
}

/* ── YouTube видео контейнер ────────────────────────────────── */
.hero-video-container {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
#ytWrapper {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#heroYTFrame,
#heroYTFrame iframe {
  position: absolute; top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}

/* ── Постер зураг (Ken Burns) ───────────────────────────────── */
@keyframes heroKenBurns {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.07) translate(-0.8%, -0.4%); }
}

.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition: opacity 0.9s ease;
  z-index: 2;
  animation: heroKenBurns 16s ease-out forwards;
  transform-origin: center center;
}

/* ── Кино орчин виньетка ────────────────────────────────────── */
.hero-vignette {
  position: absolute; inset: 0;
  z-index: 3;
  /* Зүүн тал: текст уншигдахуйц хар, доод тал: шилжилт */
  background:
    linear-gradient(to right,  rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.6) 100%),
    linear-gradient(to top,    #000 0%, rgba(0,0,0,0.5) 30%, transparent 60%);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* ── Агуулгын блок ──────────────────────────────────────────── */
.hero-body {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 50px 90px;
  max-width: 780px;
}

/* ── Тэг (жишээ: 🔥 ДЭЛХИЙН ШИЛДЭГ) ───────────────────────── */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
  width: fit-content;
  box-shadow: 0 4px 16px rgba(229,9,20,.4);
}

/* ── Гарчиг ─────────────────────────────────────────────────── */
.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 2px 2px 12px rgba(0,0,0,.9);
  white-space: normal;
}

/* ── Мета (рейтинг, он, жанр) ──────────────────────────────── */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  text-shadow: 1px 1px 4px rgba(0,0,0,.8);
}
.hero-meta span      { font-size: 14px; color: var(--text); font-weight: 500; }
.hero-meta .star     { color: var(--gold); font-weight: 700; font-size: 15px; }
.hero-meta .tag {
  background: rgba(255,255,255,.14);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.1);
  letter-spacing: 0.3px;
}

/* ── Тайлбар (overview) ─────────────────────────────────────── */
.hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 540px;
  text-shadow: 1px 1px 6px rgba(0,0,0,.9);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Товчнууд ───────────────────────────────────────────────── */
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-watch {
  display: flex; align-items: center; gap: 8px;
  background: var(--text); color: #000;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 15px; font-weight: 700;
  border: none; cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.btn-watch:hover {
  background: rgba(255,255,255,.85);
  transform: scale(1.04);
}
.btn-more {
  display: flex; align-items: center; gap: 8px;
  background: rgba(109,109,110,0.65);
  color: #fff;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 15px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all .2s;
  backdrop-filter: blur(6px);
}
.btn-more:hover {
  background: rgba(109,109,110,.9);
  transform: scale(1.04);
}
.btn-volume {
  display: flex; align-items: center; gap: 8px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
  padding: 13px 20px;
  border-radius: 50px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  backdrop-filter: blur(5px);
}
.btn-volume:hover {
  background: rgba(255,255,255,.18);
  border-color: #fff;
}

/* ── Навигаций цэгүүд ───────────────────────────────────────── */
.hero-dots {
  position: absolute;
  bottom: 44px; right: 50px;
  display: flex;
  gap: 7px;
  z-index: 11;
}
.hero-dot {
  width: 10px; height: 10px;
  background: rgba(255,255,255,.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all .3s;
}
.hero-dot.active {
  background: var(--text);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(255,255,255,.5);
}

/* ── Progress bar ───────────────────────────────────────────── */
.hero-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.08);
  z-index: 20;
  overflow: hidden;
}
.hero-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), #ff6b6b, var(--red));
  background-size: 200% 100%;
  box-shadow: 0 0 12px var(--red-glow);
  animation: progressShimmer 2s linear infinite;
}
@keyframes progressShimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}


/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 1440px) {
  .hero-title { font-size: 72px; }
  .hero-desc  { font-size: 15px; max-width: 660px; }
}

@media (max-width: 1024px) {
  .hero-title { font-size: 44px; }
  .hero-desc  { font-size: 13px; max-width: 480px; }
}

@media (max-width: 768px) {
  .hero { height: 65vh; min-height: 430px; }
  .hero-body { padding: 0 16px 36px; width: 100%; }

  .hero-title {
    font-size: 26px !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
    white-space: normal !important;
  }
  .hero-meta  { gap: 8px; margin-bottom: 8px; }
  .hero-meta span { font-size: 12px; }
  .hero-meta .tag { font-size: 11px; padding: 2px 7px; }

  .hero-desc {
    font-size: 12px;
    margin-bottom: 14px;
    max-width: 100%;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }
  .hero-btns { gap: 6px; }
  .btn-watch,
  .btn-more,
  .btn-volume { padding: 8px 14px; font-size: 12px; border-radius: 5px; }
  .btn-watch svg { width: 14px; height: 14px; }

  .hero-dots { bottom: 18px; right: 16px; gap: 5px; }
  .hero-dot  { width: 7px; height: 7px; }
}
