/* ─── Fonts ───────────────────────────────────────────────────────────────────
   Syne 700;800 (display) · Plus Jakarta Sans 400;500;600 (body)
   Fira Code 400;500 (mono/meta) — loaded in HTML                           */

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── Design tokens ──────────────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --bg:        #080b14;
  --bg-nav:    rgba(8,11,20,0.94);
  --bg-hover:  rgba(255,255,255,.024);
  --bg-panel:  #0d1120;
  --border:    #181d2e;
  --border-hi: #242b42;

  /* Text */
  --text:        #e2eaf8;
  --text-sub:    #5a6a96;
  --text-muted:  #28304e;

  /* Accent — electric cobalt */
  --accent:     #4f9ef8;
  --accent-dim: rgba(79,158,248,.1);

  /* Confidence */
  --done:        #f87171;  --done-dim:   rgba(248,113,113,.12);
  --advanced:    #fb923c;  --adv-dim:    rgba(251,146,60,.12);
  --negot:       #facc15;  --neg-dim:    rgba(250,204,21,.10);
  --interest:    #34d399;  --int-dim:    rgba(52,211,153,.10);
  --spec:        #1e2438;  --spec-dim:   rgba(30,36,56,.4);

  /* Layout */
  --r-pill:  999px;
  --max-w:   800px;

  /* Z-index scale */
  --z-nav:    50;
  --z-reader: 200;
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .015;
  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");
  background-size: 180px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.nav-brand span { color: var(--accent); }

.nav-link {
  font-family: 'Fira Code', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-sub);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  transition: color .15s;
  text-decoration: none;
}
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-link.active { color: var(--accent); }

/* ─── Page ───────────────────────────────────────────────────────────────── */
.page-content { padding: 2rem 0 5rem; }

.page-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
}

.page-meta {
  font-family: 'Fira Code', monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--interest);
  display: inline-block;
  flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.2; } }

