/* Avan marketing site. Design tokens mirror the app. Dark, cinematic, single theme. */
:root {
  --bg: #0B0C12;
  --s1: #12141C;
  --s2: #1D2030;
  --gold: #D9B36C;
  --gold-2: #F1D9A5;
  --ivory: #F3EFE6;
  --muted: #A9ADBA;
  --live: #E0174F;
  --line: rgba(243, 239, 230, .09);
  --line-2: rgba(243, 239, 230, .16);
  --radius: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", system-ui, sans-serif; /* brand kit v1.0: Manrope + Vazirmatn */
  color-scheme: dark;
}
:root:lang(fa) {
  --font-body: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --font-display: "Vazirmatn", Tahoma, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -.01em; }
:lang(fa) h1, :lang(fa) h2 { font-weight: 800; letter-spacing: 0; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }
.muted { color: var(--muted); }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.ic-sm { width: .9em; height: .9em; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 29px; }
.brand-name { display: inline-flex; align-items: center; }
.wm { display: block; height: 22px; }
.wm-en { width: 80px; }
.wm-fa { width: 46px; height: 28px; }
html[lang="fa"] .wm-en, html:not([lang="fa"]) .wm-fa { display: none; }
html:not([lang="fa"]) .brand-fa { display: none; }
html[lang="fa"] .brand-name > [lang="en"] { display: none; }
.brand-fa { font-family: "Vazirmatn", sans-serif; font-weight: 800; }

