/* ==========================================================================
   رأفت سعيد - «قناتك الخاصة لسنة كاملة»
   The annual subscription is a private channel: a screen in the hero, a
   programme guide where every course is a bar as long as its hours, and a
   live programme once a month. Cobalt is the channel; the ten course colours
   live only on programmes; saffron is reserved for the subscribe action;
   red only ever means the monthly live session.
   Shape rule: screens and panels 12-14px, thumbnails and photos 10px,
   bars 4px, every control is a pill.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Alexandria";
  src: url("../fonts/alexandria-arabic.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Alexandria";
  src: url("../fonts/alexandria-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Aref Ruqaa";
  src: url("../fonts/ruqaa-400-arabic.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Aref Ruqaa";
  src: url("../fonts/ruqaa-700-arabic.woff2") format("woff2");
  font-weight: 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Markazi Text";
  src: url("../fonts/markazi-arabic.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Markazi Text";
  src: url("../fonts/markazi-latin.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #EEF0F3;
  --paper-2: #E2E5EB;
  --sheet: #FAFAFB;
  --ink: #15171D;
  --ink-2: #404655;
  --ink-3: #5A6071;
  --rule: rgba(21, 23, 29, .14);

  --cobalt: #1C2B7A;
  --cobalt-2: #283C9E;
  --cobalt-deep: #121C53;
  --on-cobalt: #F1F2F6;
  --on-cobalt-2: #C3CAEC;

  --saffron: #F5B31B;
  --saffron-2: #FFC23A;
  --live: #D2342B;

  --f-display: "Alexandria", "Segoe UI", Tahoma, sans-serif;
  --f-ruqaa: "Aref Ruqaa", "Alexandria", serif;
  --f-text: "Markazi Text", "Alexandria", serif;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --r-obj: 4px;
  --focus: var(--cobalt);

  /* z-index scale: masthead 30, footband 40, skip link 50 */
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1.22rem;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  caret-color: var(--cobalt);
}
@media (min-width: 1024px) { body { font-size: 1.3rem; } }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
/* Arabic is a joined script: letter-spacing breaks the joins, so it is pinned off. */
h1, h2, h3, p, a, button, li, dt, dd, span, b, small { letter-spacing: normal; }

::selection { background: var(--cobalt); color: var(--on-cobalt); }
.guide-sec ::selection, .close ::selection, .plan__panel ::selection { background: var(--on-cobalt); color: var(--cobalt); }

html { scrollbar-color: #9AA3C7 var(--paper); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #9AA3C7; border-radius: 999px; border: 2px solid var(--paper); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.guide-sec, .close, .plan__panel, .footer { --focus: var(--saffron); }

.skip {
  position: fixed; inset-inline-start: 1rem; top: 1rem; z-index: 50;
  background: var(--ink); color: var(--sheet); padding: .6rem 1rem; border-radius: 999px;
  font: 600 .95rem var(--f-display); text-decoration: none;
  transform: translateY(-160%); transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; }

[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type roles ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 1.2rem + 1.9vw, 2.8rem);
  line-height: 1.35;
  text-wrap: balance;
  margin-bottom: .8rem;
}
.h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.5; margin-bottom: .9rem; }
.lede { font-size: clamp(1.25rem, 1.12rem + .4vw, 1.45rem); line-height: 1.75; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }

.text-link {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px;
  font: 600 1rem/1.4 var(--f-display); color: var(--cobalt);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 160ms ease, color 160ms ease;
}
.text-link i { font-size: 1.35rem; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .text-link:hover { text-decoration-color: currentColor; } }
.text-link--on-dark { color: var(--on-cobalt); }


