/* css/site.d/blog.css */
/* IPN 1.29 · Public blog (/blog, /blog/{slug}) and the welcome-page strip. Neutral colours from the page's own
   ink (currentColor), one accent; works on every look, day and night. */
.blg { --bl-acc: var(--p-accent, #E8313F); --bl-line: color-mix(in srgb, currentColor 13%, transparent); --bl-soft: color-mix(in srgb, currentColor 5%, transparent); --bl-mut: color-mix(in srgb, currentColor 62%, transparent); }
.blg .wrap { max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.blg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding-top: 40px; padding-bottom: 10px; }
.blg-head h1 { margin: 0; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -.01em; }
.blg-head p { margin: 8px 0 0; color: var(--bl-mut); max-width: 56ch; }
.blg-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--bl-line); border-radius: 999px; min-width: min(320px, 100%); }
.blg-search svg { width: 17px; height: 17px; opacity: .6; flex: none; }
.blg-search input { border: 0; background: transparent; color: inherit; font: inherit; outline: none; width: 100%; height: 100%; }
.blg-search:focus-within { border-color: var(--bl-acc); }
.blg-filter { display: grid; gap: 12px; padding-top: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--bl-line); margin-bottom: 28px; }
.blg-tabs { display: flex; gap: 22px; }
.blg-tabs a { position: relative; padding: 6px 0; font-weight: 700; color: var(--bl-mut); text-decoration: none; }
.blg-tabs a.is-on { color: inherit; }
.blg-tabs a.is-on::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--bl-acc); }
.blg-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.blg-cats a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--bl-soft); color: inherit; text-decoration: none; font-size: 14px; }
.blg-cats a small { color: var(--bl-mut); font-size: 12px; }
.blg-cats a.is-on { background: var(--bl-acc); color: #fff; } .blg-cats a.is-on small { color: rgba(255,255,255,.8); }
.blg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 34px 26px; }
.blg-card { display: grid; grid-template-rows: auto 1fr; gap: 14px; min-width: 0; }
.blg-card__media { display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--bl-soft); }
.blg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.blg-card:hover .blg-card__media img { transform: scale(1.03); }
.blg-card__ph { display: grid; place-items: center; height: 100%; color: var(--bl-mut); }
.blg-card__ph svg { width: 40px; height: 40px; opacity: .5; }
.blg-card__body { display: grid; align-content: start; gap: 8px; }
.blg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 13px; }
.blg-meta a { color: var(--bl-mut); text-decoration: none; } .blg-meta a:hover { color: inherit; }
.blg-kind { font-weight: 800; color: var(--bl-acc); }
.blg-kind--article { color: inherit; }
.blg-card__t { margin: 0; font-size: 20px; line-height: 1.35; }
.blg-card__t a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s; }
[dir="rtl"] .blg-card__t a { background-position: 100% 100%; }
.blg-card__t a:hover { background-size: 100% 1.5px; }
.blg-card__x { margin: 0; color: var(--bl-mut); line-height: 1.7; font-size: 15px; }
.blg-card__f { display: flex; gap: 14px; margin: 2px 0 0; font-size: 13px; color: var(--bl-mut); }
.blg-card--big { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto; align-items: center; gap: 36px; margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--bl-line); }
.blg-card--big .blg-card__media { border-radius: 18px; }
.blg-card--big .blg-card__t { font-size: clamp(24px, 3vw, 34px); line-height: 1.25; }
.blg-card--big .blg-card__x { font-size: 16.5px; }
@media (max-width: 820px) { .blg-card--big { grid-template-columns: 1fr; gap: 18px; } }
.blg-pages { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 44px 0 8px; font-size: 14px; color: var(--bl-mut); }
.blg-pages a { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-weight: 700; text-decoration: none; }
.blg-pages svg, .blg-more svg { width: 16px; height: 16px; }
.blg-rss { margin: 34px 0 60px; font-size: 13px; } .blg-rss a { display: inline-flex; gap: 6px; align-items: center; color: var(--bl-mut); text-decoration: none; } .blg-rss svg { width: 14px; height: 14px; }
.blg-empty { display: grid; justify-items: center; gap: 10px; padding: 70px 0; text-align: center; color: var(--bl-mut); }
.blg-empty svg { width: 44px; height: 44px; opacity: .5; } .blg-empty h2 { margin: 0; font-size: 20px; color: inherit; }
.blg-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--bl-acc); text-decoration: none; }

