/* „უყურე მეგობრებთან ერთად" — მთავარი გვერდის ბლოკი და ფანჯრები (templates/_watch_together.html).
   ფერი — საიტის მწვანე (--ge-red), crocowatch-ის ბლოკის განლაგებით: მარცხნივ ტექსტი + ღილაკები, მარჯვნივ პოსტერები. */
.wt { margin: 30px 0 10px; }
/* desktop: მარცხნივ ტექსტი, მარჯვნივ ოთახის „ცოცხალი" მაკეტი; უკან — ჩაბნელებული პოსტერების კედელი და მწვანე ნათება */
.wt__card { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px; align-items: center; overflow: hidden; border-radius: 20px; padding: 54px 56px; min-height: 400px;
  background: linear-gradient(115deg, #12161b 0%, #141a20 45%, #0f1317 100%);
  border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.wt__glow { position: absolute; z-index: -1; width: 560px; height: 560px; left: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 160, 138, .38), transparent 65%); filter: blur(10px);
  animation: wt-glow 9s ease-in-out infinite alternate; pointer-events: none; }
@keyframes wt-glow { to { transform: translate(120px, 60px) scale(1.1); } }
.wt__text { position: relative; z-index: 2; }
.wt__chip { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 12px 6px 10px;
  border-radius: 999px; background: rgba(22, 179, 157, .12); border: 1px solid rgba(22, 179, 157, .35);
  color: #5fe0cb; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.wt__chip i { width: 7px; height: 7px; border-radius: 50%; background: #2fe0b8; box-shadow: 0 0 0 0 rgba(47, 224, 184, .7);
  animation: wt-pulse 1.8s infinite; }
