/* ==========================================================================
   FULLSTORY V2 (fullstory-v2.tpl) — „žiūrėjimo“ puslapis
   Grotuvas pirmas, dešinėje lipni informacijos kortelė, apačioje
   aprašymas, panašūs, komentarai. Visos taisyklės prasideda .fs2 —
   senojo fullstory.tpl išvaizdos jos neliečia.
   ========================================================================== */

/* viršutinė juosta (main.tpl #fhero-slot) šiam variantui — tik naršymo keliui */
body:has(.fs2) { overflow-x: hidden; }
body:has(.fs2) .fhero-slot { padding: 84px var(--gut) 0 !important; background: none !important; overflow: visible; }
body:has(.fs2) .fhero-slot .speedbar { max-width: 1280px; margin: 0 auto 14px !important; position: relative; z-index: 2; }
body:has(.fs2) .cols { padding-top: 0 !important; }

.fs2 { position: relative; isolation: isolate; }
.fs2-ambient {
  position: absolute; z-index: -1; top: -220px; left: 50%; width: 100vw; height: 760px; transform: translateX(-50%);
  background-size: cover; background-position: center 25%; filter: blur(48px) saturate(1.3) brightness(.55); opacity: .55; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 100%);
}

/* ---------- tinklelis ---------- */
.fs2-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media screen and (min-width: 1000px) {
  .fs2-grid { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "player info" "rest info"; gap: 26px 28px; align-items: start; }
  .fs2-player { grid-area: player; min-width: 0; }
  .fs2-info { grid-area: info; }
  .fs2-rest { grid-area: rest; min-width: 0; }
}
@media screen and (min-width: 1000px) and (min-height: 860px) {
  .fs2-info { position: sticky; top: 84px; }
}
@media screen and (min-width: 1500px) { .fs2-grid { grid-template-columns: minmax(0, 1fr) 380px; } }

/* ---------- grotuvas ---------- */
.fs2 .fplayer { margin: 0 !important; border-radius: 18px; overflow: hidden; background: #0d060b; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 70px -30px rgba(0,0,0,.95); }
.fs2 .fplayer .fctrl { padding: 10px 12px; background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.06); }

