/* მთავარი გვერდის ჰერო: ერთი ფილმი მთელ ეკრანზე (2026-10-25, მფლობელის არჩევანი „ა";
   Figma: OKVWnswuoJ6ULGt7x4GykT, გვერდი „ჰერო: ვარიანტები"). მარკაპი templates/index.html,
   ქცევა app.js buildHero. ძველი 9-ბარათიანი სტილი ge-custom.css-შია (~68–94, 1197–1203, 2462–2467),
   აქ ყველაფერი html:not(.tv-mode) .ge-hero--full-ზეა მიბმული, ანუ ტელევიზორის რეჟიმი (tv.css) უცვლელია.
   ჰერო ზედა მენიუს ქვეშ შედის (უარყოფითი margin-top), მენიუ მის თავზე გამჭვირვალედ დგას. */

html:not(.tv-mode) .page-home {
  --hero-x: clamp(20px, 3.4vw, 64px);
  --hero-hdr: 76px;   /* header-v2.css: დესკტოპის მენიუს სიმაღლე ზემოთ */
}
@media (max-width: 1024px) {
  html:not(.tv-mode) .page-home { --hero-x: 16px; --hero-hdr: 106px; } /* ლოგოს ზოლი + ძებნა */
}

/* სექცია კიდიდან კიდემდე: container/row/col-ის გუტერები ჰეროში აღარ გვჭირდება */
html:not(.tv-mode) .page-home .hero { margin-top: calc(-1 * var(--hero-hdr)) !important; position: relative; z-index: 1; }
html:not(.tv-mode) .page-home .hero > .container { width: 100% !important; max-width: none !important; padding: 0 !important; }
html:not(.tv-mode) .page-home .hero > .container > .row { margin: 0 !important; }
html:not(.tv-mode) .page-home .hero > .container > .row > .col-md-12 { padding: 0 !important; }

html:not(.tv-mode) .ge-hero.ge-hero--full {
  display: block; position: relative; overflow: hidden; gap: 0;
  height: clamp(560px, 88vh, 900px); margin: 0;
  touch-action: pan-y; /* ვერტიკალური სქროლი ბრაუზერისაა, ჰორიზონტალური გასმა ჩვენი */
}

/* მაუსით გადათრევა (app.js buildHero) */
@media (hover: hover) and (pointer: fine) {
  html:not(.tv-mode) .ge-hero--full .ge-hero__featured { cursor: grab; }
  html:not(.tv-mode) .ge-hero--full.is-dragging,
  html:not(.tv-mode) .ge-hero--full.is-dragging .ge-hero__featured { cursor: grabbing; user-select: none; }
}

/* ---- ფონი ---- */
html:not(.tv-mode) .ge-hero--full .ge-hero__featured {
  position: absolute; inset: 0; flex: none; max-width: none; height: auto; border-radius: 0; overflow: hidden;
}
html:not(.tv-mode) .ge-hero--full .ge-hero__bg { background-position: center 30%; transition: none; }
html:not(.tv-mode) .ge-hero--full .ge-hero__bg.is-in { animation: geHeroIn .7s ease both; }
@keyframes geHeroIn { from { opacity: .35; transform: scale(1.03); } to { opacity: 1; transform: none; } }
html:not(.tv-mode) .ge-hero--full .ge-hero__featured::after {
  background:
    /* ქვედა გადასვლა ზემოთ (პირველი = ყველაზე ზედა ფენა): ადრე მარცხენა შავი გრადიენტი ბოლომდე ჩადიოდა და ჰეროს
       ქვედა-მარცხენა კუთხე გვერდზე მუქი იყო (RGB 5 vs 15) — ჰეროს ბოლოში ხაზი ჩანდა (2026-10-29) */
    linear-gradient(0deg, #0f0f0f 0%, rgba(15, 15, 15, .85) 12%, rgba(15, 15, 15, 0) 42%),
    linear-gradient(90deg, rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .5) 38%, rgba(0, 0, 0, 0) 68%),
    linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 24%);
}