/* Buttons */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: 999px;
  font: 700 .97rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s;
}
.btn-sm { --h: 38px; padding: 0 16px; font-size: .9rem; }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #17130b; box-shadow: 0 8px 30px -10px rgba(217, 179, 108, .6); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -12px rgba(217, 179, 108, .75); }
.btn-ghost { background: rgba(243, 239, 230, .04); border-color: var(--line-2); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(217, 179, 108, .08); }
.btn-disabled { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); cursor: default; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
:lang(fa) .eyebrow { letter-spacing: 0; font-size: .9rem; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 640px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled, .nav-open .site-header { background: rgba(11, 12, 18, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.site-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .93rem; transition: color .2s, background-color .2s; }
.site-nav a:hover { color: var(--ivory); background: rgba(243, 239, 230, .05); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--ivory); align-items: center; justify-content: center; cursor: pointer; }

.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ivory); }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 160px; list-style: none; padding: 6px; background: var(--s2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 20px 50px -20px #000; }
.lang a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; font-weight: 600; }
.lang a:hover { background: rgba(243, 239, 230, .06); }
.lang a[aria-current="true"] { color: var(--gold-2); }
.lang a[lang="fa"] { font-family: "Vazirmatn", sans-serif; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0; flex-direction: column; gap: 2px;
    padding: 12px var(--gutter) 20px; background: rgba(11, 12, 18, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-open .site-nav { opacity: 1; transform: none; visibility: visible; }
  .site-nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
  .lang [data-lang-current] { display: none; }
  .header-row { gap: 12px; }
}

/* Hero */
.hero { position: relative; min-height: min(100svh, 980px); min-height: max(640px, min(100svh, 980px)); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; background: radial-gradient(ellipse at 70% 25%, #1a1c2b, var(--bg) 70%); }
.hero-grain {
  position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.hero-inner { padding-top: calc(var(--header-h) + 56px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero-title { font-family: var(--font-display); font-size: clamp(2.6rem, 8.2vw, 6.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.02; margin-bottom: 22px; max-width: 12ch; }
.hero-title em { font-style: normal; font-weight: 700; background: linear-gradient(100deg, var(--gold-2), var(--gold) 60%, #b98f45); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .06em; }
:lang(fa) .hero-title { font-size: clamp(2.3rem, 7vw, 5.2rem); line-height: 1.25; letter-spacing: 0; max-width: 14ch; font-weight: 800; }
:lang(fa) .hero-title em { font-style: normal; font-weight: 800; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d6d3cc; max-width: 600px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 16px; }
.hero-note { font-size: .88rem; color: var(--muted); max-width: 560px; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 680px; }
.hero-stats li { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: .92rem; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-2); font-weight: 600; line-height: 1; }
@media (max-width: 520px) { .hero-ctas .btn { width: 100%; } .hero-stats { gap: 10px 24px; } }

/* Sections */
.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 760px; }
.section + .section::before { content: ""; position: absolute; top: 0; inset-inline: var(--gutter); max-width: var(--wrap); margin-inline: auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Features */
.feature-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.feature { position: relative; padding: 26px 24px 22px; background: linear-gradient(180deg, var(--s1), rgba(18, 20, 28, .6)); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, transform .3s var(--ease); }
.feature:hover { border-color: rgba(217, 179, 108, .45); transform: translateY(-2px); }
.feature h3 { margin: 16px 0 8px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.f-ic { width: 44px; height: 44px; padding: 10px; border-radius: 13px; color: var(--gold-2); background: rgba(217, 179, 108, .1); border: 1px solid rgba(217, 179, 108, .22); }

/* How */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--s1); border: 1px solid var(--line); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 52px; inset-inline-end: -20px; width: 20px; height: 1px; background: var(--gold); opacity: .5; }
.step-n { display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .steps li::after { display: none; } }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: 22px; background: var(--s1); border: 1px solid var(--line); }
.plan-best { background: linear-gradient(180deg, rgba(217, 179, 108, .12), var(--s1) 40%); border-color: rgba(217, 179, 108, .55); box-shadow: 0 30px 80px -40px rgba(217, 179, 108, .5); }
.badge { position: absolute; top: -12px; inset-inline-end: 22px; padding: 5px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #17130b; font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
.plan h3 { font-size: 1.05rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
:lang(fa) .plan h3 { text-transform: none; letter-spacing: 0; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; min-height: 3.4rem; }
.price .amount { font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; line-height: 1; }
.price .period { color: var(--muted); font-size: .95rem; }
/* Promotion: regular price struck through next to the sale price (prices come live from the panel via /api/prices). */
.price { flex-wrap: wrap; }
.price .was, .price-tg .was { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; font-size: 1.2rem; font-weight: 500; }
.price-tg .now { color: var(--gold-2); }
.price-tg .was { margin-inline-end: 10px; } .price .was { margin-inline-end: 2px; }
.price-tg { flex-wrap: wrap; gap: 4px 0; }
.sale-tag { display: inline-block; margin-inline-start: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(217, 179, 108, .16); color: var(--gold-2); font-size: .8rem; font-weight: 700; vertical-align: middle; }
.price-tg { margin: 4px 0 10px; min-height: 3.4rem; display: flex; align-items: center; font-size: 1.22rem; font-weight: 800; color: var(--gold-2); line-height: 1.5; }
.plan-desc { color: var(--muted); font-size: .95rem; }
.ticks { list-style: none; display: grid; gap: 10px; margin: 6px 0 26px; flex: 1; }
.ticks li { position: relative; padding-inline-start: 28px; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 17px; height: 17px; border-radius: 50%; background: rgba(217, 179, 108, .16) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F1D9A5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m6 12.5 4 4L18 8'/></svg>") center / 11px no-repeat; }
.soon { margin: 10px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }
html[data-sales="prices"] [data-sales-only="telegram"],
html[data-sales="telegram"] [data-sales-only="prices"] { display: none !important; }
.iran-buy { margin-top: 26px; padding: 26px; border-radius: 22px; border: 1px solid rgba(217, 179, 108, .35); background: radial-gradient(ellipse at 0% 0%, rgba(217, 179, 108, .12), transparent 60%), var(--s1); display: grid; grid-template-columns: 1fr auto; gap: 16px 30px; align-items: center; }
.iran-buy h3 { grid-column: 1 / -1; margin: 0; font-size: 1.25rem; }
.iran-buy ol { list-style: none; counter-reset: i; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.iran-buy li { counter-increment: i; display: flex; gap: 12px; align-items: flex-start; color: #dcd8cf; }
.iran-buy li::before { content: counter(i, persian); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(217, 179, 108, .18); color: var(--gold-2); font-weight: 800; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } .iran-buy { grid-template-columns: 1fr; } .iran-buy ol { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--s1); border: 1px solid var(--line); transition: border-color .25s; }
.faq details[open] { border-color: rgba(217, 179, 108, .35); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.04rem; position: relative; }
html[dir="rtl"] .faq summary { padding: 20px 22px 20px 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; inset-inline-end: 22px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--gold), var(--gold)) center / 14px 2px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 2px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* Download */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl-card { display: flex; flex-direction: column; gap: 4px; padding: 26px; border-radius: 20px; background: var(--s1); border: 1px solid var(--line); }
.dl-card h3 { margin: 14px 0 4px; }
.dl-card p { color: var(--muted); flex: 1; margin-bottom: 18px; }
.dl-soon { opacity: .75; }
.dl-help { margin-top: 18px; padding: 24px 26px; border-radius: 20px; border: 1px dashed var(--line-2); }
.dl-help ol { padding-inline-start: 1.3em; display: grid; gap: 6px; margin-bottom: 12px; color: #dcd8cf; }
.dl-help p { margin: 0; font-size: .92rem; }
/* FootFun block: only on the Persian page (html[lang=fa]). */
html:not([lang="fa"]) [data-lang-only="fa"] { display: none !important; }
.dl-footfun { margin-top: 18px; padding: 24px 26px; border-radius: 20px; border: 1px solid rgba(217, 179, 108, .35); background: radial-gradient(ellipse at 100% 0%, rgba(217, 179, 108, .12), transparent 60%), var(--s1); display: grid; grid-template-columns: 1fr auto; gap: 16px 28px; align-items: center; }
.dl-footfun h3 { margin: 4px 0 8px; font-size: 1.2rem; }
.dl-footfun p.muted { margin: 0; font-size: .95rem; }
.dl-footfun-btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) { .dl-footfun { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } .dl-footfun-btns .btn { flex: 1 1 100%; justify-content: center; } }
@media (max-width: 900px) { .dl-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } .dl-help { max-width: 480px; margin-inline: auto; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: linear-gradient(180deg, transparent, rgba(18, 20, 28, .6)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: #dcd8cf; display: inline-flex; align-items: center; gap: 8px; }
.footer-grid a:hover { color: var(--gold-2); }
.footer-h { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
:lang(fa) .footer-h { letter-spacing: 0; font-size: .9rem; }
.footer-brand p { margin-top: 12px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.disclaimer { color: var(--gold-2); max-width: 640px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ============ Motion tour ============ */
.tour { overflow: hidden; }
.tour-stage { position: relative; max-width: 1060px; margin-inline: auto; padding-bottom: 3%; }
.tour-stage::before { content: ""; position: absolute; inset: 10% 5% -5%; background: radial-gradient(ellipse at center, rgba(217, 179, 108, .16), transparent 65%); filter: blur(30px); z-index: -1; }
.device { position: relative; }
.tv { width: 80%; }
.tv-bezel { padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #16171d, #050608); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 50px 100px -40px #000, 0 20px 40px -20px rgba(0, 0, 0, .8); }
.tv .screen { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; }
.tv-stand { width: 30%; height: 18px; margin: 0 auto; background: linear-gradient(180deg, #111218, #07080b); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.phone { position: absolute; width: 22%; inset-inline-end: 0; bottom: 0; z-index: 2; }
.phone-body { position: relative; aspect-ratio: 9 / 19.5; border-radius: 34px; background: linear-gradient(160deg, #1c1d24, #050608); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px #000, -20px 30px 60px -30px rgba(0, 0, 0, .9); }
.phone .screen { position: absolute; inset: 8px; border-radius: 27px; }
.phone-notch { position: absolute; top: 15px; left: 50%; width: 26%; height: 14px; margin-left: -13%; border-radius: 99px; background: #000; z-index: 5; }
.screen { overflow: hidden; background: var(--bg); container-type: inline-size; container-name: screen; isolation: isolate; }
@media (max-width: 720px) {
  .tv { display: none; }
  .phone { position: relative; width: min(270px, 74vw); margin-inline: auto; }
  .tour-stage { padding-bottom: 0; }
}

.tour-ui { display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: center; max-width: 880px; margin: 36px auto 0; }
.tour-toggle { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--s1); color: var(--gold-2); display: grid; place-items: center; cursor: pointer; transition: border-color .2s; }
.tour-toggle:hover { border-color: var(--gold); }
.tour-toggle .ic-play, .tour-toggle.is-paused .ic-pause { display: none; }
.tour-toggle.is-paused .ic-play { display: block; }
.tour-caption { min-height: 6.2em; }
.tour-caption h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 4px; }
.tour-caption p { margin: 0; color: var(--muted); }
.tour-step { font-size: .78rem; letter-spacing: .16em; color: var(--gold) !important; margin-bottom: 6px !important; font-variant-numeric: tabular-nums; }
.tour-dots { grid-column: 1 / -1; list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.tour-dot { display: block; width: 100%; height: 22px; padding: 9px 0; background: none; border: 0; cursor: pointer; }
.tour-dot span { display: block; height: 4px; border-radius: 4px; background: rgba(243, 239, 230, .14); overflow: hidden; position: relative; }
.tour-dot span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: left center; transform: scaleX(var(--fill, 0)); }
html[dir="rtl"] .tour-dot span::after { transform-origin: right center; }
.tour-dot:hover span { background: rgba(243, 239, 230, .26); }

/* ---- Tour: app chrome + scenes. Base font is relative to the screen width, so one markup fits phone and TV. ---- */
@keyframes m-in { from { opacity: 0; transform: translateY(.8em); } to { opacity: 1; transform: none; } }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-out { to { opacity: 0; transform: translateY(-.6em); visibility: hidden; } }
@keyframes m-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes m-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes m-type-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes m-press { 0%, 100% { transform: none; } 50% { transform: scale(.92); } }
@keyframes m-ripple { from { transform: scale(0); opacity: .55; } to { transform: scale(5); opacity: 0; } }
@keyframes m-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes m-select { to { border-color: var(--gold); background: rgba(217, 179, 108, .13); } }
@keyframes m-chip-on { to { background: rgba(217, 179, 108, .16); border-color: var(--gold); color: var(--gold-2); } }
@keyframes m-dim { to { opacity: .22; filter: grayscale(1); } }
@keyframes t-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes t-down { from { transform: none; } to { transform: translateY(105%); } }
@keyframes t-left { from { transform: translateX(105%); } to { transform: none; } }
@keyframes t-left-out { from { transform: none; } to { transform: translateX(105%); } }
@keyframes t-right { from { transform: translateX(-105%); } to { transform: none; } }
@keyframes t-right-out { from { transform: none; } to { transform: translateX(-105%); } }
@keyframes t-show { 0% { opacity: 0; } 8%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes t-hide { 0% { opacity: 1; } 8%, 92% { opacity: 0; } 100% { opacity: 1; } }

.tour-stage.is-paused .scene, .tour-stage.is-paused .scene * { animation-play-state: paused !important; }
.tour-dots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }

/* App chrome */
.t-chrome { position: absolute; inset: 0; z-index: 3; pointer-events: none; font-size: 4.5cqi; line-height: 1.3; transition: opacity .5s ease; }
.screen[data-nav="none"] .t-chrome { opacity: 0; }
.t-rail { display: none; }
.t-appbar { position: absolute; inset: 0 0 auto; height: 3.7em; padding: 1.7em 1em 0; display: flex; align-items: center; gap: .7em; background: linear-gradient(180deg, var(--bg) 75%, rgba(11, 12, 18, 0)); }
.lockup { display: inline-flex; align-items: center; gap: .45em; }
.lk-logo { width: 1.75em; height: 1.5em; }
.lk-wm { height: .95em; width: 3.5em; }
.lk-fa { font-size: 1.12em; }
.t-ab-ic { width: 1.15em; height: 1.15em; color: var(--muted); }
.t-appbar .lockup + .t-ab-ic { margin-inline-start: auto; }
.t-bottom { position: absolute; inset: auto 0 0; height: 3.7em; display: flex; justify-content: space-around; align-items: center; padding: 0 .3em .3em; background: rgba(18, 20, 28, .97); border-top: 1px solid var(--line); }
.t-item { display: flex; flex-direction: column; align-items: center; gap: .2em; color: var(--muted); transition: color .4s, background-color .4s; border-radius: .7em; }
.t-item svg { width: 1.25em; height: 1.25em; }
.t-item b { font-size: .52em; font-weight: 600; white-space: nowrap; }
.screen[data-nav="home"] [data-item="home"], .screen[data-nav="live"] [data-item="live"], .screen[data-nav="guide"] [data-item="guide"],
.screen[data-nav="sport"] [data-item="sport"], .screen[data-nav="movies"] [data-item="movies"], .screen[data-nav="series"] [data-item="series"] { color: var(--gold-2); }
.screen[data-nav="home"] .t-bottom [data-item="home"] svg, .screen[data-nav="live"] .t-bottom [data-item="live"] svg, .screen[data-nav="sport"] .t-bottom [data-item="sport"] svg,
.screen[data-nav="movies"] .t-bottom [data-item="movies"] svg, .screen[data-nav="series"] .t-bottom [data-item="series"] svg { filter: drop-shadow(0 0 .35em rgba(217, 179, 108, .6)); }

/* Scenes */
.scene { position: absolute; inset: 0; font-size: 4.5cqi; line-height: 1.35; padding: 3.9em .9em 4.3em; opacity: 0; transform: scale(1.03); transition: opacity .7s ease, transform 1s var(--ease); color: var(--ivory); pointer-events: none; overflow: hidden; }
.scene.is-active { opacity: 1; transform: none; }
.scene.full { padding: 0; }
.scene svg { flex: none; }
.m-h { font-weight: 800; font-size: 1.15em; margin: 0 0 .5em; display: flex; align-items: center; gap: .4em; }
.m-h svg { width: 1.1em; height: 1.1em; color: var(--gold-2); }
.m-muted { color: var(--muted); margin: 0; font-size: .9em; }
.c-a { background: linear-gradient(140deg, #f1d9a5, #b98f45); }
.c-b { background: linear-gradient(140deg, #7fb3ff, #2b4a8a); }
.crest { border-radius: 50% 50% 45% 45%; }
.scene .hv-feat-copy { max-width: 72%; inset-inline-start: 1em; }
.scene .hv-feat-copy h4 { font-size: 1.45em; }
.scene .hv-row-h { margin: .8em 0 .45em; font-size: .82em; }

/* 1 Sign in + source */
.s-signin .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3em 1.2em 1.2em; }
.s-signin .ph2 { opacity: 0; justify-content: flex-start; padding-top: 4.2em; }
.m-center { display: flex; flex-direction: column; align-items: center; gap: .9em; text-align: center; }
.lockup.big { font-size: 1.8em; margin-bottom: .2em; }
.m-google { position: relative; overflow: hidden; margin-top: .8em; display: inline-flex; align-items: center; gap: .6em; padding: .8em 1.3em; border-radius: 99px; background: #fff; color: #1f1f1f; font-weight: 700; font-size: .9em; }
.m-google svg { width: 1.2em; height: 1.2em; }
.m-ripple { position: absolute; left: 50%; top: 50%; width: 2em; height: 2em; margin: -1em; border-radius: 50%; background: rgba(66, 133, 244, .45); transform: scale(0); }
.m-form { width: 100%; }
.m-tabs { display: flex; gap: .4em; margin-bottom: .9em; }
.m-tabs span { padding: .4em .8em; border-radius: 99px; border: 1px solid var(--line-2); font-size: .78em; color: var(--muted); }
.m-tabs .on { background: rgba(217, 179, 108, .16); border-color: var(--gold); color: var(--gold-2); }
.m-field { display: block; margin-bottom: .7em; }
.m-field span { display: block; font-size: .7em; color: var(--muted); margin-bottom: .3em; }
.m-field b { display: block; direction: ltr; text-align: left; white-space: nowrap; overflow: hidden; font-weight: 600; font-size: .82em; padding: .65em .8em; border-radius: .6em; background: var(--s2); border: 1px solid var(--line); min-height: 2.4em; }
.m-field .m-type { display: inline-block; clip-path: inset(0 100% 0 0); }
.m-btn { display: block; text-align: center; margin-top: 1em; padding: .75em; border-radius: 99px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #17130b; font-weight: 800; font-size: .9em; }
.m-toast { position: absolute; inset-inline: 1.2em; bottom: 1.4em; display: flex; align-items: center; gap: .5em; padding: .7em .9em; border-radius: .8em; background: var(--s2); border: 1px solid rgba(47, 191, 113, .5); font-size: .76em; font-weight: 700; opacity: 0; }
.m-toast svg { width: 1.2em; height: 1.2em; color: #2fbf71; }
.s-signin.play .ph1 { animation: m-in .6s var(--ease) both, m-out .5s 2.1s forwards; }
.s-signin.play .m-google { animation: m-press .35s 1.3s ease; }
.s-signin.play .m-ripple { animation: m-ripple .8s 1.35s ease-out; }
.s-signin.play .ph2 { animation: m-in .6s 2.3s var(--ease) both; }
.s-signin.play .m-type.t1 { animation: m-type .9s 2.7s steps(18) both; }
.s-signin.play .m-type.t2 { animation: m-type .4s 3.6s steps(6) both; }
.s-signin.play .m-type.t3 { animation: m-type .4s 4s steps(8) both; }
.s-signin.play .m-btn { animation: m-press .35s 4.4s ease; }
.s-signin.play .m-toast { animation: m-in .5s 4.6s var(--ease) both; }

/* 2 Home */
.scene .t-banner { aspect-ratio: 16 / 10; }
.t-cw .hv-cw { width: 44%; }
.t-posters .hv-poster { width: 28%; }
.s-home.play .hv-row > *, .s-pip.play .hv-row > * { animation: m-in .6s var(--ease) both; }
.s-home.play .hv-row > :nth-child(2) { animation-delay: .08s; } .s-home.play .hv-row > :nth-child(3) { animation-delay: .16s; } .s-home.play .hv-row > :nth-child(n+4) { animation-delay: .24s; }

/* 3 Language */
.t-chips { display: flex; flex-wrap: wrap; gap: .4em; margin-bottom: .8em; }
.t-chips span { padding: .35em .75em; border-radius: 99px; font-size: .7em; border: 1px solid var(--line-2); color: var(--muted); }
.t-chips .on { background: rgba(217, 179, 108, .16); border-color: var(--gold); color: var(--gold-2); }
.t-chips .lang { color: var(--ivory); font-family: "Vazirmatn", sans-serif; background: var(--s2); }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; }
.t-grid .hv-poster { width: auto; }
.s-lang.play .t-chips .c2 { animation: m-chip-on .3s 1.4s both; }
.s-lang.play .t-grid .hv-poster { animation: m-pop .5s var(--ease) both; }
.s-lang.play .t-grid .hv-poster.dim { animation: m-pop .5s var(--ease) both, m-dim .5s 1.7s ease forwards; }

/* 4 Series */
.t-shead { position: relative; aspect-ratio: 16 / 7.5; border-radius: .8em; overflow: hidden; }
.t-shead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 12, 18, .9), transparent 70%); }
.t-shead > div { position: absolute; z-index: 1; inset-inline: .9em; bottom: .7em; }
.t-shead small { font-size: .5em; letter-spacing: .1em; text-transform: uppercase; color: rgba(243, 239, 230, .7); }
.t-shead h4 { margin: .1em 0; font-size: 1.4em; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
:lang(fa) .t-shead h4 { letter-spacing: 0; }
.t-shead p { margin: 0; font-size: .64em; color: #cfccc4; }
.t-seasons { display: flex; gap: 1.1em; margin: .7em 0 .55em; }
.t-seasons span { font-size: .72em; color: var(--muted); padding-bottom: .3em; font-weight: 600; }
.t-seasons .sa { color: var(--ivory); box-shadow: inset 0 -2px 0 var(--gold); }
.t-sbar { display: none; }
@keyframes tab-off { to { color: var(--muted); box-shadow: none; } }
@keyframes tab-on { to { color: var(--ivory); box-shadow: inset 0 -2px 0 var(--gold); } }
.s-series.play .t-seasons .sa { animation: tab-off .3s .9s forwards; }
.s-series.play .t-seasons .sb2 { animation: tab-on .3s .9s forwards; }
.t-eps { display: grid; gap: .4em; }
.t-ep { display: grid; grid-template-columns: 5.2em minmax(0, 1fr) 1em; gap: .6em; align-items: center; padding: .3em; border-radius: .6em; border: 1px solid transparent; }
.t-ep-art { position: relative; aspect-ratio: 16 / 9; border-radius: .4em; overflow: hidden; }
.t-ep-art u { position: absolute; left: 0; right: 0; bottom: 0; height: .2em; background: linear-gradient(90deg, var(--gold) calc(var(--p) * 100%), rgba(243, 239, 230, .2) 0); }
.t-ep b { display: block; font-size: .72em; }
.t-ep small { display: block; font-size: .58em; color: var(--muted); }
.t-ep .ok { width: 1em; height: 1em; color: var(--gold-2); }
.t-ep .pl { width: 1em; height: 1em; color: var(--ivory); }
.s-series.play .t-ep { animation: m-in .45s 1.1s var(--ease) both; }
.s-series.play .t-ep:nth-child(2) { animation-delay: 1.18s; } .s-series.play .t-ep:nth-child(3) { animation: m-in .45s 1.26s var(--ease) both, m-select .3s 2.3s forwards; } .s-series.play .t-ep:nth-child(4) { animation-delay: 1.34s; }
.t-nextwrap { position: absolute; inset: 0; z-index: 5; opacity: 0; }
.s-series.play .t-nextwrap { animation: m-fade .5s 2.9s both; }
.t-next { position: absolute; z-index: 3; inset-inline-end: .8em; bottom: 3em; display: flex; align-items: center; gap: .55em; padding: .45em; padding-inline-end: .7em; border-radius: .7em; background: rgba(18, 20, 28, .93); border: 1px solid rgba(217, 179, 108, .6); opacity: 0; }
.s-series.play .t-next { animation: m-in .5s 3.7s var(--ease) both; }
.t-next-art { position: relative; width: 4.6em; aspect-ratio: 16 / 9; border-radius: .4em; overflow: hidden; }
.t-next small { display: block; font-size: .54em; color: var(--gold-2); font-weight: 700; }
.t-next b { display: block; font-size: .7em; }
.t-next .ring { width: 1.5em; height: 1.5em; border-radius: 50%; background: conic-gradient(var(--gold) var(--a, 0deg), rgba(243, 239, 230, .15) 0); -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%); mask: radial-gradient(circle, transparent 52%, #000 54%); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes t-ring { to { --a: 360deg; } }
.s-series.play .t-next .ring { animation: t-ring 1.6s 3.8s linear both; }

/* Shared player parts */
.t-video { position: absolute; inset: 0; overflow: hidden; }
.t-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .65), transparent 35%); }
.t-ctrl { position: absolute; z-index: 2; left: .9em; right: .9em; bottom: 1em; display: flex; align-items: center; gap: .6em; direction: ltr; }
.t-ctrl > svg { width: 1.1em; height: 1.1em; color: #fff; }
.t-ctrl small { font-size: .6em; color: #ddd; }
.t-seek { position: relative; flex: 1; height: .22em; border-radius: .2em; background: rgba(255, 255, 255, .3); }
.t-seek u { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; border-radius: .2em; background: var(--gold); }
.t-seek i { position: absolute; left: 38%; top: 50%; width: .8em; height: .8em; margin: -.4em; border-radius: 50%; background: var(--gold-2); }

/* 5 Subtitles */
.t-subline { position: absolute; z-index: 2; left: 50%; bottom: 3.2em; transform: translateX(-50%); width: max-content; max-width: 86%; margin: 0; text-align: center; font-size: .8em; font-weight: 700; color: #fbeec2; background: rgba(0, 0, 0, .55); padding: .2em .55em; border-radius: .3em; opacity: 0; }
.s-subs.play .t-subline { animation: m-fade .4s 4s both; }
.s-subs.play .t-cc { animation: m-press .4s .5s ease; color: var(--gold-2); }
.t-panel { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 64%; padding: 1em; background: var(--s1); border-radius: 1em 1em 0 0; border-top: 1px solid var(--line-2); transform: translateY(105%); }
.s-subs.play .t-panel { animation: t-up .6s .8s var(--ease) both, t-down .5s 3.5s ease-in forwards; }
.t-search { display: flex; align-items: center; gap: .5em; padding: .55em .7em; border-radius: .6em; background: var(--s2); border: 1px solid var(--gold); margin-bottom: .7em; font-size: .66em; overflow: hidden; }
.t-search svg { width: 1.2em; height: 1.2em; color: var(--gold-2); }
.t-search .ts { white-space: nowrap; font-weight: 600; clip-path: inset(0 100% 0 0); }
.s-subs.play .t-search .ts { animation: m-type 1s 1.3s steps(28) both; }
html[dir="rtl"] .t-search .ts { clip-path: inset(0 0 0 100%); }
html[dir="rtl"] .s-subs.play .t-search .ts { animation-name: m-type-rtl; }
.t-res { display: flex; align-items: center; gap: .5em; padding: .5em .7em; margin-bottom: .35em; border-radius: .55em; border: 1px solid var(--line); font-size: .7em; opacity: 0; }
.t-res small { color: var(--muted); font-size: .85em; }
.t-res svg { width: 1.1em; height: 1.1em; color: var(--gold-2); margin-inline-start: auto; opacity: 0; }
.s-subs.play .t-res { animation: m-in .35s 2.4s var(--ease) both; }
.s-subs.play .t-res.r2 { animation-delay: 2.5s; } .s-subs.play .t-res.r3 { animation-delay: 2.6s; } .s-subs.play .t-res.r4 { animation-delay: 2.7s; }
.s-subs.play .t-res.r1 { animation: m-in .35s 2.3s var(--ease) both, m-select .3s 3.1s forwards; }
.s-subs.play .t-res.r1 svg { animation: m-fade .2s 3.1s forwards; }

/* 6 Seek preview */
.s-seek .t-ctrl { bottom: 1.6em; }
@keyframes t-scrub { from { left: 18%; } to { left: 62%; } }
@keyframes t-scrub-w { from { width: 18%; } to { width: 62%; } }
.s-seek .t-seek u { width: 18%; } .s-seek .t-seek i { left: 18%; width: 1em; height: 1em; margin: -.5em; box-shadow: 0 0 0 .3em rgba(217, 179, 108, .3); }
.s-seek.play .t-seek u { animation: t-scrub-w 1.8s .6s var(--ease) both; }
.s-seek.play .t-seek i, .s-seek.play .t-thumbs { animation: t-scrub 1.8s .6s var(--ease) both; }
.t-thumbs { position: absolute; left: 18%; bottom: 1.2em; transform: translateX(-50%); display: flex; align-items: flex-end; gap: .35em; }
.t-thumbs span { position: relative; width: 4.2em; aspect-ratio: 16 / 9; border-radius: .3em; overflow: hidden; border: 1px solid rgba(255, 255, 255, .35); opacity: .85; }
.t-thumbs .big { width: 7.4em; border: 2px solid var(--gold-2); opacity: 1; box-shadow: 0 .5em 1.2em -.4em #000; }
.t-thumbs b { position: absolute; z-index: 1; left: 0; right: 0; bottom: .2em; text-align: center; font-size: .6em; color: #fff; text-shadow: 0 1px 3px #000; }
.s-seek.play .t-thumbs { opacity: 1; }
.t-thumbs > span:not(.big) { display: none; }

/* 7 PiP */
.t-pip { position: absolute; z-index: 5; inset: 0; overflow: hidden; transform-origin: calc(100% - .8em) calc(100% - 4.6em); box-shadow: 0 1em 2em -.6em #000; border: 0 solid rgba(217, 179, 108, .7); }
html[dir="rtl"] .t-pip { transform-origin: .8em calc(100% - 4.6em); }
@keyframes t-pip { to { transform: scale(.42); border-radius: 1.6em; border-width: 3px; } }
.s-pip.play .t-pip { animation: t-pip .9s 1s cubic-bezier(.6, 0, .2, 1) forwards; }
.t-pip .hv-live { font-size: 1.2em; }
.t-pip-ic { position: absolute; z-index: 1; top: .8em; inset-inline-end: .8em; display: flex; gap: .8em; opacity: 0; }
.t-pip-ic svg { width: 2.2em; height: 2.2em; color: #fff; filter: drop-shadow(0 1px 3px #000); }
.s-pip.play .t-pip-ic { animation: m-fade .3s 1.9s forwards; }

/* 8 Cast */
.only-tv { display: none; }
.t-pvid { position: absolute; top: 2.6em; left: 0; right: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.t-castic { position: absolute; z-index: 1; top: .6em; inset-inline-end: .6em; width: 1.4em; height: 1.4em; color: #fff; }
.s-cast.play .t-castic { animation: m-press .4s .6s ease; color: var(--gold-2); }
.t-pinfo { position: absolute; top: 16em; left: 0; right: 0; padding: 0 1em; }
.t-pinfo b { display: block; font-size: 1em; font-weight: 800; }
.t-pinfo small { font-size: .64em; color: var(--muted); }
.t-sheet { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 1em 1em 1.6em; background: var(--s2); border-radius: 1em 1em 0 0; transform: translateY(105%); }
.s-cast.play .t-sheet { animation: t-up .5s 1.1s var(--ease) both, t-down .4s 2.5s ease-in forwards; }
.t-dev { display: flex; align-items: center; gap: .6em; padding: .65em .7em; margin-bottom: .35em; border-radius: .6em; border: 1px solid var(--line); font-size: .76em; }
.t-dev svg { width: 1.4em; height: 1.4em; color: var(--gold-2); }
.s-cast.play .t-dev.d1 { animation: m-select .25s 2.05s forwards; }
.t-remote { position: absolute; z-index: 4; inset: 2.6em 0 0; padding: 1.4em 1em; background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: .8em; opacity: 0; }
.s-cast.play .t-remote { animation: m-in .5s 2.8s var(--ease) both; }
.t-rart { position: relative; width: 80%; aspect-ratio: 16 / 9; border-radius: .7em; overflow: hidden; box-shadow: 0 1em 2em -1em #000; }
.t-playing { display: flex; align-items: center; gap: .4em; margin: .3em 0 0; font-size: .66em; color: var(--gold-2); font-weight: 700; }
.t-playing svg { width: 1.3em; height: 1.3em; }
.t-rtitle { font-size: 1.05em; }
.t-rbtns { display: flex; align-items: center; gap: 1.6em; margin: .4em 0; }
.t-rbtns > svg { width: 1.5em; height: 1.5em; color: var(--ivory); }
.t-rbtns .big { width: 3.2em; height: 3.2em; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #17130b; }
.t-rbtns .big svg { width: 1.4em; height: 1.4em; }
.t-vol { width: 70%; height: .25em; border-radius: .2em; background: rgba(243, 239, 230, .18); }
.t-vol u { display: block; width: 60%; height: 100%; border-radius: .2em; background: var(--gold); }
.t-stop { margin-top: .4em; font-size: .66em; padding: .45em 1.1em; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.t-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em; font-size: 1.6em; background: radial-gradient(ellipse at center, #191b27, var(--bg) 70%); }
.t-idle p { margin: 0; font-size: .55em; color: var(--muted); }
.t-castvid { opacity: 0; }
.s-cast.play .t-castvid { animation: m-fade .7s 2.8s both; }
.t-castchip { position: absolute; z-index: 2; top: 1em; inset-inline-start: 1em; display: flex; align-items: center; gap: .4em; padding: .4em .9em; border-radius: 99px; background: rgba(11, 12, 18, .72); border: 1px solid rgba(217, 179, 108, .6); font-size: .8em; font-weight: 700; }
.t-castchip svg { width: 1.2em; height: 1.2em; color: var(--gold-2); }

/* 9 Pause / resume live */
.s-live { display: flex; flex-direction: column; gap: .6em; }
.t-lvid { position: relative; aspect-ratio: 16 / 9; border-radius: .7em; overflow: hidden; }
.t-lvid .hv-live { font-size: .9em; }
.t-behind { position: absolute; z-index: 1; top: .5em; inset-inline-start: .5em; padding: .2em .5em; border-radius: .3em; background: rgba(11, 12, 18, .75); font-size: .56em; font-weight: 800; opacity: 0; }
.t-paused { position: absolute; z-index: 1; inset: 0; display: flex; align-items: center; justify-content: center; gap: .4em; font-size: .8em; font-weight: 800; background: rgba(11, 12, 18, .45); opacity: 0; }
.t-paused svg { width: 1.3em; height: 1.3em; }
.t-backlive { position: absolute; z-index: 2; left: 50%; top: 40%; transform: translateX(-50%); padding: .35em .9em; border-radius: 99px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #17130b; font-size: .62em; font-weight: 800; opacity: 0; white-space: nowrap; }
.t-lctrl { position: absolute; z-index: 2; left: .6em; right: .6em; bottom: .5em; display: flex; align-items: center; gap: .5em; direction: ltr; }
.t-lbtn { position: relative; width: 1.7em; height: 1.7em; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.t-lbtn svg { position: absolute; width: .95em; height: .95em; color: #fff; }
.t-lbtn .i2 { opacity: 0; }
.t-ltl { position: relative; flex: 1; height: .22em; border-radius: .2em; background: rgba(255, 255, 255, .25); }
.t-ltl u { position: absolute; inset: 0; border-radius: .2em; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.t-ltl i { position: absolute; left: 100%; top: 50%; width: .75em; height: .75em; margin: -.375em; border-radius: 50%; background: #fff; }
.t-lctrl small { font-size: .55em; font-weight: 800; color: var(--live); }
@keyframes t-head { 0% { left: 100%; } 15% { left: 99%; } 85% { left: 84%; } 100% { left: 100%; } }
@keyframes t-tl { 0% { width: 100%; } 15% { width: 99%; } 85% { width: 84%; } 100% { width: 100%; } }
.s-live.play .t-ltl i { animation: t-head 2.6s 1s linear both; }
.s-live.play .t-ltl u { animation: t-tl 2.6s 1s linear both; right: auto; }
.s-live .t-ltl u { width: 100%; }
.s-live.play .t-lbtn { animation: m-press .3s .9s, m-press .3s 3.3s; }
.s-live.play .t-lbtn .i1 { animation: t-hide 2.4s 1s both; }
.s-live.play .t-lbtn .i2 { animation: t-show 2.4s 1s both; }
.s-live.play .t-paused, .s-live.play .t-behind { animation: t-show 2.4s 1s both; }
.s-live.play .t-lbadge { animation: t-hide 2.4s 1s both; }
.s-live.play .t-backlive { animation: t-show 1.5s 3.4s both; }
.t-catch { display: inline-flex; align-items: center; gap: .4em; margin-top: .5em; padding: .4em .8em; border-radius: 99px; border: 1px solid var(--line-2); color: var(--gold-2); font-size: .64em; font-weight: 700; }
.t-catch svg { width: 1.3em; height: 1.3em; }
.s-live .hv-ch { font-size: 1em; }

/* 10 Match */
.s-match .t-score { margin-bottom: .8em; }
.sa { display: inline-block; height: 1em; line-height: 1; overflow: hidden; vertical-align: top; }
.sa i { display: block; font-style: normal; height: 1em; }
@keyframes m-goal { to { transform: translateY(-1em); } }
@keyframes m-glow { 0% { box-shadow: 0 0 0 rgba(217, 179, 108, 0); } 40% { box-shadow: 0 0 2em rgba(217, 179, 108, .5); border-color: var(--gold); } 100% { box-shadow: 0 0 0 rgba(217, 179, 108, 0); } }
.s-match.play .sa i { animation: m-goal .5s 1.3s var(--ease) both; }
.s-match.play .t-score { animation: m-glow 1.4s 1.3s ease; }
.s-match.play .t-mside .hv-ch { animation: m-in .5s .4s var(--ease) both; }
.s-match .t-alert { bottom: 7.4em; }
.s-match.play .t-alert { animation: m-in .5s 2.5s var(--ease) both; }
.s-match .t-alert { opacity: 0; }

/* TV (landscape) layouts */
@container screen (min-width: 420px) {
  .t-chrome { font-size: 1.85cqi; }
  .t-appbar, .t-bottom { display: none; }
  .t-rail { display: flex; flex-direction: column; align-items: center; gap: 1.5em; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6em; padding: 1.4em 0 1.2em; background: rgba(18, 20, 28, .97); border-inline-end: 1px solid var(--line); }
  .t-rail-logo { width: 2.4em; height: 2.1em; }
  .t-rail nav { display: flex; flex-direction: column; gap: .5em; }
  .t-rail .t-item { width: 4.6em; padding: .5em 0; }
  .t-rail .t-item b { font-size: .58em; }
  .t-gear { margin-top: auto; }
  .screen[data-nav="home"] .t-rail [data-item="home"], .screen[data-nav="live"] .t-rail [data-item="live"], .screen[data-nav="sport"] .t-rail [data-item="sport"],
  .screen[data-nav="movies"] .t-rail [data-item="movies"], .screen[data-nav="series"] .t-rail [data-item="series"] { background: rgba(217, 179, 108, .13); box-shadow: inset 0 0 0 1px rgba(217, 179, 108, .35); }
  .scene { font-size: 1.85cqi; padding: 1.4em 1.8em; padding-inline-start: 7.6em; }
  .scene.full { padding: 0; }
  .scene .hv-feat-copy { max-width: 46%; inset-inline-start: 2em; }
  .scene .hv-feat-copy h4 { font-size: 2.1em; }
  .scene .t-banner { aspect-ratio: 16 / 5.4; }
  .t-cw .hv-cw { width: 21%; }
  .t-posters .hv-poster { width: 12.2%; }
  .s-signin .ph2 { padding-top: 2em; }
  .m-form { max-width: 26em; }
  .m-toast { inset-inline: auto; inset-inline-start: 2em; bottom: 1.6em; }
  .t-grid { grid-template-columns: repeat(6, 1fr); }
  .t-shead { aspect-ratio: 16 / 4; }
  .t-eps { grid-template-columns: 1fr 1fr; column-gap: 1.2em; }
  .t-next { bottom: 3.4em; inset-inline-end: 1.6em; font-size: 1.2em; }
  .t-ctrl { left: 1.8em; right: 1.8em; bottom: 1.4em; }
  .t-panel { top: 0; height: auto; left: auto; right: 0; width: 38%; border-radius: 0; border-top: 0; border-left: 1px solid var(--line-2); padding: 1.6em; transform: translateX(105%); }
  .s-subs.play .t-panel { animation: t-left .6s .8s var(--ease) both, t-left-out .5s 3.5s ease-in forwards; }
  [dir="rtl"] .t-panel { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--line-2); transform: translateX(-105%); }
  [dir="rtl"] .s-subs.play .t-panel { animation: t-right .6s .8s var(--ease) both, t-right-out .5s 3.5s ease-in forwards; }
  .t-subline { bottom: 4em; font-size: 1em; }
  .t-thumbs > span:not(.big) { display: block; }
  .t-pip { transform-origin: calc(100% - 1.4em) calc(100% - 1.4em); }
  [dir="rtl"] .t-pip { transform-origin: 1.4em calc(100% - 1.4em); }
  @keyframes t-pip-tv { to { transform: scale(.34); border-radius: 2em; border-width: 4px; } }
  .s-pip.play .t-pip { animation-name: t-pip-tv; }
  .only-ph { display: none; }
  .only-tv { display: block; position: absolute; inset: 0; }
  .s-live { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.6em; align-items: start; }
  .t-llist { order: -1; }
  .s-match { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 1.8em; align-content: start; }
  .s-match .t-score { padding: 2em 1em; }
  .s-match .t-alert { left: auto; right: auto; inset-inline-end: 2.4em; bottom: 2.4em; }
}

/* Legal pages */
.legal-hero { padding: calc(var(--header-h) + 56px) 0 24px; }
.legal-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal { padding-bottom: 96px; }
.legal article h2 { font-family: var(--font-body); font-size: 1.3rem; font-weight: 800; margin: 2.2em 0 .6em; color: var(--gold-2); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal article h3 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.legal article p, .legal article li { color: #d8d5ce; }
.legal article ul, .legal article ol { padding-inline-start: 1.3em; display: grid; gap: .45em; margin-bottom: 1em; }
.legal .toc { padding: 20px 24px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); margin: 20px 0 10px; }
.legal .toc ol { columns: 2; column-gap: 32px; }
.legal .toc a { color: var(--muted); text-decoration: none; }
.legal .toc a:hover { color: var(--gold-2); }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .94rem; }
.legal th, .legal td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--gold-2); font-weight: 700; }
.legal .table-scroll { overflow-x: auto; }
.todo { background: rgba(224, 23, 79, .14); color: #ffb3c6; padding: 0 .3em; border-radius: 4px; font-weight: 700; }
.note { padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(217, 179, 108, .35); background: rgba(217, 179, 108, .07); }
@media (max-width: 640px) { .legal .toc ol { columns: 1; } }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; position: relative; overflow: hidden; }
.nf-code { font-family: var(--font-display); font-size: clamp(6rem, 22vw, 13rem); line-height: 1; margin: 0; background: linear-gradient(180deg, var(--gold-2), rgba(217, 179, 108, .1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf p { color: var(--muted); max-width: 460px; margin-inline: auto; }
.nf .static { position: absolute; inset: -50%; z-index: -1; opacity: .08; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 1s steps(5) infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .hero-grain, .nf .static { animation: none; }
}

/* Platforms */
.plat-grid { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.plat { border-radius: 18px; background: var(--s1); border: 1px solid var(--line); }
.plat-live { grid-column: span 3; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px 24px; border-color: rgba(217, 179, 108, .35); background: linear-gradient(135deg, rgba(217, 179, 108, .09), var(--s1) 55%); }
.plat-live h3 { margin: 0 0 4px; }
.plat-live p { margin: 0; color: var(--muted); font-size: .92rem; }
.plat-soon { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; }
.plat-soon .f-ic { color: var(--muted); background: rgba(243, 239, 230, .05); border-color: var(--line-2); }
.plat-soon h3 { margin: 0; font-size: 1rem; }
.plat-tag { font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; border: 1px dashed var(--line-2); color: var(--muted); }
.dl-meta { margin: 10px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.plat-meta { margin-top: 18px; text-align: start; }
@media (max-width: 1000px) { .plat-grid { grid-template-columns: repeat(3, 1fr); } .plat-live { grid-column: 1 / -1; } }
@media (max-width: 560px) { .plat-grid { grid-template-columns: repeat(2, 1fr); } .plat-live { grid-template-columns: auto 1fr; } .plat-live .btn { grid-column: 1 / -1; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; padding-bottom: 96px; }
.contact-form { padding: 28px; border-radius: 22px; background: var(--s1); border: 1px solid var(--line); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; }
.field label small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ivory); background: var(--s2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
html[dir="rtl"] .field select { background-position: 15px 55%, 20px 55%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 179, 108, .2); }
.field [aria-invalid="true"] { border-color: var(--live); }
.field-err { color: #ff8fab; font-size: .85rem; min-height: 0; margin: 0; }
.field-err:empty { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: rgba(47, 191, 113, .12); border: 1px solid rgba(47, 191, 113, .45); color: #9fe8bf; }
.form-status.err { background: rgba(224, 23, 79, .12); border: 1px solid rgba(224, 23, 79, .45); color: #ffb3c6; }
.contact-form button[disabled] { opacity: .7; cursor: progress; }
.contact-aside { display: grid; gap: 14px; }
.contact-card { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--s1); }
.contact-card h2 { font-family: var(--font-body); font-size: 1rem; margin: 0 0 12px; }
.contact-card ul { list-style: none; display: grid; gap: 10px; }
.contact-card a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); text-decoration: none; font-weight: 600; }
.contact-card p { color: var(--muted); font-size: .92rem; margin: 0 0 8px; }
.contact-card p a { display: inline; color: var(--gold-2); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-form { padding: 20px; } }

/* ============ Hero device composition (fictional app screens) ============ */
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero { align-items: center; }
.hero-inner .hero-title { font-size: clamp(2.6rem, 5.4vw, 5.4rem); }
:lang(fa) .hero-inner .hero-title { font-size: clamp(2.3rem, 4.8vw, 4.6rem); }
.hero-visual { position: relative; aspect-ratio: 16 / 12.4; perspective: 1800px; --mx: 0; --my: 0; contain: layout paint; }
.hero-visual::before { content: ""; position: absolute; inset: 8% 0 0 8%; background: radial-gradient(ellipse at 55% 45%, rgba(217, 179, 108, .16), transparent 62%); filter: blur(24px); }
.hv-tv { position: absolute; top: 2%; inset-inline-start: 0; width: 92%; transform: translate3d(calc(var(--mx) * -12px), calc(var(--my) * -9px), 0) rotateY(7deg) rotateX(2deg); transform-origin: 30% 50%; }
html[dir="rtl"] .hv-tv { transform: translate3d(calc(var(--mx) * -12px), calc(var(--my) * -9px), 0) rotateY(-7deg) rotateX(2deg); transform-origin: 70% 50%; }
.hv-tv-bezel { padding: 1.1%; border-radius: 14px; background: linear-gradient(180deg, #1b1c23, #050608); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 60px 90px -40px #000, 0 30px 60px -30px rgba(0, 0, 0, .9); }
.hv-tv-stand { width: 24%; height: 16px; margin: 0 auto; background: linear-gradient(180deg, #121319, #07080b); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.hv-screen { position: relative; overflow: hidden; background: var(--bg); container-type: inline-size; isolation: isolate; color: var(--ivory); }
.hv-tvscreen { aspect-ratio: 16 / 9; border-radius: 6px; }
.hv-phone { position: absolute; bottom: 0; inset-inline-end: 0; width: 29%; z-index: 2; transform: translate3d(calc(var(--mx) * 16px), calc(var(--my) * 12px), 0); }
.hv-phone-body { position: relative; aspect-ratio: 9 / 19.5; border-radius: 15% / 7%; background: linear-gradient(160deg, #22232b, #050608); box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 70px -26px #000; animation: hv-float 8s ease-in-out infinite; }
.hv-phonescreen { position: absolute; inset: 3.4%; border-radius: 12% / 5.6%; }
.hv-notch { position: absolute; z-index: 5; top: 3.2%; left: 50%; width: 28%; height: 2.6%; margin-left: -14%; border-radius: 99px; background: #000; }
@keyframes hv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hv-screen svg { flex: none; }
.sil { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Fictional poster art: colour grading per title */
.a-aurora { background: radial-gradient(ellipse at 28% 18%, rgba(80, 240, 170, .5), transparent 52%), radial-gradient(ellipse at 74% 8%, rgba(150, 110, 255, .45), transparent 46%), linear-gradient(180deg, #0d1b2e, #123a46 48%, #1b5c58 72%, #0b0c12); }
.a-neon { background: radial-gradient(ellipse at 62% 28%, rgba(255, 60, 160, .6), transparent 55%), radial-gradient(ellipse at 18% 62%, rgba(60, 120, 255, .55), transparent 50%), linear-gradient(180deg, #160b2c, #0b0c12); }
.a-harbor { background: radial-gradient(ellipse at 76% 30%, rgba(241, 217, 165, .45), transparent 40%), linear-gradient(180deg, #0e1a33, #27456b 55%, #d98c4a 86%, #0b0c12); }
.a-dunes { background: linear-gradient(180deg, #3b1636, #c4513c 55%, #f0a35c 76%, #2a1420); }
.a-forest { background: radial-gradient(circle at 28% 28%, rgba(243, 239, 230, .28), transparent 30%), linear-gradient(180deg, #0d1f25, #21443b 62%, #0b1210); }
.a-noir { background: radial-gradient(ellipse at 50% 38%, rgba(243, 239, 230, .22), transparent 45%), linear-gradient(160deg, #1a1b22, #3b3f4c 52%, #8a1d35); }
.a-space { background: radial-gradient(ellipse at 66% 42%, #4a36a0, transparent 58%), linear-gradient(180deg, #07081a, #141a3d); }
.a-road { background: linear-gradient(180deg, #1a0f33, #5a1f5c 45%, #e0174f 76%, #f1a35c 92%); }
.a-pitch { background: #1f5a3a; }

.hv-poster { position: relative; flex: none; aspect-ratio: 2 / 3; border-radius: .5em; overflow: hidden; box-shadow: 0 .4em 1em -.4em #000; }
.hv-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 12, 18, .9), transparent 48%), linear-gradient(180deg, rgba(11, 12, 18, .35), transparent 22%); }
.hv-poster b { position: absolute; z-index: 1; inset-inline: .45em; bottom: 1.45em; font-size: .72em; line-height: 1.05; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.hv-poster em { position: absolute; z-index: 1; inset-inline: .6em; bottom: .6em; font-style: normal; font-size: .42em; letter-spacing: .08em; text-transform: uppercase; color: rgba(243, 239, 230, .7); white-space: nowrap; overflow: hidden; }
.hv-poster .sb { position: absolute; z-index: 1; top: .45em; inset-inline-end: .45em; font-style: normal; font-size: .46em; font-weight: 800; padding: .2em .45em; border-radius: .3em; background: rgba(11, 12, 18, .7); color: var(--gold-2); border: 1px solid rgba(217, 179, 108, .5); }
.ts-serif b { font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-style: italic; font-size: .8em; }
.ts-wide b { text-transform: uppercase; letter-spacing: .14em; font-size: .62em; }
.ts-tall b { text-transform: uppercase; font-size: .86em; letter-spacing: -.02em; font-weight: 800; transform: scaleY(1.12); transform-origin: bottom; }
.ts-neon b { color: #ffd1ea; text-shadow: 0 0 .4em #ff3ca0, 0 0 .9em rgba(255, 60, 160, .7); letter-spacing: .04em; }
:lang(fa) .hv-poster b { font-family: "Vazirmatn", sans-serif; font-style: normal; letter-spacing: 0; text-transform: none; transform: none; }

/* TV home screen */
.hv-ui { position: absolute; inset: 0; font-size: 1.68cqi; line-height: 1.3; padding: 1.5em 2em; display: flex; flex-direction: column; }
.hv-top { display: flex; align-items: center; gap: 2.2em; margin-bottom: 1.2em; }
.hv-brand, .lockup { display: inline-flex; align-items: center; gap: .55em; }
.hv-ic-logo { width: 2.3em; height: 2em; }
.hv-wm { height: 1.05em; width: 3.9em; }
.hv-top nav { display: flex; gap: 1.6em; color: var(--muted); font-size: .92em; white-space: nowrap; }
.hv-top nav .on { color: var(--ivory); font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold); padding-bottom: .25em; }
.hv-icons { margin-inline-start: auto; display: flex; align-items: center; gap: 1.1em; color: var(--muted); }
.hv-icons svg { width: 1.3em; height: 1.3em; }
.hv-avatar { width: 1.9em; height: 1.9em; border-radius: 50%; background: linear-gradient(140deg, #6f7bd8, #2b2f55); box-shadow: 0 0 0 2px rgba(217, 179, 108, .7); }
.hv-banner { position: relative; flex: none; aspect-ratio: 16 / 4.7; border-radius: .9em; overflow: hidden; box-shadow: 0 1em 2em -1em #000; }
.hv-feat { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hv-feat.is-on { opacity: 1; }
.hv-feat .sil { transform: scale(1.08); transition: transform 7s ease-out; }
.hv-feat.is-on .sil { transform: scale(1); }
.hv-feat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 12, 18, .92), rgba(11, 12, 18, .35) 55%, transparent); }
html[dir="rtl"] .hv-feat::after { background: linear-gradient(270deg, rgba(11, 12, 18, .92), rgba(11, 12, 18, .35) 55%, transparent); }
.hv-feat-copy { position: absolute; z-index: 1; inset-inline-start: 2em; top: 50%; transform: translateY(-50%); max-width: 46%; }
.hv-feat-copy small { display: block; color: var(--gold-2); font-size: .72em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
:lang(fa) .hv-feat-copy small { letter-spacing: 0; }
.hv-feat-copy h4 { margin: .2em 0 .25em; font-size: 2.3em; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.hv-feat-copy p { margin: 0 0 .9em; font-size: .8em; color: #cfccc4; display: flex; flex-wrap: wrap; gap: .45em; align-items: center; }
.hv-feat-copy p i { font-style: normal; font-size: .85em; padding: .05em .45em; border-radius: .3em; border: 1px solid rgba(243, 239, 230, .3); }
.hv-btns { display: flex; gap: .6em; }
.hv-b { display: inline-flex; align-items: center; gap: .4em; padding: .55em 1.1em; border-radius: 99px; background: rgba(243, 239, 230, .13); font-size: .82em; font-weight: 700; }
.hv-b svg { width: 1em; height: 1em; }
.hv-b.gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #17130b; }
.hv-pips { position: absolute; z-index: 1; bottom: 1em; inset-inline-end: 1.4em; display: flex; gap: .35em; }
.hv-pips i { width: .45em; height: .45em; border-radius: .3em; background: rgba(243, 239, 230, .4); transition: width .5s var(--ease), background-color .5s; }
.hv-pips i.on { width: 1.4em; background: var(--gold); }
.hv-row-h { margin: 1.1em 0 .55em; font-size: .9em; font-weight: 800; }
.hv-row { display: flex; gap: .8em; }
.hv-cw { flex: none; width: 19%; }
.hv-cw-art { position: relative; aspect-ratio: 16 / 9; border-radius: .5em; overflow: hidden; margin-bottom: .35em; }
.hv-cw-art u { position: absolute; left: 0; right: 0; bottom: 0; height: .22em; background: linear-gradient(90deg, var(--gold) calc(var(--p) * 100%), rgba(243, 239, 230, .2) 0); }
html[dir="rtl"] .hv-cw-art u { background: linear-gradient(270deg, var(--gold) calc(var(--p) * 100%), rgba(243, 239, 230, .2) 0); }
.hv-cw b { display: block; font-size: .74em; }
.hv-cw small { display: block; font-size: .62em; color: var(--muted); }
.hv-posters .hv-poster { width: 12.4%; }

/* Phone screens */
.hv-status { position: absolute; z-index: 4; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 1.2em 1.5em 0; font-size: 4.6cqi; }
.hv-status b { font-size: .9em; }
.hv-status span { display: flex; gap: .2em; }
.hv-status span i { width: .32em; height: .7em; border-radius: .1em; background: var(--ivory); }
.hv-pstate { position: absolute; inset: 0; font-size: 5cqi; line-height: 1.3; padding: 3.6em .9em 1em; opacity: 0; transform: translateY(.6em); transition: opacity .8s ease, transform .9s var(--ease); }
.hv-pstate.is-on { opacity: 1; transform: none; }
.hv-ph { display: flex; align-items: center; gap: .5em; margin-bottom: .7em; }
.hv-ph b { font-size: 1.15em; font-weight: 800; }
.hv-ph .hv-ic-logo { width: 1.6em; height: 1.4em; }
.hv-ph .hv-s { width: 1.2em; height: 1.2em; color: var(--muted); }
.hv-ph .hv-s:last-child { margin-inline-start: auto; }
.hv-mini { position: relative; aspect-ratio: 16 / 9; border-radius: .7em; overflow: hidden; margin-bottom: .7em; }
.hv-mini::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 12, 18, .85), transparent 55%); }
.hv-live { position: absolute; z-index: 1; top: .5em; inset-inline-start: .5em; display: inline-flex; align-items: center; gap: .3em; padding: .2em .5em; border-radius: .3em; background: var(--live); color: #fff; font-size: .6em; font-weight: 800; letter-spacing: .05em; }
.hv-live i { width: .45em; height: .45em; border-radius: 50%; background: #fff; animation: m-pulse 1.2s infinite; }
.hv-mini-cap { position: absolute; z-index: 1; inset-inline: .6em; bottom: .5em; font-size: .66em; font-weight: 700; }
.hv-chips { display: flex; gap: .35em; margin-bottom: .55em; overflow: hidden; }
.hv-chips span { flex: none; font-size: .62em; padding: .3em .75em; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.hv-chips .on { color: var(--gold-2); border-color: var(--gold); background: rgba(217, 179, 108, .14); }
.hv-ch { display: grid; grid-template-columns: 1.5em 2.1em minmax(0, 1fr) auto; align-items: center; gap: .5em; padding: .42em .45em; border-radius: .6em; border-inline-start: 2px solid transparent; }
.hv-ch.on { background: rgba(217, 179, 108, .1); border-inline-start-color: var(--gold); }
.hv-ch .n { font-size: .64em; color: var(--muted); font-variant-numeric: tabular-nums; }
.hv-ch .lg { width: 2.1em; height: 2.1em; border-radius: .5em; display: grid; place-items: center; font-style: normal; font-size: .9em; font-weight: 800; color: #fff; }
.hv-ch .lg { font-size: .62em; width: 3.4em; height: 3.4em; }
.l-cin { background: linear-gradient(140deg, #3a2a5c, #8a6bd8); }
.l-spo { background: linear-gradient(140deg, #1f7a4c, #59c98a); }
.l-new { background: linear-gradient(140deg, #8a1d35, #e0174f); }
.l-kid { background: linear-gradient(140deg, #d9862b, #f1c75c); }
.l-doc { background: linear-gradient(140deg, #1b3a6b, #4f8fe0); }
.hv-ch b { display: block; font-size: .76em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-ch small { display: block; font-size: .6em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-ch small.nx { opacity: .7; }
.hv-ch u { display: block; height: .16em; margin: .25em 0; border-radius: .2em; background: linear-gradient(90deg, var(--gold) calc(var(--p) * 100%), rgba(243, 239, 230, .14) 0); }
html[dir="rtl"] .hv-ch u { background: linear-gradient(270deg, var(--gold) calc(var(--p) * 100%), rgba(243, 239, 230, .14) 0); }
.hv-ch.compact { grid-template-columns: 1.5em 2.1em minmax(0, 1fr) auto; }
.hv-watch { font-size: .6em; font-weight: 800; padding: .35em .8em; border-radius: 99px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #17130b; }
.hv-pstate.hv-pl { padding: 0; }
.hv-pvideo { position: relative; margin-top: 3.1em; aspect-ratio: 16 / 11; overflow: hidden; }
.hv-pvideo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent 40%); }
.hv-pback { position: absolute; z-index: 1; top: .5em; inset-inline-start: .5em; width: 1.6em; height: 1.6em; border-radius: 50%; background: rgba(0, 0, 0, .4); display: grid; place-items: center; }
.hv-pback svg { width: 1em; height: 1em; }
html[dir="rtl"] .hv-pback svg { transform: scaleX(-1); }
.hv-subline { position: absolute; z-index: 2; left: 6%; right: 6%; bottom: 2.6em; margin: 0; text-align: center; font-size: .66em; font-weight: 700; color: #fbeec2; text-shadow: 0 1px 2px #000, 0 0 5px #000; }
.hv-pctrl { position: absolute; z-index: 2; left: .7em; right: .7em; bottom: .6em; display: flex; align-items: center; gap: .5em; direction: ltr; font-size: .9em; }
.hv-pctrl svg { width: 1em; height: 1em; }
.hv-pctrl small { font-size: .58em; color: #ddd; }
.hv-seek { position: relative; flex: 1; height: .2em; border-radius: .2em; background: rgba(255, 255, 255, .3); }
.hv-seek u { position: absolute; left: 0; top: 0; bottom: 0; width: 64%; border-radius: .2em; background: var(--gold); }
.hv-seek i { position: absolute; left: 64%; top: 50%; width: .7em; height: .7em; margin: -.35em; border-radius: 50%; background: var(--gold-2); }
.hv-pinfo { padding: .7em .9em .5em; }
.hv-pinfo b { display: block; font-size: .95em; font-weight: 800; }
.hv-pinfo small { font-size: .62em; color: var(--muted); }
.hv-sheet { margin: .3em .7em 0; padding: .7em; border-radius: .8em; background: var(--s2); border: 1px solid var(--line); }
.hv-sheet-h { display: flex; align-items: center; gap: .4em; margin: 0 0 .5em; font-size: .78em; font-weight: 800; }
.hv-sheet-h svg { width: 1.2em; height: 1.2em; color: var(--gold-2); }
.hv-opt { display: flex; align-items: center; gap: .4em; padding: .42em .55em; margin-bottom: .3em; border-radius: .5em; border: 1px solid var(--line); }
.hv-opt b { font-size: .7em; }
.hv-opt small { font-size: .56em; color: var(--muted); }
.hv-opt svg { width: 1em; height: 1em; color: var(--gold-2); margin-inline-start: auto; }
.hv-opt.on { border-color: var(--gold); background: rgba(217, 179, 108, .1); }
.hv-style { display: flex; align-items: center; gap: .4em; margin-top: .5em; font-size: .58em; color: var(--muted); }
.hv-style i { display: inline-flex; gap: .25em; font-style: normal; margin-inline-end: .6em; }
.hv-style .sz b { width: 1.6em; height: 1.6em; border-radius: .3em; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ivory); }
.hv-style .sz b.on { border-color: var(--gold); }
.hv-style .cl b { width: 1.2em; height: 1.2em; border-radius: 50%; }
.hv-style .cl .w { background: #fff; } .hv-style .cl .y { background: #fbeec2; } .hv-style .cl .g { background: #9be0b0; }
.hv-style .cl b.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--gold); }
.hv-score { position: relative; padding: .8em; border-radius: .9em; background: linear-gradient(160deg, var(--s2), var(--s1)); border: 1px solid var(--line-2); margin-bottom: .6em; }
.hv-score .hv-live { position: static; margin-bottom: .5em; }
.hv-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; gap: .4em; }
.hv-teams div { display: flex; flex-direction: column; align-items: center; gap: .3em; }
.hv-teams b { font-size: .7em; }
.hv-teams strong { font-size: 1.8em; font-weight: 800; font-variant-numeric: tabular-nums; }
.hv-teams .crest { width: 2.4em; height: 2.4em; }
.hv-poss { height: .2em; margin-top: .7em; border-radius: .2em; background: rgba(243, 239, 230, .14); overflow: hidden; }
.hv-poss u { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--gold); }
.hv-events { list-style: none; display: grid; gap: .3em; margin: 0 0 .2em; }
.hv-events li { display: flex; align-items: center; gap: .5em; font-size: .64em; color: #cfccc4; }
.hv-events span { color: var(--muted); min-width: 2em; }
.hv-events .gl { width: .6em; height: .6em; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 .15em rgba(243, 239, 230, .2); }
.hv-pstate .hv-row-h { font-size: .74em; margin: .6em 0 .3em; }
.hv-toast { position: absolute; left: .9em; right: .9em; bottom: 1.2em; display: flex; align-items: center; gap: .4em; padding: .55em .7em; border-radius: .7em; background: var(--s2); border: 1px solid rgba(217, 179, 108, .55); font-size: .64em; font-weight: 700; }
.hv-toast svg { width: 1.2em; height: 1.2em; color: var(--gold-2); }

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 640px; margin-inline: auto; }
  .hero { min-height: 0; }
}
@media (max-width: 520px) { .hero-visual { aspect-ratio: 16 / 12.8; } .hv-tv-bezel { border-radius: 9px; } }
@media (prefers-reduced-motion: reduce) { .hv-phone-body { animation: none; } .hv-feat .sil { transition: none; transform: none; } }

/* Persian brand name: Vazirmatn text with a gold madd over the alef (brand kit madd curve) */
.fa-word { display: inline-flex; align-items: baseline; font-family: "Vazirmatn", Tahoma, sans-serif; font-weight: 800; color: var(--ivory); line-height: 1; white-space: nowrap; }
.fa-alef { position: relative; display: inline-block; }
.fa-madd { position: absolute; left: 50%; top: -.15em; width: .4em; height: .17em; transform: translateX(-50%); overflow: visible; max-width: none; }
html[lang="fa"] .brand-name .fa-word { display: inline-flex; }
.brand-name .fa-word { padding-top: .18em; font-size: 1.6rem; }
.hv-fa { font-size: 1.25em; }
.fa-a { display: inline-block; clip-path: polygon(-20% .07em, 120% .07em, 120% 130%, -20% 130%); }
html[dir="rtl"] .t-ep-art u { background: linear-gradient(270deg, var(--gold) calc(var(--p) * 100%), rgba(243, 239, 230, .2) 0); }
html[dir="rtl"] .tour-step { text-align: right; }