/* ---------- informacijos kortelė ---------- */
.fs2-info {
  padding: 20px; border-radius: 18px; background: rgba(31,13,25,.78); border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.fs2-head { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 16px; }
.fs2-poster { width: auto !important; margin: 0 !important; }
.fs2-poster img { display: block; width: 92px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 14px 30px -10px rgba(0,0,0,.9); }
.fs2-eyebrow { display: block; margin-bottom: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f7a3c2; }
.fs2-title { margin: 0 0 10px; font-size: 24px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.fs2-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fs2-st, .fs2-ep { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.fs2-st { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.fs2-st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.fs2-st.is-air::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(217,70,125,.25); }
.fs2-st.is-soon::before { background: var(--gold); }
.fs2-ep { background: var(--accent-gradient); }

.fs2-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: #ede4e8; }
.fs2-facts > span:not([hidden]) ~ span::before { content: ''; display: inline-block; width: 3px; height: 3px; margin: 0 9px 3px; border-radius: 50%; background: rgba(255,255,255,.4); vertical-align: middle; }
.fs2-facts > .fs2-hd::before { display: none !important; }
.fs2-facts > .fs2-hd { margin-left: 10px; }
.fs2 .fh-mscore { display: inline-flex; align-items: center; gap: 4px; color: #e6be76; }
.fs2 .fh-mscore[hidden] { display: none; }
.fs2 .fh-mscore b { color: #fff; font-weight: 800; }
.fs2-hd { padding: 1px 6px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; }
.fs2-genres { margin-bottom: 18px; font-size: 13px; color: var(--text-secondary); }
.fs2-genres[hidden], .fs2 .fh-genres[hidden] { display: none !important; }

/* trys vienodi mygtukai */
.fs2-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.fs2 .fh-fav, .fs2 .fh-rate { min-width: 0; position: relative; width: auto; }
.fs2 .fh-fav a, .fs2 .fh-fav > span, .fs2 .fh-share, .fs2 .fh-rate-btn {
  display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important;
  gap: 7px !important; width: 100% !important; height: 44px !important; padding: 0 6px !important; margin: 0 !important; cursor: pointer;
  border-radius: 12px !important; border: 1px solid rgba(255,255,255,.1) !important; background: rgba(255,255,255,.05) !important;
  backdrop-filter: none !important; box-shadow: none !important; font: inherit; line-height: 1 !important; white-space: nowrap;
  font-size: 13px !important; font-weight: 700 !important; color: #fff !important; transition: background .2s ease, border-color .2s ease;
}
.fs2 .fh-fav a:hover, .fs2 .fh-fav > span:hover, .fs2 .fh-share:hover, .fs2 .fh-rate-btn:hover { background: rgba(255,255,255,.1) !important; border-color: rgba(255,255,255,.2) !important; }
.fs2 .fh-fav [class*=fa-], .fs2 .fh-share .fal { font-size: 15px !important; margin: 0 !important; color: var(--accent); }
.fs2 .fh-share-txt { display: inline !important; }
.fs2 .fh-rate-btn::before { content: '\f005'; font-family: 'Font Awesome 5 Pro'; font-weight: 900; font-size: 13px; color: #e6be76; }
.fs2 .fh-rate-btn .fh-score, .fs2 .fh-rate-btn .fh-rate-votes { display: none !important; }
.fs2 .fh-rate-btn .fh-rate-cta { display: inline !important; height: auto !important; padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; font-size: 13px; font-weight: 700; color: #fff; }
.fs2 .fh-rate-btn .fh-rate-cta::after { display: none !important; }
.fs2 .fh-rate.is-open .fh-rate-btn { border-color: rgba(230,190,118,.5) !important; background: rgba(230,190,118,.08) !important; }
/* įvertinimo langelis — po mygtukais, kortelės plotyje */
.fs2 .fh-rate-pop {
  position: absolute !important; top: calc(100% + 8px) !important; bottom: auto !important; right: auto !important; left: 50% !important;
  width: 320px; min-width: 0 !important; margin-left: -160px; z-index: 50; padding: 14px 14px 10px !important; text-align: left !important;
  border-radius: 14px !important; box-shadow: 0 24px 50px -10px rgba(0,0,0,.85) !important;
}
.fs2 .fh-rate-pop::after { display: none !important; }
.fs2 .fh-rate-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fs2 .fh-rate-pop-title { font-size: 14px; font-weight: 800; color: #fff; text-transform: none; letter-spacing: 0; }

/* aktoriai */
.fs2-label { margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.fs2-cast-box { margin-bottom: 18px; }
.fs2-cast-box[hidden] { display: none; }
.fs2 .fs2-cast { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; width: auto !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; }
.fs2 .fs2-cast.is-collapsed .fh-cast-item:nth-child(n+7) { display: none !important; }
.fs2 .fs2-cast .fh-cast-item {
  display: flex !important; align-items: center; gap: 9px; min-width: 0; height: 44px !important; padding: 0 8px 0 4px !important;
  border-radius: 12px !important; background: rgba(255,255,255,.035) !important; border: 1px solid rgba(255,255,255,.06) !important;
  font-size: 12.5px !important; font-weight: 600; color: #ece1e6; white-space: nowrap;
}
.fs2 .fs2-cast .fh-cast-item > span { overflow: hidden; text-overflow: ellipsis; }
.fs2 .fs2-cast a.fh-cast-item:hover { color: #fff; border-color: rgba(217,70,125,.5) !important; }
.fs2 .fs2-cast .fh-cast-item i { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; }
.fs2 .fh-cast-item i.c0 { background: linear-gradient(135deg, #f08bb0, #9c2357); }
.fs2 .fh-cast-item i.c1 { background: linear-gradient(135deg, #ec4899, #7a1650); }
.fs2 .fh-cast-item i.c2 { background: linear-gradient(135deg, #6366f1, #2b2d7a); }
.fs2 .fh-cast-item i.c3 { background: linear-gradient(135deg, #14b8a6, #0b5c55); }
.fs2 .fh-cast-item i.c4 { background: linear-gradient(135deg, #d9a63e, #7a5b05); }
.fs2 .fh-cast-item i.c5 { background: linear-gradient(135deg, #8b5cf6, #44207a); }
.fs2-cast-more { width: 100%; height: 36px; margin-top: 8px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-secondary); background: none; border: 1px dashed rgba(255,255,255,.14); }
.fs2-cast-more:hover { color: #fff; border-color: rgba(217,70,125,.5); }

/* papildoma informacija */
.fs2-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.06); }
.fs2-dl > div { padding: 10px 12px; background: rgba(31,13,25,.95); }
.fs2-dl dt { margin: 0 0 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.fs2-dl dd { margin: 0; font-size: 13.5px; font-weight: 700; color: #fff; }

/* ---------- apačia ---------- */
.fs2-about { padding: 22px 24px; margin-bottom: 26px; border-radius: 18px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); }
.fs2-h2 { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: #fff; }
.fs2 .fdesc { padding: 0 !important; margin: 0 0 10px !important; background: none !important; border: 0 !important; }
.fs2 .fdesc .ftext { padding: 0 !important; font-size: 14.5px; line-height: 1.75; color: #d8c8cf; }
.fs2 .fdesc.is-collapsed .ftext { max-height: 104px !important; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.fs2 .fseo { margin: 12px 0 0 !important; }
.fs2 .frels .rel-row { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; overflow: visible !important; }
.fs2 .frels .rel-card { width: auto !important; margin: 0 !important; }

/* ---------- telefonas ---------- */
@media screen and (max-width: 999px) {
  .fs2 .frels .rel-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media screen and (max-width: 590px) {
  body:has(.fs2) .fhero-slot { padding: 66px 0 0 !important; }
  body:has(.fs2) .fhero-slot .speedbar { display: none; }
  .fs2-ambient { top: -80px; height: 520px; }
  .fs2-grid { gap: 14px; }
  .fs2 .fplayer { margin: 0 calc(-1 * var(--gut)) !important; border-radius: 0; border-left: 0; border-right: 0; }
  .fs2-info { padding: 16px; border-radius: 16px; }
  .fs2-head { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .fs2-poster img { width: 84px; }
  .fs2-title { font-size: 22px; }
  /* įvertinimo langelis — iš ekrano apačios */
  .fs2 .fh-rate-pop {
    position: fixed !important; left: 10px !important; right: 10px !important; top: auto !important; bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    width: auto; margin: 0; z-index: 600; box-shadow: 0 -10px 40px rgba(0,0,0,.6), 0 0 0 100vmax rgba(0,0,0,.45) !important;
  }
  .fs2-about { padding: 18px 16px; }
  .fs2 .frels .rel-row { display: grid !important; grid-auto-flow: column; grid-auto-columns: 40%; grid-template-columns: none; overflow-x: auto !important; scrollbar-width: none; }
}
.fs2 .fs2-actors-src { display: none !important; }

/* ---------- grotuvo viršelis ---------- */
.fs2-player { position: relative; }
.fs2-cover {
  position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer;
  border-radius: 18px; background: #0d060b; border: 1px solid rgba(255,255,255,.08); outline: none;
  transition: opacity .4s ease, visibility .4s;
}
.fs2-player.is-open .fs2-cover { opacity: 0; visibility: hidden; pointer-events: none; }
.fs2-cover-bg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; transform: scale(1.02); transition: transform 1.2s var(--ease), filter .4s ease; filter: brightness(.72); }
.fs2-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,6,11,.92) 0%, rgba(13,6,11,.25) 45%, rgba(13,6,11,.15) 100%); }
.fs2-cover:hover .fs2-cover-bg, .fs2-cover:focus-visible .fs2-cover-bg { transform: scale(1.06); filter: brightness(.85); }
.fs2-cover-play {
  position: relative; z-index: 2; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%;
  font-size: 30px; color: #fff; padding-left: 6px; background: var(--accent-gradient);
  box-shadow: 0 0 0 10px rgba(217,70,125,.18), 0 20px 50px -10px rgba(217,70,125,.8);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.fs2-cover-play::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); animation: fs2Pulse 2.2s ease-out infinite; }
@keyframes fs2Pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.fs2-cover:hover .fs2-cover-play { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(217,70,125,.22), 0 24px 60px -10px rgba(217,70,125,.9); }
.fs2-cover-info { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 22px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.fs2-cover-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #ece1e6; }
.fs2-cover-kicker b { padding: 3px 8px; border-radius: 6px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; background: var(--accent-gradient); color: #fff; }
.fs2-cover-kicker i { font-style: normal; padding: 1px 6px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 5px; font-size: 10.5px; font-weight: 800; }
.fs2-cover-title { font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.6); }
.fs2-cover-hint { font-size: 13px; color: rgba(255,255,255,.65); }
/* kol užrakinta — grotuvų vieta užima įprastą aukštį (16:9), kad niekas nepašoktų */
.fs2-player.is-locked .fplayer .video-box { min-height: 0; }
.fs2-player .fplayer .tabs-b.video-box iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; }
@media screen and (max-width: 590px) {
  .fs2-cover { border-radius: 0; left: calc(-1 * var(--gut)); right: calc(-1 * var(--gut)); border-left: 0; border-right: 0; }
  .fs2-cover-play { width: 72px; height: 72px; font-size: 24px; }
  .fs2-cover-info { left: 16px; right: 16px; bottom: 14px; }
  .fs2-cover-title { font-size: 20px; }
  .fs2-cover-hint { display: none; }
}

/* ===== v2c — švaresnis viršelis ir šoninė kortelė ===== */
.fs2-cover { flex-direction: column; gap: 18px; }
.fs2-cover::after { background: radial-gradient(60% 70% at 50% 50%, rgba(13,6,11,.15) 0%, rgba(13,6,11,.6) 100%); }
.fs2-cover-label {
  position: relative; z-index: 2; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff;
  background: rgba(18,7,14,.6); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.fs2-dl[hidden] { display: none !important; }
.fs2-info { padding: 22px; }
.fs2-head { grid-template-columns: 104px minmax(0, 1fr); gap: 18px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.07); align-items: end; }
.fs2-poster img { width: 104px; }
.fs2-title { font-size: 26px; }
.fs2-facts { font-size: 14px; margin-bottom: 10px; }
.fs2-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #ece1e6; }
.fs2-lang .fal { color: var(--accent-warm); font-size: 12px; }
.fs2-lang-sep { width: 1px; height: 12px; margin: 0 6px; background: rgba(255,255,255,.18); }
.fs2-genres { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.fs2-actions { margin-bottom: 22px; }
.fs2-cast-box { margin-bottom: 0; }
@media screen and (max-width: 590px) {
  .fs2-head { grid-template-columns: 84px minmax(0, 1fr); }
  .fs2-poster img { width: 84px; }
  .fs2-title { font-size: 22px; }
  .fs2-cover-label { font-size: 12.5px; padding: 7px 14px; }
  .fs2-cover { gap: 12px; }
}

/* ===== v2d — logotipas, meniu ikonos ir naršymo kelias lygiuojami su turinio kraštais (1280px) ===== */
@media screen and (min-width: 591px) {
  body:has(.fs2) .wrap .header {
    padding-left: max(var(--gut), calc((100% - 1280px) / 2)) !important;
    padding-right: max(var(--gut), calc((100% - 1280px) / 2)) !important;
  }
  body:has(.fs2) .fhero-slot { padding-left: var(--gut) !important; padding-right: var(--gut) !important; }
  body:has(.fs2) .fhero-slot .speedbar { padding-left: 0 !important; padding-right: 0 !important; }
}
@media screen and (min-width: 901px) {
  body:has(.fs2) .footer { max-width: 1280px; margin-left: auto !important; margin-right: auto !important; }
}

/* ===== v2e — kortelės viršus: didesnis plakatas su serijos ženkliuku, pavadinimas laisvai ===== */
.fs2-head { grid-template-columns: 118px minmax(0, 1fr) !important; gap: 18px !important; align-items: center !important; }
.fs2-poster { position: relative; }
.fs2-poster img { width: 118px !important; border-radius: 12px !important; }
.fs2-pep {
  position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); white-space: nowrap;
  padding: 4px 9px; border-radius: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: var(--accent-gradient); box-shadow: 0 6px 14px -4px rgba(217,70,125,.7);
}
.fs2-head-txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.fs2-eyebrow { margin-bottom: 8px !important; }
.fs2-title { margin: 0 0 10px !important; font-size: clamp(20px, 1.7vw, 26px) !important; line-height: 1.15 !important; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fs2-head .fs2-facts { margin: 0 0 12px !important; font-size: 14px; }
.fs2-head .fs2-st { height: 26px; }
.fs2-lang { margin-bottom: 8px !important; }
@media screen and (max-width: 590px) {
  .fs2-head { grid-template-columns: 96px minmax(0, 1fr) !important; gap: 14px !important; }
  .fs2-poster img { width: 96px !important; }
  .fs2-title { font-size: 21px !important; }
}
.fs2-eyebrow { white-space: nowrap; letter-spacing: .1em !important; font-size: 10px !important; }