/* ---- ტექსტი და ღილაკები ---- */
html:not(.tv-mode) .ge-hero--full .ge-hero__info {
  position: absolute; left: var(--hero-x); right: auto; bottom: 118px; z-index: 3;
  width: min(600px, calc(100% - 2 * var(--hero-x))); max-width: none;
}
html:not(.tv-mode) .ge-hero--full .ge-hero__title {
  /* BPG Mrgvlovani Caps განიერია: 60px-ზე საშუალო სათაურიც ორ ხაზზე გადადიოდა */
  font-size: clamp(30px, 3.4vw, 50px); line-height: 1.15; margin: 0 0 14px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}
html:not(.tv-mode) .ge-hero--full .ge-hero__meta { gap: 12px; margin-bottom: 14px; color: rgba(255, 255, 255, .78); font-size: 15px; }
html:not(.tv-mode) .ge-hero--full .ge-hero__year:empty { display: none; }
html:not(.tv-mode) .ge-hero--full .ge-hero__genres span { color: rgba(255, 255, 255, .78); font-size: 15px; }
html:not(.tv-mode) .ge-hero--full .ge-hero__desc {
  margin: 0 0 22px; color: rgba(255, 255, 255, .78); font-size: 16px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-family: "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
html:not(.tv-mode) .ge-hero--full .ge-hero__desc:empty { display: none; }
html:not(.tv-mode) .ge-hero--full .ge-hero__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html:not(.tv-mode) .ge-hero--full .ge-hero__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px 0 20px; border-radius: 10px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); color: #fff !important;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .2s ease, transform .15s ease;
}
html:not(.tv-mode) .ge-hero--full .ge-hero__btn:hover { background: rgba(255, 255, 255, .18); }
html:not(.tv-mode) .ge-hero--full .ge-hero__btn--play { background: var(--ge-red); border-color: transparent; }
html:not(.tv-mode) .ge-hero--full .ge-hero__btn--play:hover { background: #009783; }
html:not(.tv-mode) .ge-hero--full .ge-hero__btn:active { transform: scale(.97); }
/* ♥ — watchlist.js-ის .card__fav (დელეგირებული კლიკი), აქ მხოლოდ იერი */
html:not(.tv-mode) .ge-hero--full .ge-hero__fav {
  position: static; inset: auto; width: 48px; height: 48px; padding: 0; margin: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; opacity: 1; transform: none;
  background: rgba(15, 15, 15, .55); border: 1px solid rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color .2s ease;
}
html:not(.tv-mode) .ge-hero--full .ge-hero__fav:hover { background: rgba(255, 255, 255, .16); }
html:not(.tv-mode) .ge-hero--full .ge-hero__fav.is-active { background: var(--ge-red); border-color: transparent; }
html:not(.tv-mode) .ge-hero--full .ge-hero__fav.is-active svg { fill: currentColor; }

/* ---- ისრები ---- */
html:not(.tv-mode) .ge-hero--full .ge-hero__arrows {
  position: absolute; right: var(--hero-x); bottom: 118px; z-index: 3; display: flex; gap: 12px;
}
html:not(.tv-mode) .ge-hero--full .ge-hero__arrow {
  width: 48px; height: 48px; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 15, 15, .55); border: 1px solid rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color .2s ease, transform .15s ease;
}
html:not(.tv-mode) .ge-hero--full .ge-hero__arrow:hover { background: rgba(255, 255, 255, .18); }
html:not(.tv-mode) .ge-hero--full .ge-hero__arrow:active { transform: scale(.94); }

