/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0E0F14;
  --surface: #181920;
  --surface-2: #1E1F28;
  --border: rgba(255,255,255,.08);
  --border-2: rgba(255,255,255,.05);

  --text-1: rgba(255,255,255,.92);
  --text-2: rgba(255,255,255,.55);
  --text-3: rgba(255,255,255,.30);

  --wsj: #4A90D9;
  --wsj-light: rgba(74,144,217,.12);
  --wsj-mid: rgba(74,144,217,.25);

  --ft: #E8784A;
  --ft-light: rgba(232,120,74,.12);
  --ft-mid: rgba(232,120,74,.25);

  --bloomberg: #2563EB;
  --bloomberg-light: rgba(37,99,235,.12);
  --bloomberg-mid: rgba(37,99,235,.25);

  --reuters: #FF6B00;
  --reuters-light: rgba(255,107,0,.12);
  --reuters-mid: rgba(255,107,0,.25);

  --economist: #E3120B;
  --economist-light: rgba(227,18,11,.12);
  --economist-mid: rgba(227,18,11,.25);

  --dealbook: #326891;
  --dealbook-light: rgba(50,104,145,.12);
  --dealbook-mid: rgba(50,104,145,.25);

  --barrons: #CC0000;
  --barrons-light: rgba(204,0,0,.12);
  --barrons-mid: rgba(204,0,0,.25);

  --accent: #4F8EF7;

  --header-h: 56px;
  --panel-w: 280px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.3);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.25);
  --shadow-hover: 0 8px 28px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);

  --ease: cubic-bezier(.4,0,.2,1);
  --dur: 180ms;
}

html { font-size: 15px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.5;
  min-height: 100vh;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ── Header ────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #12131A;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-logo {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #3B82F6, #7C3AED);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
}

.header-name {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.3px;
}

