/* IPN TV — public website (network style) */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.main { min-height: 60vh; }
.ic--flip { }
html[dir="rtl"] .ic--flip { transform: scaleX(-1); }
html[dir="rtl"] .rail__btn .ic { transform: scaleX(-1); }

/* ==== Header ============================================================== */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.hdr__in { max-width: var(--max); margin: 0 auto; height: 68px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 22px; }
.hdr__logo { display: inline-flex; flex: none; }
.hdr__nav { display: flex; align-items: center; gap: 2px; height: 100%; }
.hdr__link { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 100%; padding: 0 13px; color: var(--text-2); font: 700 15px/1 var(--font); letter-spacing: .02em; transition: color .2s; }
html[dir="ltr"] .hdr__link { font-family: "Barlow Condensed", var(--font); font-size: 18px; letter-spacing: .05em; text-transform: uppercase; }
.hdr__link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); transform: scaleX(0); transition: transform .25s var(--ease); }
.hdr__link:hover { color: var(--text); }
.hdr__link.is-active { color: var(--text); }
.hdr__link.is-active::after, .hdr__link:hover::after { transform: scaleX(1); }
.hdr__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.is-onair .hdr__dot { background: var(--red-2); box-shadow: 0 0 0 0 rgba(255,51,70,.7); animation: ring 1.6s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255,51,70,.7); } 100% { box-shadow: 0 0 0 9px rgba(255,51,70,0); } }
.hdr__tools { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.hdr__icon, .hdr__burger, .hdr__lang { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s; }
.hdr__icon:hover, .hdr__burger:hover, .hdr__lang:hover { background: var(--surface-2); color: var(--text); }
.hdr__icon .ic, .hdr__burger .ic { width: 20px; height: 20px; }
.hdr__lang { font: 800 14px/1 "Barlow Condensed", "Vazirmatn", sans-serif; border: 1px solid var(--line-2); }
.hdr__burger { display: none; }
.hdr__search { position: relative; display: flex; align-items: center; }
.hdr__search input { width: 0; opacity: 0; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 999px; background: var(--surface-2); outline: none; transition: width .3s var(--ease), opacity .2s, padding .3s; }
.hdr__search.is-open input { width: 220px; opacity: 1; padding: 0 44px 0 16px; border-color: var(--line-2); }
html[dir="rtl"] .hdr__search.is-open input { padding: 0 16px 0 44px; }
.hdr__search .hdr__icon { position: absolute; inset-inline-end: 0; }
.hdr__search:not(.is-open) .hdr__icon { position: static; }
.hdr__sh { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; margin-inline-start: 6px; border-radius: 999px; background: linear-gradient(135deg, #F7D98B, #E8B84A 50%, #B98420); color: #2A1700; font-weight: 700; font-size: 14px; box-shadow: 0 6px 20px rgba(232,184,74,.28); transition: transform .2s, box-shadow .2s; white-space: nowrap; }
html[dir="rtl"] .hdr__sh { padding: 0 12px 0 16px; }
.hdr__sh:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(232,184,74,.4); }

/* ---- Ticker ---- */
.ticker { display: flex; align-items: stretch; height: 40px; background: #0A0F1E; border-top: 1px solid rgba(255,255,255,.06); color: #fff; overflow: hidden; }
html[data-mode="light"] .ticker { background: #0B1324; }
.ticker__tag { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; background: var(--red); font-size: 16px; position: relative; z-index: 1; }
.ticker__tag::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: -14px; width: 14px; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%); }
html[dir="rtl"] .ticker__tag::after { clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.ticker__view { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; align-items: center; height: 100%; width: max-content; animation: tick var(--tick-dur, 50s) linear infinite; }
html[dir="rtl"] .ticker__track { animation-name: tick-rtl; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; padding: 0 28px; font-size: 14.5px; font-weight: 500; white-space: nowrap; color: #E9EDF5; }
.ticker__item::before { content: ""; width: 6px; height: 6px; margin-inline-end: 28px; transform: rotate(45deg); background: var(--red-2); }
a.ticker__item:hover { color: #fff; text-decoration: underline; }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes tick-rtl { to { transform: translateX(50%); } }

/* ---- Drawer (mobile menu) ---- */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.drawer.is-open { opacity: 1; }
.drawer__panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(88vw, 360px); display: flex; flex-direction: column; gap: 16px; padding: max(16px, env(safe-area-inset-top)) 18px 24px; background: var(--bg-2); border-inline-end: 1px solid var(--line); overflow-y: auto; transform: translateX(-100%); transition: transform .35s var(--ease); }
html[dir="rtl"] .drawer__panel { transform: translateX(100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.drawer__search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 16.5px; color: var(--text-2); }
.drawer__nav a span:first-of-type { flex: 1; }
.drawer__nav a .ic { width: 22px; height: 22px; }
.drawer__nav a.is-active { background: var(--surface-2); color: var(--text); }
.drawer__nav a.is-active .ic { color: var(--red-2); }
.drawer__sh { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(232,184,74,.2), rgba(232,184,74,.06)); border: 1px solid rgba(232,184,74,.4); }
.drawer__sh > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.drawer__sh strong { font-size: 15px; }
.drawer__sh small { color: var(--gold); font-size: 12.5px; }
.drawer__crown { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #F7D98B, #E8B84A); color: #2A1700; flex: none; }
.drawer__row { display: flex; gap: 8px; flex-wrap: wrap; }
.drawer__social { display: flex; gap: 8px; margin-top: auto; }
.drawer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); }

/* ---- "On air" bar on inner pages ---- */
.onair { position: sticky; top: 68px; z-index: 40; background: linear-gradient(90deg, var(--red-deep), var(--red)); color: #fff; }
.onair__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 44px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14.5px; }
.onair .live-pill { background: #fff; color: var(--red); }
.onair .live-pill::before { background: var(--red); }
.onair__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onair__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

.flash { max-width: var(--max); margin: 16px auto 0; padding: 12px 18px; border-radius: 12px; background: var(--surface-2); }

/* ==== Live hero (home) ===================================================== */
.livehero { background: radial-gradient(120% 120% at 0% 0%, rgba(225,29,46,.28), transparent 50%), #04060C; border-bottom: 1px solid var(--line); }
.livehero.is-new { animation: dropin .6s var(--ease); }
@keyframes dropin { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
.livehero__in { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter); display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr); gap: 28px; align-items: center; }
.livehero__info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: #fff; }
.livehero__title { font-size: clamp(24px, 2.6vw, 38px); font-weight: 800; line-height: 1.15; }
.livehero__since, .livehero__chat { display: inline-flex; align-items: center; gap: 8px; color: #B7C0D4; font-size: 14.5px; }
.livehero__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.livehero .btn--ghost { --c: #fff; border-color: rgba(255,255,255,.3); }

/* ==== Player ============================================================== */
.player { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__unmute { position: absolute; inset-inline-start: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-weight: 600; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: nudge 2.4s 2s ease-in-out 3; }
.player__unmute:hover { background: var(--red); }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: scale(1.06); } }
.player__err { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; background: rgba(4,6,12,.86); color: #fff; }
.player__err .ic { width: 34px; height: 34px; color: var(--red-2); }

/* ==== Hero slider ========================================================== */
.hero { position: relative; height: clamp(460px, 74vh, 760px); overflow: hidden; background: #04060C; color: #fff; }
.hero--compact { height: clamp(380px, 56vh, 560px); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.hero__slide.is-on { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 8s linear; }
.hero__slide.is-on .hero__bg img { transform: scale(1); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,6,12,.92) 0%, rgba(4,6,12,.65) 38%, rgba(4,6,12,.05) 75%), linear-gradient(0deg, var(--bg) 0%, rgba(4,6,12,0) 32%); }
html[dir="rtl"] .hero__shade { background: linear-gradient(270deg, rgba(4,6,12,.92) 0%, rgba(4,6,12,.65) 38%, rgba(4,6,12,.05) 75%), linear-gradient(0deg, var(--bg) 0%, rgba(4,6,12,0) 32%); }
.hero__content { position: relative; z-index: 1; max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter) 110px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 16px; }
.hero__content > * { max-width: 680px; }
.hero__slide.is-on .hero__content > * { animation: rise .8s var(--ease) both; }
.hero__slide.is-on .hero__content > :nth-child(2) { animation-delay: .08s; }
.hero__slide.is-on .hero__content > :nth-child(3) { animation-delay: .16s; }
.hero__slide.is-on .hero__content > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font: 700 13.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html[dir="rtl"] .hero__kicker { letter-spacing: 0; font-size: 14px; }
.hero__kicker .ic { color: var(--gold-2); }
.hero__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red-2); animation: livedot 1.4s infinite; }
.hero__title { font-size: clamp(42px, 6.2vw, 92px); line-height: .9; text-shadow: 0 6px 40px rgba(0,0,0,.5); }
html[dir="rtl"] .hero__title { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.25; }
.hero__text { font-size: clamp(15.5px, 1.4vw, 19px); color: #D7DCE8; max-width: 560px; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero__tabs { position: absolute; z-index: 2; left: 0; right: 0; bottom: 26px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: flex-end; gap: 14px; }
.hero__tab { flex: 1; max-width: 240px; display: flex; flex-direction: column; gap: 9px; padding: 0; border: 0; background: none; color: rgba(255,255,255,.6); text-align: start; cursor: pointer; font-size: 13px; font-weight: 600; }
.hero__tab.is-on, .hero__tab:hover { color: #fff; }
.hero__bar { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero__bar span { display: block; height: 100%; width: 0; background: var(--red-2); }
.hero__tab.is-on .hero__bar span { animation: fill var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__tab.is-on .hero__bar span { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.hero__tablabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; }
html[dir="rtl"] .hero__tablabel { text-transform: none; letter-spacing: 0; }
.hero__pause { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-inline-start: auto; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.3); color: #fff; cursor: pointer; }

/* ==== Home body ============================================================ */
.home-body { padding-top: 10px; padding-bottom: 30px; }
.nextup { display: flex; align-items: center; gap: 16px; margin: 18px 0 0; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.nextup__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(225,29,46,.14); color: var(--red-2); flex: none; }
.nextup__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nextup__body small { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.nextup__body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nextup__when { font: 700 20px/1 "Barlow Condensed", var(--font); color: var(--red-2); white-space: nowrap; }

/* ---- Rails ---- */
.rail, .block, .chsec, .sched-strip { margin-top: clamp(30px, 4vw, 46px); }
.rail__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rail__title { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(22px, 2.2vw, 30px); }
.rail__title .ic { color: var(--red-2); width: 24px; height: 24px; }
.rail__more { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-weight: 600; font-size: 14px; padding: 6px 10px; border-radius: 999px; }
.rail__more:hover { background: var(--surface-2); color: var(--text); }
.rail__nav { margin-inline-start: auto; display: flex; gap: 6px; }
.rail__btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; transition: background .2s, opacity .2s; }
.rail__btn:hover { background: var(--surface-2); }
.rail__btn:disabled { opacity: .35; cursor: default; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 6px; overscroll-behavior-x: contain; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail--show .rail__track { grid-auto-columns: calc((100% - 4 * 16px) / 5); }

/* ---- Video card ---- */
.vcard { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vcard__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vcard:hover .vcard__thumb img { transform: scale(1.06); }
.vcard__thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .25s; }
.vcard:hover .vcard__thumb::after { box-shadow: inset 0 0 0 3px var(--red); }
.vcard__badge { position: absolute; bottom: 8px; inset-inline-end: 8px; padding: 3px 7px; border-radius: 5px; background: rgba(0,0,0,.82); color: #fff; font: 700 12.5px/1.2 var(--font); direction: ltr; }
.vcard__badge--live { background: var(--red); letter-spacing: .08em; text-transform: uppercase; }
.vcard__badge--soon { background: var(--blue); }
.vcard__tag { position: absolute; top: 8px; inset-inline-start: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; background: rgba(0,0,0,.65); color: #fff; font-size: 11.5px; font-weight: 600; }
.vcard__tag .ic { width: 13px; height: 13px; color: var(--red-2); }
.vcard__play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(225,29,46,.92); color: #fff; opacity: 0; transform: scale(.7); transition: opacity .25s, transform .3s var(--ease); }
.vcard__play .ic { width: 22px; height: 22px; margin-inline-start: 3px; fill: currentColor; }
.vcard:hover .vcard__play { opacity: 1; transform: none; }
.vcard__meta { display: flex; flex-direction: column; gap: 4px; }
.vcard__title { font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard:hover .vcard__title { color: var(--red-2); }
html[data-mode="light"] .vcard:hover .vcard__title { color: var(--red); }
.vcard__sub { color: var(--muted); font-size: 13px; }
.vcard--row { flex-direction: row; gap: 12px; }
.vcard--row .vcard__thumb { width: 168px; flex: none; border-radius: 10px; }
.vcard--row .vcard__title { font-size: 14px; }
.vcard--row .vcard__play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }

/* ---- Show card ---- */
.scard { position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; isolation: isolate; background: var(--surface-2); }
.scard__img { position: absolute; inset: 0; z-index: -2; }
.scard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.scard:hover .scard__img img { transform: scale(1.07); }
.scard__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(4,6,12,.94) 100%); }
.scard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: box-shadow .25s; }
.scard:hover::after { box-shadow: inset 0 0 0 3px var(--red); }
.scard__body { display: flex; flex-direction: column; gap: 6px; padding: 16px; color: #fff; }
.scard__title { font-size: 24px; line-height: 1; }
html[dir="rtl"] .scard__title { font-size: 19px; line-height: 1.35; }
.scard__n { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #C9D0E0; }

/* ---- Shayesteh promo ---- */
.shpromo { position: relative; margin-top: clamp(34px, 4.6vw, 56px); display: grid; grid-template-columns: 1.05fr 1fr; min-height: 420px; border-radius: 26px; overflow: hidden; isolation: isolate; background: radial-gradient(120% 140% at 100% 0%, #3B1D52 0%, #1A0E2A 45%, #0E0817 100%); color: #fff; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.shpromo::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; background: linear-gradient(120deg, rgba(247,217,139,.9), rgba(232,184,74,.1) 30%, rgba(232,184,74,.1) 70%, rgba(247,217,139,.9)); background-size: 200% 200%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: gold 6s linear infinite; pointer-events: none; }
@keyframes gold { to { background-position: 200% 0; } }
.shpromo__art { position: relative; order: 2; }
.shpromo__art img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shpromo__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #170C25 0%, rgba(23,12,37,0) 45%); }
html[dir="rtl"] .shpromo__art::after { background: linear-gradient(270deg, #170C25 0%, rgba(23,12,37,0) 45%); }
.shpromo__shamseh { position: absolute; z-index: 1; width: 230px; height: 230px; top: -70px; inset-inline-end: -70px; opacity: .45; animation: spin 70s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shpromo__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: clamp(26px, 4vw, 54px); }
.shpromo__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 9px; border-radius: 999px; background: rgba(232,184,74,.14); border: 1px solid rgba(247,217,139,.45); color: var(--gold-2); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.shpromo__title { font-size: clamp(36px, 4.6vw, 64px); line-height: .92; background: linear-gradient(180deg, #FFF6DD 10%, var(--gold-2) 55%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[dir="rtl"] .shpromo__title { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.3; }
.shpromo__text { color: #DCD3E6; font-size: 16px; max-width: 520px; }
.shpromo__pts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shpromo__pts li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 13.5px; }
.shpromo__pts .ic { color: var(--gold-2); width: 16px; height: 16px; }
.shpromo__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---- Channels ---- */
.chsec__lead { color: var(--text-2); margin: -4px 0 14px; max-width: 720px; }
.chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.chgrid--big { margin-top: 14px; }
.ccard { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s, background .2s; }
.ccard:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--surface-2); }
.ccard.is-active { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.ccard__logo { display: grid; place-items: center; width: 64px; height: 44px; border-radius: 10px; background: #fff; color: #0B1324; font: 800 16px/1 "Barlow Condensed", "Vazirmatn", sans-serif; overflow: hidden; flex: none; }
.ccard__logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ccard__logo--ipn { background: #0B1324; }
.ccard__logo--ipn .logo { height: 24px; }
.ccard__logo--ipn .logo__box, .ccard__logo--ipn .logo__tv { font-size: 17px; padding: 0 4px; }
.ccard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ccard__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard__cat { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard .live-pill { height: 22px; font-size: 11.5px; padding: 0 7px; }
.ccard--ipn { margin-top: 18px; border-color: rgba(225,29,46,.4); background: linear-gradient(90deg, rgba(225,29,46,.14), var(--surface) 60%); }

/* ---- Schedule strip ---- */
.sched-strip__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.sched-strip__row::-webkit-scrollbar { display: none; }
.slot { scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--line-2); transition: background .2s, border-color .2s; }
.slot:hover { background: var(--surface-2); border-top-color: var(--red); }
.slot.is-now { border-top-color: var(--red); background: linear-gradient(180deg, rgba(225,29,46,.16), var(--surface) 70%); }
.slot__day { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.slot.is-now .slot__day { color: var(--red-2); }
.slot__time { font-size: 28px; }
.slot__title { font-weight: 600; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Stats band ---- */
.statband { margin-top: clamp(34px, 4.6vw, 56px); display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.statband > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 12px; text-align: center; }
.statband > div + div { border-inline-start: 1px solid var(--line); }
.statband strong { font-size: clamp(34px, 4vw, 52px); color: var(--text); line-height: 1; }
.statband span { color: var(--muted); font-size: 14px; }

.empty-home { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 20px; text-align: center; border-radius: 20px; background: var(--surface); border: 1px dashed var(--line-2); }
.empty-home__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(225,29,46,.14); color: var(--red-2); }
.empty-home__ic .ic { width: 30px; height: 30px; }
.empty-home h2 { font-size: 28px; }
.empty-home p { color: var(--text-2); max-width: 520px; }

/* ==== Inner page header ===================================================== */
.pagehead { position: relative; padding: clamp(34px, 5vw, 64px) 0 clamp(20px, 3vw, 30px); background: radial-gradient(80% 140% at 0% 0%, rgba(225,29,46,.16), transparent 60%), radial-gradient(70% 120% at 100% 0%, rgba(47,107,255,.12), transparent 60%); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.pagehead--slim { padding: 34px 0 22px; }
.pagehead__kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--red-2); font-weight: 700; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
html[dir="rtl"] .pagehead__kicker { letter-spacing: 0; }
.pagehead__title { font-size: clamp(38px, 5vw, 68px); }
html[dir="rtl"] .pagehead__title { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.3; }
.pagehead__sub { margin-top: 8px; color: var(--text-2); }
.block-title { font-size: 26px; margin: 26px 0 14px; }

/* ---- Filters ---- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.filters__search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); }
.filters__search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--text-2); transition: background .2s, color .2s, border-color .2s; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { color: var(--text); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip:focus-within { outline: 3px solid var(--red-2); outline-offset: 2px; }
.select select { height: 40px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237D879E' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-weight: 600; font-size: 14px; cursor: pointer; }
html[dir="rtl"] .select select { padding: 0 14px 0 36px; background-position: left 14px center; }

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 18px; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 34px 0 10px; }
.pager__btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; }
.pager__btn:hover { background: var(--surface-2); }
.pager__info { color: var(--muted); font-size: 14px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 20px; text-align: center; color: var(--text-2); }
.empty > .ic { width: 40px; height: 40px; color: var(--muted); }
.empty h2 { font-size: 22px; color: var(--text); }
.fineprint { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; color: var(--muted); font-size: 13px; }
.fineprint .ic { margin-top: 3px; }

/* ==== Watch ================================================================ */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; padding-top: 24px; padding-bottom: 40px; }
.watch__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.watch__show { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--text-2); }
.watch__show:hover { color: var(--text); }
.watch__title { margin-top: 10px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; line-height: 1.25; }
.watch__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.watch__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.watch__acts { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.watch__desc { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.watch__desc-body { max-height: 9.5em; overflow: hidden; white-space: normal; word-break: break-word; transition: max-height .3s; }
.watch__desc.is-open .watch__desc-body { max-height: none; }
.watch__desc a { color: var(--red-2); }
.watch__more { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--text); font-weight: 700; cursor: pointer; }
.watch__side-title { display: flex; align-items: center; gap: 8px; font-size: 22px; margin-bottom: 14px; }
.watch__side-title .ic { color: var(--red-2); }
.vlist { display: flex; flex-direction: column; gap: 14px; }

/* ==== Live page ============================================================== */
.livepage { padding: 24px 0 10px; }
.livepage.is-live { background: linear-gradient(180deg, #04060C, var(--bg)); }
.livepage__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.livepage__grid.has-chat { grid-template-columns: minmax(0, 1fr) 380px; }
.livepage__bar { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.livepage__title { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; line-height: 1.25; }
.livepage__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.livepage__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.livepage__acts { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.livepage__chat { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); min-height: 520px; }
.livepage__chat iframe { width: 100%; height: 100%; min-height: 520px; border: 0; }
.offair__screen { position: relative; aspect-ratio: 16 / 7; min-height: 400px; border-radius: 22px; overflow: hidden; background: #000; color: #fff; }
.offair__screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
.offair__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,6,12,.95) 0%, rgba(4,6,12,.75) 45%, rgba(4,6,12,.3) 100%); }
html[dir="rtl"] .offair__shade { background: linear-gradient(270deg, rgba(4,6,12,.95) 0%, rgba(4,6,12,.75) 45%, rgba(4,6,12,.3) 100%); }
.offair__msg { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: clamp(24px, 4vw, 56px); max-width: 640px; }
.offair__title { font-size: clamp(36px, 4.6vw, 64px); }
html[dir="rtl"] .offair__title { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.3; }
.offair__msg > p { color: #C9D0E0; }
.offair__next { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.offair__next small { color: var(--gold-2); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.countdown { font: 800 26px/1.1 "Barlow Condensed", var(--font); color: #fff; direction: ltr; unicode-bidi: isolate; }
.offair__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.offair__auto { display: inline-flex; align-items: center; gap: 10px; color: #9AA4BB; font-size: 13.5px; }
.offair__pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--red-2); animation: ring 1.6s infinite; }

/* ==== Channel page =========================================================== */
.chview { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-top: 24px; padding-bottom: 40px; }
.chview__info { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.chview__info > div { flex: 1; min-width: 0; }
.chview__row { display: flex; align-items: center; gap: 10px; }
.chview__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.chview__desc { color: var(--text-2); margin-top: 4px; }
.chview__side { display: flex; flex-direction: column; gap: 10px; }
.chview__side .ccard--ipn { margin-top: 0; }

/* ==== Show page ============================================================== */
.showhero { position: relative; min-height: 440px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; margin-bottom: 10px; }
.showhero__bg { position: absolute; inset: 0; }
.showhero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(0); }
.showhero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,6,12,.94), rgba(4,6,12,.6) 50%, rgba(4,6,12,.2)), linear-gradient(0deg, var(--bg), transparent 40%); }
html[dir="rtl"] .showhero__shade { background: linear-gradient(270deg, rgba(4,6,12,.94), rgba(4,6,12,.6) 50%, rgba(4,6,12,.2)), linear-gradient(0deg, var(--bg), transparent 40%); }
.showhero__in { position: relative; padding-top: 60px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.showhero__title { font-size: clamp(40px, 5.6vw, 80px); max-width: 900px; }
html[dir="rtl"] .showhero__title { font-size: clamp(30px, 4vw, 54px); line-height: 1.3; }
.showhero__text { max-width: 680px; color: #D2D8E4; }
.showhero__meta { display: flex; flex-wrap: wrap; gap: 16px; color: #C3CADA; font-size: 14px; }
.showhero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.showhero__acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==== Schedule ================================================================ */
.daytabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 18px; }
.daytabs::-webkit-scrollbar { display: none; }
.daytab { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 120px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); cursor: pointer; font-weight: 700; }
.daytab small { font-weight: 500; color: var(--muted); font-size: 12px; }
.daytab.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.daytab.is-on small { color: rgba(255,255,255,.85); }
.daylist { display: flex; flex-direction: column; gap: 10px; }
.prog { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.prog.is-now { border-color: var(--red); background: linear-gradient(90deg, rgba(225,29,46,.14), var(--surface) 50%); }
.prog__time { display: flex; flex-direction: column; }
.prog__time strong { font-size: 30px; line-height: 1; }
.prog__time small { color: var(--muted); }
.prog__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.prog__title { font-size: 18px; font-weight: 700; }
.prog__body p { color: var(--text-2); font-size: 14.5px; }

/* ==== Prose (static pages) ===================================================== */
.prose { max-width: 820px; padding-bottom: 50px; font-size: 16.5px; color: var(--text-2); }
.prose h2 { font-size: 24px; color: var(--text); margin: 30px 0 10px; }
.prose h3 { font-size: 19px; color: var(--text); margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose a { color: var(--red-2); text-decoration: underline; }
.prose strong { color: var(--text); }

/* ==== Error page ================================================================ */
.errpage { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 60px 20px; text-align: center; }
.errpage__code { font-size: clamp(90px, 16vw, 180px); line-height: .9; background: linear-gradient(180deg, var(--text), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.errpage__msg { font-size: 22px; font-weight: 700; }
.errpage__acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ==== Footer ====================================================================== */
.ftr { margin-top: clamp(50px, 6vw, 80px); background: #04060C; color: #C9D0E0; }
html[data-mode="light"] .ftr { background: #0B1324; }
.ftr__cta { background: linear-gradient(90deg, var(--red-deep), var(--red) 60%, #FF4A5B); }
.ftr__cta-in { max-width: var(--max); margin: 0 auto; padding: 26px var(--gutter); display: flex; align-items: center; gap: 20px; color: #fff; }
.ftr__cta-in > div { flex: 1; }
.ftr__cta strong { display: block; font-size: clamp(24px, 2.6vw, 34px); }
.ftr__cta p { color: rgba(255,255,255,.88); }
.ftr__yt { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: rgba(255,255,255,.16); flex: none; }
.ftr__yt .ic { width: 32px; height: 32px; }
.ftr__cta .btn--red { --b: #fff; --c: var(--red); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.ftr__cta .btn--red:hover { --b: #fff; }
.ftr__grid { max-width: var(--max); margin: 0 auto; padding: 46px var(--gutter) 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 34px; }
.ftr__brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ftr__brand p { color: #8E98B0; font-size: 14.5px; max-width: 320px; }
.ftr .logo__tv { background: #fff; color: #0B1324; }
.ftr__social { display: flex; gap: 8px; flex-wrap: wrap; }
.ftr__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.07); transition: background .2s, transform .2s; }
.ftr__social a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.ftr__col { display: flex; flex-direction: column; gap: 9px; }
.ftr__col h2 { font-size: 18px; color: #fff; margin-bottom: 4px; }
.ftr__col a { color: #9AA4BB; font-size: 14.5px; }
.ftr__col a:hover { color: #fff; }
.ftr__sh { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; border-radius: 18px; background: radial-gradient(120% 120% at 100% 0%, #3B1D52, #170C25); border: 1px solid rgba(232,184,74,.4); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.ftr__sh:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(232,184,74,.15); }
.ftr__sh-crown { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #F7D98B, #E8B84A); color: #2A1700; }
.ftr__sh small { color: var(--gold-2); font-weight: 600; }
.ftr__sh strong { font-size: 24px; line-height: 1; color: #fff; }
html[dir="rtl"] .ftr__sh strong { font-size: 19px; line-height: 1.4; }
.ftr__sh-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--gold-2); font-weight: 700; font-size: 14px; }
.ftr__bottom { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) max(24px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 13px; color: #7D879E; }

.totop { position: fixed; inset-inline-end: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(225,29,46,.4); transition: transform .2s, opacity .2s; }
.totop:hover { transform: translateY(-3px); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; box-shadow: 0 16px 40px rgba(0,0,0,.4); transition: transform .35s var(--ease), opacity .35s; max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast a { padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--red); white-space: nowrap; }

/* ==== Responsive ====================================================================== */
@media (max-width: 1240px) {
  .hdr__link { padding: 0 9px; }
  html[dir="ltr"] .hdr__link { font-size: 16.5px; }
  .hdr__sh span { display: none; }
  .hdr__sh, html[dir="rtl"] .hdr__sh { padding: 0; width: 40px; justify-content: center; }
  .rail__track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .rail--show .rail__track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: grid; margin-inline-start: -8px; }
  .livehero__in { grid-template-columns: 1fr; }
  .watch, .chview { grid-template-columns: 1fr; }
  .livepage__grid.has-chat { grid-template-columns: 1fr; }
  .shpromo { grid-template-columns: 1fr; }
  .shpromo__art { order: 0; min-height: 220px; }
  .shpromo__art::after, html[dir="rtl"] .shpromo__art::after { background: linear-gradient(0deg, #170C25 0%, rgba(23,12,37,0) 60%); }
}
@media (max-width: 760px) {
  .hdr__in { height: 60px; gap: 10px; }
  .onair { top: 60px; }
  .hdr__search.is-open { position: absolute; inset-inline: 12px; top: 10px; z-index: 2; }
  .hdr__search.is-open input { width: 100%; }
  .hdr .logo { height: 30px; }
  .hdr .logo__box, .hdr .logo__tv { font-size: 22px; }
  .ticker__item { font-size: 13.5px; }
  .hero { height: min(78vh, 620px); }
  .hero--compact { height: 440px; }
  .hero__content { padding-bottom: 86px; gap: 12px; }
  .hero__shade, html[dir="rtl"] .hero__shade { background: linear-gradient(0deg, var(--bg) 2%, rgba(4,6,12,.86) 35%, rgba(4,6,12,.2) 75%); }
  .hero__tab { min-width: 0; }
  .hero__tablabel { display: none; }
  .hero__acts .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
  .rail__track { grid-auto-columns: 74%; gap: 12px; }
  .rail--show .rail__track { grid-auto-columns: 46%; }
  .rail__nav { display: none; }
  .rail__more { margin-inline-start: auto; }
  .statband { grid-template-columns: 1fr 1fr; }
  .statband > div:nth-child(3) { border-inline-start: 0; }
  .statband > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .vgrid { grid-template-columns: 1fr; gap: 22px; }
  .sgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .scard__title { font-size: 20px; }
  .vcard--row .vcard__thumb { width: 140px; }
  .watch__acts, .livepage__acts { margin-inline-start: 0; width: 100%; }
  .prog { grid-template-columns: 76px minmax(0, 1fr); }
  .prog__act { grid-column: 1 / -1; }
  .prog__time strong { font-size: 24px; }
  .offair__screen { aspect-ratio: auto; min-height: 520px; }
  .offair__shade, html[dir="rtl"] .offair__shade { background: linear-gradient(0deg, rgba(4,6,12,.96) 30%, rgba(4,6,12,.5)); }
  .offair__msg { justify-content: flex-end; }
  .ftr__cta-in { flex-direction: column; text-align: center; }
  .ftr__grid { grid-template-columns: 1fr; gap: 26px; }
  .ftr__bottom { flex-direction: column; text-align: center; }
  .player { border-radius: 10px; }
  .livehero__in { padding: 0 0 18px; gap: 14px; }
  .livehero__player .player { border-radius: 0; }
  .livehero__info { padding: 0 var(--gutter); }
  .nextup { flex-wrap: wrap; }
  .chgrid { grid-template-columns: 1fr; }
}
.livepage__main .player { width: min(100%, calc((100vh - 230px) * 16 / 9)); min-width: min(100%, 640px); margin: 0 auto; }
.livepage__grid.has-chat .livepage__main .player { width: 100%; }

/* ==== 1.8 · Richer cards, rails and show header (classic) ======================================= */
/* glass play button with an animated ring — shown on hover/focus, and always (smaller) on touch screens */
.vplay { position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; place-items: center; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.38), rgba(255,255,255,.08) 60%), rgba(225,29,46,.55); border: 1px solid rgba(255,255,255,.45); box-shadow: 0 10px 30px -8px rgba(225,29,46,.7), inset 0 1px 0 rgba(255,255,255,.5); -webkit-backdrop-filter: blur(10px) saturate(170%); backdrop-filter: blur(10px) saturate(170%); opacity: 0; transform: scale(.72); transition: opacity .3s var(--ease), transform .4s var(--ease), background .3s; pointer-events: none; }
.vplay > .ic { position: relative; width: 24px; height: 24px; margin-inline-start: 3px; fill: currentColor; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
html[dir="rtl"] .vplay > .ic { margin-inline-start: 0; margin-inline-end: 3px; transform: none; }
.vplay__ring { position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); opacity: 0; }
.vplay__ring::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 62%, rgba(255,255,255,.95) 82%, transparent 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); animation: vRing 1.6s linear infinite; }
@keyframes vRing { to { transform: rotate(360deg); } }
@keyframes vPulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.vcard2:hover .vplay, .vcard2:focus-visible .vplay, .scard2:hover .vplay, .scard2:focus-visible .vplay { opacity: 1; transform: none; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.4), rgba(255,255,255,.08) 60%), rgba(225,29,46,.85); }
.vcard2:hover .vplay__ring, .vcard2:focus-visible .vplay__ring, .scard2:hover .vplay__ring, .showhero__poster:hover .vplay__ring { opacity: 1; animation: vPulse 1.8s ease-out infinite; }
@media (hover: none) { .vcard2 .vplay { opacity: 1; transform: scale(.78); background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.32), rgba(255,255,255,.06) 60%), rgba(10,14,28,.35); } }
.vcard2 { position: relative; }
.vcard2 .vcard__play { display: none; }
/* thumb */
.vcard2 .vcard__thumb { border-radius: 14px; box-shadow: 0 14px 30px -22px rgba(0,0,0,.8); }
.vcard2 .vcard__thumb::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 62%, rgba(0,0,0,.55)); pointer-events: none; }
.vcard2:hover .vcard__thumb::after, .vcard2:focus-visible .vcard__thumb::after { box-shadow: inset 0 0 0 2px var(--red-2), 0 0 0 0 transparent; }
.vcard2:focus-visible { outline: none; } .vcard2:focus-visible .vcard__thumb { outline: 3px solid var(--red-2); outline-offset: 3px; }
.vcard2 .vcard__thumb img { transition: transform .6s var(--ease), filter .4s; }
.vcard2:hover .vcard__thumb img { transform: scale(1.07); filter: saturate(1.15) brightness(.92); }
.vcard__marks { position: absolute; z-index: 2; top: 8px; inset-inline-start: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.vmark { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; color: #fff; font-size: 11.5px; font-weight: 800; background: rgba(8,10,20,.58); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); letter-spacing: .02em; }
.vmark .ic { width: 13px; height: 13px; }
.vmark--live { background: var(--red); border-color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 6px 16px -6px var(--red); }
html[dir="rtl"] .vmark--live { text-transform: none; letter-spacing: 0; }
.vmark--new { background: linear-gradient(120deg, var(--gold), #F59E0B); color: #1B1204; border-color: rgba(255,255,255,.35); }
.vmark--star { width: 24px; padding: 0; justify-content: center; color: #1B1204; background: var(--gold-2); border-color: rgba(255,255,255,.4); }
.vmark--star .ic { fill: currentColor; }
.vmark__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: nbPulse 1.6s infinite; flex: none; }
.vcard2 .vcard__badge { z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; background: rgba(6,8,16,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-weight: 800; letter-spacing: .02em; }
.vcard2 .vcard__badge .ic { width: 12px; height: 12px; }
/* meta */
.vcard2 .vcard__meta { gap: 6px; padding-inline: 2px; }
.vcard__chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.vchip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 800; color: var(--red-2); background: rgba(225,29,46,.12); border: 1px solid rgba(225,29,46,.22); overflow: hidden; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
html[dir="rtl"] .vchip { text-transform: none; letter-spacing: 0; font-size: 12px; }
html[data-mode="light"] .vchip { color: #B5121F; background: rgba(225,29,46,.08); }
.vchip bdi { overflow: hidden; text-overflow: ellipsis; }
.vchip .ic { width: 12px; height: 12px; flex: none; }
.vchip--ep { color: var(--gold-2); background: rgba(232,184,74,.12); border-color: rgba(232,184,74,.3); }
html[data-mode="light"] .vchip--ep { color: var(--gold-deep); background: rgba(232,184,74,.14); }
.vcard2 .vcard__title { font-family: var(--font); font-weight: 700; font-size: 15.5px; line-height: 1.38; letter-spacing: -.005em; color: var(--text); transition: color .2s; }
html[dir="rtl"] .vcard2 .vcard__title { line-height: 1.65; font-size: 15px; }
.vcard2 .vcard__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
html[data-mode="light"] .vcard2 .vcard__sub { color: #5B6680; }
.vcard2 .vcard__sub > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.vcard2 .vcard__sub .ic { width: 13px; height: 13px; opacity: .8; }
.vcard__live { color: var(--red-2); font-weight: 800; } .vcard__live .vmark__dot { background: var(--red-2); }
.vcard2.vcard--row .vplay { width: 42px; height: 42px; margin: -21px 0 0 -21px; } .vcard2.vcard--row .vplay > .ic { width: 17px; height: 17px; }
.vcard2.vcard--row .vcard__chips, .vcard2.vcard--row .vcard__dur { display: none; }

/* rails: icon tile, count, see-all pill, edge fades */
.rail__head .rail__title > .ic, .rail__ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--red-2), var(--red-deep)); box-shadow: 0 10px 22px -12px var(--red), inset 0 1px 0 rgba(255,255,255,.3); }
html .rail__head .rail__title > .ic { padding: 9px; box-sizing: border-box; color: #fff; }
.rail__ic .ic { width: 20px; height: 20px; color: #fff; }
.rail2 .rail__title > span:last-child, .block-title2 > span:nth-child(2) { position: relative; }
.rail__count { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font: 700 12.5px/1 var(--font); }
.rail__head .rail__more { height: 34px; padding: 0 12px 0 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 700; transition: background .2s, border-color .2s, color .2s; }
html[dir="rtl"] .rail__head .rail__more { padding: 0 14px 0 12px; }
.rail__head .rail__more:hover { background: var(--red); border-color: var(--red); color: #fff; }
.rail__head .rail__more .ic { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.rail__head .rail__more:hover .ic { transform: translateX(3px); } html[dir="rtl"] .rail__head .rail__more:hover .ic { transform: translateX(-3px) scaleX(-1); }
.rail__head .rail__btn { width: 40px; height: 40px; background: var(--surface); box-shadow: 0 6px 16px -10px rgba(0,0,0,.5); }
.rail__head .rail__btn:not(:disabled):hover { background: var(--red); border-color: var(--red); color: #fff; }
.rail__view { position: relative; min-width: 0; max-width: 100%; }
.rail__view::before, .rail__view::after { content: ""; position: absolute; z-index: 3; top: 0; bottom: 6px; width: 56px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.rail__view::before { inset-inline-start: -1px; background: linear-gradient(to right, var(--bg), transparent); }
.rail__view::after { inset-inline-end: -1px; background: linear-gradient(to left, var(--bg), transparent); }
html[dir="rtl"] .rail__view::before { background: linear-gradient(to left, var(--bg), transparent); } html[dir="rtl"] .rail__view::after { background: linear-gradient(to right, var(--bg), transparent); }
.rail__view.has-prev::before, .rail__view.has-next::after { opacity: 1; }
.rail2 .rail__track { padding-top: 4px; }

/* show card */
.scard2 { border-radius: 18px; box-shadow: 0 18px 36px -24px rgba(0,0,0,.85); transition: transform .35s var(--ease); }
.scard2:hover { transform: translateY(-4px); }
.scard2:focus-visible { outline: 3px solid var(--red-2); outline-offset: 3px; }
.scard2 .scard__shade { background: linear-gradient(180deg, rgba(4,6,12,.25) 0%, transparent 28%, transparent 40%, rgba(4,6,12,.96) 100%); }
.scard2 > .scard__n { position: absolute; top: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(8,10,20,.55); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 800; }
.scard2 > .scard__n .ic { width: 13px; height: 13px; color: var(--gold-2); }
.scard2 .scard__body { gap: 8px; padding: 16px 16px 14px; width: 100%; }
.scard__kick { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-2); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
html[dir="rtl"] .scard__kick { letter-spacing: 0; font-size: 12px; }
.scard__kick .ic { width: 13px; height: 13px; }
.scard2 .scard__title { text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.scard__go { display: inline-flex; align-items: center; gap: 9px; margin-top: 2px; font-size: 13px; font-weight: 700; color: #E6EAF3; max-height: 0; opacity: 0; transition: max-height .35s var(--ease), opacity .3s; }
.scard2:hover .scard__go, .scard2:focus-visible .scard__go { max-height: 40px; opacity: 1; }
.vplay--sm { position: relative; top: auto; left: auto; width: 34px; height: 34px; margin: 0; opacity: 1; transform: none; }
.vplay--sm > .ic { width: 14px; height: 14px; margin-inline-start: 2px; }
.vplay--sm .vplay__ring { inset: -4px; }
@media (hover: none) { .scard__go { max-height: 40px; opacity: 1; } }

/* channel card */
.ccard2 { position: relative; padding: 12px 14px 12px 12px; border-radius: 16px; overflow: hidden; }
.ccard2 .ccard__logo { width: 68px; height: 48px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-2), 0 8px 18px -12px rgba(0,0,0,.6); }
.ccard2 .ccard__cat { display: inline-flex; align-items: center; gap: 5px; }
.ccard2 .ccard__cat .ic { width: 12px; height: 12px; }
.ccard__go { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); transition: background .2s, color .2s, transform .3s var(--ease); }
.ccard__go .ic { width: 13px; height: 13px; fill: currentColor; margin-inline-start: 2px; }
.ccard2:hover .ccard__go { background: var(--red); color: #fff; transform: scale(1.08); }
.ccard2::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--red); transform: scaleY(0); transition: transform .3s var(--ease); }
html[dir="rtl"] .ccard2::before { inset: 0 0 0 auto; }
.ccard2:hover::before, .ccard2.is-active::before { transform: none; }

/* show page header */
.showhero2 { min-height: 480px; }
.showhero2 .showhero__in { padding-inline-end: clamp(0px, 32vw, 460px); }
.showhero__poster { position: absolute; z-index: 1; inset-inline-end: var(--gutter); bottom: 46px; width: min(30vw, 420px); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.18); transform: perspective(900px) rotateY(-8deg); }
html[dir="rtl"] .showhero__poster { transform: perspective(900px) rotateY(8deg); }
.showhero__poster img { width: 100%; height: 100%; object-fit: cover; }
.showhero__poster .vplay { opacity: 1; transform: none; }
.showhero2 .showhero__bg img { filter: blur(18px) saturate(1.2); transform: scale(1.1); }
.showhero2 .showhero__meta span { height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #E6EAF3; font-weight: 600; }
.showhero2 .showhero__meta .ic { color: var(--gold-2); }
.showhero2 .showhero__text { font-size: 16.5px; line-height: 1.65; }
.block-title2 { display: flex; align-items: center; gap: 12px; }
@media (max-width: 900px) { .showhero2 .showhero__in { padding-inline-end: 0; } .showhero__poster { display: none; } .showhero2 .showhero__bg img { filter: none; transform: none; } }
@media (max-width: 760px) { .rail__ic, .rail__head .rail__title > .ic { width: 32px; height: 32px; border-radius: 10px; } .rail__head .rail__title > .ic { padding: 7px; } .rail__ic .ic { width: 17px; height: 17px; } .rail__count { display: none; } .rail__view::before, .rail__view::after { width: 28px; } .vplay { width: 54px; height: 54px; margin: -27px 0 0 -27px; } }
@media (prefers-reduced-motion: reduce) { .vplay__ring::before, .vplay__ring, .vmark__dot { animation: none !important; } .vplay, .scard2, .scard__go { transition: none; } }

/* ==== 1.11 · Round 3 (classic): lang switch, full-screen hero + thumbnail strip, section backgrounds, footer picture card, 4U TV embed ==== */
/* header: the animated language switch sits where the EN/فا circle was */
.hdr__lang { width: auto; height: auto; border: 0; background: none; padding: 0 2px; }
.hdr__lang:hover { background: none; }
.hdr .lsw, .drawer .lsw { --lsw-bg: var(--surface-2); --lsw-knob: var(--text); --lsw-on: var(--bg); --lsw-ink: var(--text-2); }
.drawer__row { align-items: center; }
.drawer__row .lsw { --lsw-h: 36px; }

/* hero: the slide ends where the first screen ends (header + ticker + news bar above it), at least 520px tall */
.hero--full { height: max(520px, calc(100svh - var(--hero-top, 190px))); min-height: 520px; }
.hero--full.hero--compact { height: clamp(380px, 56vh, 560px); min-height: 380px; }
@supports not (height: 100svh) { .hero--full { height: max(520px, calc(100vh - var(--hero-top, 190px))); } }
.hero--full .hero__bg img { object-fit: cover; object-position: var(--fp, 50% 50%); }
.hero--full .hero__content { padding-bottom: clamp(40px, 7vh, 90px); }
.hero--full .hero__shade { background: linear-gradient(90deg, rgba(4,6,12,.9) 0%, rgba(4,6,12,.6) 40%, rgba(4,6,12,.08) 75%), linear-gradient(0deg, var(--bg) 0%, rgba(4,6,12,0) 28%); }
html[dir="rtl"] .hero--full .hero__shade { background: linear-gradient(270deg, rgba(4,6,12,.9) 0%, rgba(4,6,12,.6) 40%, rgba(4,6,12,.08) 75%), linear-gradient(0deg, var(--bg) 0%, rgba(4,6,12,0) 28%); }
.hero__live .hero__dot { width: 9px; height: 9px; }
.hero__count { position: absolute; z-index: 2; top: 18px; inset-inline-end: var(--gutter); display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); color: #fff; font: 700 13px/1 "Barlow Condensed", var(--font); letter-spacing: .06em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); direction: ltr; }
.hero__count b { font-size: 17px; }
.hero__count span:not(:last-child) { opacity: .5; }

/* thumbnail strip under the slider */
.hstrip { position: relative; z-index: 3; margin-top: -1px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); border-bottom: 1px solid var(--line); }
.hstrip__in { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 10px; }
.hstrip__scroll { flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px; }
.hstrip__scroll::-webkit-scrollbar { display: none; }
.hstrip__item { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 4px 12px; max-width: none; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); text-align: start; scroll-snap-align: center; cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease), box-shadow .25s; }
.hstrip__item:hover { background: var(--surface-2); color: var(--text); transform: translateY(-2px); }
.hstrip__item.is-on { color: var(--text); border-color: rgba(225,29,46,.55); box-shadow: 0 10px 30px rgba(225,29,46,.16), inset 0 0 0 1px rgba(225,29,46,.3); }
.hstrip__thumb { position: relative; grid-row: 1 / 3; aspect-ratio: 16 / 9; width: 92px; border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.hstrip__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; filter: saturate(.75); }
.hstrip__item.is-on .hstrip__thumb img, .hstrip__item:hover .hstrip__thumb img { filter: none; }
.hstrip__item:hover .hstrip__thumb img { transform: scale(1.06); }
.hstrip__num { position: absolute; top: 5px; inset-inline-start: 5px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; font: 800 11px/1 "Barlow Condensed", var(--font); }
.hstrip__item.is-on .hstrip__num { background: var(--red); }
.hstrip__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hstrip__t small { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[dir="rtl"] .hstrip__t small { letter-spacing: 0; }
.hstrip__t strong { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hstrip__item .hero__bar { grid-column: 2; align-self: end; height: 3px; background: var(--line-2); }
.hstrip__item .hero__bar span { background: linear-gradient(90deg, var(--red), var(--red-2)); }
.hstrip__item.is-on .hero__bar span { animation: fill var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused ~ .hstrip .hstrip__item.is-on .hero__bar span, .hstrip.is-paused .hstrip__item.is-on .hero__bar span { animation-play-state: paused; }
.hstrip__arrow { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; transition: background .2s, transform .2s; }
.hstrip__arrow:hover { background: var(--surface-2); transform: scale(1.04); }
.hstrip__pause { position: static; margin: 0; border-color: var(--line-2); background: var(--surface); color: var(--text); }
.hstrip__pause:hover { background: var(--surface-2); }

/* home sections: each band gets its own full-width atmosphere (soft radial / mesh glows, faint grid, accent light) */
.home-body { position: relative; padding-top: 0; }
.home-body > .hb { position: relative; isolation: isolate; margin-top: 0; padding: clamp(30px, 4.2vw, 54px) 0 clamp(26px, 3.6vw, 44px); }
.home-body > .hb::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); pointer-events: none; background: var(--hb, none); }
.home-body > .hb::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px;
  mask-image: radial-gradient(70% 90% at 50% 50%, #000 10%, transparent 80%); -webkit-mask-image: radial-gradient(70% 90% at 50% 50%, #000 10%, transparent 80%); }
html[data-mode="light"] .home-body > .hb::after { background-image: linear-gradient(rgba(10,20,40,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(10,20,40,.06) 1px, transparent 1px); }
.home-body > .hb + .hb::before { border-top: 1px solid var(--line); }
.home-body > .nextup { margin-top: 18px; }
.home-body > .hb.rail .rail__view::before { background: linear-gradient(to right, var(--bg), transparent); }
.home-body > .hb.rail .rail__view::after { background: linear-gradient(to left, var(--bg), transparent); }
html[data-mode="light"] .home-body > .hb::before { opacity: .8; }
/* latest: red studio glow */
.hb--latest { --hb: radial-gradient(70% 90% at 8% 0%, rgba(225,29,46,.22), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgba(47,107,255,.12), transparent 60%); }
/* events: pink / coral mesh */
.hb--events { --hb: radial-gradient(60% 100% at 100% 0%, rgba(255,61,129,.2), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(255,122,69,.14), transparent 60%); }
/* featured: gold spotlight */
.hb--featured { --hb: radial-gradient(70% 100% at 50% 0%, rgba(232,184,74,.16), transparent 60%), radial-gradient(40% 60% at 90% 100%, rgba(225,29,46,.1), transparent 60%); }
/* shows: blue / violet night */
.hb--shows { --hb: radial-gradient(80% 100% at 0% 50%, rgba(47,107,255,.2), transparent 60%), radial-gradient(40% 70% at 100% 0%, rgba(124,58,237,.16), transparent 60%); }
/* channels: cyan / teal satellite glow */
.hb--channels { --hb: radial-gradient(70% 90% at 100% 50%, rgba(61,220,255,.14), transparent 60%), radial-gradient(50% 80% at 0% 0%, rgba(16,185,129,.12), transparent 60%); }
/* schedule: amber calendar light */
.hb--schedule { --hb: radial-gradient(70% 100% at 50% 100%, rgba(255,194,71,.16), transparent 60%), radial-gradient(40% 60% at 0% 0%, rgba(225,29,46,.1), transparent 60%); }
/* broadcasts: red / magenta pulse — popular: orange ember */
.hb--broadcasts { --hb: radial-gradient(70% 100% at 0% 0%, rgba(225,29,46,.18), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(192,38,211,.12), transparent 60%); }
.hb--popular { --hb: radial-gradient(70% 100% at 100% 0%, rgba(249,115,22,.16), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(225,29,46,.12), transparent 60%); }
/* contest promo band keeps its own gold rim; stats band becomes a glass gradient */
.home-body > .shpromo { margin-top: clamp(30px, 4.2vw, 54px); margin-bottom: clamp(30px, 4.2vw, 54px); }
.home-body > .statband { margin-top: clamp(34px, 4.6vw, 56px); background: linear-gradient(135deg, rgba(225,29,46,.14), rgba(47,107,255,.12) 50%, rgba(232,184,74,.12)); }

/* footer: the contest card shows the same picture as the mid-page contest box */
.ftr__sh--pic { justify-content: flex-end; min-height: 230px; padding: 18px; border-color: rgba(232,184,74,.5); }
.ftr__sh-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ftr__sh--pic:hover .ftr__sh-img { transform: scale(1.05); }
.ftr__sh-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,12,37,.1) 0%, rgba(23,12,37,.55) 45%, rgba(14,8,23,.96) 100%); }
.ftr__sh--pic { isolation: isolate; }
.ftr__sh--pic .ftr__sh-crown { position: absolute; top: 16px; inset-inline-start: 16px; }
.ftr__ver { display: inline-flex; align-items: center; gap: 6px; }
.ftr__ver .ic { width: 14px; height: 14px; }

/* /live: the 4U TV page inside a 16:9 player above the usual content */
.liveext { margin-bottom: 26px; }
.liveext__frame { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow); border: 1px solid var(--line); }
.liveext__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.liveext__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.liveext__who { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; }
.liveext__who strong { color: var(--text); }
.plogo--ext { height: 26px; width: auto; }
.liveext__hint { display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.liveext__hint .ic { width: 16px; height: 16px; margin-top: 3px; }
.livepage.has-ext .offair__screen { min-height: 300px; aspect-ratio: 16 / 6; }

@media (max-width: 760px) {
  .hero--full, .hero--full.hero--compact { height: max(520px, calc(100svh - var(--hero-top, 150px))); min-height: 520px; }
  .hero--full .hero__content { padding-bottom: calc(30px + 76px + env(safe-area-inset-bottom)); }   /* clears the phone tab bar */
  .hdr__tools .hdr__lang { display: none; }   /* phones: the switch lives in the menu drawer */
  .hero__count { top: 12px; }
  .hstrip__in { padding: 10px var(--gutter); gap: 8px; }
  .hstrip__arrow { display: none; }
  .hstrip__scroll { grid-auto-columns: 78%; }
  .hstrip__item { grid-template-columns: 84px minmax(0, 1fr); padding: 6px; }
  .hstrip__thumb { width: 84px; }
  .hstrip__t strong { font-size: 13.5px; }
  .liveext__open { width: 100%; }
}
/* signed-in header on laptops: the contest chip shrinks to its crown so bell + avatar + switch fit */
@media (max-width: 1540px) {
  .hdr__tools:has(.umenu) .hdr__sh span { display: none; }
  .hdr__tools:has(.umenu) .hdr__sh, html[dir="rtl"] .hdr__tools:has(.umenu) .hdr__sh { padding: 0; width: 40px; justify-content: center; }
  .hdr__tools:has(.umenu) .hdr__in, .hdr__in:has(.umenu) { gap: 14px; }
}