@keyframes wt-pulse { 70% { box-shadow: 0 0 0 8px rgba(47, 224, 184, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 224, 184, 0); } }
.wt__title { margin: 0 0 16px; font-size: 42px; line-height: 1.2; color: #fff; font-weight: 700; letter-spacing: -.01em; }
.wt__title em { font-style: normal; background: linear-gradient(90deg, #16b39d, #5fe0cb 60%, #16b39d);
  -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%;
  animation: wt-shine 6s linear infinite; }
@keyframes wt-shine { to { background-position: -200% 0; } }
.wt__lead { margin: 0 0 30px; color: #aab2be; font-size: 16px; line-height: 1.7; max-width: 520px; }
.wt__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.wt__btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 999px;
  padding: 14px 26px; background: var(--ge-red, #008170); color: #fff; font: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s, filter .18s; }
.wt__actions .wt__btn:not(.wt__btn--soft) { box-shadow: 0 10px 28px -8px rgba(0, 160, 138, .75); }
.wt__btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.wt__btn:disabled { opacity: .45; cursor: default; filter: none; transform: none; }
.wt__btn--soft { background: rgba(255, 255, 255, .06); color: #e8ecef; border: 1px solid rgba(255, 255, 255, .14); }
.wt__btn--soft:hover { background: rgba(255, 255, 255, .1); filter: none; }
.wt__btn--ghost { background: #2a2f37; }

/* პოსტერების კედელი — ბარათის მარჯვენა ნახევარში, მარცხნივ ქრება */
.wt__art { position: absolute; z-index: 0; inset: -40px -40px -40px 38%; pointer-events: none; opacity: .22;
  -webkit-mask: linear-gradient(90deg, transparent, #000 35%); mask: linear-gradient(90deg, transparent, #000 35%); }
.wt__poster { position: absolute; width: 150px; height: 222px; border-radius: 12px; background: #222 center / cover no-repeat; }
.wt__poster:nth-child(1) { left: 4%; top: 0; transform: rotate(-8deg); }
.wt__poster:nth-child(2) { left: 24%; top: 40px; transform: rotate(-8deg); }
.wt__poster:nth-child(3) { left: 44%; top: 0; transform: rotate(-8deg); }
.wt__poster:nth-child(4) { left: 64%; top: 40px; transform: rotate(-8deg); }
.wt__poster:nth-child(5) { left: 14%; top: 262px; transform: rotate(-8deg); }
.wt__poster:nth-child(6) { left: 54%; top: 262px; transform: rotate(-8deg); }

/* ოთახის მაკეტი */
.wt-pv { position: relative; z-index: 2; justify-self: end; width: 100%; max-width: 540px; margin-bottom: 24px;
  animation: wt-rise .8s ease-out both; }
@keyframes wt-rise { from { opacity: 0; transform: translateY(16px); } }
.wt-pv__screen { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: #111 center / cover no-repeat; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 6px rgba(255, 255, 255, .03);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .6s; }
.wt__card:hover .wt-pv__screen { transform: perspective(1200px) rotateY(0) rotateX(0); }
.wt-pv__screen::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 30%, transparent 60%, rgba(0, 0, 0, .75)); }
.wt-pv__live { position: absolute; z-index: 2; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px);
  color: #fff; font-size: 12px; font-weight: 700; }
.wt-pv__live i { width: 7px; height: 7px; border-radius: 50%; background: #2fe0b8; animation: wt-pulse 1.8s infinite; }
.wt-pv__avatars { position: absolute; z-index: 2; top: 12px; right: 14px; display: flex; }
.wt-pv__avatars i, .wt-pv__avatars b, .wt-pv__chat i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 12px; font-weight: 700; color: #fff; border: 2px solid #12161b; }
.wt-pv__avatars i { margin-left: -8px; }
.wt-pv__avatars i:nth-child(1), .wt-pv__chat p:nth-child(1) i { background: #c2547a; }
.wt-pv__avatars i:nth-child(2), .wt-pv__chat p:nth-child(2) i { background: #4c7bd9; }
.wt-pv__avatars i:nth-child(3), .wt-pv__chat p:nth-child(3) i { background: #d08a2c; }
.wt-pv__avatars b { margin-left: -8px; background: rgba(0, 0, 0, .65); }
.wt-pv__bar { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, .25); overflow: hidden; }
.wt-pv__bar b { position: absolute; inset: 0 auto 0 0; width: 38%; background: #16b39d; border-radius: 2px;
  animation: wt-progress 14s linear infinite; }
@keyframes wt-progress { from { width: 22%; } to { width: 78%; } }
.wt-pv__floats { position: absolute; z-index: 3; right: 22px; bottom: 30px; width: 90px; height: 200px; pointer-events: none; }
.wt-pv__floats s { position: absolute; bottom: 0; text-decoration: none; font-size: 26px; opacity: 0;
  animation: wt-float 5s ease-out infinite; }
.wt-pv__floats s:nth-child(1) { left: 0; animation-delay: 0s; }
.wt-pv__floats s:nth-child(2) { left: 38px; animation-delay: 1s; }
.wt-pv__floats s:nth-child(3) { left: 14px; animation-delay: 2s; }
.wt-pv__floats s:nth-child(4) { left: 52px; animation-delay: 3s; }
.wt-pv__floats s:nth-child(5) { left: 26px; animation-delay: 4s; }
@keyframes wt-float { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translateY(-14px) scale(1.1); }
  70% { opacity: .9; } 100% { transform: translateY(-190px) scale(1); opacity: 0; } }
.wt-pv__chat { position: absolute; z-index: 4; left: -34px; bottom: -28px; width: 240px; display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border-radius: 14px; background: rgba(22, 26, 32, .88); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8); }
.wt-pv__chat p { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 13px; color: #d9dee5;
  opacity: 0; animation: wt-msg 9s ease-out infinite; }
.wt-pv__chat p:nth-child(2) { animation-delay: 1.2s; }
.wt-pv__chat p:nth-child(3) { animation-delay: 2.4s; }
.wt-pv__chat i { flex: 0 0 26px; width: 26px; height: 26px; font-size: 11px; border: 0; }
.wt-pv__chat b { color: #fff; margin-right: 6px; font-weight: 700; }
@keyframes wt-msg { 0% { opacity: 0; transform: translateY(8px); } 8%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .wt__glow, .wt__chip i, .wt__title em, .wt-pv, .wt-pv__live i, .wt-pv__bar b, .wt-pv__floats s { animation: none; }
  .wt-pv__chat p { animation: none; opacity: 1; }
}
@media (max-width: 1200px) { .wt__card { padding: 44px 40px; gap: 28px; } .wt__title { font-size: 36px; } }

/* ── ფანჯრები ── */
.wt-modal { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.wt-modal[hidden] { display: none; }
.wt-modal__box { width: 100%; max-width: 600px; max-height: calc(100vh - 32px); display: flex; flex-direction: column;
  background: #1b1d22; border: 1px solid #2b2f36; border-radius: 14px; overflow: hidden; color: #e6e6e6; }
.wt-modal__box--sm { max-width: 500px; }
.wt-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid #2b2f36; }
.wt-modal__head h2 { margin: 0; font-size: 19px; color: #fff; }
.wt-modal__x { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.wt-modal__body { padding: 20px 24px; overflow-y: auto; min-height: 0; }
.wt-modal__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 24px 20px; border-top: 1px solid #2b2f36; }
.wt-modal__foot .wt__btn { border-radius: 10px; }
.wt-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-radius: 10px;
  background: #23262d; border: 1px solid #343944; color: #8c93a0; }
.wt-search:focus-within { border-color: var(--ge-red, #008170); }
.wt-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 15px; }
.wt-results { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; min-height: 120px; }
.wt-hint { color: #7d8490; font-size: 13px; text-align: center; margin: 30px 0; }
.wt-item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 10px; border: 1px solid transparent;
  background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; width: 100%; }
.wt-item:hover { background: #23262d; }
.wt-item.is-on { background: rgba(0, 129, 112, .14); border-color: var(--ge-red, #008170); }
.wt-item img { width: 92px; height: 52px; object-fit: cover; border-radius: 6px; background: #2a2f37; flex: 0 0 auto; }
.wt-item b { display: block; color: #fff; font-size: 14px; line-height: 1.4; }
/* ღილაკი line-height-ს თემიდან იღებდა და სათაური/ქვესათაური ერთმანეთს ედებოდა (2026-10-29) */
.wt-item small { display: block; margin-top: 3px; color: #8c93a0; font-size: 12px; line-height: 1.4; }
.wt-item > div { min-width: 0; text-align: left; }
.wt-code-label { display: block; text-align: center; color: #fff; font-weight: 700; margin-bottom: 12px; }
.wt-code { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 10px;
  border: 1px solid var(--ge-red, #008170); background: #23262d; }
.wt-code input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 18px;
  letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.wt-code input::placeholder { letter-spacing: normal; text-transform: none; font-size: 15px; }
.wt-paste { border: 0; border-radius: 8px; padding: 8px 12px; background: rgba(0, 129, 112, .18); color: #4fd6c1;
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.wt-error { color: #ff7b7b; font-size: 13px; text-align: center; margin: 12px 0 0; }

@media (max-width: 860px) {
  /* crocowatch-ის მობილურივით: ჩარჩოს გარეშე, პოსტერები ფონად (ჩაბნელებული), ქვემოთ გვერდის ფერში იძირება */
  .wt { margin: 6px 0 0; }
  .wt .container { padding-left: 0; padding-right: 0; }
  .wt__card { display: block; padding: 46px 22px 34px; text-align: center; border: 0; border-radius: 0; background: none;
    min-height: 0; box-shadow: none; }
  .wt-pv, .wt__glow { display: none; }
  .wt__chip { margin-bottom: 14px; }
  .wt__art { opacity: 1; -webkit-mask: none; mask: none; }
  .wt__poster { border-radius: 10px; }
  .wt__card::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, #0f0f0f 0%, rgba(15, 15, 15, .7) 22%, rgba(15, 15, 15, .74) 62%, #0f0f0f 100%); }
  .wt__text { position: relative; z-index: 1; }
  .wt__title { font-size: 26px; line-height: 1.35; margin-bottom: 14px; }
  .wt__lead { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .62); margin: 0 auto 26px; max-width: 360px; }
  .wt__actions { justify-content: center; gap: 12px; flex-wrap: nowrap; }
  .wt__btn { flex: 0 1 auto; padding: 13px 20px; white-space: nowrap; box-shadow: none !important; }
  .wt__btn svg { display: none; }
  .wt__art { display: block; position: absolute; inset: 0; height: auto; z-index: 0; overflow: hidden; }
  .wt__poster { width: 150px; height: 222px; border: 0; opacity: .9; }
  .wt__poster:nth-child(1) { left: -38px; top: 18px; transform: rotate(-11deg); }
  .wt__poster:nth-child(2) { left: 22%; top: -34px; transform: rotate(-4deg); }
  .wt__poster:nth-child(3) { left: auto; right: 14%; top: -14px; transform: rotate(6deg); }
  .wt__poster:nth-child(4) { left: auto; right: -46px; top: 40px; transform: rotate(11deg); }
  .wt__poster:nth-child(5) { left: 6%; top: 200px; transform: rotate(-6deg); }
  .wt__poster:nth-child(6) { display: block; left: auto; right: 4%; top: 214px; transform: rotate(5deg); }
  .wt-modal__head, .wt-modal__body { padding-left: 18px; padding-right: 18px; }
  .wt-modal__foot { padding: 12px 18px 16px; }
}
@media (max-width: 360px) { .wt__btn { padding: 12px 16px; font-size: 14px; } }

/* ფილმის გვერდიდან, როცა ოთახი უკვე ღიაა (templates/room_choice.html) */
.wt-choice { display: flex; justify-content: center; padding: 60px 16px 80px; }
.wt-choice .wt-modal__box { max-height: none; }
.wt-choice__lead { margin: 0; color: #c9ced6; font-size: 15px; line-height: 1.7; text-align: center; }
.wt-choice__lead b { color: #fff; }
.wt-choice .wt-modal__foot a.wt__btn { text-decoration: none; text-align: center; }
.wt-choice__back { display: block; text-align: center; padding: 0 24px 20px; color: #8c93a0; font-size: 13px; }
.wt-choice__back:hover { color: #fff; }