/* ─── Filter bar ─────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.filter-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 5.5rem;
}
.filter-pill {
  font-family: 'Fira Code', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  padding: 0.17rem 0.48rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  user-select: none;
  white-space: nowrap;
}
.filter-pill:hover { color: var(--text-sub); border-color: var(--border-hi); }

.filter-pill[data-filter-confidence="done_deal"].filter-active    { border-color:var(--done);     color:#fca5a5; background:var(--done-dim); }
.filter-pill[data-filter-confidence="advanced"].filter-active     { border-color:var(--advanced); color:#fdba74; background:var(--adv-dim); }
.filter-pill[data-filter-confidence="negotiations"].filter-active { border-color:var(--negot);    color:#fde047; background:var(--neg-dim); }
.filter-pill[data-filter-confidence="interest"].filter-active     { border-color:var(--interest); color:#6ee7b7; background:var(--int-dim); }
.filter-pill[data-filter-confidence="speculation"].filter-active  { border-color:var(--border-hi); color:var(--text-sub); background:var(--spec-dim); }
.filter-pill[data-filter-league].filter-active                    { border-color:var(--accent); color:var(--accent); background:var(--accent-dim); }

/* ─── Result count ───────────────────────────────────────────────────────── */
.result-count {
  font-family: 'Fira Code', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ─── Card grid ──────────────────────────────────────────────────────────── */
.rumour-grid { display: flex; flex-direction: column; }

/* ─── Card ───────────────────────────────────────────────────────────────── */
.rumour-card {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  animation: fadeUp .22s ease both;
  cursor: default;
}
.rumour-card:first-child { border-top: 1px solid var(--border); }
.rumour-card:hover { background: var(--bg-hover); }

/* Headline + summary pill: cursor pointer */
.rumour-card .headline,
.rumour-card .transfer-summary { cursor: pointer; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Confidence stripe */
.rumour-card::before {
  content: '';
  position: absolute;
  left: 0; top: 1rem; bottom: 1rem;
  width: 2px;
  border-radius: 2px;
}
.rumour-card[data-confidence="done_deal"]::before    { background: var(--done); box-shadow: 0 0 8px var(--done-dim); }
.rumour-card[data-confidence="advanced"]::before     { background: var(--advanced); }
.rumour-card[data-confidence="negotiations"]::before { background: var(--negot); }
.rumour-card[data-confidence="interest"]::before     { background: var(--interest); }
.rumour-card[data-confidence="speculation"]::before  { background: var(--spec); }

/* Staggered animation */
.rumour-card:nth-child(1) { animation-delay:.03s; }
.rumour-card:nth-child(2) { animation-delay:.06s; }
.rumour-card:nth-child(3) { animation-delay:.09s; }
.rumour-card:nth-child(4) { animation-delay:.12s; }
.rumour-card:nth-child(5) { animation-delay:.15s; }
.rumour-card:nth-child(n+6) { animation-delay:.18s; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

/* ─── Badge ──────────────────────────────────────────────────────────────── */
.badge {
  font-family: 'Fira Code', monospace;
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.13rem 0.4rem;
  border-radius: 3px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.badge-done-deal    { background:var(--done-dim);  color:#fca5a5; border:1px solid rgba(248,113,113,.22); }
.badge-advanced     { background:var(--adv-dim);   color:#fdba74; border:1px solid rgba(251,146,60,.2); }
.badge-negotiations { background:var(--neg-dim);   color:#fde047; border:1px solid rgba(250,204,21,.18); }
.badge-interest     { background:var(--int-dim);   color:#6ee7b7; border:1px solid rgba(52,211,153,.18); }
.badge-speculation  { background:var(--spec-dim);  color:#374263; border:1px solid rgba(30,36,56,.5); }

.timestamp {
  font-family: 'Fira Code', monospace;
  font-size: 0.56rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ─── Card body ──────────────────────────────────────────────────────────── */
.headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 0.4rem;
  transition: color .15s;
}
.rumour-card:hover .headline { color: #eef3ff; }

/* Transfer summary pill */
.transfer-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(79,158,248,.06);
  border: 1px solid rgba(79,158,248,.16);
  border-radius: 3px;
  padding: 0.17rem 0.5rem;
  margin-bottom: 0.42rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.6rem;
  color: var(--text-sub);
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  transition: background .15s, border-color .15s;
}
.transfer-summary:hover {
  background: rgba(79,158,248,.12);
  border-color: rgba(79,158,248,.3);
}
.transfer-summary .ts-player {
  color: var(--text); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px;
}
.transfer-summary .ts-arrow  { color: var(--accent); flex-shrink: 0; }
.transfer-summary .ts-club   {
  color: var(--text); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px;
}
.transfer-summary .ts-fee    {
  color: var(--text-sub); font-size: 0.56rem;
  border-left: 1px solid rgba(79,158,248,.2); padding-left: .35rem; margin-left: .1rem; white-space: nowrap;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.source {
  font-family: 'Fira Code', monospace;
  font-size: 0.56rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.source-name { color: var(--text-sub); }
.read-link {
  font-family: 'Fira Code', monospace;
  font-size: 0.56rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .5;
  transition: opacity .15s;
  flex-shrink: 0;
  cursor: pointer;
}
.read-link:hover { opacity: 1; text-decoration: none; }

/* ─── Deals page ─────────────────────────────────────────────────────────── */
.deals-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: .75rem;
}
.deals-sort-btn {
  font-family: 'Fira Code', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  padding: 0.22rem 0.6rem;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.deals-sort-btn:hover { color: var(--accent); border-color: var(--accent); }

.deals-list { display: flex; flex-direction: column; }

.deal-group-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 1.1rem 0 0.45rem;
  border-top: 1px solid var(--border);
}
.deal-group-label:first-child { border-top: none; padding-top: 0; }

.deal-card {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  animation: fadeUp .2s ease both;
  cursor: default;
}
.deal-card:first-of-type { border-top: 1px solid var(--border); }
.deal-card:hover { background: var(--bg-hover); }
.deal-card::before {
  content: ''; position: absolute; left: 0; top: 1rem; bottom: 1rem;
  width: 2px; background: var(--done); border-radius: 2px;
  box-shadow: 0 0 8px rgba(248,113,113,.25);
}

.deal-title-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text); margin-bottom: 0.35rem; line-height: 1.42;
}
.deal-title-text a { color: var(--text); }
.deal-title-text a:hover { color: var(--accent); text-decoration: none; }

.deal-meta { display: flex; align-items: center; gap: .6rem; }
.deal-source-name {
  font-family: 'Fira Code', monospace; font-size: 0.56rem;
  color: var(--text-sub); letter-spacing: .03em; flex-shrink: 0;
}
.deal-date-text {
  font-family: 'Fira Code', monospace; font-size: 0.56rem;
  color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.deal-read-link {
  font-family: 'Fira Code', monospace; font-size: 0.56rem;
  color: var(--done); opacity: .6; transition: opacity .15s;
  white-space: nowrap; margin-left: auto; flex-shrink: 0;
}
.deal-read-link:hover { opacity: 1; text-decoration: none; }

/* ─── Article reader ─────────────────────────────────────────────────────── */
.article-reader-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-reader);
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}
.article-reader-overlay.open {
  pointer-events: all;
  opacity: 1;
}

.reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,6,14,0.72);
  backdrop-filter: blur(6px) saturate(80%);
  -webkit-backdrop-filter: blur(6px) saturate(80%);
}

.reader-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(480px, 100vw);
  background: var(--bg-panel);
  border-left: 1px solid var(--border-hi);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.article-reader-overlay.open .reader-panel { transform: translateX(0); }

.reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: .75rem;
}
.reader-site-name {
  font-family: 'Fira Code', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-sub);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reader-header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.reader-open-btn,
.reader-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(255,255,255,.05);
  color: var(--text-sub);
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.reader-open-btn:hover,
.reader-close:hover {
  background: rgba(255,255,255,.1);
  color: var(--text);
  text-decoration: none;
}

.reader-content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hi) transparent;
}
.reader-content::-webkit-scrollbar { width: 4px; }
.reader-content::-webkit-scrollbar-track { background: transparent; }
.reader-content::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 2px; }

.reader-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.reader-spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border-hi);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.reader-hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.reader-body {
  padding: 1.25rem 1.25rem 2rem;
}
.reader-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: .75rem;
  letter-spacing: .01em;
}
.reader-description {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-sub);
  line-height: 1.55;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.reader-text { margin-bottom: 1.5rem; }