button.text-link { background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- The subscribe action ---------- */
.cta {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem;
  min-height: 48px; padding: .7rem 1.8rem;
  border-radius: 999px;
  background: var(--saffron); color: var(--ink);
  font-family: var(--f-display);
  text-decoration: none; text-align: center; cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6),
    inset 0 -2px 0 rgba(120, 80, 0, .22),
    0 12px 22px -14px rgba(10, 14, 40, .6);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 160ms ease;
}
.cta__label { font-weight: 700; font-size: 1.05rem; line-height: 1.3; white-space: nowrap; }
.cta__sub { font-weight: 500; font-size: .8rem; line-height: 1.3; white-space: nowrap; color: #3A3220; }
@media (hover: hover) and (pointer: fine) {
  .cta:hover { transform: translateY(-2px); background: var(--saffron-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(120, 80, 0, .22), 0 18px 26px -14px rgba(10, 14, 40, .6); }
}
.cta:active { transform: scale(.97); transition-duration: 110ms; }
.cta--lg { padding: .85rem 2.4rem; min-height: 64px; }
.cta--lg .cta__label { font-size: 1.28rem; }
.cta--sm { padding: .45rem 1.3rem; min-height: 44px; }
.cta--sm .cta__label { font-size: .98rem; }
.cta--block { display: flex; width: 100%; }

/* ---------- Live state (only the monthly live programme is ever "live") ---------- */
.live-pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .3em .85em .3em .9em; border-radius: 999px;
  background: var(--live); color: #fff;
  font: 700 .85rem/1.3 var(--f-display); white-space: nowrap;
}
.live-dot { width: .5em; height: .5em; border-radius: 50%; background: #fff; flex: none; }
/* the dot stays still: the sessions are monthly, nothing is on air right now */

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.masthead.is-stuck { border-bottom-color: var(--rule); box-shadow: 0 10px 24px -22px rgba(21, 23, 29, .5); }
.masthead__in {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  height: 68px; display: flex; align-items: center; gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-height: 44px; }
/* the channel mark: a small screen on a stand */
.brand__mark {
  position: relative; flex: none;
  width: 40px; height: 29px; margin-bottom: 5px;
  display: grid; place-items: center;
  background: var(--cobalt); color: var(--on-cobalt);
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--cobalt-deep), inset 0 0 0 3px rgba(241, 242, 246, .18);
}
.brand__mark b { font: 700 1.15rem/1 var(--f-ruqaa); transform: translateY(-2px); }
.brand__mark::after {
  content: ""; position: absolute; top: calc(100% + 2px); left: 50%;
  width: 16px; height: 3px; margin-left: -8px; border-radius: 2px; background: var(--cobalt);
}
.brand__name { font: 800 1.12rem/1.3 var(--f-display); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); margin-inline-start: auto; }
.nav a {
  font: 500 .95rem/1.3 var(--f-display); color: var(--ink-2); text-decoration: none;
  padding-block: .6rem; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: .25rem; height: 2px; background: var(--cobalt);
  transform: scaleX(0); transform-origin: right; transition: transform 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); }
  .nav a:hover::after { transform: scaleX(1); }
}
.masthead .cta { margin-inline-start: .5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; }
.hero__in {
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3.25rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center; gap: clamp(1.75rem, 4vw, 4rem);
  min-height: min(calc(100dvh - 68px), 720px);
}
.hero__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.05rem, 1.05rem + 2.2vw, 2.9rem);
  line-height: 1.32;
  text-wrap: balance;
}
.hero__sub {
  font-size: clamp(1.3rem, 1.15rem + .45vw, 1.55rem);
  line-height: 1.6; color: var(--ink-2);
  max-width: 34ch; margin-block: 1.25rem 2.25rem; text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 2rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__copy > * { animation: rise 900ms var(--ease-out) both; }
  .js .hero__copy > :nth-child(2) { animation-delay: 90ms; }
  .js .hero__copy > :nth-child(3) { animation-delay: 180ms; }
  .js .hero__object { animation: rise 1100ms var(--ease-out) 120ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.hero__object { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

/* --- the television: the channel's screen, a stand, a floor shadow --- */
.tv { position: relative; width: 100%; max-width: 660px; padding: 12px 12px 40px; }
.tv__screen {
  position: relative; isolation: isolate;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0B0F2E;
  container-type: inline-size;
  touch-action: pan-y;
  box-shadow:
    0 0 0 10px #16181F,
    0 0 0 11px #343845,
    0 46px 60px -34px rgba(10, 14, 40, .7);
}
.tv__panel { position: relative; }
/* step arrows sit on the screen's side edges, half over the bezel, clear of every frame's text */
.tv__arrow {
  position: absolute; z-index: 4; top: 50%;
  width: 46px; height: 46px; margin-top: -23px;
  display: grid; place-items: center;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sheet); color: var(--ink);
  font-size: 1.15rem;
  box-shadow: 0 0 0 1px rgba(21, 23, 29, .08), 0 10px 22px -10px rgba(10, 14, 40, .55);
  transition: transform 180ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.tv__arrow--prev { inset-inline-start: -23px; }
.tv__arrow--next { inset-inline-end: -23px; }
@media (hover: hover) and (pointer: fine) {
  .tv__arrow:hover { background: var(--cobalt); color: var(--on-cobalt); }
}
.tv__arrow:active { transform: scale(.92); }
.tv__stand {
  position: absolute; bottom: 10px; left: 50%;
  width: 30%; height: 8px; margin-left: -15%;
  background: linear-gradient(#3A3E4B, #16181F);
  border-radius: 6px 6px 3px 3px;
}
.tv__stand::before {
  content: ""; position: absolute; bottom: 100%; left: 50%;
  width: 16%; height: 22px; margin-left: -8%;
  background: linear-gradient(90deg, #16181F, #2A2D38 50%, #16181F);
}
.tv__shadow {
  position: absolute; bottom: 2px; left: 12%; right: 12%; height: 16px; z-index: -1;
  background: radial-gradient(closest-side, rgba(10, 14, 40, .35), rgba(10, 14, 40, 0));
  filter: blur(3px);
}
.tv__bug {
  position: absolute; z-index: 2; top: 4.5cqi; inset-inline-end: 4.5cqi;
  display: inline-flex; align-items: center; gap: 1.2cqi;
  font: 700 2.5cqi/1 var(--f-display); color: rgba(255, 255, 255, .86);
  pointer-events: none;
}
.tv__bug b {
  display: grid; place-items: center; width: 4.6cqi; height: 3.6cqi; border-radius: .8cqi;
  font: 700 2.5cqi/1 var(--f-ruqaa); background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

/* frames cross-fade like a channel cut, softened with a short blur */
.frame {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transform: scale(1.03); filter: blur(6px);
  transition: opacity 520ms var(--ease-out), transform 760ms var(--ease-out), filter 520ms var(--ease-out), visibility 0s linear 520ms;
}
.frame.is-on {
  opacity: 1; visibility: visible; transform: none; filter: none;
  transition: opacity 520ms var(--ease-out), transform 760ms var(--ease-out), filter 520ms var(--ease-out), visibility 0s;
}
.frame--intro { background: var(--cobalt); color: var(--on-cobalt); }
.ident {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4cqi;
  padding-bottom: 8cqi; text-align: center;
  transition: opacity 300ms ease;
}
.ident__mark {
  position: relative; display: grid; place-items: center;
  width: 15cqi; height: 11cqi; margin-bottom: 2.4cqi; border-radius: 2cqi;
  background: var(--cobalt-deep);
  box-shadow: inset 0 0 0 .5cqi rgba(241, 242, 246, .22);
}
.ident__mark b { font: 700 7cqi/1 var(--f-ruqaa); transform: translateY(-.6cqi); }
.ident__mark::after {
  content: ""; position: absolute; top: calc(100% + .9cqi); left: 50%;
  width: 5.5cqi; height: 1cqi; margin-left: -2.75cqi; border-radius: .5cqi; background: var(--cobalt-deep);
}
.ident__name { font: 700 9.5cqi/1.3 var(--f-ruqaa); }
.ident__line { font: 500 2.9cqi/1.4 var(--f-display); color: var(--on-cobalt-2); }
/* on a small screen the ident moves up and drops its tagline so the play row keeps its own space */
@container (max-width: 520px) {
  .ident { justify-content: flex-start; padding: 6cqi 0 0; gap: 1cqi; }
  .ident__mark { width: 10cqi; height: 7.5cqi; margin-bottom: 2cqi; }
  .ident__mark b { font-size: 5cqi; }
  .ident__name { font-size: 8.5cqi; }
  .ident__line { display: none; }
  /* the step arrows reach about 24px into a small screen: keep every title clear of them */
  .frame--prog, .frame--live { padding-inline: 11cqi; }
}
.frame--prog, .frame--live {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 7cqi 7cqi 17cqi;
  color: #F6F7F9;
}
/* every title card is one flat field of its programme's colour */
.frame--prog { background: var(--c); }
.frame--live { background: var(--cobalt-deep); }
.frame--live .live-pill { font-size: 2.5cqi; margin-bottom: 1.2cqi; }
.frame__no { font: 800 3cqi/1 var(--f-display); opacity: .72; font-variant-numeric: tabular-nums; }
.frame__title { font: 700 11.5cqi/1.32 var(--f-ruqaa); margin-top: 1.2cqi; white-space: nowrap; }
.frame__hook { font: 400 3.6cqi/1.5 var(--f-text); opacity: .92; }
.lower-third {
  position: absolute; bottom: 5.5cqi; inset-inline-start: 0;
  display: flex; align-items: center; gap: 1.8cqi;
  padding: 1.5cqi 4cqi 1.5cqi 3.2cqi;
  background: var(--sheet); color: var(--ink-2);
  font: 500 2.5cqi/1.3 var(--f-display); white-space: nowrap;
  border-start-end-radius: 999px; border-end-end-radius: 999px;
  box-shadow: 0 1cqi 3cqi rgba(0, 0, 0, .25);
}
.frame--prog .lower-third b { color: var(--c); font-weight: 800; }
.frame--live .lower-third b { color: var(--live); font-weight: 800; }
.lower-third i { width: 1px; height: 1em; background: var(--rule); }

.play {
  position: absolute; z-index: 1; inset-inline-start: 5cqi; bottom: 5cqi;
  display: flex; align-items: center; gap: 1rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--on-cobalt); font: 600 1.05rem/1.4 var(--f-display);
  border-radius: 999px;
}
.play__disc {
  width: clamp(56px, 11cqi, 74px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--saffron); color: var(--ink); font-size: 1.55rem;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6);
  transition: transform 240ms var(--ease-out);
}
.play__disc i { margin-inline-start: -3px; }
@media (hover: hover) and (pointer: fine) { .play:hover .play__disc { transform: scale(1.06); } }
.play:active .play__disc { transform: scale(.95); }
.tv__state {
  position: absolute; z-index: 1; inset-inline-start: 5cqi; top: 5cqi; max-width: 30ch;
  color: var(--on-cobalt); font: 500 .95rem/1.6 var(--f-display);
}
.frame--intro.is-pending .ident { opacity: .3; }
.frame--intro.is-pending .tv__state:not(:empty) { background: rgba(8, 11, 34, .72); padding: .7rem 1rem; border-radius: 8px; }

/* --- now / next strip with the channel buttons --- */
.nownext {
  width: 100%; max-width: 636px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
}
.nownext__text {
  display: flex; align-items: center; gap: .5rem; min-width: 0;
  font: 500 .95rem/1.4 var(--f-display); color: var(--ink-2); white-space: nowrap;
}
.nownext__text b { color: var(--ink); font-weight: 700; }
.nownext__label {
  font-size: .75rem; font-weight: 600; color: var(--cobalt);
  padding: .12rem .55rem; border-radius: 999px; background: rgba(28, 43, 122, .09);
}
.nownext__sep { width: 1px; height: 1em; background: var(--rule); margin-inline: .2rem; }
.nownext__ctrl { display: flex; align-items: center; gap: .5rem; }
.chans { display: flex; gap: 2px; }
.chan {
  position: relative; flex: none;
  width: 20px; height: 40px;
  border: 0; padding: 0; background: none; cursor: pointer;
  border-radius: 6px;
}
.chan::before, .chan__fill {
  content: ""; position: absolute; inset-inline: 2px; top: 50%;
  height: 6px; margin-top: -3px; border-radius: 3px;
}
.chan::before { background: color-mix(in srgb, var(--c) 26%, var(--paper-2)); transition: transform 200ms var(--ease-out); }
.chan__fill { background: var(--c); transform: scaleX(0); transform-origin: right; }
.chan[aria-pressed="true"] .chan__fill { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .chan:hover::before { transform: scaleY(1.6); } }
@media (prefers-reduced-motion: no-preference) {
  .is-running .chan[aria-pressed="true"] .chan__fill { animation: chan-fill var(--dwell, 4200ms) linear both; }
  .is-held .chan[aria-pressed="true"] .chan__fill { animation-play-state: paused; }
}
@keyframes chan-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.reel-toggle {
  width: 40px; height: 40px; flex: none; border-radius: 999px;
  display: grid; place-items: center;
  border: 1.5px solid rgba(28, 43, 122, .3); background: transparent; color: var(--cobalt);
  font-size: 1.05rem; cursor: pointer;
  transition: border-color 160ms ease, transform 140ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .reel-toggle:hover { border-color: var(--cobalt); } }
.reel-toggle:active { transform: scale(.94); }

/* ---------- Guide: self-check keys + the programme guide ---------- */
.guide-sec { background: var(--cobalt); color: var(--on-cobalt); padding-block: var(--section); }
.guide-sec .lede { color: var(--on-cobalt-2); }
.guide-sec__head { max-width: 760px; }

.keys { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2.2rem; max-width: 1000px; }
.key {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 48px; padding: .55rem 1.15rem .55rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid rgba(241, 242, 246, .4);
  background: transparent; color: var(--on-cobalt);
  font: 500 1rem/1.4 var(--f-display);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 140ms var(--ease-out);
}
.key i { font-size: 1.05rem; width: 1.05rem; transform: scale(.4); opacity: 0; transition: transform 220ms var(--ease-out), opacity 160ms ease; }
.key[aria-pressed="true"] { background: var(--on-cobalt); border-color: var(--on-cobalt); color: var(--cobalt); }
.key[aria-pressed="true"] i { transform: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .key:hover { border-color: var(--on-cobalt); } }
.key:active { transform: scale(.97); }

.reading-list { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; min-height: 56px; margin-top: 1.25rem; }
.reading-list__text { font: 400 1rem/1.6 var(--f-display); color: var(--on-cobalt-2); }
.reading-list__text b { color: var(--on-cobalt); font-weight: 700; }

.guide {
  --label-w: 15.5rem; --flags-w: 8rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1rem, 2.4vw, 1.75rem);
  background: var(--cobalt-deep);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(241, 242, 246, .07), 0 40px 70px -40px rgba(4, 8, 30, .9);
}
.guide__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.1rem; }
.guide__title { font: 700 1.1rem/1.4 var(--f-display); }
.guide__legend { display: inline-flex; align-items: center; gap: .6rem; font: 400 .88rem/1.5 var(--f-display); color: var(--on-cobalt-2); }
.legend-bar { width: 44px; height: 10px; border-radius: 3px; background: #A8435F; }

.onair {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  min-height: 60px; padding: .7rem 1rem;
  border-radius: 10px;
  background: rgba(210, 52, 43, .12);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--live) 70%, transparent);
  color: var(--on-cobalt); text-decoration: none;
  transition: background-color 160ms ease;
}
.onair__name { font: 700 1.4rem/1.3 var(--f-ruqaa); }
.onair__meta { font: 400 .92rem/1.5 var(--f-display); color: var(--on-cobalt-2); flex: 1; min-width: 14rem; }
.onair > i { font-size: 1.3rem; color: var(--on-cobalt-2); }
@media (hover: hover) and (pointer: fine) { .onair:hover { background: rgba(210, 52, 43, .2); } }

.guide__axis {
  display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr) var(--flags-w); gap: 1.25rem;
  margin-top: 1.4rem; padding-inline: .5rem; padding-bottom: .4rem;
}
.guide__ruler { position: relative; height: 1.4rem; grid-column: 2; }
.guide__ruler span {
  position: absolute; top: 0; inset-inline-start: calc(var(--h) / 12 * 100%);
  transform: translateX(50%);
  font: 500 .75rem/1.4 var(--f-display); color: var(--on-cobalt-2); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.guide__ruler span:first-child { transform: none; }
.guide__ruler span:last-child { transform: translateX(100%); }
.guide__ruler small { font-size: .68rem; opacity: .8; }

.progs { border-bottom: 1px solid rgba(241, 242, 246, .1); }
.prog { border-top: 1px solid rgba(241, 242, 246, .1); }
.prog__h { font: inherit; margin: 0; }
.prog__row {
  width: 100%;
  display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr) var(--flags-w);
  align-items: center; gap: 1.25rem;
  min-height: 66px; padding: .65rem .5rem;
  border: 0; border-radius: 10px;
  background: transparent; color: inherit; text-align: start;
  cursor: pointer;
  transition: background-color 160ms ease, opacity 240ms ease;
}
@media (hover: hover) and (pointer: fine) { .prog__row:hover { background: rgba(241, 242, 246, .05); } }
.prog__row[aria-expanded="true"] { background: rgba(241, 242, 246, .06); }
.prog__label { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .7rem; align-items: baseline; }
.prog__no { font: 700 .78rem/1 var(--f-display); color: var(--on-cobalt-2); font-variant-numeric: tabular-nums; }
.prog__name { font: 700 1.38rem/1.35 var(--f-ruqaa); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog__meta { grid-column: 2; display: flex; align-items: center; gap: .55rem; font: 400 .8rem/1.5 var(--f-display); color: var(--on-cobalt-2); }
.prog__meta i { width: 1px; height: .9em; background: rgba(241, 242, 246, .22); }
/* the time track: one hairline every two hours, measured from the start edge */
.prog__track {
  position: relative; height: 30px;
  background-image: linear-gradient(to left, rgba(241, 242, 246, .1) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  background-position: 100% 0;
}
.prog__bar {
  position: absolute; inset-block: 3px; inset-inline-start: 0;
  width: calc(var(--t) * 100%); min-width: 14px;
  border-radius: 4px;
  background-color: var(--c);
  /* one tick per episode */
  background-image: linear-gradient(to left, rgba(255, 255, 255, .26) 1px, transparent 1px);
  background-size: calc(100% / var(--ep)) 100%;
  background-position: 100% 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  transform-origin: right;
  transition: transform 700ms var(--ease-out), box-shadow 200ms ease;
}
.prog__flags { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; }
.flag-new, .flag-pick { padding: .1rem .6rem; border-radius: 999px; font: 600 .75rem/1.5 var(--f-display); white-space: nowrap; }
.flag-new { box-shadow: inset 0 0 0 1px rgba(241, 242, 246, .45); color: var(--on-cobalt); }
.flag-pick { display: none; background: var(--saffron); color: var(--ink); }
.prog__caret { font-size: 1rem; color: var(--on-cobalt-2); transition: transform 260ms var(--ease-out); }
.prog__row[aria-expanded="true"] .prog__caret { transform: rotate(180deg); }

.progs.has-match .prog:not(.is-match) .prog__row { opacity: .42; }
.prog.is-match .flag-pick { display: inline-block; }
.prog.is-match .prog__bar { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 2px var(--saffron); }

/* bars run out to their length when the guide first comes into view */
@media (prefers-reduced-motion: no-preference) {
  .js .guide-sec:not(.is-drawn) .prog__bar { transform: scaleX(0); }
  .js .guide-sec.is-drawing .prog__bar { transition-delay: calc(var(--i, 0) * 55ms); }
}

.prog__detail {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start;
  padding: 1rem .5rem 1.75rem;
}
.prog__detail[hidden] { display: none; }
.thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--c);
  color: #F6F7F9;
  box-shadow: 0 20px 34px -22px rgba(0, 0, 0, .8);
}
.thumb__title { font: 700 2.1rem/1.3 var(--f-ruqaa); padding-inline: 1rem; text-align: center; }
.thumb__play {
  position: absolute; inset-inline-start: .8rem; bottom: .8rem;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--c); font-size: 1rem;
}
.thumb__dur {
  position: absolute; inset-inline-end: .8rem; bottom: .9rem;
  padding: .1rem .45rem; border-radius: 4px;
  background: rgba(8, 11, 34, .78); color: #fff;
  font: 600 .75rem/1.5 var(--f-display); font-variant-numeric: tabular-nums;
}
.thumb__bug { position: absolute; inset-inline-end: .8rem; top: .7rem; font: 700 .7rem/1 var(--f-display); opacity: .8; }
.prog__topic { font: 700 1.05rem/1.5 var(--f-display); }
.prog__desc { margin-top: .5rem; max-width: 58ch; color: var(--on-cobalt-2); }
.prog__outs { margin-top: 1rem; display: grid; gap: .5rem; }
.prog__outs li { display: flex; gap: .7rem; align-items: baseline; line-height: 1.6; }
.prog__outs i { flex: none; font-size: 1.05rem; color: color-mix(in srgb, var(--c) 35%, #ffffff); transform: translateY(.15em); }
.share-link {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-top: 1rem;
  font: 600 .95rem/1.4 var(--f-display); color: var(--on-cobalt);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
.share-link i { font-size: 1.3rem; }
@media (hover: hover) and (pointer: fine) { .share-link:hover { text-decoration-color: currentColor; } }
@media (prefers-reduced-motion: no-preference) {
  .prog__detail.is-entering .prog__body { animation: page-in 420ms var(--ease-out) both; }
  .prog__detail.is-entering .thumb { animation: thumb-in 520ms var(--ease-out) both; }
}
@keyframes page-in { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
@keyframes thumb-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.soon {
  display: flex; align-items: baseline; gap: .7rem;
  margin-top: 1rem; padding: .9rem 1rem;
  border: 1.5px dashed rgba(241, 242, 246, .32); border-radius: 10px;
  font: 400 .95rem/1.6 var(--f-display); color: var(--on-cobalt-2);
}
.soon b { color: var(--on-cobalt); font-weight: 700; }
.soon i { font-size: 1.15rem; transform: translateY(.15em); }

/* ---------- «على مهلك»: the monthly live programme ---------- */
.live { padding-block: var(--section); }
.live__in {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 7vw, 7rem); align-items: center;
}
.live__poster {
  position: relative;
  width: min(420px, 100%); justify-self: center;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 14px;
  background-color: var(--cobalt-deep);
  background-image:
    radial-gradient(80% 60% at 90% 0%, rgba(210, 52, 43, .3), transparent 60%),
    radial-gradient(100% 70% at 0% 100%, rgba(0, 0, 0, .35), transparent 60%);
  color: var(--on-cobalt);
  box-shadow: 0 44px 70px -40px rgba(18, 28, 83, .7);
  transform: rotate(-2deg);
}
.live__title { font: 700 clamp(3.2rem, 2.5rem + 2vw, 4.4rem)/1.3 var(--f-ruqaa); margin-top: 1.4rem; }
.live__sub { font: 400 1.15rem/1.5 var(--f-text); color: var(--on-cobalt-2); }
.months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; width: 100%; margin-top: 1.6rem; }
.months li {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .55rem .25rem .45rem; border-radius: 8px;
  background: rgba(241, 242, 246, .06);
}
.m-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 1.5px rgba(241, 242, 246, .55); }
.m-name { font: 500 .72rem/1.3 var(--f-display); color: var(--on-cobalt-2); }
.live__foot {
  display: flex; align-items: center; gap: .7rem; margin-top: 1.4rem;
  font: 600 .9rem/1.4 var(--f-display); color: var(--on-cobalt);
}
.live__foot i { width: 1px; height: 1em; background: rgba(241, 242, 246, .3); }
.spec {
  margin-top: 2rem; max-width: 520px;
  background: var(--sheet); border-radius: 12px;
  box-shadow: 0 1px 0 rgba(21, 23, 29, .06), 0 20px 40px -30px rgba(21, 23, 29, .45);
  padding: .4rem 1.4rem;
}
.spec > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-block: .6rem; border-bottom: 1px solid rgba(28, 43, 122, .12); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { font: 500 .9rem/1.9 var(--f-display); color: var(--ink-3); }
.spec dd { font-size: 1.18rem; line-height: 1.7; }
.pull { margin-top: 2rem; max-width: 46ch; }
.pull p { font-size: clamp(1.3rem, 1.15rem + .4vw, 1.5rem); line-height: 1.75; color: var(--ink); }
.pull footer { margin-top: .5rem; font: 600 .95rem/1.5 var(--f-display); color: var(--cobalt); }

/* ---------- Plan: what the subscription holds + the price ---------- */
.plan { background: var(--cobalt); color: var(--on-cobalt); padding-block: var(--section); }
.plan__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
  grid-template-areas: "contents price" "save price";
  gap: clamp(1.75rem, 4vw, 3rem) clamp(2rem, 5vw, 4.5rem);
}
.plan__contents { grid-area: contents; }
.contents { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contents li { display: flex; gap: .9rem; align-items: baseline; line-height: 1.65; color: var(--on-cobalt-2); }
.contents li b { color: var(--on-cobalt); font-weight: 600; }
.contents i { font-size: 1.4rem; color: var(--on-cobalt); flex: none; transform: translateY(.2em); }
.plan__price {
  grid-area: price; align-self: start;
  background: var(--sheet); color: var(--ink);
  border-radius: 12px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: 0 30px 50px -30px rgba(4, 8, 30, .9);
  --focus: var(--cobalt);
}
.price__plan { font: 700 1.05rem/1.4 var(--f-display); color: var(--cobalt); }
.price__old { font: 400 .95rem/1.6 var(--f-display); color: var(--ink-3); margin-top: .9rem; }
.price__old s { font-weight: 600; color: var(--ink-2); text-decoration-thickness: 2px; text-decoration-color: var(--ink-3); margin-inline-end: .35rem; }
.price__now { margin-top: .1rem; display: flex; align-items: baseline; gap: .5rem; }
.price__num { font: 800 clamp(3.2rem, 2.4rem + 2.6vw, 4.6rem)/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.price__cur { font: 700 1.4rem/1 var(--f-display); color: var(--ink-2); }
.price__save { font: 600 1rem/1.5 var(--f-display); color: var(--cobalt); margin-block: .35rem 1.6rem; }
.price__renew { display: flex; gap: .5rem; align-items: baseline; font: 400 .9rem/1.6 var(--f-display); color: var(--ink-3); margin-top: 1.2rem; }
.price__renew i { transform: translateY(.15em); }
.plan__save { grid-area: save; border-top: 1px solid rgba(241, 242, 246, .22); padding-top: 1.6rem; }
.plan__save ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.plan__save li { font-size: 1.12rem; line-height: 1.65; color: var(--on-cobalt-2); }
.plan__save b { display: block; font: 700 1rem/1.6 var(--f-display); color: var(--on-cobalt); }

/* ---------- Host ---------- */
.host { padding-block: var(--section); }
.host__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.host__text { order: 1; }
.host-card {
  order: 2; position: sticky; top: 96px;
  background: var(--sheet); border-radius: 14px;
  padding: 1rem 1rem 1.6rem;
  box-shadow: 0 1px 0 rgba(21, 23, 29, .06), 0 30px 50px -36px rgba(21, 23, 29, .55);
}
/* waiting for the client's own portrait */
.photo-slot {
  aspect-ratio: 4 / 5; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem;
  padding: 1.25rem; text-align: center;
  background: #E7EAF1;
  border: 2px dashed rgba(28, 43, 122, .32);
}
.photo-slot i { font-size: 2.6rem; color: var(--cobalt); }
.photo-slot__title { font: 700 1.08rem/1.5 var(--f-display); color: var(--ink); }
.photo-slot__hint { font: 400 .85rem/1.5 var(--f-display); color: var(--ink-3); max-width: 22ch; }
.host-card__name { font: 700 2rem/1.35 var(--f-ruqaa); color: var(--cobalt); margin-top: 1rem; padding-inline: .4rem; }
.host-card__role { font: 600 .95rem/1.5 var(--f-display); color: var(--ink); padding-inline: .4rem; }
.host-card__bio { font-size: 1.1rem; line-height: 1.7; color: var(--ink-2); margin-top: .6rem; padding-inline: .4rem; }
.note { margin-top: 2rem; max-width: 52ch; }
.note p { font-size: clamp(1.25rem, 1.12rem + .35vw, 1.45rem); line-height: 1.8; color: var(--ink); }
.signature {
  display: inline-block; margin-top: .5rem;
  font: 700 clamp(2.2rem, 1.9rem + 1vw, 2.9rem)/1.3 var(--f-ruqaa); color: var(--cobalt);
  transform: rotate(-5deg); transform-origin: right center;
}
.demo-note {
  display: flex; align-items: baseline; gap: .55rem;
  width: fit-content; max-width: 100%; margin-top: 1.75rem; padding: .65rem 1rem;
  border: 1.5px dashed rgba(28, 43, 122, .3); border-radius: 10px;
  font: 500 .88rem/1.6 var(--f-display); color: var(--ink-3);
}
.demo-note i { color: var(--cobalt); font-size: 1.05rem; transform: translateY(.15em); }
.insert .demo-note { margin-top: 1rem; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.25rem; }
.ticks li, .dashes li { display: flex; gap: .7rem; align-items: baseline; line-height: 1.6; }
.ticks li + li, .dashes li + li { margin-top: .6rem; }
.ticks i { color: var(--cobalt); flex: none; transform: translateY(.15em); }
.dashes i { color: var(--ink-3); flex: none; transform: translateY(.15em); }

/* ---------- Photo insert ---------- */
.insert { padding-block: 0 var(--section); }
.collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, clamp(170px, 18vw, 250px));
  gap: clamp(10px, 1.4vw, 18px);
  margin-top: 2.5rem;
}
.collage figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .45rem; min-height: 0; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; min-height: 0; }
.collage figcaption { font: 500 .85rem/1.4 var(--f-display); color: var(--ink-3); }
.ph-a { grid-column: 1 / 8; grid-row: 1 / 3; }
.ph-b { grid-column: 8 / 13; grid-row: 1 / 2; }
.ph-c { grid-column: 8 / 13; grid-row: 2 / 3; }
.ph-d { grid-column: 1 / 5; grid-row: 3 / 4; }
.ph-e { grid-column: 5 / 13; grid-row: 3 / 4; }
.ph-d img { object-position: 50% 30%; }