/* ---- ინდიკატორის ზოლები (ყოფილი ესკიზები): აქტიურში პროგრესი ავსდება --hero-ms-ში ---- */
html:not(.tv-mode) .ge-hero--full .ge-hero__thumbs {
  position: absolute; left: var(--hero-x); bottom: 72px; z-index: 3;
  display: flex; gap: 6px; flex: none; grid-template-columns: none; grid-template-rows: none;
}
html:not(.tv-mode) .ge-hero--full .ge-hero__thumb {
  position: relative; display: block; width: 20px; height: 4px; padding: 8px 0; box-sizing: content-box;
  background: none; border-radius: 0; overflow: visible; outline: none; transform: none !important; box-shadow: none !important;
  transition: width .3s ease;
}
html:not(.tv-mode) .ge-hero--full .ge-hero__thumb::before,
html:not(.tv-mode) .ge-hero--full .ge-hero__thumb::after {
  content: ""; position: absolute; left: 0; top: 8px; height: 4px; border-radius: 2px;
}
html:not(.tv-mode) .ge-hero--full .ge-hero__thumb::before { right: 0; background: rgba(255, 255, 255, .3); transition: background-color .2s ease; }
html:not(.tv-mode) .ge-hero--full .ge-hero__thumb:hover::before { background: rgba(255, 255, 255, .55); }
html:not(.tv-mode) .ge-hero--full .ge-hero__thumb.active { width: 48px; outline: none; }
html:not(.tv-mode) .ge-hero--full .ge-hero__thumb.active::after {
  width: 100%; background: #fff; transform-origin: left center;
  animation: geHeroProgress var(--hero-ms, 7000ms) linear both;
}
html:not(.tv-mode) .ge-hero--full.is-paused .ge-hero__thumb.active::after { animation-play-state: paused; }
html:not(.tv-mode) .ge-hero--full.is-single .ge-hero__thumbs,
html:not(.tv-mode) .ge-hero--full.is-single .ge-hero__arrows { display: none; }
@keyframes geHeroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html:not(.tv-mode) .ge-hero--full .ge-hero__thumb-title {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.tv-mode) .ge-hero--full .ge-hero__bg.is-in { animation: none; }
  html:not(.tv-mode) .ge-hero--full .ge-hero__thumb.active::after { animation: none; transform: none; }
}

/* ---- მობილური / პლანშეტი ---- */
@media (max-width: 1024px) {
  html:not(.tv-mode) .ge-hero.ge-hero--full { height: clamp(520px, 82vh, 720px); }
  html:not(.tv-mode) .ge-hero--full .ge-hero__bg { background-position: center 20%; }
  html:not(.tv-mode) .ge-hero--full .ge-hero__featured::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 26%),
      linear-gradient(0deg, #0f0f0f 0%, rgba(15, 15, 15, .9) 22%, rgba(15, 15, 15, 0) 58%);
  }
  /* ტექსტი ცენტრში, ქვემოთ (Figma „ა · მობილური") */
  html:not(.tv-mode) .ge-hero--full .ge-hero__info {
    left: var(--hero-x); right: var(--hero-x); width: auto; bottom: 56px; text-align: center;
  }
  html:not(.tv-mode) .ge-hero--full .ge-hero__title { font-size: clamp(26px, 7.6vw, 40px); margin-bottom: 10px; }
  html:not(.tv-mode) .ge-hero--full .ge-hero__meta { justify-content: center; gap: 8px; margin-bottom: 16px; font-size: 13px; }
  /* ტელეფონზე ორი ჟანრი, თორემ მეტა სამ ხაზზე გადადიოდა („მძაფრ-სიუჟეტიანი" დეფისზე წყდებოდა) */
  html:not(.tv-mode) .ge-hero--full .ge-hero__genres span { font-size: 13px; white-space: nowrap; }
  html:not(.tv-mode) .ge-hero--full .ge-hero__genres span:nth-child(n+3) { display: none; }
  html:not(.tv-mode) .ge-hero--full .ge-hero__genres span:nth-child(2)::after { display: none; }
  html:not(.tv-mode) .ge-hero--full .ge-hero__desc { display: none; }
  html:not(.tv-mode) .ge-hero--full .ge-hero__actions { justify-content: center; gap: 10px; }
  html:not(.tv-mode) .ge-hero--full #heroMore { display: none; } /* ტელეფონზე ადგილი: ყურება + ♥ */
  html:not(.tv-mode) .ge-hero--full .ge-hero__btn { height: 46px; font-size: 15px; padding: 0 26px 0 22px; }
  html:not(.tv-mode) .ge-hero--full .ge-hero__fav { width: 46px; height: 46px; }
  /* ისრები ვიწრო ეკრანზეც (მაგ. შევიწროებული ბრაუზერი მაუსით, სადაც გასმა არ არის): სურათის ორ მხარეს */
  html:not(.tv-mode) .ge-hero--full .ge-hero__arrows {
    left: 10px; right: 10px; top: 40%; bottom: auto; justify-content: space-between; pointer-events: none;
  }
  html:not(.tv-mode) .ge-hero--full .ge-hero__arrow { width: 40px; height: 40px; pointer-events: auto; }
  html:not(.tv-mode) .ge-hero--full .ge-hero__thumbs { left: 50%; transform: translateX(-50%); bottom: 20px; gap: 5px; }
  html:not(.tv-mode) .ge-hero--full .ge-hero__thumb { width: 12px; }
  html:not(.tv-mode) .ge-hero--full .ge-hero__thumb.active { width: 30px; }
}

