/* v113 — ویترین سینما (فقط وقتی JS داده بیاورد فعال می‌شود: html.cv-on) */
.cv-home { --cv-acc: #ff6a2b; --cv-ink: #fff; margin: 0 0 8px; direction: rtl; padding: 0 clamp(12px, 2.5vw, 32px); }
.cv-home[hidden] { display: none !important; }

/* ---------- اسلایدر ---------- */
.cv-hero { position: relative; margin: 0 0 22px; overflow: hidden; background: #0a0d1e; border-radius: 18px; isolation: isolate; max-width: 100%; }
.cv-slides { position: relative; height: min(76vh, 660px); min-height: 460px; }
.cv-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.cv-slide.on { opacity: 1; visibility: visible; z-index: 1; }
.cv-bg, .cv-bgimg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv-bgimg { object-fit: cover; transform: scale(1.04); }
.cv-slide.on .cv-bgimg { animation: cvKen 14s ease-out forwards; }
@keyframes cvKen { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
.cv-shade { position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8, 10, 26, .97) 4%, rgba(8, 10, 26, .55) 38%, rgba(8, 10, 26, .1) 70%),
              linear-gradient(270deg, rgba(8, 10, 26, .82) 0%, rgba(8, 10, 26, .35) 45%, rgba(8, 10, 26, 0) 75%); }
.cv-body { position: absolute; z-index: 2; right: clamp(18px, 4vw, 56px); bottom: 126px; width: min(560px, calc(100% - 36px)); color: var(--cv-ink); }
.cv-slide.on .cv-body > * { animation: cvUp .7s cubic-bezier(.2, .7, .2, 1) both; }
.cv-slide.on .cv-body > *:nth-child(2) { animation-delay: .08s; } .cv-slide.on .cv-body > *:nth-child(3) { animation-delay: .14s; }
.cv-slide.on .cv-body > *:nth-child(4) { animation-delay: .2s; } .cv-slide.on .cv-body > *:nth-child(5) { animation-delay: .26s; }
.cv-slide.on .cv-body > *:nth-child(6) { animation-delay: .32s; }
@keyframes cvUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cv-chips { display: flex; gap: 8px; margin-bottom: 12px; }
.cv-chips b { font: 700 12px/1 inherit; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .2); }
.cv-chips b.new { background: var(--cv-acc); border-color: transparent; }
.cv-title { margin: 0; font-size: clamp(28px, 5vw, 54px); line-height: 1.25; font-weight: 900; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.cv-title a { color: inherit; text-decoration: none; }
.cv-en { margin-top: 2px; opacity: .75; font-size: 15px; letter-spacing: .04em; }
.cv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; font-size: 14px; opacity: .95; }
.cv-meta .cv-rate { color: #ffd24d; font-weight: 800; } .cv-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.cv-syn { margin: 0 0 18px; font-size: 15px; line-height: 1.9; opacity: .88; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cv-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 14px; font: 800 15px/1 inherit; color: #fff; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.cv-btn:hover { transform: translateY(-2px); }
.cv-btn.pri { background: var(--cv-acc); box-shadow: 0 10px 28px -8px rgba(255, 106, 43, .8); }
.cv-btn.glass { background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .28); }
.cv-btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .35); }
.cv-btn:focus-visible, .cv-nav:focus-visible, .cv-th:focus-visible, .cv-card:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.cv-nav { position: absolute; top: 42%; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(8, 10, 26, .45); color: #fff; backdrop-filter: blur(8px); cursor: pointer; opacity: 0; transition: opacity .25s; }
.cv-hero:hover .cv-nav { opacity: 1; } .cv-nav.prev { right: 14px; } .cv-nav.next { left: 14px; }
.cv-thumbs { position: absolute; z-index: 3; left: 18px; right: clamp(18px, 4vw, 56px); bottom: 16px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.cv-thumbs::-webkit-scrollbar { display: none; }
.cv-th { flex: 0 0 auto; position: relative; width: 148px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #111; opacity: .6; transition: opacity .25s, border-color .25s, transform .25s; }
.cv-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-th span { position: absolute; inset: auto 0 0 0; padding: 14px 6px 4px; font: 700 11px/1.3 inherit; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-th.on { opacity: 1; border-color: var(--cv-acc); transform: translateY(-3px); }
.cv-dots { display: none; }

@media (max-width: 720px) {
  /* v122 — کارت موبایل: تصویر ۱۶:۹ شفاف + پنل شیشه‌ای روی لبه‌ی پایین تصویر (دسکتاپ دست‌نخورده) */
  .cv-hero { --cv-w: calc(100vw - 24px); --cv-ih: calc(var(--cv-w) * .5625); border-radius: 16px; background: #0a0d1e; }
  .cv-slides { height: calc(var(--cv-ih) + 132px); min-height: 0; max-height: none; }
  .cv-bg, .cv-shade { bottom: auto; height: var(--cv-ih); }
  .cv-bgimg { object-fit: cover; transform: none; animation: none !important; }
  .cv-shade { background: linear-gradient(0deg, rgba(8, 10, 26, .75) 0%, rgba(8, 10, 26, 0) 45%); }
  .cv-body { right: 10px; left: 10px; width: auto; bottom: 26px; top: calc(var(--cv-ih) - 38px); padding: 12px 14px; border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between;
    background: rgba(14, 17, 40, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7); }
  .cv-chips, .cv-en, .cv-syn, .cv-btn.glass { display: none; }
  .cv-title { font-size: 19px; line-height: 1.4; text-shadow: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cv-meta { margin: 4px 0 8px; font-size: 12.5px; gap: 6px; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .cv-btns { flex-wrap: nowrap; gap: 8px; }
  .cv-btn { flex: 1 1 0; justify-content: center; height: 42px; padding: 0 10px; font-size: 14px; border-radius: 12px; }
  .cv-btn.ghost { display: inline-flex; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
  .cv-thumbs, .cv-nav { display: none; }
  .cv-dots { display: flex; position: absolute; z-index: 3; bottom: 9px; left: 0; right: 0; justify-content: center; gap: 7px; }
  .cv-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .4); transition: all .3s; }
  .cv-dots i.on { width: 26px; background: var(--cv-acc); }
}

/* ---------- ردیف‌ها ---------- */
.cv-row { margin: 0 0 26px; }
.cv-rt { margin: 0 0 12px; font-size: 20px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.cv-rt i { color: var(--cv-acc); }
.cv-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 14px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.cv-card { flex: 0 0 auto; width: clamp(200px, 22vw, 290px); scroll-snap-align: start; text-decoration: none; color: inherit; position: relative; transition: transform .25s; }
.cv-card:hover { transform: translateY(-4px) scale(1.02); }
.cv-thumb { display: block; position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #151a33; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .8); }
.cv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.cv-card:hover .cv-thumb img { transform: scale(1.07); }
.cv-pl { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%) scale(.7); width: 44px; height: 44px; line-height: 44px; text-align: center; border-radius: 50%; background: rgba(255, 106, 43, .92); color: #fff; font-size: 15px; opacity: 0; transition: .25s; }
.cv-card:hover .cv-pl { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cv-new { position: absolute; top: 8px; right: 8px; font: 800 11px/1 inherit; padding: 5px 9px; border-radius: 99px; background: var(--cv-acc); color: #fff; font-style: normal; }
.cv-ct { display: block; padding: 9px 4px 0; }
.cv-ct b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-ct small { opacity: .7; font-size: 12.5px; }
.cv-row.top .cv-card { width: clamp(230px, 26vw, 330px); padding-right: 38px; }
.cv-rank { position: absolute; right: -6px; bottom: 32px; z-index: 1; font-size: 96px; line-height: 1; font-weight: 900; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .55); text-shadow: 0 8px 30px rgba(0, 0, 0, .6); pointer-events: none; }
@media (max-width: 720px) { .cv-card { width: 62vw; } .cv-row.top .cv-card { width: 70vw; } .cv-rank { font-size: 78px; } .cv-rt { font-size: 18px; } }

/* ---------- مودال تریلر ---------- */
.cv-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(4, 6, 16, .88); display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(6px); }
.cv-mbox { position: relative; width: min(960px, 100%); aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.cv-mbox iframe { width: 100%; height: 100%; border: 0; display: block; }
.cv-x { position: absolute; top: 10px; left: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 17px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { .cv-slide.on .cv-bgimg, .cv-slide.on .cv-body > * { animation: none; } .cv-slide { transition: none; } }

/* ---------- صفحه‌ی عنوان /cinema/t/{slug} ---------- */
.cvt { --cv-acc: #ff6a2b; direction: rtl; color: #fff; padding-top: 92px; }
.cvt-skel { height: 60vh; background: #0a0d1e; border-radius: 18px; }
.cvt-hero { position: relative; min-height: min(70vh, 560px); display: flex; align-items: flex-end; overflow: hidden; border-radius: 0 0 22px 22px; background: #0a0d1e; isolation: isolate; }
.cvt-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: cvKen 18s ease-out forwards; }
.cvt-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 10, 26, .98) 6%, rgba(8, 10, 26, .55) 45%, rgba(8, 10, 26, .15) 80%), linear-gradient(270deg, rgba(8, 10, 26, .75), rgba(8, 10, 26, 0) 70%); }
.cvt-in { padding: 28px clamp(18px, 4vw, 56px) 34px; width: min(720px, 100%); }
@media (min-width: 1180px) { .cvt-in { margin-inline-start: calc((100% - 1100px) / 2); } }   /* v152: متن بالای صفحه هم‌راستای ستون وسط */
.cvt-bc { font-size: 13px; opacity: .8; margin-bottom: 14px; } .cvt-bc a { color: inherit; } .cvt-bc i { font-size: 10px; margin: 0 4px; }
.cvt-main { padding: 22px clamp(14px, 3vw, 40px) 40px; max-width: 1100px; margin-inline: auto; }   /* v152: در مانیتور عریض وسط (قبلاً به راست می‌چسبید) */
.cvt-syn { font-size: 16px; line-height: 2.05; opacity: .9; margin: 0 0 26px; white-space: pre-line; }
.cvt-frame { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; margin: 0 0 30px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); }
.cvt-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.cvt-404 { text-align: center; padding: 80px 16px; } .cvt-404 h1 { font-size: 24px; margin-bottom: 18px; }
.cvt .cv-card { width: clamp(200px, 22vw, 270px); }
@media (max-width: 720px) { .cvt { padding-top: 72px; } .cvt-hero { min-height: 62vh; } .cvt .cv-card { width: 62vw; } }

/* ---------- اخبار (جایگزین نوار قبلی) و خواننده‌ی خبر ---------- */
html.cv-news-on #c22News { display: none !important; }
.cv-news { --cv-acc: #ff6a2b; direction: rtl; margin: 6px 0 30px; padding: 0 clamp(12px, 2.5vw, 32px); }
.cv-news-h { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; font-size: 20px; font-weight: 900; }
.cv-news-h i { color: var(--cv-acc); } .cv-news-h a { font-size: 13px; font-weight: 700; opacity: .8; color: inherit; }
.cv-ngrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.cv-n { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); color: inherit; text-decoration: none; transition: transform .25s, border-color .25s; }
.cv-n:hover { transform: translateY(-3px); border-color: rgba(255, 106, 43, .6); }
.cv-n .im { aspect-ratio: 16/9; background: #151a33; overflow: hidden; } .cv-n .im img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; } .cv-n:hover .im img { transform: scale(1.06); }
.cv-n .tx { padding: 12px 14px 14px; } .cv-n b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.8; }
.cv-n p { margin: 6px 0 0; font-size: 13px; line-height: 1.9; opacity: .75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv-n small { display: block; margin-top: 8px; font-size: 11.5px; opacity: .55; }
.cv-n.big { grid-row: span 2; } .cv-n.big .im { aspect-ratio: 16/10; } .cv-n.big b { font-size: 19px; -webkit-line-clamp: 3; }
.cv-nrest { grid-column: 2 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .cv-ngrid { grid-template-columns: 1fr 1fr; } .cv-n.big { grid-column: 1 / -1; grid-row: auto; } .cv-nrest { grid-column: 1 / -1; } }
@media (max-width: 560px) { .cv-ngrid, .cv-nrest { grid-template-columns: 1fr; } }

.cvn { max-width: 820px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 24px) 50px; }
.cvn-t { font-size: clamp(24px, 4vw, 36px); line-height: 1.6; margin: 10px 0 8px; font-weight: 900; }
.cvn-m { display: flex; gap: 14px; align-items: center; font-size: 13px; opacity: .65; margin-bottom: 18px; }
.cvn-img { width: 100%; border-radius: 16px; margin: 0 0 22px; display: block; }
.cvn-b { font-size: 17px; line-height: 2.2; } .cvn-b p { margin: 0 0 16px; } .cvn-b h2, .cvn-b h3 { margin: 24px 0 10px; }
.cvn-more { margin-top: 28px; font-size: 13px; opacity: .6; } .cvn-more a { color: inherit; }
.cv-n .im { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1b2350, #0e1230); }
.cv-nph { font-size: 38px; color: rgba(255, 255, 255, .25); }

/* v122 — شبکه‌ی تب‌های فیلم/سریال/مستند */
.cv-kind{max-width:1280px;margin:18px auto;padding:0 16px}
.cv-kind .cv-rt small{font-size:.8rem;opacity:.7;font-weight:400}
.cv-kgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.cv-kgrid .cv-card{width:auto;min-width:0}
.cv-kmore{display:block;margin:18px auto 0;padding:0 28px}
@media (max-width:720px){.cv-kgrid{grid-template-columns:repeat(2,1fr);gap:10px}}
.cv-news[hidden], .cv-kind[hidden] { display: none !important; }

/* v190 — کارت اطلاعات هیرو: شیشه‌ای/شفاف، کوچک‌تر و مرتب؛ تصویر کمتر پوشیده می‌شود */
.cv-body { width: min(430px, calc(100% - 36px)); padding: 14px 18px 16px; border-radius: 18px; bottom: 112px;
  background: rgba(12, 15, 36, .34); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 14px 36px -16px rgba(0, 0, 0, .65); }
.cv-title { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.35; }
.cv-chips { margin-bottom: 8px; } .cv-chips b { font-size: 11px; padding: 5px 10px; }
.cv-en { font-size: 13px; }
.cv-meta { margin: 8px 0; font-size: 12.5px; }
.cv-syn { margin: 0 0 12px; font-size: 13px; line-height: 1.8; -webkit-line-clamp: 2; }
.cv-btns { gap: 8px; } .cv-btn { height: 38px; padding: 0 16px; font-size: 13px; border-radius: 12px; }
@media (max-width: 720px) {
  .cv-body { top: calc(var(--cv-ih) - 22px); bottom: 26px; padding: 10px 12px; border-radius: 14px; background: rgba(14, 17, 40, .42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .cv-title { font-size: 16.5px; line-height: 1.4; }
  .cv-meta { margin: 3px 0 7px; font-size: 12px; }
  .cv-btn { height: 38px; font-size: 13px; border-radius: 11px; }
}

/* v191 — موبایل: باکس دور اسم حذف؛ اسم + دو دکمه فقط در فضای خالی زیر عکس، روی فیلم نمی‌افتد */
@media (max-width: 720px) {
  .cv-body { top: calc(var(--cv-ih) + 6px); bottom: 24px; left: 12px; right: 12px; padding: 0; border-radius: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; justify-content: space-between; }
  .cv-title { font-size: 17px; line-height: 1.35; -webkit-line-clamp: 2; }
  .cv-meta { margin: 2px 0 6px; font-size: 12px; }
  .cv-btn { height: 38px; font-size: 13px; }
}