.header-section-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-section-source {
  display: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.header-section-source.wsj       { background: var(--wsj);       color: #fff; }
.header-section-source.ft        { background: var(--ft);        color: #fff; }
.header-section-source.bloomberg { background: var(--bloomberg); color: #fff; }
.header-section-source.reuters   { background: var(--reuters);   color: #fff; }
.header-section-source.economist { background: var(--economist); color: #fff; }
.header-section-source.dealbook  { background: var(--dealbook);  color: #fff; }
.header-section-source.barrons   { background: var(--barrons);   color: #fff; }

.header-section-name {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-icon {
  width: 32px; height: 32px;
  border: none;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn-icon:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-icon.spinning svg { animation: spin .8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.article-count {
  font-size: 11.5px;
  color: rgba(255,255,255,.4);
  font-weight: 500;
  background: rgba(255,255,255,.07);
  padding: 3px 9px;
  border-radius: 99px;
}

/* ── Layout ────────────────────────────────────────────── */
.main-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-h);
}

/* ── Feed Area ─────────────────────────────────────────── */
.feed-area {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  overflow-y: auto;
}

/* ── Sources Panel ─────────────────────────────────────── */
.sources-panel {
  width: var(--panel-w);
  flex-shrink: 0;
  background: #12131A;
  border-right: 1px solid rgba(255,255,255,.07);
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.sources-header {
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: sticky;
  top: 0;
  background: #12131A;
  z-index: 10;
}

/* ── Sidebar Mode Toggle ───────────────────────────────── */
.sources-mode-toggle {
  display: flex;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.mode-tab {
  flex: 1;
  padding: 6px 0;
  background: none;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: .2px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.mode-tab:hover { color: rgba(255,255,255,.7); }

.mode-tab.active {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
}

/* ── Source Groups ─────────────────────────────────────── */
.source-group { border-bottom: 1px solid rgba(255,255,255,.06); }

.source-group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.source-group-btn:hover { background: rgba(255,255,255,.05); }
.source-group-btn.open { background: rgba(255,255,255,.04); }

.source-group-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.source-logo-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  padding: 4px 7px;
  border-radius: 5px;
  color: #fff;
  font-family: 'Inter', sans-serif;
}
.source-logo-badge.wsj       { background: var(--wsj); }
.source-logo-badge.ft        { background: var(--ft); }
.source-logo-badge.bloomberg { background: var(--bloomberg); }
.source-logo-badge.reuters   { background: var(--reuters); }
.source-logo-badge.economist { background: var(--economist); }
.source-logo-badge.dealbook  { background: var(--dealbook); }
.source-logo-badge.barrons   { background: var(--barrons); }

.source-logo-badge.small {
  font-size: 8.5px;
  padding: 2px 5px;
  border-radius: 3px;
  opacity: .85;
}

/* ── Topic Sidebar Items ───────────────────────────────── */
.topic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 16px 11px 20px;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  text-align: left;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background var(--dur) var(--ease);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.topic-item:hover { background: rgba(255,255,255,.05); }

.topic-item.active {
  background: rgba(255,255,255,.07);
  border-left-color: var(--accent);
}

.topic-item-name {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
}

.topic-item.active .topic-item-name { color: rgba(255,255,255,.95); }

.topic-item-badges {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100px;
}

/* ── Topic Sources Bar ─────────────────────────────────── */
.topic-sources-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.source-group-name {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: -.2px;
}

.source-group-chevron {
  color: rgba(255,255,255,.3);
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.source-group-btn.open .source-group-chevron { transform: rotate(180deg); }

.source-sections {
  overflow: hidden;
  max-height: 0;
  transition: max-height .28s var(--ease);
}
.source-sections.open { max-height: 500px; }

.source-section-item {
  display: block;
  width: 100%;
  padding: 9px 20px 9px 42px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  font-family: 'Inter', sans-serif;
  border-left: 2px solid transparent;
  position: relative;
}

.source-section-item::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  transition: background var(--dur) var(--ease);
}

.source-section-item:hover {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.85);
}

.source-section-item.active {
  color: rgba(255,255,255,.9);
  font-weight: 500;
  background: rgba(255,255,255,.07);
}
.source-section-item.active::before { background: rgba(255,255,255,.6); }

.source-section-item.active.wsj {
  color: #6FA8DC;
  background: var(--wsj-light);
  border-left-color: #6FA8DC;
}
.source-section-item.active.wsj::before { background: #6FA8DC; }

.source-section-item.active.ft {
  color: #F0956A;
  background: var(--ft-light);
  border-left-color: #F0956A;
}
.source-section-item.active.ft::before { background: #F0956A; }

.source-section-item.active.bloomberg {
  color: #6B9FFF;
  background: var(--bloomberg-light);
  border-left-color: #6B9FFF;
}
.source-section-item.active.bloomberg::before { background: #6B9FFF; }

.source-section-item.active.reuters {
  color: #FF9A4D;
  background: var(--reuters-light);
  border-left-color: #FF9A4D;
}
.source-section-item.active.reuters::before { background: #FF9A4D; }

.source-section-item.active.economist {
  color: #FF5A54;
  background: var(--economist-light);
  border-left-color: #FF5A54;
}
.source-section-item.active.economist::before { background: #FF5A54; }

.source-section-item.active.dealbook {
  color: #5A9EC8;
  background: var(--dealbook-light);
  border-left-color: #5A9EC8;
}
.source-section-item.active.dealbook::before { background: #5A9EC8; }

.source-section-item.active.barrons {
  color: #FF4040;
  background: var(--barrons-light);
  border-left-color: #FF4040;
}
.source-section-item.active.barrons::before { background: #FF4040; }

/* ── Feed Header Bar ───────────────────────────────────── */
.feed-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.feed-header-left { display: flex; align-items: center; gap: 12px; }

.feed-source-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 5px;
  color: #fff;
  flex-shrink: 0;
}
.feed-source-badge.wsj       { background: var(--wsj); }
.feed-source-badge.ft        { background: var(--ft); }
.feed-source-badge.bloomberg { background: var(--bloomberg); }
.feed-source-badge.reuters   { background: var(--reuters); }
.feed-source-badge.economist { background: var(--economist); }
.feed-source-badge.dealbook  { background: var(--dealbook); }
.feed-source-badge.barrons   { background: var(--barrons); }

.feed-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.4px;
}

.feed-updated {
  font-size: 12px;
  color: var(--text-3);
  flex-shrink: 0;
  padding-bottom: 3px;
}

/* ── Article Cards ─────────────────────────────────────── */
.articles-list { display: flex; flex-direction: column; gap: 1px; }

.article-card {
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  cursor: default;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-2);
  margin-bottom: 10px;
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

/* Featured first article */
.article-card.featured {
  flex-direction: column;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  border-color: var(--border);
}

.article-card.featured .article-image-wrap {
  width: 100%;
  height: 240px;
  flex-shrink: 0;
}

.article-card.featured .article-body { padding: 20px 24px 20px; }

.article-card.featured .article-title {
  font-size: 22px;
  line-height: 1.3;
  -webkit-line-clamp: 3;
}

.article-card.featured .article-desc { -webkit-line-clamp: 3; }

/* Regular cards */
.article-body {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-source-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  color: #fff;
}
.article-source-tag.wsj       { background: var(--wsj); }
.article-source-tag.ft        { background: var(--ft); }
.article-source-tag.bloomberg { background: var(--bloomberg); }
.article-source-tag.reuters   { background: var(--reuters); }
.article-source-tag.economist { background: var(--economist); }
.article-source-tag.dealbook  { background: var(--dealbook); }
.article-source-tag.barrons   { background: var(--barrons); }

.article-time {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 400;
}

.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
  letter-spacing: -.2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card:hover .article-title { color: #fff; }
.article-title a { color: inherit; text-decoration: none; }
.article-title a:hover { text-decoration: underline; }

.article-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.article-author {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Article Action Buttons ────────────────────────────── */
.article-body { position: relative; }

.article-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.article-card:hover .article-actions {
  opacity: 1;
  pointer-events: auto;
}

.article-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  background: rgba(30,31,40,.85);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.article-action-btn:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.article-action-btn.archive {
  background: rgba(20,24,48,.85);
  border-color: rgba(79,142,247,.35);
  color: #7EB3FA;
}

.article-action-btn.archive:hover {
  background: rgba(79,142,247,.25);
  color: #A8CFFC;
}

/* Article image */
.article-image-wrap {
  width: 130px;
  min-width: 130px;
  height: auto;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg);
  order: 2;
}

.article-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.article-card:hover .article-image-wrap img { transform: scale(1.03); }

.article-no-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--bg), var(--border-2));
  color: var(--text-3);
}

/* ── State Containers ──────────────────────────────────── */
.state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 120px);
  text-align: center;
  gap: 16px;
  padding: 40px;
}

/* Welcome */
.welcome-icon {
  width: 80px; height: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  box-shadow: var(--shadow-sm);
}
.welcome-state h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.4px;
}
.welcome-state p {
  font-size: 14px;
  color: var(--text-2);
  max-width: 340px;
  line-height: 1.6;
}

.welcome-sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  max-width: 600px;
}

.welcome-source {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  box-shadow: var(--shadow-xs);
}
.welcome-source .ws-logo {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  color: #fff;
}
.welcome-source.wsj .ws-logo       { background: var(--wsj); }
.welcome-source.ft .ws-logo        { background: var(--ft); }
.welcome-source.bloomberg .ws-logo { background: var(--bloomberg); }
.welcome-source.reuters .ws-logo   { background: var(--reuters); }
.welcome-source.economist .ws-logo { background: var(--economist); }
.welcome-source.dealbook .ws-logo  { background: var(--dealbook); }
.welcome-source.barrons .ws-logo   { background: var(--barrons); }

/* Error */
.error-icon { color: #EF4444; }
.error-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
}
.error-state p { font-size: 13.5px; color: var(--text-2); max-width: 360px; }

.btn-retry {
  background: rgba(255,255,255,.12);
  color: var(--text-1);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity var(--dur);
  margin-top: 4px;
}
.btn-retry:hover { opacity: .8; }

/* ── Skeleton Loader ───────────────────────────────────── */
.skeleton-feed { width: 100%; max-width: 800px; }

.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  display: flex;
  overflow: hidden;
  margin-bottom: 10px;
}
.skeleton-card.featured { flex-direction: column; margin-bottom: 16px; border-radius: var(--radius-lg); }

.skeleton-body { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-image { width: 130px; min-width: 130px; }
.skeleton-image.small { width: 110px; min-width: 110px; }

.skeleton-card.featured .skeleton-image {
  width: 100%;
  height: 200px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
.skeleton-line.short { width: 30%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.title { height: 16px; width: 90%; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-image {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

/* ── No Results ────────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.no-results svg { margin-bottom: 16px; }
.no-results p { font-size: 14px; }

/* ── Divider ───────────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
}
.section-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-2);
}
.section-divider-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
}

/* ── Hamburger button (desktop hidden) ─────────────────── */
.btn-menu { display: none; }

/* ── Sidebar overlay (mobile) ──────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(0,0,0,.55);
  z-index: 150;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .btn-menu { display: grid; }

  /* Sidebar becomes a slide-in drawer */
  .sources-panel {
    position: fixed;
    left: 0;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    width: 280px;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform .28s var(--ease);
    box-shadow: 4px 0 32px rgba(0,0,0,.6);
  }
  .sources-panel.open { transform: translateX(0); }

  .feed-area { padding: 16px 14px; }

  .article-card.featured .article-image-wrap { height: 180px; }

  .article-image-wrap {
    width: 100px;
    min-width: 100px;
  }

  /* Action buttons always visible on touch */
  .article-actions {
    opacity: 1;
    pointer-events: auto;
    position: static;
    padding: 0;
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  .feed-area { padding: 12px 10px; }

  .article-image-wrap { display: none; }
  .article-card.featured .article-image-wrap {
    display: block;
    height: 160px;
  }

  .article-title { font-size: 15px; }

  .article-card.featured .article-title {
    font-size: 18px;
  }

  .feed-title { font-size: 18px; }

  .feed-header-bar { flex-direction: column; align-items: flex-start; gap: 4px; }
}