/* ---- 2026-10-29 (მფლობელი): სურათი დაჭერით ფილმზე აღარ გადადის — კურსორიც ჩვეულებრივია ----
   ინდიკატორები უფრო დიდი და მკაფიო: 4px სისქის 28px ზოლები (აქტიური 64px, პროგრესით), ბნელი კონტური, რომ ღია
   კადრზეც ჩანდეს, და 12px-იანი დასაჭერი არე. ადრე 20px და მკრთალი იყო — „თითქოს არ მუშაობს". */
html:not(.tv-mode) .ge-hero--full .ge-hero__featured { cursor: default; }
html:not(.tv-mode) .ge-hero--full .ge-hero__thumbs { gap: 8px; }
html:not(.tv-mode) .ge-hero--full .ge-hero__thumb { width: 28px; height: 4px; padding: 12px 0; cursor: pointer; }
html:not(.tv-mode) .ge-hero--full .ge-hero__thumb::before,
html:not(.tv-mode) .ge-hero--full .ge-hero__thumb::after { top: 12px; height: 4px; border-radius: 4px; }
html:not(.tv-mode) .ge-hero--full .ge-hero__thumb::before { background: rgba(255, 255, 255, .32); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
html:not(.tv-mode) .ge-hero--full .ge-hero__thumb:hover::before { background: rgba(255, 255, 255, .65); }
html:not(.tv-mode) .ge-hero--full .ge-hero__thumb.active { width: 64px; }
html:not(.tv-mode) .ge-hero--full .ge-hero__thumb.active::before { background: rgba(255, 255, 255, .38); }
@media (max-width: 1024px) {
  html:not(.tv-mode) .ge-hero--full .ge-hero__thumbs { gap: 6px; }
  html:not(.tv-mode) .ge-hero--full .ge-hero__thumb { width: 16px; }
  html:not(.tv-mode) .ge-hero--full .ge-hero__thumb.active { width: 40px; }
}

/* ---- IMDb ჰეროზე (2026-10-29, მფლობელი: „IMDb-ის სტილი გაასწორე") — ნამდვილი IMDb-ის ნიშანივით: ყვითელ
   ფირფიტაზე შავი მსხვილი „IMDb" (ლათინური შრიფტით, არა ქართულით), გვერდით თეთრი ქულა და მკრთალი „/10". ---- */
.ge-hero__imdb { display: inline-flex; align-items: center; gap: 8px; line-height: 1; white-space: nowrap; }
.ge-hero__imdb-logo {
  display: inline-block; padding: 4px 6px 3px; border-radius: 4px; background: #f5c518; color: #000;
  font: 900 13px/1 "Arial Black", "Arial Bold", Arial, sans-serif; letter-spacing: -.4px;
}
.ge-hero__imdb-score { color: #fff; font: 700 16px/1 Arial, sans-serif; }
.ge-hero__imdb-max { color: rgba(255, 255, 255, .5); font: 500 13px/1 Arial, sans-serif; margin-left: -6px; }
@media (max-width: 1024px) {
  .ge-hero__imdb { gap: 6px; }
  .ge-hero__imdb-logo { font-size: 11px; padding: 3px 5px 2px; }
  .ge-hero__imdb-score { font-size: 14px; }
  .ge-hero__imdb-max { font-size: 12px; margin-left: -4px; }
}