/* ---------- Fit ---------- */
.fit { padding-block: 0 var(--section); }
.fit__cols { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.25rem; border-top: 2px solid var(--ink); }
.fit__col { padding-top: 1.75rem; padding-inline-end: clamp(1.5rem, 4vw, 3.5rem); }
.fit__col--not { padding-inline: clamp(1.5rem, 4vw, 3.5rem) 0; border-inline-start: 1px solid var(--rule); }
.fit__col--not li { color: var(--ink-2); }

/* ---------- Guarantee stamp ---------- */
.guarantee { padding-block: 0 var(--section); }
.guarantee__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.stamp { color: var(--cobalt); width: clamp(150px, 18vw, 210px); transform: rotate(-12deg); opacity: .9; }
.stamp svg { width: 100%; height: auto; font-family: var(--f-display); font-weight: 600; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .stamp { transition: transform 380ms var(--ease-out), opacity 200ms ease; }
  .js .stamp:not(.is-stamped) { transform: rotate(-4deg) scale(1.3); opacity: 0; }
}
.trust { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.4rem; font: 500 .95rem/1.5 var(--f-display); color: var(--ink-2); }
.trust span { display: inline-flex; align-items: center; gap: .45rem; }
.trust i { color: var(--cobalt); font-size: 1.15rem; }

