:root {
  --bg: #070b14;
  --bg-elevated: #0d1321;
  --bg-card: #111827;
  --bg-hover: #1a2235;
  --text: #e8edf5;
  --text-muted: #8b95a8;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --gold: #f0b429;
  --gold-dim: rgba(240, 180, 41, 0.12);
  --red: #ff5c6a;
  --green: #3dd68c;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --header-h: 64px;
}

[data-theme="light"] {
  --bg: #f4f6fa;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #eef1f7;
  --text: #1a1f2e;
  --text-muted: #5c6578;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  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");
}

.container {
  width: min(1280px, 100% - 32px);
  margin-inline: auto;
}

/* Top bar */
.top-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  overflow: hidden;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker__symbol { font-weight: 600; color: var(--text); }
.ticker__price { font-family: var(--mono); font-size: 0.85rem; }
.ticker__change { font-family: var(--mono); font-size: 0.75rem; }
.ticker__change.up { color: var(--green); }
.ticker__change.down { color: var(--red); }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.top-bar__meta {
  color: var(--text-muted);
  flex-shrink: 0;
  display: none;
}

.divider { margin: 0 8px; opacity: 0.4; }

@media (min-width: 768px) {
  .top-bar__meta { display: block; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .site-header {
  background: rgba(244, 246, 250, 0.9);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo__icon {
  font-size: 1.5rem;
  color: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent-dim));
}

.logo__text span { color: var(--accent); }

.nav {
  display: none;
  gap: 4px;
}

.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover, .nav__link.active {
  color: var(--text);
  background: var(--bg-hover);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.burger {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
}

@media (min-width: 900px) {
  .nav, .header-actions { display: flex; }
  .burger { display: none; }
}

/* Buttons */
.btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn:active { transform: scale(0.97); }

.btn--accent {
  background: linear-gradient(135deg, var(--accent), #00a88a);
  color: #041510;
  box-shadow: 0 4px 16px var(--accent-dim);
}

.btn--accent:hover {
  box-shadow: 0 6px 24px rgba(0, 212, 170, 0.35);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn--ghost:hover { background: var(--bg-hover); color: var(--text); }

.btn--outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  width: 100%;
  padding: 14px;
  margin-top: 24px;
}

/* Breaking */
.breaking {
  background: linear-gradient(90deg, rgba(255, 92, 106, 0.15), transparent);
  border-bottom: 1px solid rgba(255, 92, 106, 0.2);
  animation: breakingGlow 3s ease infinite;
}

@keyframes breakingGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.breaking__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.breaking__label {
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.breaking__text {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main grid */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 32px 0 24px;
}

@media (min-width: 1100px) {
  .main-grid {
    grid-template-columns: 1fr 320px;
    grid-template-areas:
      "hero sidebar"
      "feed sidebar"
      "podcast podcast";
    gap: 28px;
    padding-bottom: 16px;
  }
  .hero { grid-area: hero; }
  .sidebar { grid-area: sidebar; }
  .feed { grid-area: feed; }
  .podcast-strip { grid-area: podcast; }
}

/* Hero */
.hero {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .hero { grid-template-columns: 1.4fr 1fr; }
}

.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.hero-card:hover .hero-card__img { transform: scale(1.05); }

.hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 20, 0.95) 0%, rgba(7, 11, 20, 0.3) 50%, transparent 100%);
}

.hero-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
}

.hero-card__category {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.hero-card__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.market-panel, .sentiment-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.market-list { list-style: none; }

.market-list__item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.market-list__item:last-child { border-bottom: none; }

.market-list__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.market-list__name { font-weight: 600; }
.market-list__sym { color: var(--text-muted); font-size: 0.75rem; }
.market-list__price { font-family: var(--mono); text-align: right; }
.market-list__change {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: right;
  min-width: 56px;
}
.market-list__change.up { color: var(--green); }
.market-list__change.down { color: var(--red); }

.fear-gauge {
  text-align: center;
  position: relative;
  padding: 16px 0;
}

.fear-gauge__arc {
  width: 120px;
  height: 60px;
  margin: 0 auto 8px;
  border: 6px solid var(--border);
  border-bottom: none;
  border-radius: 120px 120px 0 0;
  position: relative;
  overflow: hidden;
}

.fear-gauge__arc::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--gold);
}

.fear-gauge__value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--gold);
}

.fear-gauge__label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Sidebar panels */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.panel--live {
  border-color: rgba(0, 212, 170, 0.25);
  box-shadow: 0 0 24px var(--accent-dim);
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.panel__updated {
  font-size: 0.72rem;
  color: var(--accent);
  font-family: var(--mono);
}

.live-feed { list-style: none; }

.live-feed__item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeSlideIn 0.4s ease;
}

.live-feed__item:last-child { border-bottom: none; }

.live-feed__time {
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--accent);
  margin-bottom: 4px;
}

.live-feed__text {
  font-size: 0.88rem;
  line-height: 1.45;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: default;
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag__count {
  margin-left: 4px;
  opacity: 0.6;
}

.panel__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

#volumeChart {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* Feed */
.feed__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.feed__title {
  font-size: 1.5rem;
  font-weight: 700;
}

.feed__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}