.reader-para {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: .85rem;
}
.reader-full-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(79,158,248,.2);
  border-radius: 4px;
  padding: .45rem .85rem;
  transition: background .15s, border-color .15s;
}
.reader-full-link:hover { background: var(--accent-dim); border-color: var(--accent); text-decoration: none; }

.reader-fallback {
  padding: 2rem 1.25rem;
  text-align: center;
}
.reader-fallback-msg {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* ─── Teams page ─────────────────────────────────────────────────────────── */
.device-note {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: .28rem .75rem;
  margin-bottom: 1.25rem;
}

.team-input-row { display: flex; gap: .5rem; margin-bottom: .85rem; }
.team-input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  color: var(--text);
  padding: .6rem .85rem;
  font-size: .875rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color .15s;
}
.team-input:focus { outline: none; border-color: var(--accent); }
.team-input::placeholder { color: var(--text-muted); }

.btn-add {
  background: var(--accent);
  color: #040610;
  border: none;
  border-radius: 6px;
  padding: .6rem 1rem;
  font-size: .72rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.btn-add:hover { opacity: .85; }

.team-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.5rem; }
.team-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: 'Fira Code', monospace; font-size: .6rem; letter-spacing: .04em;
  background: var(--accent-dim);
  border: 1px solid rgba(79,158,248,.2);
  border-radius: var(--r-pill);
  padding: .2rem .5rem .2rem .65rem;
  color: var(--accent);
}
.chip-remove {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 0; opacity: .4; transition: opacity .15s;
}
.chip-remove:hover { opacity: 1; }

.team-section { border-bottom: 1px solid var(--border); animation: fadeUp .2s ease both; }
.team-section:first-child { border-top: 1px solid var(--border); }

.team-header {
  display: flex; align-items: center; gap: .65rem;
  padding: .85rem 0; cursor: pointer; user-select: none; transition: color .15s;
}
.team-header:hover .team-name { color: var(--accent); }
.team-name {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .9rem;
  letter-spacing: .05em; text-transform: uppercase; transition: color .15s;
}
.team-count {
  font-family: 'Fira Code', monospace; font-size: .55rem;
  color: var(--text-muted); background: rgba(255,255,255,.04);
  border-radius: var(--r-pill); padding: .1rem .5rem; letter-spacing: .04em;
}
.toggle-icon { margin-left: auto; color: var(--text-muted); font-size: .6rem; transition: transform .2s; }
.team-header[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }
.team-body { padding: .25rem 0 .75rem; display: flex; flex-direction: column; }
.team-body .rumour-card:first-child { border-top: none; }

/* ─── Empty state ────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 3rem 1rem;
  color: var(--text-muted); font-size: .85rem; line-height: 1.8;
}
.empty-state strong {
  display: block;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-sub); margin-bottom: .25rem;
}

/* ─── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ─── Mobile (bottom sheet for reader) ──────────────────────────────────── */
@media (max-width: 600px) {
  .page-title { font-size: 1.35rem; }
  .filter-pill { font-size: .55rem; padding: .16rem .4rem; }
  .filter-label { min-width: unset; }
  .headline, .deal-title-text { font-size: .875rem; }
  .transfer-summary .ts-player,
  .transfer-summary .ts-club { max-width: 90px; }

  /* Reader becomes bottom sheet on mobile */
  .reader-panel {
    top: auto; right: 0; left: 0; bottom: 0;
    width: 100%; height: 88vh;
    border-left: none;
    border-top: 1px solid var(--border-hi);
    border-radius: 14px 14px 0 0;
    transform: translateY(100%);
  }
  .article-reader-overlay.open .reader-panel { transform: translateY(0); }
}
