/* themes/classic/css/base.css */
/* IPN TV — shared foundation: fonts, tokens, logo, buttons, LIVE pill */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/assets/themes/classic/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@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"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(/assets/themes/classic/fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/assets/themes/classic/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(/assets/themes/classic/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/assets/themes/classic/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(/assets/themes/classic/fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url(/assets/themes/classic/fonts/vazirmatn-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-display: swap; src: url(/assets/themes/classic/fonts/vazirmatn-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url(/assets/themes/classic/fonts/vazirmatn-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 800; font-display: swap; src: url(/assets/themes/classic/fonts/vazirmatn-arabic-800-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --red: #E11D2E; --red-2: #FF3346; --red-deep: #9B0D1B;
  --gold: #E8B84A; --gold-2: #F7D98B; --gold-deep: #9C6B12;
  --blue: #2F6BFF;
  --font: "Inter", "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Vazirmatn", "Inter", system-ui, sans-serif;
  --radius: 14px; --radius-lg: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;

  /* dark (default) */
  --bg: #070B16; --bg-2: #0C1222; --surface: #111A2E; --surface-2: #17223A; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --text: #F3F5FA; --text-2: #B7C0D4; --muted: #7D879E; --shadow: 0 18px 50px rgba(0,0,0,.45);
  --header-bg: rgba(7,11,22,.82);
  /* 1.12 · neutral tokens for the shared components (user menu, bell, back-to-top): popover paper + ink per mode */
  --paper: #0E1526; --ink: #F3F5FA; --ink-2: #B7C0D4; --sunk: rgba(255,255,255,.07); --accent: #E11D2E;
  color-scheme: dark;
}
html[data-mode="light"] {
  --bg: #F4F6FA; --bg-2: #FFFFFF; --surface: #FFFFFF; --surface-2: #EEF1F6; --line: rgba(10,20,40,.10); --line-2: rgba(10,20,40,.18);
  --text: #0B1324; --text-2: #3A4660; --muted: #6A7591; --shadow: 0 14px 40px rgba(15,25,50,.12);
  --header-bg: rgba(255,255,255,.88);
  --paper: #FFFFFF; --ink: #0B1324; --ink-2: #3A4660; --sunk: rgba(10,20,40,.05);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[dir="rtl"] body { font-family: "Vazirmatn", var(--font); line-height: 1.75; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 999; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red-2); outline-offset: 3px; border-radius: 6px; }
.head { font-family: var(--font-head); font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
html[dir="rtl"] .head { text-transform: none; letter-spacing: 0; font-weight: 800; }

/* ---- Logo wordmark ------------------------------------------------------- */
.logo { display: inline-flex; align-items: stretch; height: 34px; font-family: "Barlow Condensed", sans-serif; font-weight: 800; letter-spacing: .02em; line-height: 1; direction: ltr; }
img.logo { width: auto; object-fit: contain; }
.logo__box { display: grid; place-items: center; padding: 0 9px; background: var(--red); color: #fff; font-size: 26px; border-radius: 6px 0 0 6px; }
.logo__tv { display: grid; place-items: center; padding: 0 8px; background: #fff; color: #0B1324; font-size: 26px; border-radius: 0 6px 6px 0; }
html[data-mode="light"] .logo__tv { background: #0B1324; color: #fff; }

/* ---- Buttons --------------------------------------------------------------- */
.btn { --b: var(--surface-2); --c: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; background: var(--b); color: var(--c); font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--red { --b: var(--red); --c: #fff; box-shadow: 0 8px 24px rgba(225,29,46,.35); }
.btn--red:hover { --b: var(--red-2); }
.btn--gold { --b: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, #C48A22); --c: #241500; background: var(--b); box-shadow: 0 8px 24px rgba(232,184,74,.3); }
.btn--ghost { --b: transparent; border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--text-2); }
.btn--glass { --b: rgba(255,255,255,.12); --c: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { --b: rgba(255,255,255,.2); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn .ic--go { transition: transform .25s var(--ease); }
.btn:hover .ic--go { transform: translateX(3px); }
html[dir="rtl"] .ic--go { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .ic--go { transform: scaleX(-1) translateX(3px); }

/* ---- LIVE pill ------------------------------------------------------------- */
.live-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 6px; background: var(--red); color: #fff; font: 800 13px/1 "Barlow Condensed", var(--font); letter-spacing: .12em; text-transform: uppercase; }
html[dir="rtl"] .live-pill { letter-spacing: 0; font-family: "Vazirmatn", sans-serif; font-weight: 700; }
.live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: livedot 1.4s infinite; }
.live-pill--off { background: rgba(255,255,255,.14); color: #fff; }
.live-pill--off::before { animation: none; opacity: .6; }
@keyframes livedot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
[hidden] { display: none !important; }

/* themes/classic/css/tv.css */
/* 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; }
/* 1.14 (R6) · the header row is ordered with flex `order`, never by moving the DOM: the avatar cell (.hdr__me) is first in
   the markup so it can be pinned to the very left edge on phones, and sits back beside the cross-site button on wide screens. */
.hdr__burger { order: 1; } .hdr__logo { order: 2; } .hdr__nav { order: 3; } .hdr__tools { order: 4; } .hdr__me { order: 5; } .hdr__sh { order: 6; }
.hdr__me { display: inline-flex; align-items: center; flex: none; }
.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 { flex: none; 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: #2A3550; overflow: hidden; }   /* 1.14 · solid track, no glass */
.hero__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), 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; }
/* 1.14 (R6) · solid, not glass — it must read over any slide picture */
.hero__pause { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-inline-start: auto; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%); color: #fff; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(225,29,46,.95);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .2s; }
.hero__pause:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(255,51,70,1); }
.hero__pause:active { transform: translateY(0); filter: brightness(.94); }
.hero__pause:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ==== 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; }
/* 1.17 (R10 · item 4) · the same anatomy and rhythm as the contest site's footer: brand + socials · the phone
   shortcut tiles · menu columns whose links carry their own icon · the contest card with a visitors + install
   meta row under it · a plain bottom bar. IPN's palette and content are unchanged; only the shape is shared.
   Logical properties throughout, so RTL needs no mirror rules. */
.ftr__grid { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 34px; display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, .95fr) minmax(320px, 1.35fr); gap: 36px 32px; }
.ftr__brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ftr__brand p { color: #8E98B0; font-size: 14.5px; line-height: 1.75; max-width: 34ch; }
.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; align-items: flex-start; gap: 9px; min-width: 0; }
.ftr__col h2 { font-size: 18px; color: #fff; margin-bottom: 4px; }
/* a menu link = icon + label, the label free to wrap, the icon aligned to the first line */
.ftr__col a { display: flex; align-items: flex-start; gap: 9px; max-width: 100%; color: #9AA4BB; font-size: 14.5px; line-height: 1.45;
  transition: color .2s var(--ease), transform .2s var(--ease); }
.ftr__col a > span { min-width: 0; overflow-wrap: anywhere; }
.ftr__col a .ic { width: 15px; height: 15px; margin-top: .25em; flex: none; color: var(--red); transition: color .2s; }
.ftr__col--site a .ic { color: var(--gold-2); }
.ftr__col a:hover { color: #fff; transform: translateX(3px); }
html[dir="rtl"] .ftr__col a:hover { transform: translateX(-3px); }
.ftr__col a:hover .ic { color: #fff; }
/* the contest card and its meta row share one column */
.ftr__cardcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ftr__cardcol .ftr__sh { width: 100%; }
.ftr__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: #8E98B0; }
.ftr__meta p { margin: 0; }
.ftr__counter { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.ftr__counter b { color: #fff; font-variant-numeric: tabular-nums; }
.ftr__counter .ic { width: 14px; height: 14px; color: var(--red); }
.ftr__install { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); background: transparent; color: #fff; font: inherit; font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: background-color .2s; }
.ftr__install:hover { background: rgba(255,255,255,.1); }
.ftr__install[hidden] { display: none; }
.ftr__install .ic { width: 14px; height: 14px; color: var(--gold-2); }
.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; }

/* back-to-top: assets/css/site.d/totop.css (shared component) */
.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: 1540px) { .hdr__in { gap: 14px; } }
@media (max-width: 1320px) {
  .hdr__link { padding: 0 9px; }
  html[dir="ltr"] .hdr__link { font-size: 16.5px; }
}
@media (max-width: 1240px) {
  .rail__track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .rail--show .rail__track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  /* 1.17 (R10 · item 4) · three link columns over the full-width brand and card, the same fold as the contest footer */
  .ftr__grid { grid-template-columns: 1fr 1fr 1fr; }
  .ftr__brand, .ftr__cardcol { grid-column: 1 / -1; }
  .ftr__cardcol .ftr__sh { max-width: 560px; }
}
@media (max-width: 980px) {
  .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__cardcol .ftr__sh { max-width: none; }
  .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: #0B1020; border: 1px solid rgba(255,255,255,.14); color: #fff; font: 700 13px/1 "Barlow Condensed", var(--font); letter-spacing: .06em; 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; }
/* 1.14 (R6) · slider buttons are solid, never glass: the site accent, readable on any picture, with real hover/active/focus */
.hstrip__arrow, .hstrip__pause { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%); color: #fff; cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(225,29,46,.95);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .2s; }
.hstrip__arrow:hover, .hstrip__pause:hover { background: linear-gradient(135deg, var(--red-2) 0%, #FF6274 100%); transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(255,51,70,1); }
.hstrip__arrow:active, .hstrip__pause:active { transform: translateY(0); filter: brightness(.94); }
.hstrip__arrow:focus-visible, .hstrip__pause:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.hstrip__pause { position: static; margin: 0; }

/* 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 */
  /* 1.13 · the language switch stays in the phone header row (site.d/hdrmob.css sets the order) */
  .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
   (phones have their own, tighter rules in assets/css/site.d/hdrmob.css — this must not reach them) */
@media (min-width: 761px) and (max-width: 1540px) {
  .hdr__in:has(.umenu) .hdr__sh span { display: none; }
  .hdr__in:has(.umenu) .hdr__sh, html[dir="rtl"] .hdr__in:has(.umenu) .hdr__sh { padding: 0; width: 40px; justify-content: center; }
  .hdr__in:has(.umenu) { gap: 14px; }
}

/* 1.24 · item 14 · in Persian (right-to-left) the home rows' edge fades were drawn the wrong way round: the solid side must sit on the outer edge */
html[dir="rtl"] .home-body > .hb.rail .rail__view::before { background: linear-gradient(to left, var(--bg), transparent); }
html[dir="rtl"] .home-body > .hb.rail .rail__view::after { background: linear-gradient(to right, var(--bg), transparent); }

/* 1.24 · item 21 · each home section its own pattern over its colour wash (like the events grid), and real colour in light mode */
.home-body > .hb--latest::after { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; }
.home-body > .hb--featured::after { background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.6px); background-size: 22px 22px; }
.home-body > .hb--shows::after { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 18px); background-size: auto; }
.home-body > .hb--channels::after { background-image: repeating-radial-gradient(circle at 100% 50%, rgba(255,255,255,.06) 0 1px, transparent 1px 34px); background-size: auto; }
.home-body > .hb--popular::after { background-image: linear-gradient(rgba(255,255,255,.07) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.07) 2px, transparent 2px); background-size: 30px 30px; background-position: -14px -14px; opacity: .35; }
html[data-mode="light"] .home-body > .hb::before { opacity: 1; }
html[data-mode="light"] .home-body > .hb--latest { --hb: radial-gradient(70% 90% at 8% 0%, rgba(225,29,46,.16), transparent 62%), radial-gradient(50% 70% at 100% 100%, rgba(47,107,255,.12), transparent 60%), linear-gradient(180deg, #FFF5F4, #F5F7FF); }
html[data-mode="light"] .home-body > .hb--events { --hb: radial-gradient(60% 100% at 100% 0%, rgba(255,61,129,.16), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(255,122,69,.14), transparent 60%), linear-gradient(180deg, #FFF3F7, #FFF7F1); }
html[data-mode="light"] .home-body > .hb--featured { --hb: radial-gradient(70% 100% at 50% 0%, rgba(232,184,74,.22), transparent 60%), radial-gradient(40% 60% at 90% 100%, rgba(225,29,46,.08), transparent 60%), linear-gradient(180deg, #FFFAEE, #FFF6F0); }
html[data-mode="light"] .home-body > .hb--shows { --hb: radial-gradient(80% 100% at 0% 50%, rgba(47,107,255,.14), transparent 60%), radial-gradient(40% 70% at 100% 0%, rgba(124,58,237,.14), transparent 60%), linear-gradient(180deg, #F3F5FF, #F7F2FF); }
html[data-mode="light"] .home-body > .hb--channels { --hb: radial-gradient(70% 90% at 100% 50%, rgba(14,165,233,.14), transparent 60%), radial-gradient(50% 80% at 0% 0%, rgba(16,185,129,.12), transparent 60%), linear-gradient(180deg, #F0FAFF, #F1FBF7); }
html[data-mode="light"] .home-body > .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,.1), transparent 60%), linear-gradient(180deg, #FFF6EF, #FFF3F3); }
html[data-mode="light"] .home-body > .hb--latest::after { background-image: linear-gradient(rgba(10,20,40,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(10,20,40,.07) 1px, transparent 1px); }
html[data-mode="light"] .home-body > .hb--featured::after { background-image: radial-gradient(rgba(60,30,20,.18) 1.2px, transparent 1.6px); }
html[data-mode="light"] .home-body > .hb--shows::after { background-image: repeating-linear-gradient(135deg, rgba(30,30,90,.07) 0 1px, transparent 1px 18px); }
html[data-mode="light"] .home-body > .hb--channels::after { background-image: repeating-radial-gradient(circle at 100% 50%, rgba(10,60,90,.08) 0 1px, transparent 1px 34px); }
html[data-mode="light"] .home-body > .hb--popular::after { background-image: linear-gradient(rgba(90,30,10,.08) 2px, transparent 2px), linear-gradient(90deg, rgba(90,30,10,.08) 2px, transparent 2px); opacity: .5; }

/* css/extras.css */
/* IPN TV 1.2 extras — work in both looks (Modern and Classic). */
.xr { margin-top: clamp(26px, 4vw, 44px); }
.xr__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.xr__title { margin: 0; font-size: clamp(22px, 2.2vw, 30px); }
.xr__clear { margin-inline-start: auto; border: 0; background: none; color: inherit; opacity: .7; font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
.xr__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.xr__track::-webkit-scrollbar { display: none; }
.xr__card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.xr__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; }
.xr__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.xr__card:hover .xr__thumb img { transform: scale(1.05); }
.xr__thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #E11D2E; width: 38%; }
.xr__dur { position: absolute; bottom: 10px; inset-inline-end: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; font-weight: 700; direction: ltr; }
.xr__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 26px; opacity: 0; background: rgba(0,0,0,.25); transition: opacity .25s; }
.xr__card:hover .xr__play { opacity: 1; }
.xr__t { font-weight: 600; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* floating mini player */
.xmini-ph { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.xmini-ph > .player { width: 100%; height: 100%; }
.player.is-mini { position: fixed !important; z-index: 70; width: 360px !important; height: auto !important; aspect-ratio: 16 / 9; bottom: 20px; inset-inline-end: 20px; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.45); animation: xmini-in .35s cubic-bezier(.16,1,.3,1); }
@keyframes xmini-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.xmini-x { display: none; position: absolute; top: 6px; inset-inline-end: 6px; z-index: 3; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.player.is-mini .xmini-x { display: block; }
.btn--wa .ic, .btn--tg .ic { width: 18px; height: 18px; }
.btn--wa:hover { color: #25D366; } .btn--tg:hover { color: #229ED9; }

/* ==== Header menu icons (1.2.1 → moved to site.d/hdrkit.css in 1.12: the welcome page and the member area share them) ==== */
.hdr__link { gap: 8px; }

/* Event button: stage-coloured pill with a gold crown */
.hdr__sh { position: relative; gap: 8px; padding: 0 16px 0 5px !important; background: linear-gradient(120deg, #FF2E93, #7C3AED 60%, #4F46E5) !important; color: #fff !important; box-shadow: 0 8px 22px -10px rgba(255,46,147,.8); transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s !important; overflow: hidden; }
html[dir="rtl"] .hdr__sh { padding: 0 5px 0 16px !important; }
.hdr__sh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); animation: sh-shine 5s ease-in-out 2s infinite; pointer-events: none; }
.hdr__sh:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(255,46,147,.95); background: linear-gradient(120deg, #FF2E93, #7C3AED 60%, #4F46E5) !important; }
.hdr__sh-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #FFE08A, #F5B700); color: #5A3300; font-style: normal; }
.hdr__sh-ic .ic { width: 16px; height: 16px; }
.hdr__sh:hover .hdr__sh-ic { animation: nv-pop .5s ease; }
@keyframes sh-shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@media (max-width: 1280px) { .hdr__sh, html[dir="rtl"] .hdr__sh { padding: 0 !important; width: 40px; justify-content: center; } }
/* 1.14 (R6) · .hdr__sh--round — the round cross-site button of the header row (see /home/claude/dev/R6-SHARED.md).
   Always a circle with the crown mark; the destination's name is the accessible name on the <a>, never a visible label,
   so the row fits at every width. The contest site mirrors it with the IPN|TV mark inside .hdr__sh-ic. */
.hdr__sh--round, html[dir="rtl"] .hdr__sh--round { width: 40px; padding: 0 !important; justify-content: center; }
.hdr__sh--round > span { display: none; }
.hdr__sh--round:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .nv, .hdr__sh { transition: none !important; } .hdr__sh::after, .nv .ic, .hdr__sh-ic { animation: none !important; } }

/* Slides: <picture> fills the hero; phones crop around the focal point chosen in Studio */
.hero__bg picture, .hero__bg picture img { display: block; width: 100%; height: 100%; }
.hero__bg picture img { object-fit: cover; }
@media (max-width: 760px) { img[style*="--fp"]:not([data-has-m]) { object-position: var(--fp) !important; } }

/* ==== 1.3 Phones: app-style bottom tab bar ============================================================= */
.nv--event { --nv: #F5B700; } .nv--install { --nv: #22C55E; }
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { position: fixed; z-index: 75; inset-inline: 10px; bottom: max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: 66px; padding: 0 4px;
    border-radius: 22px; background: color-mix(in srgb, var(--paper, #fff) 86%, transparent); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px);
    box-shadow: 0 18px 40px -18px rgba(8,12,30,.55), inset 0 0 0 1px color-mix(in srgb, var(--ink, #0E1726) 10%, transparent); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; color: var(--ink-2, #4B5563); font-size: 10.5px; font-weight: 800; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .tabbar a span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar .nv { width: 34px; height: 30px; border-radius: 10px; background: transparent; }
  .tabbar .nv .ic { width: 21px; height: 21px; }
  .tabbar a[aria-current="page"] { color: var(--ink, #0E1726); }
  .tabbar a[aria-current="page"] .nv { background: color-mix(in srgb, var(--nv) 16%, transparent); color: var(--nv); box-shadow: none; }
  .tabbar a:active .nv { transform: scale(.88); }
  .tabbar__live { position: relative; justify-content: flex-end !important; padding-bottom: 9px; }
  .tabbar__fab { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff;
    background: linear-gradient(140deg, #FF4D6D, #E11D48 55%, #9F1239); box-shadow: 0 12px 26px -8px rgba(225,29,72,.85), 0 0 0 5px var(--paper, #fff); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
  .tabbar__fab .ic { width: 26px; height: 26px; }
  .tabbar__live:active .tabbar__fab { transform: translateX(-50%) scale(.92); }
  .tabbar__live.is-live { color: #E11D48; }
  .tabbar__live.is-live .tabbar__fab::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #FF4D6D; animation: tab-ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
  .tabbar__live:not(.is-live) .tabbar__fab { background: linear-gradient(140deg, #334155, #0E1726); box-shadow: 0 12px 26px -10px rgba(8,12,30,.7), 0 0 0 5px var(--paper, #fff); }
  html[data-mode="dark"] .tabbar { background: rgba(16,22,38,.86); box-shadow: 0 18px 40px -18px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.08); }
  html[data-mode="dark"] .tabbar__fab { box-shadow: 0 12px 26px -8px rgba(225,29,72,.85), 0 0 0 5px #101626 !important; }
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .totop { bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
  .hdr__live { display: none !important; }
  .mk-toasts { bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
  .player.is-mini { bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
}
@keyframes tab-ping { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(1.35); opacity: 0; } }

/* ==== 1.3 Phones: footer with shortcut tiles and folding link groups ===================================== */
.ftr-quick { display: none; }
@media (max-width: 760px) {
  .ftr__grid { gap: 14px !important; padding-top: 34px !important; padding-bottom: 14px !important; }
  .ftr__brand { align-items: center !important; text-align: center; }
  .ftr__brand p { margin-inline: auto; }
  .ftr__brand .ftr__social { justify-content: center; }
  .ftr-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ftr-quick .fq { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 10px; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #fff; font: 800 13.5px/1.25 var(--font, inherit); text-align: start; cursor: pointer; text-decoration: none; }
  .ftr-quick .fq[hidden] { display: none; }
  .ftr-quick .fq:active { transform: scale(.97); background: rgba(255,255,255,.1); }
  .ftr-quick .nv { width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.08); color: color-mix(in srgb, var(--nv) 75%, #fff); }
  .ftr-quick .fq--event { background: linear-gradient(135deg, rgba(255,46,147,.3), rgba(124,58,237,.25)); border-color: rgba(255,46,147,.35); }
  .ftr-quick .fq--install { background: linear-gradient(135deg, rgba(34,197,94,.22), rgba(14,165,233,.15)); border-color: rgba(34,197,94,.35); }
  .ftr__col.is-acc { gap: 0 !important; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.04); padding: 0 14px; align-items: stretch !important; }
  .ftr__col.is-acc > h2 { display: flex; align-items: center; justify-content: space-between; margin: 0 !important; padding: 15px 0; cursor: pointer; font-size: 15px !important; }
  .ftr__col.is-acc > h2::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s; opacity: .7; margin-inline-end: 4px; }
  .ftr__col.is-acc.is-open > h2::after { transform: rotate(225deg); }
  .ftr__col.is-acc > a { display: none; padding: 10px 6px; border-radius: 12px; }
  .ftr__col.is-acc.is-open > a { display: flex; }
  .ftr__col.is-acc.is-open { padding-bottom: 8px; background: rgba(255,255,255,.07); }
  .ftr__col.is-acc > a:active { background: rgba(255,255,255,.08); }
  .ftr__col:not(.is-acc) { align-items: center !important; text-align: center; }
  .ftr__col:not(.is-acc) .ftr__social { justify-content: center; }
  .ftr__sh { justify-content: center; }
  .ftr__bottom { text-align: center; align-items: center; font-size: 12px !important; }
  /* 1.17 (R10 · item 4) · the footer menu links carry icons now, and the contest card has a visitors + install
     row under it. On a phone the folded columns keep the icon on the start edge and the meta row centres. */
  .ftr__col.is-acc > a { align-items: center; }
  .ftr__col:not(.is-acc) > a { justify-content: center; }
  .ftr__cardcol { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .ftr__cardcol .ftr__sh { width: 100%; }
  .ftr__meta { justify-content: center; }
  .ftr__counter, .ftr__install { min-height: 38px; }
}

/* 1.6.1 · Sign in / my account in the header and the phone menu */
.me-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line, rgba(0,0,0,.12)); color: var(--ink, inherit); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background-color .2s, border-color .2s, transform .2s; }
html[dir="rtl"] .me-btn { padding: 0 10px 0 14px; }
.me-btn:hover { background: var(--sunk, rgba(0,0,0,.05)); transform: translateY(-1px); }
.me-btn .ic { width: 19px; height: 19px; }
.me-btn.is-in { padding: 0 12px 0 4px; } html[dir="rtl"] .me-btn.is-in { padding: 0 4px 0 12px; }
.me-btn__t { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.me-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #E11D48, #7C3AED); color: #fff; font-weight: 800; font-size: 14px; flex: none; }
@media (max-width: 1540px) { .me-btn--hdr .me-btn__t { display: none; } .me-btn--hdr { width: 40px; padding: 0 !important; justify-content: center; border-color: transparent; } .me-btn--hdr.is-in { border-color: transparent; } }
.drawer__me { display: flex; gap: 8px; margin: 10px 0; }
.drawer__me .btn { flex: 1; justify-content: center; }
.drawer__me-acc { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--sunk, rgba(0,0,0,.05)); color: inherit; text-decoration: none; }
.drawer__me-acc > span:nth-child(2) { flex: 1; display: grid; } .drawer__me-acc small { opacity: .7; font-size: 12px; }
.drawer__me-acc .me-av { width: 40px; height: 40px; }

/* css/events.css */
/* IPN TV · 1.5 — daily news bar, events list, event cards and each event's own page. Works with every public theme, light and night mode, LTR and RTL. */

/* ==== Daily news bar (headlines only, not links) ======================================================= */
.nb { --nb-bg: #101A33; --nb-ink: #E8EDF7; position: relative; display: flex; align-items: stretch; height: 44px; background: linear-gradient(90deg, #0F1A35, #1B1440 60%, #0F1A35); color: var(--nb-ink); overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.06); }
.nb__tag { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 9px; padding: 0 16px 0 14px; background: linear-gradient(120deg, #E11D48, #F97316); font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); padding-inline-end: 26px; }
html[dir="rtl"] .nb__tag { letter-spacing: 0; text-transform: none; font-size: 14px; clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%); }
.nb__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: nbPulse 1.8s infinite; }
@keyframes nbPulse { 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.nb__date { font-weight: 600; font-size: 11.5px; opacity: .85; letter-spacing: 0; text-transform: none; }
.nb__view { flex: 1; min-width: 0; 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); }
.nb__track { display: flex; width: max-content; height: 100%; animation: nbMove var(--nb-dur, 120s) linear infinite; }
html[dir="rtl"] .nb__track { animation-name: nbMoveRtl; }
.nb:hover .nb__track, .nb:focus-within .nb__track, .nb.is-paused .nb__track { animation-play-state: paused; }
@keyframes nbMove { to { transform: translateX(-50%); } }
@keyframes nbMoveRtl { to { transform: translateX(50%); } }
.nb__list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.nb__item { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; white-space: nowrap; font-size: 14.5px; font-weight: 500; cursor: default; }
.nb__item::after { content: ""; width: 4px; height: 4px; margin-inline-start: 22px; border-radius: 50%; background: rgba(255,255,255,.35); }
.nb__src { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #FFD27A; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; }
.nb__pause { position: relative; z-index: 2; flex: none; display: grid; place-items: center; width: 44px; border: 0; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
.nb__pause:hover { background: rgba(255,255,255,.14); }
.nb__pause .ic { width: 16px; height: 16px; }
.nb__pause .nb__play, .nb.is-paused .nb__pause .ic:not(.nb__play) { display: none; }
.nb.is-paused .nb__pause .nb__play { display: block; }
.nb--landing { height: 46px; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); background: rgba(10,12,30,.55); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.nb--landing .nb__tag { border-radius: 15px 0 0 15px; }
html[dir="rtl"] .nb--landing .nb__tag { border-radius: 0 15px 15px 0; }
@media (max-width: 700px) { .nb { height: 40px; } .nb__date { display: none; } .nb__tag { padding-inline: 12px 22px; font-size: 12px; } .nb__item { font-size: 13.5px; padding: 0 16px; } .nb__item::after { margin-inline-start: 16px; } .nb__pause { width: 38px; } }
@media (prefers-reduced-motion: reduce) { .nb__track { animation: none; } .nb__view { overflow-x: auto; scrollbar-width: none; } .nb__list[aria-hidden] { display: none; } .nb__dot { animation: none; } .nb__pause { display: none; } }

/* ==== Event card ================================================================================== */
.evc { --acc: #E11D48; position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; isolation: isolate; }
.evc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 40%, var(--line)); box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--acc) 70%, #000); }
.evc__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.evc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.evc:hover .evc__media img { transform: scale(1.06); }
.evc__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)); }
.evc__date { position: absolute; z-index: 1; inset: 12px auto auto 12px; display: grid; justify-items: center; min-width: 58px; padding: 7px 8px 6px; border-radius: 14px; background: rgba(255,255,255,.92); color: #0E1726; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html[dir="rtl"] .evc__date { inset: 12px 12px auto auto; }
.evc__date b { font-size: 24px; font-weight: 900; line-height: 1; color: var(--acc); }
.evc__date small { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
html[dir="rtl"] .evc__date small { text-transform: none; letter-spacing: 0; font-size: 12px; }
.evc__ph { position: absolute; z-index: 1; inset: 14px 12px auto auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; background: rgba(15,15,30,.7); }
html[dir="rtl"] .evc__ph { inset: 14px auto auto 12px; }
.evc__ph--live { background: #DC2626; } .evc__ph--postponed { background: #7C3AED; } .evc__ph--cancelled { background: #52525B; } .evc__ph--soldout { background: #0F172A; }
.evc__pulse { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: nbPulse 1.6s infinite; }
.evc__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.evc__cat { color: var(--acc); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
html[dir="rtl"] .evc__cat { text-transform: none; letter-spacing: 0; font-size: 13px; }
.evc__title { font-size: 18.5px; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.evc__sum { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.evc__facts { display: grid; gap: 5px; font-size: 13.5px; color: var(--ink-2); }
.evc__facts > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.evc__facts bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evc__facts .ic { flex: none; width: 15px; height: 15px; color: var(--acc); }
.evc__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.evc__price { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; }
.evc__price .ic { width: 15px; height: 15px; color: var(--acc); }
.evc__go { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; font-weight: 800; font-size: 13.5px; color: var(--acc); }
.evc__go .ic { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.evc:hover .evc__go .ic { transform: translateX(3px); }
html[dir="rtl"] .evc:hover .evc__go .ic { transform: translateX(-3px) scaleX(-1); }
.evc.is-past .evc__media img { filter: grayscale(.5); }
.evc.is-cancelled .evc__title { text-decoration: line-through; text-decoration-thickness: 2px; }
/* wide (featured) */
.evc--wide { display: grid; grid-template-columns: 1.35fr 1fr; }
.evc--wide .evc__media { aspect-ratio: auto; min-height: 340px; }
.evc--wide .evc__body { padding: 28px; justify-content: center; gap: 12px; }
.evc--wide .evc__title { font-size: clamp(24px, 2.6vw, 34px); -webkit-line-clamp: 3; }
.evc--wide .evc__date { min-width: 72px; } .evc--wide .evc__date b { font-size: 30px; }
@media (max-width: 860px) { .evc--wide { grid-template-columns: 1fr; } .evc--wide .evc__media { min-height: 0; aspect-ratio: 16 / 10; } .evc--wide .evc__body { padding: 18px; } }

/* home rail */
.evrail { margin-block: 40px; }
.evrail .rail__title { display: inline-flex; align-items: center; gap: 10px; }
.evrail .rail__title .ic { color: var(--red); }
.evrail__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.evrail__row > * { scroll-snap-align: start; }

/* ==== Events list page ============================================================================ */
.evh { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 28px; background: radial-gradient(60rem 30rem at 10% -10%, rgba(225,29,72,.22), transparent 70%), radial-gradient(50rem 30rem at 100% 0%, rgba(124,58,237,.22), transparent 70%), linear-gradient(180deg, #0D1124, #151233); color: #fff; }
.evh__glow { position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.25), transparent 70%); pointer-events: none; }
.evh__in { position: relative; display: grid; gap: 14px; }
.evh__kick { display: inline-flex; align-items: center; gap: 8px; width: max-content; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-weight: 700; font-size: 13px; color: #FFD27A; }
.evh__kick .ic { width: 16px; height: 16px; }
.evh__title { font-size: clamp(34px, 5vw, 60px); font-weight: 900; letter-spacing: -.03em; }
.evh__lead { max-width: 640px; font-size: clamp(16px, 1.6vw, 19px); color: #CBD3E6; }
.evh__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; }
.evh__seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.evh__seg a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #D8DEEC; }
.evh__seg a .ic { width: 16px; height: 16px; }
.evh__seg a.is-on { background: #fff; color: #0E1726; }
.evh__cats { display: flex; gap: 8px; flex-wrap: wrap; }
.evh__cats a { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: 13.5px; font-weight: 600; color: #D8DEEC; transition: background .2s; }
.evh__cats a:hover { background: rgba(255,255,255,.08); }
.evh__cats a.is-on { background: linear-gradient(120deg, #E11D48, #F97316); border-color: transparent; color: #fff; }
.evl { padding-block: 28px 60px; display: grid; gap: 22px; }
.evl__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.evl__empty { display: grid; justify-items: center; gap: 12px; padding: 60px 16px; text-align: center; border-radius: 24px; background: var(--paper); border: 1px dashed var(--line-2); }
.evl__empty-art { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 24px; background: linear-gradient(135deg, #E11D48, #F59E0B); color: #fff; }
.evl__empty-art .ic { width: 38px; height: 38px; }
.evl__empty h2 { font-size: 22px; } .evl__empty p { color: var(--muted); max-width: 440px; }

/* ==== Event page =================================================================================== */
.evp { --acc: #E11D48; }
.evp-draft { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: #F59E0B; color: #1F1300; font-weight: 700; font-size: 14px; }
.evp-draft a { text-decoration: underline; }
.evp-hero { position: relative; min-height: min(86svh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.evp-hero__bg { position: absolute; inset: 0; z-index: -2; }
.evp-hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: evpZoom 18s ease-out both; }
@keyframes evpZoom { from { transform: scale(1.08); } }
.evp-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,6,18,.35) 0%, rgba(5,6,18,.15) 30%, rgba(5,6,18,.75) 70%, rgba(5,6,18,.94) 100%), linear-gradient(90deg, color-mix(in srgb, var(--acc) 38%, transparent), transparent 60%); }
html[dir="rtl"] .evp-hero__shade { background: linear-gradient(180deg, rgba(5,6,18,.35) 0%, rgba(5,6,18,.15) 30%, rgba(5,6,18,.75) 70%, rgba(5,6,18,.94) 100%), linear-gradient(270deg, color-mix(in srgb, var(--acc) 38%, transparent), transparent 60%); }
.evp-hero__in { display: grid; gap: 16px; padding-block: 90px 40px; width: 100%; }
.evp-crumbs a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); }
.evp-crumbs a:hover { color: #fff; }
.evp-crumbs .ic { width: 16px; height: 16px; }
html[dir="rtl"] .ic--back { transform: scaleX(-1); }
.evp-hero__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.evp-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 700; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.evp-chip .ic { width: 15px; height: 15px; }
.evp-chip--live { background: #DC2626; border-color: transparent; } .evp-chip--postponed { background: #7C3AED; border-color: transparent; } .evp-chip--cancelled { background: #3F3F46; border-color: transparent; } .evp-chip--past { background: rgba(0,0,0,.4); }
.evp-hero__title { max-width: 18ch; font-size: clamp(36px, 6.4vw, 84px); font-weight: 900; letter-spacing: -.035em; line-height: .98; text-shadow: 0 6px 40px rgba(0,0,0,.4); }
html[dir="rtl"] .evp-hero__title { line-height: 1.25; letter-spacing: 0; max-width: 22ch; }
.evp-hero__sub { max-width: 640px; font-size: clamp(17px, 1.8vw, 21px); color: rgba(255,255,255,.88); }
.evp-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.evp-facts li { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html[dir="rtl"] .evp-facts li { padding: 10px 10px 10px 16px; }
.evp-facts__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--acc); box-shadow: 0 8px 18px -8px var(--acc); }
.evp-facts__ic .ic { width: 20px; height: 20px; }
.evp-facts li > span:last-child { display: grid; line-height: 1.3; }
.evp-facts strong { font-size: 15.5px; font-weight: 800; }
.evp-facts small { font-size: 12.5px; color: rgba(255,255,255,.75); }
.evp-hero__acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.evp-cta { background: var(--acc); color: #fff; border-color: transparent; box-shadow: 0 16px 34px -14px var(--acc); }
.evp-cta:hover { filter: brightness(1.08); }
.evp-cta--off { background: rgba(255,255,255,.16); box-shadow: none; cursor: default; }
.evp-cta--off:hover { filter: none; }
.evp-cta .ic--sm { width: 14px; height: 14px; opacity: .8; }
.evp-menu { position: relative; }
.evp-menu summary { list-style: none; cursor: pointer; }
.evp-menu summary::-webkit-details-marker { display: none; }
.evp-menu__pop { position: absolute; z-index: 10; inset: calc(100% + 8px) auto auto 0; display: grid; min-width: 220px; padding: 6px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); border: 1px solid var(--line); }
html[dir="rtl"] .evp-menu__pop { inset: calc(100% + 8px) 0 auto auto; }
.evp-menu__pop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.evp-menu__pop a:hover { background: var(--sunk); }
.evp-cd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.evp-cd__lbl { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.8); margin-inline-end: 4px; text-transform: uppercase; letter-spacing: .08em; }
html[dir="rtl"] .evp-cd__lbl { text-transform: none; letter-spacing: 0; font-size: 14px; }
.evp-cd__box { display: grid; justify-items: center; min-width: 68px; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.evp-cd__box b { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.evp-cd__box small { font-size: 11px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .06em; }
html[dir="rtl"] .evp-cd__box small { text-transform: none; letter-spacing: 0; font-size: 12px; }

.evp-alert { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; border-radius: 18px; background: #F5F3FF; color: #2E1065; border: 1px solid #DDD6FE; }
.evp-alert .ic { flex: none; width: 24px; height: 24px; color: #7C3AED; }
.evp-alert--cancelled { background: #F4F4F5; color: #18181B; border-color: #E4E4E7; } .evp-alert--cancelled .ic { color: #52525B; }
html[data-mode="dark"] .evp-alert { background: #1E1638; color: #EDE9FE; border-color: #3B2A6B; }
html[data-mode="dark"] .evp-alert--cancelled { background: #1F1F23; color: #E4E4E7; border-color: #34343A; }

.evp-nav { position: sticky; top: 64px; z-index: 20; background: var(--header); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
.evp-nav__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.evp-nav__in::-webkit-scrollbar { display: none; }
.evp-nav a { position: relative; display: inline-flex; align-items: center; gap: 7px; flex: none; height: 52px; padding: 0 14px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.evp-nav a .ic { width: 17px; height: 17px; color: var(--muted); }
.evp-nav a:hover, .evp-nav a.is-on { color: var(--ink); }
.evp-nav a.is-on .ic { color: var(--acc); }
.evp-nav a.is-on::after { content: ""; position: absolute; inset: auto 12px 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--acc); }

.evp-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; padding-block: 36px 60px; }
.evp-main { display: grid; gap: 22px; min-width: 0; }
.evp-sec { scroll-margin-top: 140px; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.evp-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; }
.evp-h .ic { width: 24px; height: 24px; padding: 8px; box-sizing: content-box; border-radius: 12px; background: color-mix(in srgb, var(--acc) 12%, transparent); color: var(--acc); }
.evp-about.has-poster { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.evp-poster { padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); background: none; }
.evp-poster img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.evp-poster:hover img { transform: scale(1.03); }
.evp-lead { font-size: 18.5px; line-height: 1.7; color: var(--ink); font-weight: 500; }
.evp-prose { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; line-height: 1.8; }
.evp-prose > * + * { margin-top: 12px; }
.evp-prose h2, .evp-prose h3 { color: var(--ink); margin-top: 22px; }
.evp-prose a { color: var(--acc); text-decoration: underline; }
.evp-prose img { border-radius: 14px; }
.evp-video { margin-top: 20px; border-radius: 18px; overflow: hidden; }
.evp-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.evp-person { display: grid; justify-items: center; gap: 4px; padding: 18px 12px; border-radius: 20px; text-align: center; background: var(--sunk); transition: transform .3s var(--ease), background .3s; }
a.evp-person:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--acc) 10%, var(--sunk)); }
.evp-person__ph { display: grid; place-items: center; width: 108px; height: 108px; margin-bottom: 8px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--acc), #F59E0B); box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px color-mix(in srgb, var(--acc) 50%, transparent); }
.evp-person__ph img { width: 100%; height: 100%; object-fit: cover; }
.evp-person__ph b { font-size: 40px; color: #fff; }
.evp-person strong { font-size: 16px; }
.evp-person small { color: var(--acc); font-weight: 700; font-size: 13px; }
.evp-person__bio { font-size: 13.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.evp-agenda { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.evp-agenda::before { content: ""; position: absolute; inset: 10px auto 10px 76px; width: 2px; background: linear-gradient(var(--acc), color-mix(in srgb, var(--acc) 15%, transparent)); }
html[dir="rtl"] .evp-agenda::before { inset: 10px 76px 10px auto; }
.evp-agenda li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 12px 0; }
.evp-agenda li::before { content: ""; position: absolute; inset: 18px auto auto 71px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid var(--acc); }
html[dir="rtl"] .evp-agenda li::before { inset: 18px 71px auto auto; }
.evp-agenda time { font-weight: 900; font-size: 15px; color: var(--acc); font-variant-numeric: tabular-nums; padding-top: 2px; text-align: end; }
.evp-agenda strong { font-size: 16.5px; }
.evp-agenda p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.evp-venue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; align-items: stretch; }
.evp-venue__info { display: grid; gap: 10px; align-content: start; }
.evp-venue__info h3 { font-size: 20px; font-weight: 800; }
.evp-venue__addr { color: var(--ink-2); font-size: 15.5px; }
html[dir="rtl"] .evp-venue__addr { text-align: right; }
.evp-venue__park { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--sunk); font-size: 14.5px; color: var(--ink-2); }
.evp-venue__park .ic { flex: none; width: 20px; height: 20px; color: var(--acc); }
.evp-venue__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.evp-map { min-height: 280px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--sunk); }
.evp-map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }
html[data-mode="dark"] .evp-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
.evp-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.evp-badges span { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 16px; background: var(--sunk); }
.evp-badges .ic { grid-row: span 2; width: 22px; height: 22px; padding: 9px; box-sizing: content-box; border-radius: 12px; background: var(--acc); color: #fff; }
.evp-badges small { color: var(--muted); font-size: 12.5px; }
.evp-badges strong { font-size: 16px; }
.evp-rules { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.evp-rules li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.6; }
.evp-rules .ic { flex: none; width: 20px; height: 20px; margin-top: 3px; color: #10B981; }
.evp-faq { display: grid; gap: 10px; }
.evp-faq details { border-radius: 16px; background: var(--sunk); overflow: hidden; }
.evp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.evp-faq summary::-webkit-details-marker { display: none; }
.evp-faq summary .ic { flex: none; width: 20px; height: 20px; color: var(--acc); transition: transform .3s var(--ease); }
.evp-faq details[open] summary .ic { transform: rotate(180deg); }
.evp-faq p { padding: 0 18px 18px; color: var(--ink-2); line-height: 1.7; }
.evp-gallery { columns: 3 220px; column-gap: 12px; }
.evp-gallery__it { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--sunk); break-inside: avoid; }
.evp-gallery__it img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.evp-gallery__it:hover img { transform: scale(1.04); }
.evp-sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.evp-sponsor { display: grid; place-items: center; gap: 6px; min-height: 110px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-align: center; color: #0E1726; transition: transform .3s var(--ease), box-shadow .3s; }
a.evp-sponsor:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(0,0,0,.5); }
.evp-sponsor img { max-height: 64px; width: auto; object-fit: contain; }
.evp-sponsor small { font-size: 12px; color: #64748B; font-weight: 700; }

.evp-side { position: sticky; top: calc(var(--hdr-h, 64px) + 70px); }
.evp-ticket { position: relative; display: grid; gap: 16px; padding: 22px; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(10,10,30,.5); overflow: hidden; }
.evp-ticket::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--acc), #F59E0B); }
.evp-ticket__top { display: flex; align-items: center; gap: 14px; }
.evp-ticket__ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); }
.evp-ticket__ic .ic { width: 26px; height: 26px; }
.evp-ticket__top small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
html[dir="rtl"] .evp-ticket__top small { text-transform: none; letter-spacing: 0; }
.evp-ticket__top strong { font-size: 19px; font-weight: 900; }
.evp-cta--block { width: 100%; justify-content: center; }
.evp-ticket .evp-cta--off { background: var(--sunk); color: var(--ink-2); }
.evp-ticket__note { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.evp-ticket__note .ic { width: 15px; height: 15px; }
.evp-ticket__dl { display: grid; gap: 0; margin: 0; border-top: 1px dashed var(--line); }
.evp-ticket__dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.evp-ticket__dl dt { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.evp-ticket__dl dt .ic { width: 16px; height: 16px; }
.evp-ticket__dl dd { margin: 0; font-weight: 700; text-align: end; }
.evp-ticket__dl dd small { color: var(--muted); font-weight: 500; }
.evp-ticket__contact { display: grid; gap: 6px; }
.evp-ticket__contact small { color: var(--muted); font-weight: 700; }
.evp-ticket__contact a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.evp-ticket__contact .ic { width: 16px; height: 16px; color: var(--acc); }
.evp-ticket__share { display: flex; gap: 8px; justify-content: center; padding-top: 4px; }
.evp-ticket__share a, .evp-ticket__share button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--sunk); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.evp-ticket__share a:hover, .evp-ticket__share button:hover { background: var(--acc); color: #fff; transform: translateY(-2px); }
.evp-ticket__share .ic { width: 18px; height: 18px; }
.evp-more { padding-bottom: 70px; }
.evp-bar { display: none; }
.evp-lb { width: min(96vw, 1200px); max-height: 92svh; padding: 0; border: 0; border-radius: 18px; background: #050611; color: #fff; overflow: visible; }
.evp-lb::backdrop { background: rgba(4,5,15,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.evp-lb figure { margin: 0; display: grid; gap: 8px; }
.evp-lb img { max-width: 100%; max-height: 84svh; margin: 0 auto; border-radius: 18px; object-fit: contain; }
.evp-lb figcaption { padding: 0 14px 12px; text-align: center; font-size: 14.5px; color: #CBD5E1; }
.evp-lb figcaption:empty { display: none; }
.evp-lb__x, .evp-lb__nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.evp-lb__x:hover, .evp-lb__nav:hover { background: rgba(255,255,255,.26); }
.evp-lb__x { inset: 10px 10px auto auto; }
.evp-lb__nav { inset: 50% auto auto 10px; transform: translateY(-50%); }
.evp-lb__nav--next { inset: 50% 10px auto auto; }
html[dir="rtl"] .evp-lb__nav--prev { inset: 50% 10px auto auto; } html[dir="rtl"] .evp-lb__nav--next { inset: 50% auto auto 10px; }
html[dir="rtl"] .evp-lb__nav .ic { transform: scaleX(-1); }
.evp-lb[data-single] .evp-lb__nav { display: none; }

@media (max-width: 1000px) {
  .evp-body { grid-template-columns: 1fr; }
  .evp-side { position: static; order: -1; }
  .evp-venue { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .evp-hero { min-height: 92svh; }
  .evp-hero__in { padding-block: 80px 26px; gap: 13px; }
  .evp-facts { display: grid; grid-template-columns: 1fr; }
  .evp-facts li { padding-block: 8px; }
  .evp-facts__ic { width: 36px; height: 36px; }
  .evp-hero__acts .btn--lg { height: 48px; padding: 0 16px; font-size: 15px; }
  .evp-hero__acts .evp-cta { flex: 1 1 100%; justify-content: center; }
  .evp-share span { display: none; }
  .evp-cd__box { min-width: 0; flex: 1; padding: 6px; } .evp-cd__box b { font-size: 21px; } .evp-cd__lbl { flex: 1 1 100%; }
  .evp-about.has-poster { grid-template-columns: 1fr; } .evp-poster { max-width: 260px; }
  .evp-sec { border-radius: 20px; }
  .evp-people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .evp-person__ph { width: 84px; height: 84px; }
  .evp-agenda::before { inset-inline-start: 60px; } .evp-agenda li { grid-template-columns: 50px 1fr; gap: 26px; } .evp-agenda li::before { inset-inline-start: 55px; }
  html[dir="rtl"] .evp-agenda::before { inset: 10px 60px 10px auto; } html[dir="rtl"] .evp-agenda li::before { inset: 18px 55px auto auto; }
  .evp-gallery { columns: 2 140px; column-gap: 8px; } .evp-gallery__it { margin-bottom: 8px; border-radius: 10px; }
  .evp-bar { position: fixed; z-index: 60; inset: auto 10px calc(10px + env(safe-area-inset-bottom)) 10px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 20px; background: rgba(10,12,28,.9); color: #fff; box-shadow: 0 20px 40px -14px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transform: translateY(140%); transition: transform .4s var(--ease); }
  html[dir="rtl"] .evp-bar { padding: 8px 16px 8px 8px; }
  .evp-bar.is-on { transform: none; }
  .evp-bar__t { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
  .evp-bar__t strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .evp-bar__t small { font-size: 12px; opacity: .75; }
  .evp-bar .btn { height: 44px; padding: 0 16px; font-size: 14.5px; flex: none; }
  .evp-bar .evp-cta--off { background: rgba(255,255,255,.14); color: #fff; }
  body.page-event .tabbar ~ .evp-bar, body.page-event .evp-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .evp-hero__bg img { animation: none; } .evc, .evc__media img, .evp-gallery__it img { transition: none; } }

/* ==== Buying tickets (1.6): selection, seat map, checkout ========================================== */
.tk-head { position: relative; overflow: hidden; color: #fff; isolation: isolate; background: #0B0A1F; }
.tk-head__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: blur(2px) saturate(1.1); transform: scale(1.05); }
.tk-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,6,24,.55), rgba(8,6,24,.92)), linear-gradient(90deg, color-mix(in srgb, var(--acc) 45%, transparent), transparent 70%); }
.tk-head__in { display: grid; gap: 10px; padding-block: 34px 26px; }
.tk-head h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 900; letter-spacing: -.02em; }
html[dir="rtl"] .tk-head h1 { letter-spacing: 0; }
.tk-head p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: rgba(255,255,255,.85); }
.tk-head p .ic { width: 16px; height: 16px; }
.tk-head--slim .tk-head__in { padding-block: 26px 20px; }
.tk-back { display: inline-flex; align-items: center; gap: 6px; width: max-content; color: rgba(255,255,255,.8); font-weight: 600; font-size: 14px; }
.tk-steps { display: flex; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.tk-steps li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 700; font-size: 13.5px; color: rgba(255,255,255,.75); }
html[dir="rtl"] .tk-steps li { padding: 0 6px 0 14px; }
.tk-steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 13px; }
.tk-steps li.is-on { background: #fff; color: #1A1430; } .tk-steps li.is-on b { background: var(--acc); color: #fff; }
.tk-steps li.is-done b { background: #10B981; } .tk-steps .ic { width: 14px; height: 14px; }
.tk-body { padding-block: 24px 70px; }
.tk-form { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.tk-main { display: grid; gap: 18px; min-width: 0; }
.tk-side { position: sticky; top: 90px; display: grid; gap: 14px; }
.tk-card { padding: 20px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 20px 50px -40px rgba(20,10,50,.6); }
.tk-card__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tk-card__h h2, .tk-sum h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.tk-card__h h2 .ic, .tk-sum h2 .ic { width: 20px; height: 20px; color: var(--acc); }
.tk-zoom { display: inline-flex; gap: 4px; }
.tk-zoom button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.tk-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13.5px; }
.tk-legend li { display: inline-flex; align-items: center; gap: 7px; }
.tk-legend i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); }
.tk-legend i.is-taken { background: #CFCBDB; } .tk-legend i.is-sel { background: #111827; box-shadow: 0 0 0 2px var(--acc); }
html[data-mode="dark"] .tk-legend i.is-sel { background: #fff; }
.tk-legend b { color: var(--muted); font-weight: 700; }
.tk-stage { position: relative; max-height: 70svh; overflow: auto; border-radius: 16px; border: 1px solid var(--line); cursor: grab; -webkit-overflow-scrolling: touch; }
.tk-stage.is-drag { cursor: grabbing; }
.tk-stage .sm-svg { min-width: 100%; }
[data-seatpick].is-max .tk-hint { color: #DC2626; animation: tkShake .4s; }
@keyframes tkShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.tk-hint { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.tk-chosen { margin-top: 14px; }
.tk-chosen h3 { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.tk-chosen ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tk-chosen li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--sunk); font-size: 14px; }
.tk-chosen li i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.tk-chosen li span { flex: 1; } .tk-chosen li.is-empty { color: var(--muted); justify-content: center; background: none; border: 1.5px dashed var(--line); }
.tk-chosen li button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--paper); cursor: pointer; font-size: 16px; color: var(--muted); }
.tk-types { display: grid; gap: 10px; }
.tk-type { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 16px; padding-inline-start: 22px; border-radius: 16px; border: 1.5px solid var(--line); overflow: hidden; }
.tk-type__bar { position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--c); }
html[dir="rtl"] .tk-type__bar { inset: 0 0 0 auto; }
.tk-type__t { display: grid; gap: 2px; min-width: 0; } .tk-type__t strong { font-size: 16px; } .tk-type__t small { color: var(--muted); font-size: 13px; }
.tk-type__m { color: #DC2626 !important; font-weight: 700; }
.tk-type__p { font-size: 17px; font-weight: 900; white-space: nowrap; }
.tk-type.is-off { opacity: .55; }
.tk-qty { display: inline-flex; align-items: center; border-radius: 13px; border: 1.5px solid var(--line); overflow: hidden; }
.tk-qty button { display: grid; place-items: center; width: 40px; height: 42px; border: 0; background: var(--sunk); color: var(--ink); cursor: pointer; }
.tk-qty input { width: 46px; height: 42px; border: 0; text-align: center; font: inherit; font-size: 17px; font-weight: 800; background: var(--paper); color: var(--ink); -moz-appearance: textfield; }
.tk-qty input::-webkit-outer-spin-button, .tk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tk-sum dl { display: grid; gap: 0; margin: 14px 0; }
.tk-sum dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.tk-sum dt { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; } .tk-sum dd { margin: 0; font-weight: 700; }
.tk-sum__total { font-size: 19px !important; } .tk-sum__total dt { color: var(--ink); font-weight: 800; } .tk-sum__total dd { font-weight: 900; }
.tk-sum__disc dd { color: #059669; }
.tk-q { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; background: none; color: var(--muted); cursor: help; }
.tk-q .ic { width: 15px; height: 15px; }
.tk-go { width: 100%; justify-content: center; background: var(--acc) !important; border-color: transparent !important; box-shadow: 0 16px 30px -16px var(--acc); }
.tk-go:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.tk-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; color: var(--muted); font-size: 13px; }
.tk-note .ic { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.tk-note--acc { color: var(--ink-2); padding: 10px 12px; border-radius: 12px; background: var(--sunk); }
.tk-trust { display: grid; gap: 8px; margin: 14px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.tk-trust li { display: flex; gap: 8px; align-items: flex-start; } .tk-trust .ic { width: 16px; height: 16px; color: #10B981; flex: none; margin-top: 2px; }
.tk-closed { display: grid; justify-items: center; gap: 12px; padding: 40px 16px; text-align: center; color: var(--muted); }
.tk-hold { display: flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; margin-bottom: 16px; padding: 10px 16px; border-radius: 14px; background: color-mix(in srgb, var(--acc) 10%, var(--paper)); border: 1px solid color-mix(in srgb, var(--acc) 30%, var(--line)); font-weight: 700; font-size: 14.5px; }
.tk-hold b { font-variant-numeric: tabular-nums; font-size: 17px; color: var(--acc); }
.tk-hold.is-low { background: #FEF2F2; border-color: #FCA5A5; } .tk-hold.is-low b { color: #DC2626; }
.tk-code { font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.tk-lines { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tk-lines li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 12px 14px; border-radius: 16px; background: var(--sunk); }
.tk-lines li > i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.tk-lines__t { display: grid; min-width: 0; } .tk-lines__t small { color: var(--muted); font-size: 13px; }
.tk-lines li > b { font-weight: 800; }
.tk-name { grid-column: 2 / -1; } .tk-name input { width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 14.5px; }
.tk-methods { display: grid; gap: 10px; }
.tk-method { position: relative; cursor: pointer; }
.tk-method > input { position: absolute; opacity: 0; }
.tk-method > span { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); transition: border-color .2s, background .2s, box-shadow .2s; }
.tk-method i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--sunk); color: var(--ink); flex: none; }
.tk-method i .ic { width: 24px; height: 24px; }
.tk-method--stripe i { background: #635BFF; color: #fff; } .tk-method--paypal i { background: #FFC439; color: #003087; } .tk-method--crypto i { background: #F7931A; color: #fff; }
.tk-method > span > span { display: grid; flex: 1; } .tk-method small { color: var(--muted); font-size: 13px; }
.tk-method__ok { opacity: 0; color: var(--acc); transition: opacity .2s; } .tk-method__ok .ic { width: 22px; height: 22px; }
.tk-method > input:checked + span { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 6%, var(--paper)); box-shadow: 0 12px 24px -20px var(--acc); }
.tk-method > input:checked + span .tk-method__ok { opacity: 1; }
.tk-method > input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.tk-terms { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.tk-terms input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--acc); flex: none; }
.tk-terms a { color: var(--acc); text-decoration: underline; } .tk-terms small { display: block; color: var(--muted); margin-top: 4px; }
.tk-promo summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; list-style: none; } .tk-promo summary::-webkit-details-marker { display: none; }
.tk-promo__f { display: flex; gap: 8px; margin-top: 12px; } .tk-promo__f input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; text-transform: uppercase; }
.tk-cancel { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; }
.evp-types { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.evp-types li { display: flex; align-items: center; gap: 8px; font-size: 14px; } .evp-types i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; } .evp-types span { flex: 1; } .evp-types b { font-weight: 800; }
.evp-raffle { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, #F59E0B 14%, var(--paper)), var(--paper)); border: 1px solid color-mix(in srgb, #F59E0B 30%, var(--line)); }
.evp-raffle__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #F59E0B; color: #fff; }
.evp-raffle > div { display: grid; min-width: 0; } .evp-raffle small { color: var(--muted); font-size: 12.5px; }
.evp-raffle__ok { display: inline-flex; align-items: center; gap: 4px; color: #059669; font-weight: 800; font-size: 13px; }
.evp-raffle .btn { height: 36px; padding: 0 12px; font-size: 13px; }
@media (max-width: 1000px) { .tk-form { grid-template-columns: 1fr; } .tk-side { position: static; } }
@media (max-width: 600px) {
  .tk-type { grid-template-columns: minmax(0, 1fr) auto; } .tk-type .tk-qty { grid-column: 1 / -1; justify-self: start; }
  .tk-card { padding: 16px; border-radius: 18px; }
  .tk-stage { max-height: 62svh; }
  .tk-hold { width: 100%; }
  .evp-raffle { grid-template-columns: auto 1fr; } .evp-raffle form, .evp-raffle__ok { grid-column: 1 / -1; }
}

/* ---- 1.7 · Readability: event colour as text is darkened by day and lightened at night ---- */
.evc__cat, .evc__go, .ac-tgroup__cat { color: color-mix(in srgb, var(--acc) 70%, #000); }
html[data-mode="dark"] .evc__cat, html[data-mode="dark"] .evc__go, html[data-mode="dark"] .ac-tgroup__cat { color: color-mix(in srgb, var(--acc) 62%, #fff); }

/* ==== 1.8 · Event cards, list page and filters (design refresh) ================================== */
/* tokens with fallbacks so the same card reads well in the modern and classic themes */
.evc2, .evbar, .evl { --ev-paper: var(--paper, var(--surface, #fff)); --ev-ink: var(--ink, var(--text, #0E1726)); --ev-ink2: var(--ink-2, var(--text-2, #4B5563)); --ev-line: var(--line, rgba(10,20,40,.1)); --ev-muted: var(--muted, #6B7280); --ev-soft: color-mix(in srgb, var(--ev-ink) 5%, var(--ev-paper)); }
.evc2 { --acc-t: color-mix(in srgb, var(--acc) 72%, #000); background: var(--ev-paper); border-color: var(--ev-line); color: var(--ev-ink); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 14px 34px -26px rgba(10,15,35,.55); }
html[data-mode="dark"] .evc2 { --acc-t: color-mix(in srgb, var(--acc) 58%, #fff); }
.evc2::before { content: ""; position: absolute; z-index: 2; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--acc), color-mix(in srgb, var(--acc) 40%, #F59E0B)); opacity: .9; }
.evc2:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.evc2 .evc__media::after { background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, transparent 30%, transparent 55%, rgba(0,0,0,.55)); }
.evc2 .evc__date { inset: 12px auto auto 12px; border-radius: 16px; padding: 6px 9px 5px; overflow: hidden; background: rgba(255,255,255,.94); }
.evc2 .evc__date::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--acc); }
html[dir="rtl"] .evc2 .evc__date { inset: 12px 12px auto auto; }
.evc2 .evc__date b { color: color-mix(in srgb, var(--acc) 80%, #000); margin-top: 3px; }
.evc__chip { position: absolute; z-index: 1; inset: auto auto 12px 12px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 24px); height: 28px; padding: 0 11px 0 6px; border-radius: 999px; color: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--acc) 62%, rgba(10,10,25,.55)); border: 1px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%); box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); }
html[dir="rtl"] .evc__chip { inset: auto 12px 12px auto; padding: 0 6px 0 11px; }
.evc__chip .ic { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(255,255,255,.22); box-sizing: content-box; }
.evc__pill { position: absolute; z-index: 1; inset: 12px 12px auto auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #fff; background: rgba(15,15,30,.72); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 8px 18px -10px rgba(0,0,0,.6); }
html[dir="rtl"] .evc__pill { inset: 12px auto auto 12px; }
.evc__pill .ic { width: 15px; height: 15px; }
.evc__pill--live { background: #DC2626; } .evc__pill--postponed { background: #7C3AED; } .evc__pill--cancelled { background: #3F3F46; } .evc__pill--past { background: rgba(30,30,45,.78); }
.evc__pill--soldout { background: #111827; } .evc__pill--few { background: linear-gradient(120deg, #EA580C, #DC2626); animation: evFew 2.4s ease-in-out infinite; }
.evc__pill--sale { background: #047857; } .evc__pill--free { background: #0369A1; }
@keyframes evFew { 50% { box-shadow: 0 0 0 5px rgba(234,88,12,.25), 0 8px 18px -10px rgba(0,0,0,.6); } }
.evc2 .evc__body { gap: 9px; padding: 16px 18px 16px; }
.evc__soon { display: inline-flex; align-items: center; gap: 6px; width: max-content; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--acc-t); background: color-mix(in srgb, var(--acc) 13%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 28%, transparent); }
.evc__soon .ic { width: 14px; height: 14px; }
.evc2 .evc__title { font-size: 19px; letter-spacing: -.01em; transition: color .25s; }
html[dir="rtl"] .evc2 .evc__title { letter-spacing: 0; line-height: 1.5; }
.evc2:hover .evc__title { color: var(--acc-t); }
.evc__subt { color: var(--ev-ink2); font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: -4px; }
.evc2 .evc__sum { color: var(--ev-ink2); }
.evc2 .evc__facts { gap: 8px; color: var(--ev-ink2); font-size: 13.5px; }
.evc2 .evc__facts > span { gap: 9px; }
.evc__fi { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--acc-t); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.evc2 .evc__facts .evc__fi .ic { width: 15px; height: 15px; color: inherit; }
.evc2 .evc__facts small { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--ev-soft); border: 1px solid var(--ev-line); color: var(--ev-ink2); font-size: 12px; font-weight: 700; }
.evc2 .evc__foot { padding-top: 13px; border-top: 1px solid var(--ev-line); }
.evc2 .evc__price { height: 32px; padding: 0 12px 0 8px; border-radius: 999px; color: var(--ev-ink); background: color-mix(in srgb, var(--acc) 10%, var(--ev-paper)); border: 1px solid color-mix(in srgb, var(--acc) 26%, transparent); white-space: nowrap; }
html[dir="rtl"] .evc2 .evc__price { padding: 0 8px 0 12px; }
.evc2 .evc__price .ic { color: var(--acc-t); }
.evc2 .evc__go { color: var(--acc-t); gap: 8px; }
.evc2 .evc__go i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--acc); color: #fff; transition: transform .35s var(--ease, ease), box-shadow .35s; box-shadow: 0 8px 18px -10px var(--acc); }
.evc2 .evc__go i .ic { width: 16px; height: 16px; }
html[dir="rtl"] .evc2 .evc__go i .ic { transform: scaleX(-1); }
.evc2:hover .evc__go i { transform: translateX(3px); } html[dir="rtl"] .evc2:hover .evc__go i { transform: translateX(-3px); }
.evc2:hover .evc__go .ic { transform: none; } html[dir="rtl"] .evc2:hover .evc__go i .ic { transform: scaleX(-1); }
.evc2.is-past .evc__chip, .evc2.is-cancelled .evc__chip { background: rgba(30,30,45,.6); }
/* wide = featured hero card */
.evc2.evc--wide { border-radius: 26px; }
.evc2.evc--wide .evc__body { padding: clamp(20px, 3vw, 36px); gap: 14px; background: radial-gradient(30rem 16rem at 100% 0%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 70%); }
.evc2.evc--wide .evc__title { font-size: clamp(24px, 2.8vw, 38px); line-height: 1.15; }
html[dir="rtl"] .evc2.evc--wide .evc__title { line-height: 1.4; }
.evc2.evc--wide .evc__facts { font-size: 15px; }
.evc2.evc--wide .evc__go { height: 44px; padding: 0 6px 0 18px; border-radius: 999px; background: var(--acc); color: #fff; }
html[dir="rtl"] .evc2.evc--wide .evc__go { padding: 0 18px 0 6px; }
.evc2.evc--wide .evc__go i { background: rgba(255,255,255,.22); box-shadow: none; }
.evc2.evc--wide .evc__chip { height: 32px; font-size: 13.5px; }
@media (max-width: 860px) { .evc2.evc--wide { grid-template-columns: 1fr; } .evc2.evc--wide .evc__media { min-height: 0; aspect-ratio: 16 / 10; } }

/* list page hero */
.evh2 { padding-bottom: clamp(30px, 4vw, 48px); }
.evh2__float { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.evh2__float i { position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: evFloat 9s ease-in-out infinite; animation-delay: calc(var(--i) * -1.4s); opacity: .8; }
.evh2__float i .ic { width: 28px; height: 28px; opacity: .9; }
.evh2__float i:nth-child(1) { inset: 18% 8% auto auto; color: #FDA4AF; } .evh2__float i:nth-child(2) { inset: 56% 18% auto auto; width: 52px; height: 52px; color: #C4B5FD; }
.evh2__float i:nth-child(3) { inset: 12% 26% auto auto; width: 46px; height: 46px; color: #FCD34D; } .evh2__float i:nth-child(4) { inset: 64% 4% auto auto; color: #FDE68A; }
.evh2__float i:nth-child(5) { inset: 30% 36% auto auto; width: 50px; height: 50px; color: #F9A8D4; } .evh2__float i:nth-child(6) { inset: 74% 32% auto auto; width: 40px; height: 40px; color: #93C5FD; }
html[dir="rtl"] .evh2__float { transform: scaleX(-1); } html[dir="rtl"] .evh2__float .ic { transform: scaleX(-1); }
@keyframes evFloat { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
.evh2__stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.evh2__stats li { display: grid; gap: 0; min-width: 104px; padding: 10px 16px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.evh2__stats b { font-size: 26px; font-weight: 900; line-height: 1.1; color: #fff; }
.evh2__stats span { font-size: 12.5px; font-weight: 700; color: #C7CEE0; }
@media (max-width: 760px) { .evh2__float i:nth-child(n+3) { display: none; } .evh2__float i { opacity: .45; } .evh2__stats li { min-width: 0; flex: 1; padding: 8px 12px; } .evh2__stats b { font-size: 21px; } }

/* sticky filter bar under the hero */
.evbar { position: sticky; top: 64px; z-index: 20; background: color-mix(in srgb, var(--ev-paper) 86%, transparent); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--ev-line); }
.evbar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-block: 12px; }
.evbar__seg { display: inline-flex; flex: none; padding: 4px; border-radius: 999px; background: var(--ev-soft); border: 1px solid var(--ev-line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.evbar__seg::-webkit-scrollbar, .evbar__cats::-webkit-scrollbar { display: none; }
.evbar__seg a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--ev-ink2); white-space: nowrap; transition: background .2s, color .2s; }
.evbar__seg a .ic { width: 16px; height: 16px; }
.evbar__seg a:hover { color: var(--ev-ink); }
.evbar__seg a.is-on { background: linear-gradient(120deg, #E11D48, #F97316); color: #fff; box-shadow: 0 8px 18px -10px #E11D48; }
.evbar__cats { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding-block: 2px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
html[dir="rtl"] .evbar__cats { -webkit-mask-image: linear-gradient(270deg, #000 92%, transparent); mask-image: linear-gradient(270deg, #000 92%, transparent); }
.evbar__cats a { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--ev-line); background: var(--ev-paper); font-size: 13.5px; font-weight: 700; color: var(--ev-ink2); white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
html[dir="rtl"] .evbar__cats a { padding: 0 6px 0 14px; }
.evbar__cats a .ic { width: 16px; height: 16px; padding: 5px; border-radius: 50%; box-sizing: content-box; background: var(--ev-soft); color: var(--ev-ink); }
.evbar__cats a:hover { border-color: color-mix(in srgb, #E11D48 40%, var(--ev-line)); color: var(--ev-ink); }
.evbar__cats a.is-on { background: var(--ev-ink); border-color: var(--ev-ink); color: var(--ev-paper); }
.evbar__cats a.is-on .ic { background: linear-gradient(120deg, #E11D48, #F97316); color: #fff; }
@media (max-width: 700px) { .evbar { position: relative; top: 0; } .evbar__in { padding-block: 10px; gap: 8px; } .evbar__seg { width: 100%; } .evbar__seg a { flex: 1 1 auto; justify-content: center; padding: 0 9px; font-size: 12.5px; height: 34px; } .evbar__seg a .ic { display: none; } .evbar__cats { flex-basis: 100%; } }

/* list body */
.evl__feat { position: relative; }
.evl__feat-tag { position: absolute; z-index: 3; inset: -12px auto auto 22px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: linear-gradient(120deg, #F59E0B, #F97316); color: #1A1204; font-size: 12.5px; font-weight: 900; box-shadow: 0 10px 20px -10px #F59E0B; }
html[dir="rtl"] .evl__feat-tag { inset: -12px 22px auto auto; }
.evl__feat-tag .ic { width: 14px; height: 14px; }
.evl__month { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 19px; font-weight: 800; color: var(--ev-ink); }
.evl__month .ic { width: 34px; height: 34px; padding: 8px; box-sizing: border-box; border-radius: 11px; background: linear-gradient(135deg, #E11D48, #F97316); color: #fff; }
.evl__month small { margin-inline-start: auto; color: var(--ev-muted); font-size: 13px; font-weight: 700; }
.evl__month::after { content: ""; order: 2; flex: 1; height: 1px; background: var(--ev-line); }
.evl__month small { order: 3; margin: 0; }
.evl__grid > [data-reveal] { transition-delay: calc(var(--i, 0) * 60ms); }
.evl .evl__empty { background: var(--ev-paper); border-color: var(--ev-line); color: var(--ev-ink); }
.evl__empty-art { position: relative; width: 96px; height: 96px; border-radius: 30px; box-shadow: 0 20px 40px -20px #E11D48; }
.evl__empty-art > .ic { width: 42px; height: 42px; }
.evl__empty-art i { position: absolute; inset: auto -12px -10px auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--ev-paper); color: #E11D48; border: 1px solid var(--ev-line); transform: rotate(-12deg); animation: evFloat 6s ease-in-out infinite; }
.evl__empty-art i .ic { width: 20px; height: 20px; }
.evl__empty p { color: var(--ev-muted); }
.evl__empty-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .evh2__float i, .evl__empty-art i, .evc__pill--few { animation: none; } }
/* narrow cards (account dashboard, rails): keep venue, city, price and the arrow inside the card */
.evc2 { container-type: inline-size; }
.evc2 .evc__facts bdi { flex: 0 1 auto; min-width: 3em; }
.evc2 .evc__facts small { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evc2 .evc__foot { min-width: 0; }
.evc2 .evc__go { flex: none; }
@container (max-width: 250px) { .evc2 .evc__go > span { display: none; } .evc2 .evc__facts small { display: none; } .evc2 .evc__body { padding: 14px; } .evc2 .evc__title { font-size: 17px; } }

/* 1.9 · event pictures sit edge to edge in every card (the <picture> fills the frame; cover pictures are 16:9) */
.evc__media { aspect-ratio: 16 / 9; }
.evc__media picture { position: absolute; inset: 0; display: block; }
.evc__media picture img, .evc__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.evc--wide .evc__media { aspect-ratio: 16 / 9; min-height: 0; }
@media (max-width: 860px) { .evc--wide .evc__media, .evc2.evc--wide .evc__media { aspect-ratio: 16 / 9; } }

/* ===== 1.13 · "Buy ticket" — one confident gradient everywhere ==============================
   Add .btn-buy to any ticket call-to-action (event page, events list, welcome box, account).
   The doubled class keeps it ahead of the per-event accent paint of .xe-cta / .evp-cta.
   Light and dark, LTR and RTL; is-off / [disabled] gives the quiet, unclickable state. */
.btn-buy.btn-buy { --buy-1: #E11D48; --buy-2: #F43F5E; --buy-3: #F97316;
  position: relative; border: 0; color: #fff;
  background: linear-gradient(118deg, var(--buy-1) 0%, var(--buy-2) 45%, var(--buy-3) 100%);
  /* 140% (not 170%) so the warm end of the gradient is already visible at rest — phones have no hover */
  background-size: 140% 100%; background-position: 0% 50%;
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--buy-1) 85%, transparent), inset 0 1px 0 rgba(255,255,255,.18);
  font-weight: 800; text-shadow: 0 1px 1px rgba(90,0,25,.25);
  transition: background-position .45s cubic-bezier(.2,.8,.2,1), box-shadow .35s cubic-bezier(.2,.8,.2,1), transform .35s cubic-bezier(.2,.8,.2,1), filter .2s; }
.btn-buy.btn-buy:hover { color: #fff; background-position: 100% 50%; transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px color-mix(in srgb, var(--buy-1) 95%, transparent), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-buy.btn-buy:active { transform: translateY(0); filter: brightness(.94); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--buy-1) 85%, transparent); }
.btn-buy.btn-buy:focus-visible { outline: 3px solid color-mix(in srgb, var(--buy-2) 60%, #fff); outline-offset: 2px; }
.btn-buy .ic { color: currentColor; }
.btn-buy.btn-buy.is-off, .btn-buy.btn-buy[disabled], .btn-buy.btn-buy[aria-disabled="true"] {
  background: var(--surface-2, color-mix(in srgb, currentColor 12%, transparent)); color: var(--text-2, #6B7280);
  box-shadow: none; text-shadow: none; cursor: not-allowed; transform: none; }
.btn-buy.btn-buy.is-off:hover { transform: none; box-shadow: none; }
html[data-mode="light"] .btn-buy.btn-buy { --buy-1: #D81441; --buy-2: #EF2A52; --buy-3: #EA6A0C; }
@media (prefers-reduced-motion: reduce) { .btn-buy.btn-buy { transition: none; } .btn-buy.btn-buy:hover { transform: none; } }

/* themes/classic/css/pagehead.css */
/* IPN TV 1.14 (R6) · The page hero — app/views/partials/pagehead.php.
   One reusable band at the top of every page that does not open with a full-bleed slider:
   breadcrumb + URL chip · kicker · title · description · a per-page tint · page-related icons drifting behind the text.
   Tokens come from themes/classic/css/base.css. --ph-a / --ph-b are the page's own two accent colours (set inline).
   Motion: 300–500 ms eases for interaction, slow 12–20 s drifts for the background; everything stops under reduced motion.
   The text column always sits above .ph__veil, which is opaque at the start edge — the drifting icons can never cut its contrast. */

.ph {
  --ph-a: #E11D2E; --ph-b: #2F6BFF;
  --ph-ink: color-mix(in srgb, var(--ph-a) 62%, #FFFFFF);
  --ph-soft: color-mix(in srgb, var(--ph-a) 14%, transparent);
  --ph-line: color-mix(in srgb, var(--ph-a) 34%, transparent);
  --ph-ease: cubic-bezier(.16, 1, .3, 1);
  position: relative; isolation: isolate; overflow: clip;
  margin-bottom: 26px;
  padding: clamp(26px, 4vw, 54px) 0 clamp(22px, 3.2vw, 38px);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}
html[data-mode="light"] .ph { --ph-ink: color-mix(in srgb, var(--ph-a) 86%, #000000); --ph-soft: color-mix(in srgb, var(--ph-a) 11%, transparent); }
.ph--slim { padding: clamp(22px, 3vw, 38px) 0 clamp(18px, 2.4vw, 28px); }
/* the compact strip for pages that open with a player or a picture hero (show, channel, watch, live):
   same tint and the same drifting icons, but the title and the description live in the media block below */
.ph--bar { margin-bottom: 0; padding: 14px 0 13px; }
.ph--bar .ph__glow { filter: blur(56px); opacity: .42; }
.ph--bar .ph__glow--a { width: 340px; height: 340px; top: -190px; }
.ph--bar .ph__glow--b { width: 260px; height: 260px; bottom: -150px; }
.ph--bar .ph__float { width: min(48%, 520px); }
.ph--bar .ph__float i { width: 34px; height: 34px; border-radius: 11px; }
.ph--bar .ph__float i .ic { width: 16px; height: 16px; }
.ph--bar .ph__float i:nth-child(1) { inset-inline-end: 4%;  top: 12%; }
.ph--bar .ph__float i:nth-child(2) { inset-inline-end: 24%; top: 34%; }
.ph--bar .ph__float i:nth-child(3) { inset-inline-end: 44%; top: 4%; }
.ph--bar .ph__float i:nth-child(4) { inset-inline-end: 64%; top: 40%; }
.ph--bar .ph__float i:nth-child(n + 5) { display: none; }
.ph--bar .ph__in { align-items: center; }
/* the contact page pulled its cards up over its old tall hero — the shared hero sits above them instead */
.ph + .ct-grid { margin-top: 24px; }

/* ---- background: two soft accent glows + a faint grid ------------------------------------------------------- */
.ph__glow { position: absolute; display: block; border-radius: 50%; pointer-events: none; filter: blur(70px); opacity: .5; }
.ph__glow--a { width: 520px; height: 520px; inset-inline-end: -140px; top: -230px; background: radial-gradient(circle, color-mix(in srgb, var(--ph-a) 60%, transparent), transparent 66%); animation: ph-drift 16s ease-in-out infinite alternate; }
.ph__glow--b { width: 380px; height: 380px; inset-inline-start: -130px; bottom: -200px; background: radial-gradient(circle, color-mix(in srgb, var(--ph-b) 50%, transparent), transparent 66%); animation: ph-drift 21s ease-in-out infinite alternate-reverse; }
html[data-mode="light"] .ph__glow { opacity: .3; }
.ph__grid { position: absolute; display: block; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 75% at 50% 0%, #000 18%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 0%, #000 18%, transparent 100%); }
@keyframes ph-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-36px, 26px, 0) scale(1.07); } }

/* ---- the drifting page icons (always on the far side of the text) ------------------------------------------- */
.ph__float { position: absolute; display: block; inset-block: 0; inset-inline-end: 0; width: min(54%, 680px); pointer-events: none; }
.ph__float i { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; font-style: normal;
  background: color-mix(in srgb, var(--surface) 74%, transparent); border: 1px solid var(--line); color: var(--ph-ink);
  opacity: 0; animation: ph-float 11s ease-in-out infinite alternate, ph-in .9s var(--ph-ease) forwards;
  animation-delay: calc(var(--i) * -1.45s), calc(var(--i) * .07s); }
.ph__float i .ic { width: 23px; height: 23px; }
.ph__float i:nth-child(2n) { color: color-mix(in srgb, var(--ph-b) 62%, var(--text)); }
.ph__float i:nth-child(3n) { color: var(--ph-ink); }
.ph__float i:nth-child(1) { inset-inline-end: 6%;  top: 9%; }
.ph__float i:nth-child(2) { inset-inline-end: 27%; top: 30%; width: 44px; height: 44px; border-radius: 14px; }
.ph__float i:nth-child(3) { inset-inline-end: 44%; top: 6%;  width: 46px; height: 46px; border-radius: 15px; }
.ph__float i:nth-child(4) { inset-inline-end: 15%; top: 55%; width: 48px; height: 48px; border-radius: 15px; }
.ph__float i:nth-child(5) { inset-inline-end: 62%; top: 38%; width: 38px; height: 38px; border-radius: 12px; }
.ph__float i:nth-child(6) { inset-inline-end: 36%; top: 68%; width: 40px; height: 40px; border-radius: 13px; }
.ph__float i:nth-child(5) .ic, .ph__float i:nth-child(6) .ic { width: 19px; height: 19px; }
@keyframes ph-float { from { translate: 0 0; rotate: -4deg; } to { translate: 0 -16px; rotate: 5deg; } }
@keyframes ph-in { to { opacity: .92; } }

/* the scrim that guarantees the text contrast: solid at the start edge, clear where the icons drift */
.ph__veil { position: absolute; display: block; inset: 0; pointer-events: none;
  background: linear-gradient(to right, var(--bg-2) 0%, color-mix(in srgb, var(--bg-2) 72%, transparent) 36%, transparent 62%); }
html[dir="rtl"] .ph__veil { background: linear-gradient(to left, var(--bg-2) 0%, color-mix(in srgb, var(--bg-2) 72%, transparent) 36%, transparent 62%); }

/* ---- the copy ----------------------------------------------------------------------------------------------- */
.ph__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: end; }
.ph__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; max-width: 760px; }

.ph__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ph__crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ph__crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.ph__crumbs li + li::before { content: "/"; margin: 0 7px; color: var(--muted); opacity: .55; }
.ph__crumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); text-decoration: none; transition: color .25s var(--ph-ease); }
/* the var() fallbacks matter: the breadcrumb line is reused outside .ph (the events hero), where --ph-* is not declared */
.ph__crumbs a:hover { color: var(--ph-ink, var(--accent, #E11D2E)); }
.ph__crumbs a:focus-visible { outline: 2px solid var(--ph-a, var(--accent, #E11D2E)); outline-offset: 3px; border-radius: 5px; }
.ph__crumbs a .ic { width: 14px; height: 14px; }
.ph__crumbs [aria-current] { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.ph__url { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 26px; padding: 0 10px; border-radius: 999px; color: var(--text-2);
  background: var(--ph-soft, color-mix(in srgb, var(--accent, #E11D2E) 13%, transparent));
  border: 1px solid var(--ph-line, color-mix(in srgb, var(--accent, #E11D2E) 32%, transparent)); }
.ph__url .ic { flex: none; width: 13px; height: 13px; color: var(--ph-ink, var(--accent, #E11D2E)); }
.ph__url code { font: 600 11.5px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the same line over a picture (the event hero) */
.ph__crumbs--onimage { color: #fff; }
.ph__crumbs--onimage ol { color: rgba(255,255,255,.72); }
.ph__crumbs--onimage li + li::before { color: rgba(255,255,255,.55); }
.ph__crumbs--onimage a { color: rgba(255,255,255,.88); }
.ph__crumbs--onimage a:hover { color: #fff; }
.ph__crumbs--onimage [aria-current] { color: #fff; }
.ph__crumbs--onimage .ph__url { background: rgba(8,11,22,.6); border-color: rgba(255,255,255,.2); color: #fff; }
.ph__crumbs--onimage .ph__url .ic { color: #fff; }

.ph__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: var(--ph-soft); border: 1px solid var(--ph-line); color: var(--text); font: 700 12.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; }
html[dir="rtl"] .ph__kicker { letter-spacing: 0; font-size: 13px; }
.ph__kicker .ic { width: 15px; height: 15px; color: var(--ph-ink); }
.ph__title { margin: 0; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -.01em;
  background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 62%, var(--ph-a))); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[dir="rtl"] .ph__title { font-size: clamp(27px, 3.4vw, 44px); line-height: 1.32; letter-spacing: 0; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) { .ph__title { color: var(--text); } }
.ph__lead { margin: 0; max-width: 62ch; color: var(--text-2); font-size: clamp(14.5px, 1.1vw, 16.5px); line-height: 1.65; }
.ph__extra { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }

/* small stat chips any page can drop into the right-hand slot */
.ph-stat { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line); color: var(--text); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: transform .35s var(--ph-ease), border-color .3s; }
.ph-stat:hover { transform: translateY(-2px); border-color: var(--line-2); }
.ph-stat .ic { width: 17px; height: 17px; color: var(--ph-ink); }
.ph-stat b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ph-stat small { color: var(--muted); font-weight: 600; }

/* ---- responsive --------------------------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ph__in { grid-template-columns: 1fr; align-items: start; }
  .ph__extra { justify-content: flex-start; }
  .ph__float { width: min(60%, 420px); }
  .ph__float i { width: 46px; height: 46px; border-radius: 14px; }
  .ph__float i .ic { width: 20px; height: 20px; }
}
@media (max-width: 760px) {
  .ph { margin-bottom: 20px; }
  .ph__float { width: 56%; opacity: .62; }
  .ph__float i:nth-child(n + 5) { display: none; }
  .ph__float i { width: 40px; height: 40px; border-radius: 12px; }
  .ph__float i .ic { width: 18px; height: 18px; }
  .ph__veil { background: linear-gradient(to right, var(--bg-2) 0%, color-mix(in srgb, var(--bg-2) 80%, transparent) 52%, color-mix(in srgb, var(--bg-2) 40%, transparent) 100%); }
  html[dir="rtl"] .ph__veil { background: linear-gradient(to left, var(--bg-2) 0%, color-mix(in srgb, var(--bg-2) 80%, transparent) 52%, color-mix(in srgb, var(--bg-2) 40%, transparent) 100%); }
  .ph__crumbs { gap: 6px 8px; }
  .ph__crumbs ol { font-size: 12px; }
  .ph__crumbs [aria-current] { max-width: 56vw; }
  .ph__url { height: 24px; padding: 0 9px; }
  .ph__url code { font-size: 10.5px; }
  .ph__lead { font-size: 14px; }
  .ph-stat { height: 38px; padding: 0 12px; font-size: 12.5px; }
}
@media (max-width: 400px) {
  .ph__float { width: 50%; opacity: .5; }
  .ph__float i:nth-child(n + 4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ph__glow, .ph__float i { animation: none !important; }
  .ph__float i { opacity: .8; }
  .ph__crumbs a, .ph-stat { transition: none; }
}

/* css/scrollnav.css */
/* IPN 1.10 · Horizontal tab bars / chip rows that overflow: [data-scrollnav] (assets/js/scrollnav.js).
   Scrolls sideways with a hidden scrollbar, momentum, edge fades, drag and wheel. Layout only — the theme styles the items. */
[data-scrollnav] { flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden; max-width: 100%; min-width: 0; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-behavior: smooth; cursor: default; user-select: none; -webkit-user-select: none; }
[data-scrollnav]::-webkit-scrollbar { display: none; height: 0; }
[data-scrollnav] > * { flex: none; }
[data-scrollnav].is-dragging { cursor: grabbing; scroll-behavior: auto; }
[data-scrollnav].is-dragging > * { pointer-events: none; }
/* edge fades: the mask follows the scroll position (is-start / is-end are set by the script) */
[data-scrollnav].sn-fade { --sn-l: 24px; --sn-r: 24px; -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--sn-l), #000 calc(100% - var(--sn-r)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--sn-l), #000 calc(100% - var(--sn-r)), transparent); }
[data-scrollnav].sn-fade.is-start { --sn-l: 0px; }
[data-scrollnav].sn-fade.is-end { --sn-r: 0px; }
html[dir="rtl"] [data-scrollnav].sn-fade.is-start { --sn-l: 24px; --sn-r: 0px; }
html[dir="rtl"] [data-scrollnav].sn-fade.is-end { --sn-r: 24px; --sn-l: 0px; }
html[dir="rtl"] [data-scrollnav].sn-fade.is-start.is-end, [data-scrollnav].sn-fade.is-start.is-end { --sn-l: 0px; --sn-r: 0px; }
@media (prefers-reduced-motion: reduce) { [data-scrollnav] { scroll-behavior: auto; } }

/* css/langswitch.css */
/* 1.11 · Language switch (animate-ui "switch" style): a pill with two labels and a knob that glides across; the labels
   cross-fade and the knob squashes on press. Markup: partials/lang_switch.php (IPN) · partials/lang_switch.php (contest). */
.lsw { --lsw-h: 36px; --lsw-bg: rgba(127,127,127,.14); --lsw-knob: #fff; --lsw-ink: inherit; --lsw-on: #111; position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; height: var(--lsw-h); min-width: 92px; padding: 3px; border-radius: 999px; background: var(--lsw-bg); color: var(--lsw-ink); text-decoration: none; isolation: isolate; -webkit-tap-highlight-color: transparent; transition: background-color .2s, box-shadow .2s; }
.lsw:hover { box-shadow: 0 0 0 3px rgba(127,127,127,.12); }
.lsw__k { position: absolute; z-index: 0; top: 3px; bottom: 3px; inset-inline-start: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--lsw-knob); box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .42s cubic-bezier(.2,.9,.25,1.15), width .2s; }
.lsw.is-en .lsw__k { transform: translateX(100%); } [dir="rtl"] .lsw.is-en .lsw__k { transform: translateX(-100%); }
.lsw:active .lsw__k { width: calc(60% - 3px); } .lsw.is-en:active .lsw__k { transform: translateX(66%); } [dir="rtl"] .lsw.is-en:active .lsw__k { transform: translateX(-66%); }
.lsw__l { position: relative; z-index: 1; display: grid; place-items: center; height: 100%; padding: 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; line-height: 1; opacity: .62; transform: translateY(0); transition: opacity .3s, color .3s, transform .3s; white-space: nowrap; }
.lsw__l.is-on { opacity: 1; color: var(--lsw-on); }
.lsw__l small { display: block; font-size: 9px; font-weight: 600; opacity: .7; margin-top: 2px; }
.lsw.is-anim .lsw__l:not(.is-on) { animation: lsw-pop .42s both; } @keyframes lsw-pop { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-3px) scale(1.08); } 100% { transform: translateY(0) scale(1); } }
.lsw__g { position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: radial-gradient(60% 120% at var(--x, 50%) 50%, rgba(255,255,255,.25), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.lsw:hover .lsw__g { opacity: 1; }
.lsw--dark, html[data-mode="dark"] .lsw { --lsw-bg: rgba(255,255,255,.1); --lsw-knob: #fff; --lsw-on: #111; }
.lsw--onimage { --lsw-bg: rgba(255,255,255,.14); --lsw-knob: #fff; --lsw-on: #111; color: #fff; }
.lsw--sm { --lsw-h: 30px; min-width: 76px; } .lsw--sm .lsw__l { font-size: 11.5px; padding: 0 6px; }
@media (prefers-reduced-motion: reduce) { .lsw__k, .lsw__l { transition: none; } .lsw.is-anim .lsw__l { animation: none; } }