/* ---------- FAQ ---------- */
.faq { padding-block: 0 var(--section); }
.faq__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__head { position: sticky; top: 100px; }
.faq__head .lede { margin-bottom: .6rem; }
.qa { border-bottom: 1px solid var(--rule); }
.qa:first-child { border-top: 2px solid var(--ink); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding-block: 1.15rem; min-height: 44px;
  font: 600 1.08rem/1.6 var(--f-display);
  border-radius: 4px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; color: var(--cobalt); font-size: 1.2rem; margin-top: .25rem; transition: transform 260ms var(--ease-out); }
.qa[open] summary i { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .qa summary:hover span { color: var(--cobalt); } }
.qa__a p { padding-bottom: 1.3rem; color: var(--ink-2); max-width: 60ch; }
/* the answer opens instantly and fades in: no height animation, so no layout work per frame */
@media (prefers-reduced-motion: no-preference) {
  .qa[open] .qa__a { animation: qa-in 280ms var(--ease-out); }
}
@keyframes qa-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Close ---------- */
.close { position: relative; background: var(--cobalt); color: var(--on-cobalt); padding-block: var(--section) clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.close__in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; }
.close__title { font: 700 clamp(2.6rem, 1.6rem + 3.6vw, 4.8rem)/1.35 var(--f-ruqaa); }
.close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
/* the guide again, in miniature: ten bars, one per course */
.close__guide {
  display: grid; gap: 5px;
  max-width: var(--wrap); margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding-inline: var(--gutter);
}
.close__guide span { display: block; height: 10px; width: calc(var(--t) * 100% * .55); min-width: 12px; border-radius: 3px; background: var(--c); }