/* the post */
.blg-post { padding-bottom: 60px; }
.blg-post__head { max-width: 820px !important; padding-top: 40px; display: grid; gap: 14px; }
.blg-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.blg-crumb a { color: var(--bl-mut); text-decoration: none; } .blg-crumb svg { width: 14px; height: 14px; opacity: .5; }
.blg-post__t { margin: 0; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.15; letter-spacing: -.01em; }
.blg-post__lead { margin: 0; font-size: 19px; line-height: 1.75; color: var(--bl-mut); }
.blg-post__by { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 0; font-size: 14px; color: var(--bl-mut); }
.blg-post__by > * { display: inline-flex; align-items: center; gap: 6px; } .blg-post__by svg { width: 15px; height: 15px; }
.blg-post__cover { margin: 30px auto 0; max-width: 1080px !important; }
.blg-post__cover img { width: 100%; border-radius: 20px; aspect-ratio: 16 / 9; object-fit: cover; }
.blg-post__cover figcaption { margin-top: 8px; font-size: 13px; color: var(--bl-mut); text-align: center; }
.blg-post__body { max-width: 760px !important; margin-top: 34px; }
.blg-prose { font-size: 18px; line-height: 1.95; }
.blg-prose[dir="ltr"] { line-height: 1.75; }
.blg-prose h2 { font-size: 26px; margin: 1.6em 0 .5em; line-height: 1.3; } .blg-prose h3 { font-size: 21px; margin: 1.4em 0 .4em; } .blg-prose h4 { font-size: 18px; }
.blg-prose p { margin: 0 0 1.15em; }
.blg-prose a { color: var(--bl-acc); text-underline-offset: 3px; }
.blg-prose blockquote { margin: 1.4em 0; padding: 4px 22px; border-inline-start: 3px solid var(--bl-acc); font-size: 20px; color: inherit; }
.blg-prose ul, .blg-prose ol { padding-inline-start: 1.3em; margin: 0 0 1.2em; } .blg-prose li { margin: .3em 0; }
.blg-prose hr { border: 0; height: 1px; background: var(--bl-line); margin: 2.2em 0; }
.blg-prose img { max-width: 100%; border-radius: 14px; }
.blg-prose .bl-fig { margin: 1.6em 0; } .blg-prose .bl-fig figcaption { font-size: 14px; color: var(--bl-mut); text-align: center; margin-top: 6px; }
.blg-prose .bl-video { margin: 1.6em 0; aspect-ratio: 16 / 9; } .blg-prose .bl-video iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; }
.blg-share { max-width: 760px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; padding-top: 22px !important; border-top: 1px solid var(--bl-line); }
.blg-share > span { font-weight: 700; margin-inline-end: 6px; }
.blg-share a, .blg-share button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--bl-soft); color: inherit; font: inherit; font-size: 14px; border: 0; cursor: pointer; text-decoration: none; }
.blg-share svg { width: 15px; height: 15px; }
.blg-share a:hover, .blg-share button:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.blg-related { margin-top: 60px; } .blg-related h2 { font-size: 22px; margin: 0 0 20px; }
.blg-preview { display: flex; gap: 8px; align-items: center; margin-top: 16px !important; padding: 10px 14px !important; border-radius: 12px; background: color-mix(in srgb, #F59E0B 16%, transparent); font-size: 14px; }
.blg-preview svg { width: 16px; height: 16px; }

/* welcome page strip */
.blg-strip { max-width: 1180px; margin: 0 auto; padding: 10px 20px 20px; }
.blg-strip__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.blg-strip__head h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.blg-strip__head p { margin: 6px 0 0; color: var(--bl-mut); }
@media (prefers-reduced-motion: reduce) { .blg-card__media img, .blg-card__t a { transition: none; } }

/* css/site.d/brand.css */
/* 1.8.1 · partner network logo beside "Watch" + two-line welcome title */
.plogo { display: inline-block; flex: none; width: auto; object-fit: contain; vertical-align: middle; }
.plogo--watch { height: 1.35em; margin-inline-end: .4em; border-radius: 5px; }
a:has(> .plogo--watch), span:has(> .plogo--watch) { display: inline-flex; align-items: center; }
.btn > .plogo--watch { height: 1.5em; margin-inline-end: .1em; }
.hdr__live .plogo--watch, .ld-live .plogo--watch { height: 22px; }
.ld-live { gap: 6px; }
.ld-btn__ic--4u { background: rgba(255,255,255,.14) !important; box-shadow: none; padding: 6px; }
.plogo--cta { width: 100%; height: auto; max-height: 100%; border-radius: 8px; }

.wt { display: flex; flex-direction: column; gap: .32em; max-width: none !important; }
/* R11 · the first line used to be a flex row because the IPN mark sat inside the sentence and had to be aligned
   to it. The mark is out now, so the line is plain inline text again: real spaces, correct bidi, words that wrap
   where the writing system wants them, and no flex box for aurora's word-by-word split to fight with. */
.wt__l1 { display: block; }
.wt__name { white-space: nowrap; }
.ipnmark { display: inline-flex; align-items: center; font-size: .62em; line-height: 1; transform: translateY(.04em); }
.ipnmark .logo__box { display: inline-grid; place-items: center; padding: .16em .34em; border-radius: .22em; background: #E11D48; color: #fff; font-weight: 900; letter-spacing: .01em; box-shadow: 0 .2em .8em -.3em rgba(225,29,72,.8); }
.ipnmark--img { height: .9em; width: auto; }
.wt__l2 { display: inline-flex; align-items: center; gap: .55em; font-size: clamp(15px, .3em, 30px); font-weight: 700; letter-spacing: .01em; line-height: 1.2; opacity: .92; }
.plogo--sub { height: 1.9em; border-radius: 7px; box-shadow: 0 8px 22px -10px rgba(0,0,0,.6); }
@media (max-width: 760px) { .wt__l2 { font-size: 15px; } .plogo--sub { height: 30px; } }
/* R11 · the hero title keeps the gradient landing.css paints on .wt__l1 — only the door/welcome variant is flattened.
   (This file loads after landing.css, so the two must not fight over the same declarations.) */
.ld-h1.wt, .hello__title.wt { align-items: center; text-align: center; }
/* R11 · `.wt` above drops the max-width the two hosts set, which let "Welcome to IPN TV" run off the side of the
   hero at 1440. Cap it at the hero column instead: the line then wraps between words — never inside one, so
   Persian joining is safe — and no stored title can overflow at any width. */
.ld-h1.wt { max-width: 100% !important; }
.hello__title.wt { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
.hello__title.wt .wt__l1 { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
.wt__l2 { color: rgba(255,255,255,.92); text-shadow: 0 2px 16px rgba(0,0,0,.45); letter-spacing: 0; }
.ld-h1 .wt__l2 { text-shadow: none; }   /* the <h1>'s drop-shadow stack already carries it */
.hello__title .wt__l2 { color: inherit; text-shadow: none; }

/* css/site.d/confirm.css */
/* IPN 1.10 · IPN.confirm() extras (motion.js draws the dialog; base styles in motion.css). Identical copies in site.d / account.d / studio.d. */
.mk-dlg__h { margin: 0 0 6px; font-size: 18px; font-weight: 800; line-height: 1.3; }
.mk-dlg__h + .mk-dlg__title { font-weight: 500; color: var(--muted, #666); font-size: 15px; }
.mk-dlg__box { border: 1px solid var(--line, rgba(0,0,0,.1)); }
.mk-dlg__acts .btn { min-width: 96px; justify-content: center; }
.mk-dlg__acts .btn:focus-visible { outline: 2px solid var(--accent, #E8313F); outline-offset: 2px; }

/* css/site.d/design.css */
/* IPN 1.8 · design refresh (both public themes): Events tab colour in the phone bottom bar. */
.nv--events { --nv: #E11D48; }
.tabbar .nv { position: relative; }

/* css/site.d/extras.css */
/* 1.7 · Waitlist (event + tickets pages) and the unsubscribe page */
.wl-box { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--sunk); border: 1px solid var(--line); color: var(--ink); }
.wl-box__t, .wl-box__on { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.wl-box__t .ic, .wl-box__on .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--acc, #E11D48); }
.wl-box__on { font-weight: 700; }
.wl-box__f { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.wl-box__q { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.wl-box__q select { height: 44px; min-width: 70px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 0 10px; font: inherit; }
.wl-box__btn { flex: 1; justify-content: center; min-height: 44px; }
.wl-box__leave { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.wl-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--acc, #E11D48) 12%, transparent); color: var(--ink); border: 1px solid color-mix(in srgb, var(--acc, #E11D48) 40%, transparent); white-space: nowrap; }
.wl-chip .ic { width: 16px; height: 16px; color: var(--acc, #E11D48); }
.wl-chip--btn { cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; } .wl-chip--btn:hover { background: color-mix(in srgb, var(--acc, #E11D48) 20%, transparent); }
.tk-type.is-off .wl-chip { opacity: 1; pointer-events: auto; }
.pf-unsub { display: grid; place-items: center; min-height: 60vh; padding: 40px 16px; }
.pf-unsub__card { max-width: 520px; text-align: center; padding: 34px 26px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.pf-unsub__card h1 { font-size: 1.6rem; margin: 12px 0 8px; } .pf-unsub__card p { color: var(--ink-2); line-height: 1.7; }
.pf-unsub__ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: color-mix(in srgb, #10B981 14%, transparent); color: #059669; } .pf-unsub__ic .ic { width: 30px; height: 30px; }
.pf-unsub__acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* css/site.d/hdrkit.css */
/* IPN 1.12 · Header kit shared by the welcome page, the IPN site header and the member area (identical copies in site.d / account.d —
   edit one, copy to the other). Three pieces, documented for the contest site in /home/claude/dev/R4-SHARED.md:
   1. the nav item   <a class="hdr__link"><i class="nv nv--key">glyph</i><span>label</span></a>   (coloured icon chip + Barlow/Vazir label)
   2. the icon button <a class="hdr__icon" data-mode-toggle>glyph(sun|moon)</a>                    (day/night, home, …; --onimage on pictures)
   3. the chip colours per section. The classic site's extras.css relies on these rules too. */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/assets/themes/classic/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }

/* ---- 1. nav item ---- */
.hdr__link { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 13px; color: var(--text-2, var(--ink-2, inherit)); font: 700 15px/1 var(--font, "Vazirmatn", system-ui, sans-serif); letter-spacing: .02em; text-decoration: none; transition: color .2s; }
html[dir="ltr"] .hdr__link { font-family: "Barlow Condensed", var(--font, system-ui, sans-serif); 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, var(--accent, #E11D2E)); transform: scaleX(0); transition: transform .25s var(--ease, cubic-bezier(.2,.8,.2,1)); }
.hdr__link:hover, .hdr__link.is-active { color: var(--text, var(--ink, inherit)); }
.hdr__link.is-active::after, .hdr__link:hover::after { transform: scaleX(1); }

/* ---- the coloured icon chip: lifts and tilts on hover, fills when active ---- */
.nv { --nv: #2563EB; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-style: normal;
  color: var(--nv); background: color-mix(in srgb, var(--nv) 13%, transparent);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), background-color .25s, color .25s, box-shadow .3s; }
.nv .ic { width: 16px; height: 16px; }
.nv--tv { --nv: #2563EB; }
.nv--live { --nv: #E11D48; }
.nv--videos { --nv: #F43F5E; }
.nv--shows { --nv: #8B5CF6; }
.nv--channels { --nv: #0EA5E9; }
.nv--schedule { --nv: #F59E0B; }
.nv--events, .nv--event { --nv: #F5B700; }
.nv--sh { --nv: #EC4899; }
.nv--contact { --nv: #22C55E; }
.nv--install { --nv: #22C55E; }
.nv--home { --nv: #2563EB; }
html[data-mode="dark"] .nv { background: color-mix(in srgb, var(--nv) 22%, transparent); color: color-mix(in srgb, var(--nv) 70%, #fff); }
.hdr__link:hover .nv, .drawer__nav a:hover .nv, .ld-nav a:hover .nv { transform: translateY(-2px) rotate(-8deg) scale(1.08); }
.hdr__link:hover .nv .ic, .drawer__nav a:hover .nv .ic, .ld-nav a:hover .nv .ic { animation: nv-pop .5s ease; }
.hdr__link.is-active .nv, .drawer__nav a.is-active .nv, .ld-nav a.is-active .nv { color: #fff; background: linear-gradient(135deg, var(--nv), color-mix(in srgb, var(--nv) 65%, #000)); box-shadow: 0 6px 16px -6px var(--nv); }
.drawer__nav .nv { width: 34px; height: 34px; border-radius: 11px; }
.drawer__nav .nv .ic { width: 19px; height: 19px; }
@keyframes nv-pop { 0% { transform: scale(1); } 40% { transform: scale(.82); } 75% { transform: scale(1.15); } 100% { transform: scale(1); } }
@media (min-width: 1025px) and (max-width: 1320px) { .hdr__link .nv { display: none; } }   /* 1.14 · room for the avatar cell + the round cross-site button */

/* ---- 2. round icon button (day/night toggle, home, close …) ---- */
.hdr__icon { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 0; background: transparent; color: var(--text-2, var(--ink-2, inherit)); cursor: pointer; text-decoration: none; transition: background .2s, color .2s; }
.hdr__icon:hover { background: var(--surface-2, var(--sunk, rgba(127,127,127,.15))); color: var(--text, var(--ink, inherit)); }
.hdr__icon .ic { width: 20px; height: 20px; }
.hdr__icon[data-mode-toggle] .ic { transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.hdr__icon[data-mode-toggle]:hover .ic { transform: rotate(20deg) scale(1.1); }
/* on a picture (welcome page top bar) */
.hdr__icon--onimage { background: rgba(255,255,255,.12); color: #fff; }
.hdr__icon--onimage:hover { background: rgba(255,255,255,.22); color: #fff; }
.hdr__icon--onimage .ic { width: 19px; height: 19px; }

@media (prefers-reduced-motion: reduce) { .nv, .hdr__icon .ic { transition: none !important; } .nv .ic { animation: none !important; } }
.nv--contact { --nv: #22C55E; }
.ftr__counter.is-bump b { color: #22C55E; transition: color .3s; }

/* css/site.d/hdrmob.css */
/* IPN 1.13 · Header "watch live" play button + the phone header row.
   Shared component — the contest site mirrors it (see /home/claude/dev/R5-SHARED.md):

     <a class="hdr-play" href="<?= live_url() ?>"<?= live_attr() ?> data-live-btn
        aria-label="…watch live…" title="…watch live…">
       <i class="hdr-play__ic" aria-hidden="true"><?= glyph('play') ?></i>
       <span class="hdr-play__t">تماشای زنده</span>
     </a>

   Add .hdr-play--icon (or let the ≤760px rules below do it) for the icon-only round play button with a gentle pulse.
   Phone row order, reading from the right in RTL (left in LTR):
     brand → burger → bell → day/night → language → live play → user menu / sign-in. */

/* ---- the live play button ---------------------------------------------------------------- */
.hdr-play { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 6px; border-radius: 999px;
  background: linear-gradient(120deg, #E11D48 0%, #F43F5E 55%, #FB7185 100%); color: #fff; font-weight: 800; font-size: 13.5px; line-height: 1; white-space: nowrap; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(225,29,72,.9); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s cubic-bezier(.2,.8,.2,1), filter .25s; }
html[dir="rtl"] .hdr-play { padding: 0 6px 0 16px; }
.hdr-play:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(225,29,72,1); color: #fff; }
.hdr-play:active { transform: translateY(0); filter: brightness(.95); }
.hdr-play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hdr-play__ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.24); font-style: normal; }
.hdr-play__ic .ic { width: 14px; height: 14px; margin-inline-start: 1px; }
.hdr-play__t { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.hdr-play__t .plogo { height: 15px; width: auto; }
/* live right now: the button breathes a little brighter */
.hdr-play.is-live { background: linear-gradient(120deg, #BE123C 0%, #E11D48 50%, #F97316 100%); }

/* icon-only round play button — gentle pulse, no bounce */
.hdr-play--icon, .hdr-play--icon:hover { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
html[dir="rtl"] .hdr-play--icon { padding: 0; }
.hdr-play--icon .hdr-play__t { display: none; }
.hdr-play--icon .hdr-play__ic { width: 100%; height: 100%; border-radius: 50%; background: none; }
.hdr-play--icon .hdr-play__ic .ic { width: 17px; height: 17px; }
.hdr-play--icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(244,63,94,.55); animation: hdrPlayPulse 2.8s cubic-bezier(.33,0,.2,1) infinite; }
@keyframes hdrPlayPulse { 0% { box-shadow: 0 0 0 0 rgba(244,63,94,.5); } 65% { box-shadow: 0 0 0 9px rgba(244,63,94,0); } 100% { box-shadow: 0 0 0 0 rgba(244,63,94,0); } }
@media (prefers-reduced-motion: reduce) {
  .hdr-play { transition: none; }
  .hdr-play--icon::after, .hdr__tools .hdr-play::after, .ld-tools .hdr-play::after,
  .portal__tools .hdr-play::after, .ac-top .hdr-play::after { animation: none; }
}

/* the IPN site header already carries a "live" nav item on wide screens — the play button is the phone's stand-in */
@media (min-width: 761px) { .hdr__tools > .hdr-play, .portal__tools > .hdr-play { display: none; } }

/* ---- the avatar cell on the welcome page and the doors page (R6) --------------------------- */
/* Both headers get the same .hdr__me cell as the site header; on wide screens `order` keeps the old look. */
.ld-top > .hdr__me, .portal__top > .hdr__me { display: inline-flex; align-items: center; flex: none; order: 4; }
.ld-brand { order: 1; } .ld-nav { order: 2; } .ld-tools { order: 3; }
.portal__brand { order: 1; } .portal__nav { order: 2; } .portal__tools { order: 3; }

/* ---- the round cross-site button (R6) ------------------------------------------------------ */
/* .hdr__sh is the R4 contest pill; .hdr__sh--round is the round phone form (see /home/claude/dev/R6-SHARED.md).
   Below 1281px the pill already collapses to a 40px circle, so the modifier only has to tune the phone sizes. */
.hdr__sh--round:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- phones: one row that always fits ------------------------------------------------------ */
@media (max-width: 760px) {
  /* IPN site header (themes/classic/layouts/site.php)
     R6 order: the avatar cell is pinned to the very LEFT edge in both directions, every other tool sits on the other side. */
  .hdr__in, .hdr__in:has(.umenu) { gap: 4px; padding-inline: 8px; }   /* beats the laptop ":has(.umenu) { gap: 14px }" rule */
  .hdr__me, .hdr__sh, .hdr__burger, .hdr__logo { flex: none; }        /* nothing in the row may shrink to nothing */
  .hdr__logo { order: 2; }
  .hdr__burger { order: 3; margin-inline-start: 0; }
  .hdr__tools { order: 4; gap: 3px; }
  .hdr__sh { order: 5; }
  html[dir="ltr"] .hdr__me { order: 0; margin-inline-end: 2px; }          /* LTR: first in the row = left edge */
  html[dir="ltr"] .hdr__tools { margin-inline-start: auto; }
  html[dir="rtl"] .hdr__me { order: 9; margin-inline-start: auto; }       /* RTL: last in the row = left edge */
  html[dir="rtl"] .hdr__tools { margin-inline-start: 0; }
  .hdr__tools > .hdr__search { display: none; }                           /* search lives in the drawer on phones */
  .hdr__tools .nt-bell { order: 3; }
  .hdr__tools .hdr__icon[data-mode-toggle] { order: 4; }
  .hdr__tools .hdr__lang { order: 5; display: inline-flex; }              /* 1.12 hid it here; the row keeps it now */
  .hdr__tools .hdr-play { order: 6; }
  .hdr__icon, .hdr__burger { width: 34px; height: 34px; }
  .hdr__icon .ic, .hdr__burger .ic { width: 19px; height: 19px; }
  .hdr .lsw { --lsw-h: 26px; min-width: 54px; }
  .hdr .lsw__l { font-size: 10px; padding: 0 3px; }
  .hdr .lsw__l small { display: none; }
  .hdr__in > .hdr__me .umenu--hdr .umenu__btn, .hdr__in > .hdr__me .me-btn { width: 36px; height: 36px; padding: 0; }
  .hdr__in > .hdr__me .umenu--hdr .umenu__av { width: 30px; height: 30px; }
  .nt-bell--hdr .nt-bell__btn { width: 34px; height: 34px; }
  /* the cross-site button rides in the tool cluster as a round crown */
  .hdr__sh, html[dir="rtl"] .hdr__sh { display: inline-flex; width: 34px; height: 34px; padding: 0 !important; margin-inline-start: 0; justify-content: center; }
  .hdr__sh span { display: none; }
  .hdr__sh-ic { width: 26px; height: 26px; }
  .hdr__sh-ic .ic { width: 14px; height: 14px; }

  /* welcome page, "Landing" style (portal/landing.php) — same R6 rule: avatar at the very left edge */
  .ld-top { gap: 4px; padding: 0 6px 0 8px; }
  html[dir="rtl"] .ld-top { padding: 0 8px 0 6px; }
  html[dir="ltr"] .ld-top > .hdr__me { order: 0; margin-inline-end: 2px; }
  html[dir="ltr"] .ld-tools { margin-inline-start: auto; }
  html[dir="rtl"] .ld-top > .hdr__me { order: 9; margin-inline-start: auto; }
  html[dir="rtl"] .ld-tools, html[dir="rtl"] .ld-nav + .ld-tools { margin-inline-start: 0; }
  /* on a picture the avatar cell is icon-only: the name / "sign in" label would wrap in a 36px cell */
  .ld-top > .hdr__me .me-btn__t, .portal__top > .hdr__me .me-btn__t,
  .ld-top > .hdr__me .umenu__name, .portal__top > .hdr__me .umenu__name,
  .ld-top > .hdr__me .umenu__chev, .portal__top > .hdr__me .umenu__chev { display: none; }
  .ld-top > .hdr__me .me-btn, .portal__top > .hdr__me .me-btn,
  .ld-top > .hdr__me .umenu__btn, .portal__top > .hdr__me .umenu__btn {
    width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }
  .ld-tools { gap: 4px; }
  .ld-tools .nt-bell { order: 3; }
  .ld-tools .hdr__icon[data-mode-toggle] { order: 4; }
  .ld-tools .lsw { order: 5; --lsw-h: 28px; min-width: 62px; }
  .ld-tools .lsw__l { font-size: 10.5px; padding: 0 4px; }
  .ld-tools .hdr-play { order: 6; }
  .ld-tools .umenu, .ld-tools .me-btn { order: 7; }
  .ld-top .umenu__btn { width: 36px; height: 36px; padding: 0; }
  .ld-top .umenu__av { width: 30px; height: 30px; }

  /* welcome page, "Doors" style (themes/classic/portal/index.php) — same R6 rule */
  .portal__top { gap: 4px; }
  .portal__tools { gap: 4px; }
  html[dir="ltr"] .portal__top > .hdr__me { order: 0; margin-inline-end: 2px; }
  html[dir="ltr"] .portal__tools { margin-inline-start: auto; }
  html[dir="rtl"] .portal__top > .hdr__me { order: 9; margin-inline-start: auto; }
  .portal__tools > .portal__onair { display: none; }
  .portal__tools .nt-bell { order: 3; }
  .portal__tools .hdr__icon[data-mode-toggle] { order: 4; }
  .portal__tools .lsw { order: 5; --lsw-h: 28px; min-width: 62px; }
  .portal__tools .lsw__l { font-size: 10.5px; padding: 0 4px; }
  .portal__tools .hdr-play { order: 6; }
  .portal__tools .umenu, .portal__tools .me-btn { order: 7; }

  /* every phone header collapses the live button to the round play icon */
  .hdr__tools .hdr-play, .ld-tools .hdr-play, .portal__tools .hdr-play { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  .hdr__tools .hdr-play .hdr-play__t, .ld-tools .hdr-play .hdr-play__t, .portal__tools .hdr-play .hdr-play__t { display: none; }
  .hdr__tools .hdr-play .hdr-play__ic, .ld-tools .hdr-play .hdr-play__ic, .portal__tools .hdr-play .hdr-play__ic { width: 100%; height: 100%; border-radius: 50%; background: none; }
  .hdr__tools .hdr-play .hdr-play__ic .ic, .ld-tools .hdr-play .hdr-play__ic .ic, .portal__tools .hdr-play .hdr-play__ic .ic { width: 17px; height: 17px; }
  /* …and it breathes: the same gentle pulse as .hdr-play--icon (no bounce, off under reduced motion) */
  .hdr__tools .hdr-play::after, .ld-tools .hdr-play::after, .portal__tools .hdr-play::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    box-shadow: 0 0 0 0 rgba(244,63,94,.55); animation: hdrPlayPulse 2.8s cubic-bezier(.33,0,.2,1) infinite; }
}
@media (max-width: 400px) {
  .hdr .logo, .ld-top .logo, .portal__top .logo { height: 24px; }
  .hdr .logo__box, .hdr .logo__tv { font-size: 18px; }
  .hdr__in { padding-inline: 6px; gap: 2px; }
  .hdr__icon, .hdr__burger { width: 31px; height: 31px; }
  .hdr__icon .ic, .hdr__burger .ic { width: 18px; height: 18px; }
  .hdr__in > .hdr__me .umenu--hdr .umenu__btn, .hdr__in > .hdr__me .me-btn { width: 33px; height: 33px; padding: 0; }
  .hdr__in > .hdr__me .umenu--hdr .umenu__av { width: 28px; height: 28px; }
  .ld-top > .hdr__me .umenu__btn, .portal__top > .hdr__me .umenu__btn, .ld-top > .hdr__me .me-btn, .portal__top > .hdr__me .me-btn { width: 34px; height: 34px; }
  .nt-bell--hdr .nt-bell__btn, .nt-bell .nt-bell__btn { width: 31px; height: 31px; }
  .hdr .lsw, .ld-tools .lsw, .portal__tools .lsw { min-width: 46px; --lsw-h: 24px; }
  .hdr .lsw__l { font-size: 9.5px; padding: 0 2px; }
  .hdr__tools .hdr-play, .ld-tools .hdr-play, .portal__tools .hdr-play { width: 31px; height: 31px; }
  .hdr__tools .hdr-play .hdr-play__ic .ic, .ld-tools .hdr-play .hdr-play__ic .ic, .portal__tools .hdr-play .hdr-play__ic .ic { width: 15px; height: 15px; }
  .hdr__sh, html[dir="rtl"] .hdr__sh { width: 31px; height: 31px; }
  .hdr__sh-ic { width: 24px; height: 24px; }
  .hdr__sh-ic .ic { width: 13px; height: 13px; }
}

/* 1.14 (R6) · reduced motion, last word: the phone pulse rules above live in a later media block than the R5
   @media (prefers-reduced-motion) rule near the top, so they used to win. This block closes that gap. */
@media (prefers-reduced-motion: reduce) {
  .hdr-play, .hdr__sh { transition: none !important; }
  .hdr-play::after, .hdr-play--icon::after, .hdr__tools .hdr-play::after, .ld-tools .hdr-play::after,
  .portal__tools .hdr-play::after, .ac-top .hdr-play::after, .hdr__sh::after, .hdr__sh-ic { animation: none !important; }
}

/* css/site.d/notify.css */
/* ---- 1.8 Notifications: bell + panel (solid, light & night, LTR & RTL) ---- */
.nt-bell {
  --nt-bg: #FFFFFF; --nt-ink: #1A1430; --nt-ink2: #4A4366; --nt-muted: #6E6789; --nt-line: #E7E2F1; --nt-hover: #F5F1FB; --nt-unread: #FFF4F6;
  --nt-acc: #E11D48; --nt-acc2: #7C3AED; --nt-btn: transparent; --nt-btn-ink: currentColor;
  position: relative; display: inline-flex; flex: none;
}
html[data-mode="dark"] .nt-bell { --nt-bg: #1B1636; --nt-ink: #F3F0FF; --nt-ink2: #D3CCEE; --nt-muted: #A79FC8; --nt-line: #2E2752; --nt-hover: #251F47; --nt-unread: #2A1B3E; }
.nt-bell__btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: var(--nt-btn); color: var(--nt-btn-ink); cursor: pointer; transition: background .2s, transform .2s; }
.nt-bell__btn:hover, .nt-bell.is-open .nt-bell__btn { background: color-mix(in srgb, currentColor 10%, transparent); }
.nt-bell__btn:focus-visible { outline: 2px solid var(--nt-acc); outline-offset: 2px; }
.nt-bell__btn .ic { width: 21px; height: 21px; }
.nt-bell__n { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--nt-acc); color: #fff; font: 800 11px/18px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--nt-ring, #fff); pointer-events: none; }
html[data-mode="dark"] .nt-bell__n { --nt-ring: #120E28; }
.nt-bell__n[hidden] { display: none; }
.nt-bell.has-new .nt-bell__btn .ic { animation: nt-ring 1.2s ease 1; transform-origin: 50% 10%; }
@keyframes nt-ring { 0%,100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } }

.nt-panel { position: absolute; top: calc(100% + 10px); inset-inline-end: -6px; z-index: 300; width: min(380px, calc(100vw - 24px)); display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 90px));
  background: var(--nt-bg); color: var(--nt-ink); border: 1px solid var(--nt-line); border-radius: 18px; box-shadow: 0 24px 60px -18px rgba(20,10,50,.45), 0 2px 6px rgba(20,10,50,.12); overflow: hidden; text-align: start;
  font-size: 14px; line-height: 1.5; letter-spacing: normal; text-transform: none; }
html[data-mode="dark"] .nt-panel { box-shadow: 0 24px 60px -16px rgba(0,0,0,.85), 0 2px 6px rgba(0,0,0,.5); }
.nt-panel[hidden] { display: none; }
.nt-bell.is-open .nt-panel { animation: nt-pop .18s ease-out; }
@keyframes nt-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.nt-panel__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--nt-line); background: var(--nt-bg); }
.nt-panel__h strong { font-size: 15.5px; font-weight: 800; color: var(--nt-ink); }
.nt-panel__all { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--nt-acc2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
html[data-mode="dark"] .nt-panel__all { color: #C4B5FD; }
.nt-panel__all:hover { background: var(--nt-hover); }
.nt-panel__all[disabled] { opacity: .45; cursor: default; }
.nt-panel__all .ic { width: 16px; height: 16px; }
.nt-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; background: var(--nt-bg); }
.nt-list li + li { margin-top: 2px; }
.nt-li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 10px; border-radius: 12px; color: var(--nt-ink); text-decoration: none; position: relative; }
.nt-li:hover, .nt-li:focus-visible { background: var(--nt-hover); outline: none; }
.nt-li.is-unread { background: var(--nt-unread); }
.nt-li.is-unread:hover { background: color-mix(in srgb, var(--nt-unread) 60%, var(--nt-hover)); }
.nt-li__ic, .nt-item__ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #EEE9FA; color: #6D28D9; }
.nt-li__ic .ic, .nt-item__ic .ic { width: 19px; height: 19px; }
.nt-k--event { background: #FFE4EA !important; color: #BE123C !important; }
.nt-k--ticket { background: #DFF5EF !important; color: #0F766E !important; }
.nt-k--promo { background: #FEF0D7 !important; color: #B45309 !important; }
.nt-k--system { background: #E0ECFF !important; color: #1D4ED8 !important; }
html[data-mode="dark"] .nt-li__ic, html[data-mode="dark"] .nt-item__ic { background: #2D2556; color: #C4B5FD; }
html[data-mode="dark"] .nt-k--event { background: #4A1830 !important; color: #FDA4B8 !important; }
html[data-mode="dark"] .nt-k--ticket { background: #123A36 !important; color: #5EEAD4 !important; }
html[data-mode="dark"] .nt-k--promo { background: #43300F !important; color: #FCD34D !important; }
html[data-mode="dark"] .nt-k--system { background: #172B52 !important; color: #93C5FD !important; }
.nt-li__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nt-li__t strong { font-size: 14px; font-weight: 700; color: var(--nt-ink); overflow-wrap: anywhere; }
.nt-li__t span { font-size: 13px; color: var(--nt-ink2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-li__t small { font-size: 12px; color: var(--nt-muted); }
.nt-li__dot { position: absolute; top: 16px; inset-inline-end: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--nt-acc); }
.nt-li.is-unread .nt-li__t { padding-inline-end: 14px; }
.nt-empty { padding: 28px 16px; text-align: center; color: var(--nt-muted); font-size: 13.5px; }
.nt-panel__more { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-top: 1px solid var(--nt-line); background: var(--nt-bg); color: var(--nt-acc2); font-weight: 700; font-size: 13.5px; text-decoration: none; }
html[data-mode="dark"] .nt-panel__more { color: #C4B5FD; }
.nt-panel__more:hover { background: var(--nt-hover); }
.nt-panel__more .ic { width: 16px; height: 16px; }
@media (max-width: 560px) {
  /* stays clear of the phone bottom bar */
  .nt-panel { position: fixed; top: 64px; inset-inline: 10px; width: auto; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); }
}

/* ---- "New" badge on the Events menu: bright, moving gradient; still for reduced motion ---- */
.nt-new { display: inline-flex; align-items: center; gap: 3px; flex: none; margin-inline-start: 6px; padding: 2px 7px 2px 7px; border-radius: 99px; vertical-align: middle;
  background: linear-gradient(110deg, #E11D48, #F97316 30%, #EA580C 50%, #C026D3 75%, #E11D48); background-size: 220% 100%; color: #fff;
  font: 800 10.5px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .02em; text-transform: none; text-shadow: 0 1px 1px rgba(120,0,40,.35);
  box-shadow: 0 0 0 0 rgba(255,45,111,.55), 0 4px 12px -4px rgba(255,60,80,.7); animation: nt-flow 2.8s linear infinite, nt-pulse 2.2s ease-out infinite; position: relative; white-space: nowrap; }
.nt-new i { font-style: normal; display: inline-grid; place-items: center; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 99px; background: #fff; color: #E11D48; font-size: 10px; line-height: 1; text-shadow: none; }
.nt-new--foot { font-size: 10px; padding: 1px 6px; }
@keyframes nt-flow { to { background-position: -220% 0; } }
@keyframes nt-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,45,111,.55), 0 4px 12px -4px rgba(255,60,80,.7); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255,45,111,0), 0 4px 12px -4px rgba(255,60,80,.7); } }
.nt-dot { position: absolute; top: 2px; inset-inline-start: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: linear-gradient(135deg, #FF2D6F, #FF8A00); color: #fff;
  font: 800 10.5px/17px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--nt-ring, #fff); animation: nt-pulse 2.2s ease-out infinite; pointer-events: none; }
html[data-mode="dark"] .nt-dot { --nt-ring: #120E28; }
.nt-new.is-gone, .nt-dot.is-gone { animation: nt-out .35s ease forwards; }
@keyframes nt-out { to { opacity: 0; transform: scale(.4); } }
@media (prefers-reduced-motion: reduce) {
  .nt-new, .nt-dot, .nt-bell.has-new .nt-bell__btn .ic, .nt-bell.is-open .nt-panel { animation: none !important; }
  .nt-new { background-position: 30% 0; }
}

/* site header (modern + classic), welcome page */
.nt-bell--hdr .nt-bell__btn { border-radius: 50%; color: var(--ink-2, var(--text-2, currentColor)); }
.nt-bell--hdr .nt-bell__btn:hover, .nt-bell--hdr.is-open .nt-bell__btn { background: var(--sunk, var(--surface-2, rgba(127,127,127,.15))); color: var(--ink, var(--text, currentColor)); }
.nt-bell--hdr .nt-bell__btn .ic { width: 20px; height: 20px; }
.nt-bell--ld .nt-bell__btn { border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
.nt-bell--ld .nt-bell__btn:hover, .nt-bell--ld.is-open .nt-bell__btn { background: rgba(255,255,255,.22); }
.nt-bell--ld .nt-bell__btn .ic { width: 19px; height: 19px; }
.nt-bell--ld .nt-bell__n { --nt-ring: rgba(20,10,40,.6); }
.ld-nav a, .hdr__link, .drawer__nav a { position: relative; }
.ld-foot__links a .nt-new, .ftr__col a .nt-new { margin-inline-start: 6px; }

/* the phone bottom bar (variant "tab"): the dot sits on the tab's icon */
a:has(> .nt-dot), :has(> .nt-dot) { position: relative; }
.nv > .nt-dot, .ic + .nt-dot { top: -8px; inset-inline-start: auto; inset-inline-end: -12px; }
.nt-new--one i { display: none; }
/* crowded desktop header: keep labels on one line; the badge shrinks to a bright count bubble */
.hdr__link > span { white-space: nowrap; }
@media (max-width: 1480px) {
  .hdr__nav .nt-new { padding: 0; margin-inline-start: 4px; min-width: 20px; height: 20px; justify-content: center; }
  .hdr__nav .nt-new span { display: none; }
  .hdr__nav .nt-new i, .hdr__nav .nt-new--one i { display: inline-grid; background: transparent; color: #fff; min-width: 20px; height: 20px; font-size: 11px; text-shadow: 0 1px 1px rgba(120,0,40,.4); }
}
/* phones (1.13): the language switch stays in the row — see site.d/hdrmob.css for the order; the bell just shrinks */
@media (max-width: 480px) {
  .nt-bell--hdr .nt-bell__btn { width: 36px; height: 36px; }
  .nt-bell--hdr .nt-bell__btn .ic { width: 19px; height: 19px; }
}

/* 1.11 · contest-site items in the merged list (gold crown chip) */
.nt-k--contest, .nt-item--contest .nt-item__ic { background: #FBEFD2 !important; color: #9A6B10 !important; }
html[data-mode="dark"] .nt-k--contest, html[data-mode="dark"] .nt-item--contest .nt-item__ic { background: #3F3012 !important; color: #F7D98B !important; }
.nt-li__src { display: inline-block; margin-inline-start: 6px; padding: 1px 6px; border-radius: 99px; background: #FBEFD2; color: #9A6B10; font-size: 10.5px; font-weight: 800; font-style: normal; vertical-align: middle; }
html[data-mode="dark"] .nt-li__src { background: #3F3012; color: #F7D98B; }

/* css/site.d/r20-legible.css */
/* 1.20 · legibility on phones: the bottom tab bar labels, the cards' small print and the page-address chip were
   10.4–11.5 px; nothing a reader must read is set below 12 px now. */
@media (max-width: 760px) {
  .tabbar a, .tabbar a span { font-size: 12px; }
  .hstrip__t small, .ph-stat small, .xe-card__date small, .live-pill, .ph__url code { font-size: 12px; }
}

/* css/site.d/totop.css */
/* IPN 1.10 · Back to top (assets/js/totop.js). Identical copies in site.d / account.d / studio.d — edit one, copy to all. */
.totop { position: fixed; inset-inline-end: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 70; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper, #fff); color: var(--ink, #111); border: 1px solid var(--line, rgba(0,0,0,.12)); box-shadow: 0 10px 30px -14px rgba(0,0,0,.4); text-decoration: none; opacity: 0; transform: translateY(8px); transition: opacity .2s ease-out, transform .2s ease-out, background-color .2s ease-out; }
.totop.is-on { opacity: 1; transform: none; }
.totop:hover { transform: translateY(-1px); background: var(--sunk, rgba(0,0,0,.04)); }
.totop:focus-visible { outline: 2px solid var(--accent, #E8313F); outline-offset: 2px; }
.totop .ic { width: 20px; height: 20px; position: relative; z-index: 1; }
.totop__ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); pointer-events: none; }
.totop__track { stroke: var(--line, rgba(0,0,0,.12)); stroke-width: 2.5; }
.totop__bar { stroke: var(--accent, #E8313F); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset .15s linear; }
html[dir="rtl"] .totop__ring { transform: rotate(-90deg) scale(1, -1); }
.st .totop { bottom: 22px; }
@media (max-width: 760px) { .ac-body .totop { bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .totop, .totop__bar { transition: none; } }

/* css/site.d/umenu.css */
/* IPN 1.10 · User menu (partials/user_menu.php). Identical copies in site.d / account.d / studio.d — edit one, copy to all.
   Layout only, neutral: the Prime theme may restyle colours. Light & dark, LTR & RTL. */
.umenu { position: relative; display: inline-block; flex: none; }
.umenu > summary { list-style: none; }
.umenu > summary::-webkit-details-marker { display: none; }
.umenu__btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--line, rgba(0,0,0,.12)); background: var(--paper, transparent); color: var(--ink, inherit); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; user-select: none; white-space: nowrap; transition: background-color .18s ease-out, border-color .18s ease-out; }
html[dir="rtl"] .umenu__btn { padding: 0 4px 0 10px; }
.umenu__btn:hover, .umenu[open] > .umenu__btn { background: var(--sunk, rgba(0,0,0,.05)); }
.umenu__btn:focus-visible { outline: 2px solid var(--accent, #E8313F); outline-offset: 2px; }
.umenu__av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; background: color-mix(in srgb, var(--accent, #E8313F) 14%, var(--paper, #fff)); color: var(--accent, #E8313F); font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.umenu__av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.umenu__av--lg { width: 44px; height: 44px; font-size: 16px; }
.umenu__name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.umenu__chev { width: 16px; height: 16px; color: var(--muted, #777); transition: transform .2s ease-out; }
.umenu[open] .umenu__chev { transform: rotate(180deg); }
.umenu__dot { position: absolute; top: 4px; inset-inline-end: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #E8313F); box-shadow: 0 0 0 2px var(--paper, #fff); }

.umenu__pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 90; min-width: 264px; max-width: min(320px, calc(100vw - 24px)); padding: 6px; border-radius: 14px; background: var(--paper, #fff); color: var(--ink, #111); border: 1px solid var(--line, rgba(0,0,0,.12)); box-shadow: 0 18px 44px -18px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.06); text-align: start; animation: umenu-in .18s ease-out; }
.umenu--drawer .umenu__pop { position: static; margin-top: 8px; box-shadow: none; max-width: none; }
.umenu--drawer, .umenu--drawer .umenu__btn { width: 100%; }
.umenu--drawer .umenu__btn { justify-content: flex-start; height: 48px; border-radius: 14px; }
.umenu--drawer .umenu__name { max-width: none; flex: 1; }
@keyframes umenu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .umenu__pop { animation: none; } .umenu__chev { transition: none; } }

.umenu__who { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.umenu__who-t { display: grid; min-width: 0; }
.umenu__who-t strong { color: var(--ink, #111); font-size: 14.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umenu__who-t small { color: var(--muted, #777); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umenu__group { display: grid; gap: 1px; padding: 4px 0; border-top: 1px solid var(--line, rgba(0,0,0,.1)); }
.umenu__group a, .umenu__group button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink, #111); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; text-align: start; cursor: pointer; transition: background-color .15s ease-out; }
.umenu__group a:hover, .umenu__group button:hover, .umenu__group a:focus-visible, .umenu__group button:focus-visible { background: var(--sunk, rgba(0,0,0,.05)); outline: none; }
.umenu__group .ic { width: 18px; height: 18px; flex: none; color: var(--muted, #777); }
.umenu__group a span, .umenu__group button span { flex: 1; min-width: 0; }
.umenu__group small { color: var(--muted, #777); font-size: 11.5px; font-weight: 700; }
.umenu__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent, #E8313F); color: #fff; font-size: 11.5px; font-weight: 800; }
.umenu__studio .ic { color: var(--accent, #E8313F); }
.umenu__row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 0; border-top: 1px solid var(--line, rgba(0,0,0,.1)); }
.umenu__row a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; border-radius: 10px; background: var(--sunk, rgba(0,0,0,.05)); color: var(--ink, #111); font-size: 13px; font-weight: 700; text-decoration: none; transition: background-color .15s ease-out; }
.umenu__row a:hover { background: color-mix(in srgb, var(--ink, #000) 10%, var(--sunk, transparent)); }
.umenu__row .ic { width: 16px; height: 16px; }
.umenu__group--out form { display: contents; }
.umenu__group--out button { color: var(--accent, #E8313F); }
.umenu__group--out button .ic { color: currentColor; }
.umenu__group:empty { display: none; }

/* compact on narrow screens: avatar only (site header) */
@media (max-width: 1280px) { .umenu--hdr .umenu__name, .umenu--hdr .umenu__chev { display: none; } .umenu--hdr .umenu__btn { width: 40px; padding: 0; justify-content: center; border-color: transparent; background: transparent; } }
@media (max-width: 640px) { .umenu--portal .umenu__name, .umenu--account .umenu__name, .umenu--studio .umenu__name { display: none; } .umenu--portal .umenu__btn, .umenu--account .umenu__btn, .umenu--studio .umenu__btn { padding: 0 6px 0 3px; } html[dir="rtl"] .umenu--portal .umenu__btn, html[dir="rtl"] .umenu--account .umenu__btn, html[dir="rtl"] .umenu--studio .umenu__btn { padding: 0 3px 0 6px; } }

/* 1.13 · phones: a proper anchored sheet.
   It used to be `position: fixed; bottom: …`, but every header that carries the menu has a backdrop-filter, so the
   "fixed" panel was laid out inside the 56px header instead of the window: it shot off the top of the page and only
   the last row ("sign out") stayed on screen. Anchored + scrollable keeps the whole list reachable and the page still. */
@media (max-width: 760px) {
  .umenu:not(.umenu--drawer) .umenu__pop {
    position: absolute; top: calc(100% + 10px); inset-inline: auto 0;
    width: min(320px, calc(100vw - 20px)); min-width: 0; max-width: none;
    max-height: min(74svh, calc(100svh - 108px));
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    border-radius: 18px; box-shadow: 0 26px 64px -22px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.14);
  }
  .umenu:not(.umenu--drawer) .umenu__group a, .umenu:not(.umenu--drawer) .umenu__group button { min-height: 46px; font-size: 15px; }
  .umenu:not(.umenu--drawer) .umenu__row a { height: 44px; }
  .umenu:not(.umenu--drawer) .umenu__who { position: sticky; top: 0; z-index: 1; background: var(--paper, #fff); }
  .umenu:not(.umenu--drawer) .umenu__name, .umenu:not(.umenu--drawer) .umenu__chev { display: none; }
  .umenu--portal .umenu__btn, .umenu--account .umenu__btn, .umenu--studio .umenu__btn,
  html[dir="rtl"] .umenu--portal .umenu__btn, html[dir="rtl"] .umenu--account .umenu__btn, html[dir="rtl"] .umenu--studio .umenu__btn { padding: 0; justify-content: center; }
}

/* the welcome / doors page sits on a dark picture (the dropdown itself follows the page's light/dark tokens) */
.ld-top .umenu__pop, .stage__tools .umenu__pop { color: var(--ink, #111); }
.ld-top .umenu__btn, .stage__tools .umenu__btn { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.12); color: #fff; }
.ld-top .umenu__btn:hover, .stage__tools .umenu__btn:hover { background: rgba(255,255,255,.22); }
.ld-top .umenu__chev, .stage__tools .umenu__chev { color: rgba(255,255,255,.8); }
.ld-top .umenu__av, .stage__tools .umenu__btn .umenu__av { background: #fff; color: var(--accent, #E8313F); }

/* IPN site header (1.12): the button follows the header's text colours, the dropdown its own paper */
.hdr__tools .umenu__btn, .hdr__me .umenu__btn { color: var(--text, var(--ink)); border-color: var(--line-2, var(--line)); }
.hdr__tools .umenu__btn:hover, .hdr__tools .umenu[open] > .umenu__btn,
.hdr__me .umenu__btn:hover, .hdr__me .umenu[open] > .umenu__btn { background: var(--surface-2, var(--sunk)); }

/* Studio top bar */
.st-top .umenu { margin-inline-start: 4px; }
.st-top .umenu__btn { height: 38px; background: var(--paper); }

/* css/site.d/unsub.css */
/* IPN 1.7 · Public unsubscribe page */
.unsub { min-height: 60vh; display: grid; place-items: center; padding: 48px 16px; }
.unsub__card { width: min(520px, 100%); text-align: center; padding: 32px 24px; border-radius: 24px; background: var(--paper, #fff); border: 1px solid var(--line, #E1E4EA); color: var(--ink, #0E1726); box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .35); }
.unsub__card h1 { font-size: 24px; margin: 12px 0 8px; color: var(--ink, #0E1726); }
.unsub__card p { color: var(--ink-2, #3A4558); line-height: 1.8; }
.unsub__ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, #E11D48, #7C3AED); color: #fff; }
.unsub__ic .ic { width: 30px; height: 30px; }
.unsub__card form { margin-top: 16px; }

/* css/site.d/ytsub.css */
/* 1.19.3 · Reusable YouTube subscribe box with an animated play icon. Used in footers, the landing and sliders.
   Brand-neutral reds so it reads on both IPN TV (classic) and Mr & Miss Iran (prime). */
.ytsub { --yt: #FF2A2A; --yt-ink: #fff;
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--yt) 12%, transparent), transparent 70%), rgba(255,255,255,.03);
  border: 1px solid color-mix(in srgb, var(--yt) 28%, transparent); }
.ytsub__ic { position: relative; flex: none; inline-size: 56px; block-size: 56px; display: grid; place-items: center;
  border-radius: 16px; background: var(--yt); color: var(--yt-ink); box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--yt) 80%, transparent); }
.ytsub__play { inline-size: 30px; block-size: 30px; animation: ytsub-wiggle 3.2s ease-in-out infinite; }
.ytsub__ring { position: absolute; inset: 0; border-radius: 16px; border: 2px solid var(--yt); opacity: 0; animation: ytsub-ring 2.6s ease-out infinite; }
.ytsub__ring--2 { animation-delay: 1.3s; }
.ytsub__tx { flex: 1; min-inline-size: 0; }
.ytsub__tx strong { display: block; font-size: 16px; font-weight: 800; }
.ytsub__tx span { display: block; font-size: 13px; opacity: .72; margin-block-start: 3px; line-height: 1.5; }
.ytsub__btn { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  background: var(--yt); color: var(--yt-ink); font-weight: 800; font-size: 14px; text-decoration: none;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--yt) 80%, transparent); transition: transform .16s ease, box-shadow .16s ease; }
.ytsub__btn svg, .ytsub__btn .ic { inline-size: 20px; block-size: 20px; }
.ytsub__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px color-mix(in srgb, var(--yt) 85%, transparent); }
.ytsub__btn:hover .ytsub__play, .ytsub:hover .ytsub__play { animation-duration: 1.2s; }

/* slim: one tight row for a footer column */
.ytsub--slim { padding: 12px 14px; gap: 12px; }
.ytsub--slim .ytsub__ic { inline-size: 44px; block-size: 44px; border-radius: 13px; }
.ytsub--slim .ytsub__play { inline-size: 24px; block-size: 24px; }
.ytsub--slim .ytsub__tx strong { font-size: 14px; }
.ytsub--slim .ytsub__tx span { display: none; }

/* slide: large, centred, for use as a slider panel */
.ytsub--slide { flex-direction: column; text-align: center; gap: 14px; padding: 32px 24px; }
.ytsub--slide .ytsub__ic { inline-size: 76px; block-size: 76px; border-radius: 22px; }
.ytsub--slide .ytsub__play { inline-size: 40px; block-size: 40px; }
.ytsub--slide .ytsub__tx strong { font-size: 22px; }
.ytsub--slide .ytsub__tx span { font-size: 14.5px; opacity: .8; }
.ytsub--slide .ytsub__btn { padding: 13px 26px; font-size: 15px; }

@media (max-width: 560px) {
  .ytsub:not(.ytsub--slide) { flex-wrap: wrap; }
  .ytsub:not(.ytsub--slide) .ytsub__btn { inline-size: 100%; justify-content: center; }
}
@keyframes ytsub-wiggle { 0%, 88%, 100% { transform: rotate(0) scale(1); } 92% { transform: rotate(-8deg) scale(1.08); } 96% { transform: rotate(8deg) scale(1.08); } }
@keyframes ytsub-ring { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .ytsub__play, .ytsub__ring { animation: none; } .ytsub__ring { display: none; } }

/* 1.19.4 · subscribe button floating on the hero slider (IPN) */
.hero__sub { position: absolute; z-index: 6; top: 90px; inset-inline-end: 22px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px; background: #FF2A2A; color: #fff; font-weight: 800; font-size: 13.5px; text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(255,42,42,.7); transition: transform .16s ease; }
.hero__sub svg, .hero__sub .ic { width: 19px; height: 19px; }
.hero__sub:hover { transform: translateY(-2px); }
@media (max-width: 640px) { .hero__sub { top: 74px; inset-inline-end: 12px; padding: 9px; } .hero__sub span { display: none; } }

/* 1.19.4 · video slide on the IPN hero: the film covers the slide; its own controls are reachable */
/* 1.19.6 · no black fill: the film's own first frame (the slide picture underneath) shows until the film paints,
   and stays put if YouTube is slow or blocked for the visitor, so a film slide is never an empty black panel. */
.hero__video { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.hero__video iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; border: 0; }
.hero__slide--video .hero__content, .hero__slide--video .hero__shade { display: none; }

/* 1.19.6 · the player fades in once YouTube has answered. Until then — and for good if YouTube cannot be reached —
   the film's own first frame underneath is what the visitor sees, never an empty panel. */
.hero__video iframe { opacity: 0; transition: opacity .45s ease; }
.hero__video.is-ready iframe { opacity: 1; }
.hero__slide--video.is-video-off .hero__content, .hero__slide--video.is-video-off .hero__shade { display: revert; }
@media (prefers-reduced-motion: reduce) { .hero__video iframe { transition: none; } }

/* ---- 1.19.7 · a film slide fills its own box, and carries a speaker button ---------------------------------- */

/* The player used to be sized against the browser window (100vw / 56.25vw). In a slider that is not as tall or as
   wide as the window that spilled over the edges, so the film was never the size of the slide. These rules size it
   against the slide's own box instead, so it covers that box exactly, whatever shape the box is. */
.hero__video { container-type: size; }
.hero__video iframe {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: none; border: 0;
}
@supports (width: 1cqw) {
  .hero__video iframe { width: max(100cqw, 177.7778cqh); height: max(100cqh, 56.25cqw); }
}

/* A browser only lets a film start on its own while it is silent, so every film slide starts muted and this is how
   the visitor turns the sound on. It sits opposite the subscribe button, clear of YouTube's own controls. */
.yt-sound {
  position: absolute; z-index: 7; top: 90px; inset-inline-start: 20px;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 15px; border: 0; border-radius: 999px;
  font: inherit; font-size: 13.5px; font-weight: 800; line-height: 1;
  color: #fff; background: rgba(10, 10, 14, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8); transition: background .18s ease, transform .16s ease;
}
.yt-sound:hover { background: rgba(10, 10, 14, .85); transform: translateY(-1px); }
.yt-sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.yt-sound svg { width: 18px; height: 18px; display: block; }
.yt-sound .yt-sound__on { display: none; }
.yt-sound.is-on { background: #FF2A2A; box-shadow: 0 10px 24px -8px rgba(255, 42, 42, .7); }
.yt-sound.is-on .yt-sound__off { display: none; }
.yt-sound.is-on .yt-sound__on { display: block; }
@media (max-width: 640px) { .yt-sound { top: 74px; inset-inline-start: 12px; padding: 9px; } .yt-sound .yt-sound__tx { display: none; } }
@media (prefers-reduced-motion: reduce) { .yt-sound { transition: none; } }

/* The speaker button belongs to a film that is actually playing: it appears only once the player has answered, so a
   slide that fell back to being a picture never shows a sound switch that would do nothing. */
.yt-sound { opacity: 0; pointer-events: none; }
.hero__video.is-ready .yt-sound { opacity: 1; pointer-events: auto; }
@supports (transition: opacity .2s) { .yt-sound { transition: opacity .3s ease, background .18s ease, transform .16s ease; } }