.chip:hover, .chip--active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.feed__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Article card */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
  animation: cardAppear 0.5s ease backwards;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 212, 170, 0.3);
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-hover);
}

.article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card__img { transform: scale(1.06); }

.article-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.article-card__body { padding: 20px; }

.article-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.article-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-card__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-hover) 25%, var(--bg-card) 50%, var(--bg-hover) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
  min-height: 200px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Podcast */
.podcast-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

@media (min-width: 1100px) {
  .podcast-strip {
    flex-wrap: nowrap;
    padding: 18px 28px;
    margin-bottom: 0;
  }

  .podcast-strip__content {
    flex: 1;
    min-width: 0;
  }

  .podcast-strip h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .podcast-strip p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #podcastListenBtn {
    flex-shrink: 0;
    min-width: 120px;
  }
}

body.has-player .podcast-strip {
  opacity: 0.55;
  pointer-events: none;
}

.podcast-strip__badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.podcast-strip h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.podcast-strip p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 28px;
  margin-top: 0;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

@media (min-width: 1100px) {
  .site-footer {
    padding: 16px 0 24px;
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 24px;
  }

  .footer-brand {
    margin-bottom: 0;
    justify-content: flex-start;
    flex-shrink: 0;
  }

  .footer-stats {
    text-align: right;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 0;
}

.footer-stats {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: bottom 0.35s ease;
}

body.has-player .toast-container {
  bottom: 88px;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  animation: toastIn 0.35s ease, toastOut 0.35s ease 4s forwards;
  max-width: 320px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px); }
}

/* Modal */
.modal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  padding: 0;
  max-width: 400px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  padding: 28px;
}

.modal__content h3 { margin-bottom: 8px; }
.modal__content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

.modal__content input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--text);
  margin-bottom: 16px;
  font-family: var(--font);
}

.modal__actions {
  display: flex;
  gap: 8px;
}

/* Mobile nav open */
.nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  z-index: 99;
}

.site-header { position: sticky; }
.site-header__inner { position: relative; }

/* Clickable cards */
.hero-card--clickable,
.article-card {
  cursor: pointer;
}

.hero-card--clickable:focus-visible,
.article-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Article reader */
.reader {
  border: none;
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  background: transparent;
}

.reader::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.reader__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.reader__panel {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 24px 16px;
  pointer-events: none;
}

.reader__scroll {
  pointer-events: auto;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: readerIn 0.3s ease;
}

@keyframes readerIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reader__close {
  position: fixed;
  top: 32px;
  right: max(24px, calc(50% - 380px));
  z-index: 2;
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.reader__close:hover { background: var(--bg-hover); }

.reader__hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.reader__inner { padding: 32px; }

.reader__category {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.reader__title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}

.reader__author-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.reader__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.reader__meta {
  color: var(--text-muted);
  font-size: 0.82rem;
  width: 100%;
}

.reader__body p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25em;
  color: var(--text);
}

.reader__body p:first-child {
  font-size: 1.15rem;
  color: var(--text);
}

.reader__related {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.reader__related h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.reader__related ul {
  list-style: none;
}

.reader-related__link {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  padding: 8px 0;
  line-height: 1.4;
  transition: color 0.2s;
}

.reader-related__link:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Podcast player bar */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(13, 19, 33, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  min-height: 72px;
}

[data-theme="light"] .player-bar {
  background: rgba(255, 255, 255, 0.97);
}

.player-bar--visible {
  transform: translateY(0);
}

.player-bar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 8px 0;
}

@media (max-width: 767px) {
  .player-bar__progress-wrap,
  .player-bar__volume {
    display: none;
  }

  .player-bar__source {
    margin-bottom: 0;
  }

  .player-bar__inner {
    min-height: 56px;
    padding: 6px 0;
  }

  body.has-player {
    padding-bottom: 56px;
  }
}

@media (min-width: 1100px) {
  .player-bar__inner {
    gap: 20px;
  }

  .player-bar__info {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 20px;
    align-items: center;
  }

  .player-bar__title {
    grid-column: 1;
    grid-row: 1;
  }

  .player-bar__source {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    text-align: right;
    white-space: nowrap;
  }

  .player-bar__progress-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.player-bar__play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), #00a88a);
  color: #041510;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.player-bar__info {
  flex: 1;
  min-width: 0;
}

.player-bar__title {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-bar__source {
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.player-bar__progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-bar__time {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  min-width: 28px;
  flex-shrink: 0;
}

.player-bar__progress {
  flex: 1;
  accent-color: var(--accent);
  height: 3px;
  min-width: 60px;
}

.player-bar__volume {
  width: 72px;
  accent-color: var(--accent);
  display: none;
  flex-shrink: 0;
}

.player-bar__close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .player-bar__volume { display: block; }
}

body.has-player {
  padding-bottom: 72px;
}

body.has-player .site-footer {
  padding-bottom: 8px;
}