/* ---------- Footer ---------- */
.footer { background: var(--cobalt-deep); color: var(--on-cobalt-2); padding-block: 2.5rem 1.5rem; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; }
.footer__brand { display: flex; align-items: center; gap: .8rem; }
.footer .brand__mark { background: var(--cobalt-2); }
.footer .brand__mark::after { background: var(--cobalt-2); }
.footer__name { font: 700 1.05rem/1.4 var(--f-display); color: var(--on-cobalt); }
.footer__tag { font-size: 1.05rem; line-height: 1.5; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.footer__nav a, .footer__wa { font: 500 .95rem/1.4 var(--f-display); color: var(--on-cobalt-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer__wa { gap: .5rem; color: var(--on-cobalt); }
.footer__wa i { font-size: 1.3rem; }
@media (hover: hover) and (pointer: fine) { .footer__nav a:hover, .footer__wa:hover { color: var(--on-cobalt); text-decoration: underline; text-underline-offset: 6px; } }
.footer__legal {
  max-width: var(--wrap); margin: 1.5rem auto 0; padding: 1.25rem var(--gutter) 0;
  border-top: 1px solid rgba(241, 242, 246, .14);
  font: 400 .88rem/1.6 var(--f-display); color: var(--on-cobalt-2);
}
.footer__legal a { color: var(--on-cobalt); text-underline-offset: 4px; }

/* ---------- Pinned lower third ---------- */
.footband {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  background: var(--sheet);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -14px 30px -22px rgba(21, 23, 29, .45);
  padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom));
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 420ms var(--ease-drawer), visibility 0s linear 420ms;
}
.footband.is-on { transform: none; visibility: visible; transition: transform 420ms var(--ease-drawer), visibility 0s; }
.footband__in { max-width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 1rem; }
.footband__bug {
  width: 30px; height: 22px; flex: none; border-radius: 5px;
  display: grid; place-items: center;
  background: var(--cobalt); color: var(--on-cobalt);
  font: 700 .9rem/1 var(--f-ruqaa);
}
.footband__bug b { transform: translateY(-1px); }
.footband__text { flex: 1; min-width: 0; display: flex; align-items: center; gap: .55rem; font: 500 .98rem/1.4 var(--f-display); white-space: nowrap; overflow: hidden; color: var(--ink-2); }
.footband__text b { color: var(--ink); font-weight: 700; }
.footband__rest { overflow: hidden; text-overflow: ellipsis; }
.footband__label { font-size: .72rem; font-weight: 600; color: var(--cobalt); padding: .1rem .5rem; border-radius: 999px; background: rgba(28, 43, 122, .09); flex: none; }
.footband__price { font: 500 .9rem/1.2 var(--f-display); color: var(--ink-2); white-space: nowrap; }
.footband__price b { font-size: 1.2rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.footband__q {
  width: 44px; height: 44px; flex: none; border-radius: 999px;
  display: grid; place-items: center;
  border: 1.5px solid rgba(28, 43, 122, .35); color: var(--cobalt); font-size: 1.35rem; text-decoration: none;
  transition: border-color 160ms ease, transform 140ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .footband__q:hover { border-color: var(--cobalt); } }
.footband__q:active { transform: scale(.95); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { gap: 1.1rem; }
  .guide { --label-w: 13rem; --flags-w: 7rem; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .masthead .cta { margin-inline-start: auto; }
}
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; min-height: 0; gap: 2rem; padding-top: 1.75rem; }
  .hero__sub { max-width: 36ch; }
  .tv { padding-inline: 10px; }
  .tv__arrow { width: 40px; height: 40px; margin-top: -20px; font-size: 1rem; }
  .tv__arrow--prev { inset-inline-start: -16px; }
  .tv__arrow--next { inset-inline-end: -16px; }

  .live__in { grid-template-columns: 1fr; gap: 2.5rem; }
  .live__poster { width: min(360px, 100%); }

  .plan__panel { grid-template-columns: 1fr; grid-template-areas: "contents" "price" "save"; }
  .plan__save ul { grid-template-columns: 1fr; gap: 1rem; }

  .host__in { grid-template-columns: 1fr; }
  .host-card { order: 0; position: static; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0 1.1rem; align-items: start; max-width: 560px; }
  .photo-slot { grid-row: span 3; padding: .75rem; gap: .35rem; }
  .photo-slot i { font-size: 1.8rem; }
  .photo-slot__title { font-size: .85rem; }
  .photo-slot__hint { display: none; }
  .host-card__name { margin-top: 0; font-size: 1.7rem; padding-inline: 0; }
  .host-card__role, .host-card__bio { padding-inline: 0; }
  .host-card__bio { font-size: 1.02rem; }
  .creds { grid-template-columns: 1fr; gap: 1.5rem; }

  .faq__in { grid-template-columns: 1fr; gap: 1.75rem; }
  .faq__head { position: static; }

  .fit__cols { grid-template-columns: 1fr; }
  .fit__col { padding-inline: 0; }
  .fit__col--not { padding-inline: 0; border-inline-start: 0; border-top: 1px solid var(--rule); margin-top: 2rem; }

  .guarantee__in { grid-template-columns: 1fr; gap: 1.5rem; }
  .stamp { width: 150px; }
}
@media (max-width: 760px) {
  .guide { padding: .9rem .75rem; margin-inline: calc(var(--gutter) * -.5); }
  .guide__axis { grid-template-columns: minmax(0, 1fr); padding-inline: .5rem; }
  .guide__axis-pad { display: none; }
  .guide__ruler { grid-column: 1; }
  .guide__ruler span:nth-child(even) { display: none; }
  .prog__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "label flags" "track track";
    gap: .55rem .75rem; padding-block: .8rem;
  }
  .prog__label { grid-area: label; }
  .prog__flags { grid-area: flags; }
  .prog__track { grid-area: track; height: 22px; }
  .prog__name { font-size: 1.28rem; }
  .prog__detail { grid-template-columns: 1fr; padding-top: .5rem; }
  .thumb__title { font-size: 1.8rem; }
  .keys { gap: .5rem; }
  .key { font-size: .95rem; padding-inline: 1rem 1.1rem; }
  .onair__meta { min-width: 0; flex-basis: 100%; }

  .nownext { justify-content: center; }
  .nownext__text { width: 100%; justify-content: center; }

  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; }
  .collage figure { grid-template-rows: auto auto; }
  .collage img { aspect-ratio: 4 / 3; height: auto; }
  .ph-a, .ph-d, .ph-e { grid-column: 1 / -1; grid-row: auto; }
  .ph-a img, .ph-d img, .ph-e img { aspect-ratio: 16 / 10; }
  .ph-b, .ph-c { grid-column: auto; grid-row: auto; }

  .close__guide span { width: calc(var(--t) * 100%); }
  .footband__text { display: none; }
  .footband__in { justify-content: space-between; }
  .footband__price { margin-inline-end: auto; }
}
@media (max-width: 400px) {
  .brand__name { font-size: 1rem; }
  .masthead__in { gap: .75rem; }
  .cta--lg { padding-inline: 1.7rem; }
  .hero__actions { gap: .75rem 1.25rem; }
  .chan { width: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
