/* =========================================================
   המבזק · premium magazine portal
   ========================================================= */
:root {
  --bg: #07070b;
  --bg2: #0c0c12;
  --surface: #12121a;
  --surface-2: #181822;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f2f8;
  --muted: #9494a8;
  --faint: #5e5e72;
  --red: #ef233c;
  --red-hot: #ff4d63;
  --red-soft: rgba(239, 35, 60, 0.16);
  --amber: #ffc857;
  --amber-soft: rgba(255, 200, 87, 0.14);
  --mint: #3dd6c6;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.28);
  --font: "Noto Sans Hebrew", "Segoe UI", Arial, sans-serif;
  --serif: "Noto Serif Hebrew", "Noto Sans Hebrew", Georgia, serif;
  --max: 1480px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --topbar-bg: rgba(7, 7, 11, 0.78);
  --ticker-bg: #0a0a10;
  --footer-bg: #050508;
  --panel-dark: linear-gradient(165deg, #171722 0%, #0d0d14 100%);
  /* article page compat */
  --primary: var(--red);
  --primary-dark: #b01028;
  --title: var(--text);
  --text-primary: var(--text);
  --muted-foreground: var(--muted);
  --border: var(--line);
  --paper: var(--bg);
  --page: var(--bg);
  --ink: var(--text);
  --yellow: var(--amber);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f2efe6;
  --bg2: #ebe6da;
  --surface: #ffffff;
  --surface-2: #f7f4ec;
  --line: rgba(20, 20, 30, 0.1);
  --line-2: rgba(20, 20, 30, 0.16);
  --text: #14141c;
  --muted: #5c5e6c;
  --faint: #8a8c9a;
  --red: #d41f1f;
  --red-hot: #ef233c;
  --red-soft: rgba(212, 31, 31, 0.1);
  --amber: #b8860b;
  --amber-soft: rgba(184, 134, 11, 0.12);
  --shadow: 0 18px 48px rgba(20, 20, 30, 0.1);
  --shadow-sm: 0 8px 22px rgba(20, 20, 30, 0.08);
  --topbar-bg: rgba(242, 239, 230, 0.88);
  --ticker-bg: #16161e;
  --footer-bg: #121218;
  --panel-dark: linear-gradient(165deg, #1c1c26 0%, #12121a 100%);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(239, 35, 60, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .35s, color .25s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

/* Ambient FX */
.fx-noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fx-orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(90px); opacity: .2;
}
.fx-orb-a { width: 48vw; height: 48vw; background: #7a1020; top: -18%; inset-inline-end: -12%; }
.fx-orb-b { width: 40vw; height: 40vw; background: #1a2550; bottom: 5%; inset-inline-start: -15%; opacity: .16; }
.fx-orb-c { width: 28vw; height: 28vw; background: #3a2060; top: 45%; inset-inline-end: 10%; opacity: .1; }
html[data-theme="light"] .fx-orb-a { background: #ffb4b4; opacity: .35; }
html[data-theme="light"] .fx-orb-b { background: #b8d0ff; opacity: .4; }
html[data-theme="light"] .fx-orb-c { background: #e0c4ff; opacity: .28; }

/* ── Topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px) saturate(1.25);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.topbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.topbar-row, .topbar-nav {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.topbar-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 0.9rem 0 0.7rem;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(145deg, var(--red-hot), #8b0000);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 12px 28px rgba(239,35,60,.35);
}
.brand-mark i {
  width: 11px; height: 11px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70% { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong {
  font-size: 1.5rem; font-weight: 900; letter-spacing: -.03em;
  font-family: var(--serif);
}
.brand-copy em { font-style: normal; font-size: .72rem; color: var(--muted); font-weight: 600; }

.topbar-center { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.live-strip {
  display: inline-flex; align-items: center; gap: .45rem;
  flex-shrink: 0; white-space: nowrap;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  animation: blink 1.2s infinite;
}
@keyframes blink { 50% { opacity: .3; } }
.live-txt {
  font-size: .68rem; font-weight: 900; letter-spacing: .1em;
  background: var(--red); color: #fff; padding: .22rem .45rem; border-radius: 5px;
}
.live-clock { font-size: .82rem; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

.search {
  flex: 1; display: flex; align-items: center; gap: .55rem;
  min-height: 44px; padding: 0 1rem; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within {
  border-color: rgba(239,35,60,.45);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.search svg { color: var(--muted); flex-shrink: 0; }
.search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  color: var(--text); font: inherit; font-size: .92rem; font-weight: 500; min-width: 0; direction: rtl;
}
.search input::placeholder { color: var(--faint); }

.topbar-actions { display: flex; align-items: center; gap: .5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.05rem; border-radius: 999px; font-weight: 700; font-size: .86rem;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid {
  background: var(--red); color: #fff;
  box-shadow: 0 10px 26px rgba(239,35,60,.3);
}
.btn-solid:hover { background: var(--red-hot); }
.btn-ghost { border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.04); }
.btn-block {
  width: 100%; background: linear-gradient(135deg, var(--red-hot), #b01028);
  color: #fff; padding: .95rem 1rem; border-radius: 14px; font-weight: 800;
  box-shadow: 0 12px 30px rgba(239,35,60,.28);
}
.btn-block:hover { filter: brightness(1.08); transform: translateY(-2px); }

.theme-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 42px; padding: .45rem .85rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-weight: 800; font-size: .84rem;
  transition: .2s var(--ease);
}
.theme-toggle:hover {
  border-color: rgba(239,35,60,.4);
  box-shadow: 0 6px 18px var(--red-soft);
  transform: translateY(-1px);
}
html:not([data-theme="light"]) .theme-icon-moon { display: none; }
html[data-theme="light"] .theme-icon-sun { display: none; }

.topbar-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0 0 .85rem;
}
.cat-scroll {
  display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto; padding: .5rem .95rem; border-radius: 999px;
  font-size: .88rem; font-weight: 700; color: var(--muted);
  border: 1px solid transparent; transition: .2s var(--ease);
}
.cat:hover { color: var(--text); background: rgba(255,255,255,.04); }
.cat.active {
  color: #fff; background: var(--red);
  box-shadow: 0 8px 20px rgba(239,35,60,.32);
}
.route-pills { display: flex; gap: .35rem; flex-shrink: 0; }
.route-pills a {
  font-size: .78rem; font-weight: 700; color: var(--muted);
  padding: .4rem .7rem; border-radius: 999px; border: 1px solid var(--line);
  transition: .2s;
}
.route-pills a:hover { color: var(--text); border-color: var(--line-2); }
.route-pills a.here {
  color: var(--amber); border-color: rgba(255,200,87,.35); background: var(--amber-soft);
}

/* Ticker */
.ticker {
  position: relative; z-index: 5;
  display: flex; align-items: stretch; min-height: 46px;
  background: var(--ticker-bg); border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ticker-label {
  display: flex; align-items: center; gap: .5rem; flex-shrink: 0; z-index: 2;
  background: linear-gradient(135deg, var(--red-hot), #9a0d20);
  color: #fff; font-weight: 900; font-size: .82rem; letter-spacing: .04em;
  padding: 0 1.15rem;
  box-shadow: 10px 0 24px rgba(0,0,0,.35);
}
.ticker-label span {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: blink 1s infinite;
}
.ticker-mask {
  flex: 1; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker-track {
  display: flex; width: max-content; animation: marquee 48s linear infinite; padding: .85rem 0;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
.ticker-item {
  display: inline-flex; align-items: center; gap: .9rem;
  padding: 0 1.5rem; font-size: .92rem; font-weight: 700;
  color: rgba(255,255,255,.9); white-space: nowrap;
}
.ticker-item::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--red); opacity: .75;
}

/* Layout shell */
.shell {
  position: relative; z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 1.5rem auto 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.6rem;
  align-items: start;
}

/* Section heads */
.sec-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.15rem;
  padding-bottom: .9rem; border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: .3rem;
}
.sec-head h2, .catalog h2, .picks h2 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 900; letter-spacing: -.03em;
}
.sec-note { color: var(--muted); font-size: .88rem; font-weight: 600; }

/* ── Media stack (layered images) ── */
.media-stack {
  position: absolute; inset: 0; overflow: hidden;
}
.media-texture {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(1.05) contrast(1.05);
  transform: scale(1.05);
  opacity: .55;
}
.media-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .7s var(--ease);
  mix-blend-mode: normal;
}
.media-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.12) 0%, transparent 35%, rgba(0,0,0,.88) 100%),
    linear-gradient(90deg, rgba(0,0,0,.35) 0%, transparent 50%);
  z-index: 1;
}
.media-shine {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.12), transparent 40%);
  opacity: .6;
}
.media-formula {
  position: absolute; z-index: 1;
  font-weight: 900; font-size: clamp(3rem, 8vw, 6rem);
  color: #fff; opacity: .1; letter-spacing: -.05em;
  top: 10%; inset-inline-end: 6%; line-height: 1;
  pointer-events: none; user-select: none;
  text-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.cover-card:hover .media-cover,
.article-card:hover .media-cover,
.pick-card:hover .media-cover {
  transform: scale(1.07);
}

/* ── Cover / hero ── */
.cover {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1rem;
  margin-bottom: 2.25rem;
  min-height: 560px;
}
.cover-lead { min-height: 560px; }
.cover-rail { display: grid; gap: 1rem; grid-template-rows: 1fr auto; min-height: 0; }
.cover-stack { display: grid; gap: 1rem; }
.cover-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.cover-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
  min-height: 180px;
  box-shadow: var(--shadow-sm);
}
.cover-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(255,255,255,.16);
}
.cover-card.lead { height: 100%; min-height: 560px; }
.cover-card.feature { min-height: 195px; }
.cover-card.mini { min-height: 140px; }

.cover-content {
  position: relative; z-index: 2;
  padding: 1.25rem 1.35rem 1.4rem;
  color: #fff;
}
.cover-card.lead .cover-content {
  padding: 1.75rem 1.85rem 1.9rem;
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%;
}
.cover-top { display: flex; flex-wrap: wrap; gap: .45rem; }
.cover-bottom { margin-top: auto; max-width: 36rem; }
.cover-kicker {
  color: var(--amber); font-weight: 800; font-size: .95rem;
  margin-bottom: .55rem; letter-spacing: .01em;
}
.cover-card.lead h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.65rem);
  font-weight: 900; letter-spacing: -.035em; line-height: 1.18;
  text-wrap: balance; margin-bottom: .75rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.cover-teaser {
  color: rgba(255,255,255,.78); font-size: 1.02rem; line-height: 1.65;
  margin-bottom: 1rem; max-width: 38ch;
}
.cover-meta {
  display: flex; flex-wrap: wrap; gap: .55rem 1.1rem;
  font-size: .86rem; font-weight: 600; color: rgba(255,255,255,.7);
}
.cover-meta .byline { color: #fff; }
.cover-meta .read-cta {
  color: var(--amber); font-weight: 800;
  transition: transform .2s;
}
.cover-card:hover .read-cta { transform: translateX(-4px); }

.cover-card.feature h2 {
  font-family: var(--serif);
  font-size: 1.12rem; font-weight: 900; line-height: 1.3;
  margin: .55rem 0 .35rem; letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mini-teaser {
  font-size: .82rem; color: rgba(255,255,255,.72); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cover-card.mini h3 {
  font-size: .92rem; font-weight: 800; line-height: 1.35; margin-top: .4rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.giant-ch {
  position: absolute; z-index: 1;
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(7rem, 16vw, 12rem);
  line-height: .85; letter-spacing: -.06em;
  color: rgba(255,255,255,.06);
  bottom: -0.08em; inset-inline-start: .15em;
  pointer-events: none; user-select: none;
}

.pill {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 800; letter-spacing: .03em;
  padding: .32rem .7rem; border-radius: 999px; width: fit-content;
}
.pill.live {
  background: var(--red); color: #fff;
  box-shadow: 0 0 0 0 rgba(239,35,60,.45);
  animation: badge-pulse 2s infinite;
}
@keyframes badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239,35,60,.45); }
  70% { box-shadow: 0 0 0 12px transparent; }
}
.pill.soft {
  background: rgba(0,0,0,.4); color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}
.pill.amber { background: var(--amber); color: #1a1200; }

/* ── Picks ── */
.picks { margin-bottom: 2.4rem; }
.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.pick-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .25s;
  box-shadow: var(--shadow-sm);
}
.pick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.pick-media {
  position: relative; height: 200px; overflow: hidden;
}
.pick-num {
  position: absolute; z-index: 2;
  bottom: .6rem; inset-inline-end: .85rem;
  font-family: var(--serif); font-size: 2.4rem; font-weight: 900;
  color: rgba(255,255,255,.85); letter-spacing: -.04em;
  line-height: 1; text-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.pick-body { padding: 1.15rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.pick-tag {
  font-size: .72rem; font-weight: 800; color: var(--red); letter-spacing: .04em;
}
.pick-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.3;
}
.pick-body p {
  color: var(--muted); font-size: .9rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.pick-meta {
  display: flex; justify-content: space-between; gap: .5rem;
  font-size: .78rem; color: var(--faint); font-weight: 600; margin-top: .35rem;
  padding-top: .65rem; border-top: 1px solid var(--line);
}

/* ── Articles grid ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .25s;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.article-card.is-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.article-card.is-featured .card-media { height: 100%; min-height: 280px; }
.article-card.is-featured .card-body { justify-content: center; padding: 1.6rem 1.5rem; }
.article-card.is-featured h3 {
  font-size: 1.45rem; -webkit-line-clamp: 3;
}

.card-media {
  position: relative; height: 180px; overflow: hidden;
}
.topic-badge, .done-badge, .ch-badge {
  position: absolute; z-index: 2;
  font-size: .7rem; font-weight: 800;
  padding: .3rem .65rem; border-radius: 999px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14);
}
.topic-badge {
  top: 12px; inset-inline-start: 12px;
  background: rgba(0,0,0,.5); color: #fff;
}
.done-badge {
  top: 12px; inset-inline-end: 12px;
  background: rgba(61,214,198,.2); color: var(--mint);
  border-color: rgba(61,214,198,.4);
}
.ch-badge {
  bottom: 12px; inset-inline-start: 12px;
  background: rgba(0,0,0,.45); color: rgba(255,255,255,.92);
}
.card-body {
  padding: 1.1rem 1.15rem 1.2rem;
  display: flex; flex-direction: column; gap: .4rem; flex: 1;
}
.card-kicker {
  font-size: .78rem; font-weight: 800; color: var(--red);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.card-body h3 {
  font-family: var(--serif);
  font-size: 1.08rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-teaser {
  color: var(--muted); font-size: .88rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  margin-top: .5rem; font-size: .78rem; color: var(--faint); font-weight: 600;
}
.read-hint {
  color: var(--red); font-weight: 800;
  opacity: 0; transform: translateX(6px); transition: .25s var(--ease);
}
.article-card:hover .read-hint { opacity: 1; transform: none; }

.no-results {
  text-align: center; padding: 3rem 1.5rem; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line-2);
  border-radius: var(--radius); font-weight: 600;
}

/* ── Rail ── */
.rail {
  display: flex; flex-direction: column; gap: 1rem;
  position: sticky; top: 130px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: 1rem;
}
.panel-head h2 { font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
.chip {
  font-size: .68rem; font-weight: 800; padding: .22rem .5rem;
  border-radius: 999px; background: rgba(255,255,255,.05);
  color: var(--muted); border: 1px solid var(--line);
}
.chip.hot {
  background: var(--red-soft); color: var(--red-hot);
  border-color: rgba(239,35,60,.3);
}

.ring-box {
  position: relative; width: 148px; height: 148px; margin: .2rem auto 1rem;
}
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 10; }
.ring-fg {
  fill: none; stroke: var(--red); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset .8s var(--ease);
  filter: drop-shadow(0 0 10px rgba(239,35,60,.45));
}
.ring-txt {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.ring-txt strong {
  font-size: 1.9rem; font-weight: 900; letter-spacing: -.04em; line-height: 1;
}
.ring-txt span { font-size: .75rem; color: var(--muted); font-weight: 600; margin-top: .15rem; }
.progress-copy {
  text-align: center; color: var(--muted); font-size: .88rem;
  font-weight: 600; margin-bottom: 1rem;
}

.rank-list { list-style: none; counter-reset: rank; }
.rank-list li {
  counter-increment: rank;
  border-bottom: 1px solid var(--line);
  padding: .7rem 0;
}
.rank-list li:first-child { padding-top: 0; }
.rank-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rank-list a {
  display: grid;
  grid-template-columns: 1.6rem 52px 1fr;
  gap: .7rem; align-items: center;
}
.rank-list a::before {
  content: counter(rank, decimal-leading-zero);
  font-size: 1rem; font-weight: 900; color: var(--red); letter-spacing: -.03em;
}
.rank-thumb {
  width: 52px; height: 52px; border-radius: 12px;
  object-fit: cover; border: 1px solid var(--line); background: var(--surface-2);
}
.rank-copy { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.rank-copy strong {
  font-size: .88rem; font-weight: 800; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.rank-copy em {
  font-style: normal; font-size: .75rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.rank-copy small { font-size: .7rem; color: var(--faint); font-weight: 600; }
.rank-list a:hover strong { color: var(--red-hot); }

.panel-dark {
  background: var(--panel-dark);
  border-color: var(--line-2);
  color: #f4f4f7;
}
.panel-dark .panel-head h2, .panel-dark strong { color: #f4f4f7; }
.panel-dark em { color: #9a9aab; }
.route-list { list-style: none; }
.route-list li + li { margin-top: .4rem; }
.route-list a {
  display: flex; align-items: center; gap: .85rem;
  padding: .8rem .75rem; border-radius: 14px;
  border: 1px solid transparent; transition: .2s var(--ease);
}
.route-list a:hover {
  background: rgba(255,255,255,.04); border-color: var(--line);
}
.route-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06); font-size: 1.15rem; flex-shrink: 0;
}
.route-list strong { display: block; font-size: .9rem; font-weight: 800; }
.route-list em { font-style: normal; font-size: .75rem; font-weight: 500; }

.panel-quote {
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(239,35,60,.18), transparent 55%),
    var(--surface);
}
.panel-quote blockquote {
  font-family: var(--serif);
  font-size: 1.05rem; font-weight: 700; line-height: 1.55;
  letter-spacing: -.01em; margin-top: .4rem;
}

/* Footer */
.site-footer {
  position: relative; z-index: 1;
  background: var(--footer-bg); color: #c8c8d4;
  border-top: 1px solid var(--line); padding: 2.5rem 0 1.4rem; margin-top: 1rem;
}
.footer-inner {
  width: min(100% - 2rem, var(--max)); margin-inline: auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
  margin-bottom: 1.75rem;
}
.footer-brand-block strong {
  display: block; font-family: var(--serif); font-size: 1.4rem;
  font-weight: 900; color: #fff; margin-bottom: .35rem;
}
.footer-brand-block p { color: #8f8f9e; font-size: .9rem; max-width: 28ch; }
.footer-cols { display: flex; gap: 3rem; }
.footer-cols h4 {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #6e6e7c; margin-bottom: .7rem;
}
.footer-cols a {
  display: block; color: #b0b0be; font-size: .9rem; font-weight: 600;
  padding: .22rem 0; transition: color .2s;
}
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  width: min(100% - 2rem, var(--max)); margin-inline: auto;
  padding-top: 1.15rem; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .82rem; color: #6e6e7c;
}

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* Article page bits */
.main-header {
  background: var(--topbar-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem; position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.main-header .logo {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 900;
  letter-spacing: -.03em; color: var(--text);
}
.route-switcher {
  display: flex; flex-wrap: wrap; gap: .4rem;
  width: min(100% - 2rem, 780px); margin: 1rem auto 0;
}
.route-switcher a {
  font-size: .82rem; font-weight: 700; color: var(--muted);
  padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--line);
}
.route-switcher a.active {
  color: #fff; background: var(--red); border-color: var(--red);
}

/* Responsive */
@media (max-width: 1180px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .panel-quote { grid-column: 1 / -1; }
  .cover { grid-template-columns: 1fr; min-height: 0; }
  .cover-lead, .cover-card.lead { min-height: 420px; }
  .cover-rail { grid-template-rows: auto; }
  .cover-stack { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .articles-grid, .picks-grid { grid-template-columns: 1fr 1fr; }
  .article-card.is-featured {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }
  .article-card.is-featured .card-media { min-height: 200px; height: 200px; }
}
@media (max-width: 760px) {
  .topbar-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions" "center center";
  }
  .brand { grid-area: brand; }
  .topbar-center { grid-area: center; flex-direction: column; align-items: stretch; }
  .topbar-actions { grid-area: actions; flex-wrap: wrap; justify-content: end; }
  .topbar-actions .btn { display: none; }
  .topbar-nav { flex-direction: column; align-items: stretch; }
  .cover-stack, .cover-minis, .articles-grid, .picks-grid, .rail { grid-template-columns: 1fr; }
  .article-card.is-featured { grid-column: auto; }
  .live-clock { display: none; }
  .footer-cols { gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .brand-mark i, .live-dot, .ticker-label span, .pill.live { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cover-card, .article-card, .pick-card, .btn { transition: none; }
}
