:root {
  --bg-page: #f5f6f8;
  --bg-card: #ffffff;
  --bg-blue-soft: #f4f7ff;
  --border-blue-soft: #dce6ff;
  --text-primary: #1a1b1e;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --accent-blue: #2563eb;
  --accent-orange: #ff5722;
  --dark-bg: #12161e;
  --dark-surface: #1c222e;
  --shadow-card: 0 4px 18px rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: #e9edf3;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.app-stage {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100dvh;
  background: var(--bg-page);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 520px) {
  .app-stage {
    padding: 16px;
    background: radial-gradient(circle at 20% 20%, #eef2f9 0%, #dce3ee 100%);
  }
  .app-shell {
    width: 390px;
    height: min(844px, 94dvh);
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
  }
}

.app-view {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Shared Top Nav */
.top-nav {
  flex-shrink: 0;
  height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  z-index: 10;
}

.top-nav.is-dark {
  background: rgba(18, 22, 30, 0.92);
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.top-nav.is-transparent {
  background: transparent;
  border-bottom: none;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nav-back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-back:active {
  background: rgba(15, 23, 42, 0.06);
}

.top-nav.is-dark .nav-back:active {
  background: rgba(255, 255, 255, 0.1);
}

.nav-title {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= LIST PAGE ================= */
.list-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 14px 28px;
  background: var(--bg-page);
}

.list-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.search-box {
  flex: 1;
  height: 36px;
  background: #ffffff;
  border-radius: 18px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  background: transparent;
  color: var(--text-primary);
  min-width: 0;
}

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

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: var(--text-muted);
}

.quick-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.cat-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}

.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  position: relative;
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  padding-bottom: 6px;
}

.cat-tab.is-active {
  color: var(--text-primary);
  font-weight: 700;
}

.cat-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent-blue);
}

.section-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.section-card.is-hot {
  background: linear-gradient(180deg, #fff4f0 0%, #ffffff 34%);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
}

.section-title .hot-text {
  color: #ef4444;
  font-size: 14px;
}

.section-more {
  font-size: 12px;
  color: var(--text-subtle);
}

.video-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.video-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #1e293b;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.duration-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  align-self: flex-start;
}

.tag-pill.is-warm { background: #fff4e5; color: #d97706; }
.tag-pill.is-pink { background: #fdf2f8; color: #db2777; }

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.mag-mini {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.mag-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
}

.mag-mini span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.row-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.row-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.row-thumb {
  position: relative;
  width: 96px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}

.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= VIDEO PAGE ================= */
.video-page {
  flex: 1;
  min-height: 0;
  background: var(--dark-bg);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.video-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 0 12px;
  position: relative;
}

.video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.video-tap-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.16);
  transition: opacity 0.2s;
}

.video-tap-overlay.is-playing {
  background: transparent;
  opacity: 0;
}

.video-center-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-btn {
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.video-side-actions {
  position: absolute;
  right: 12px;
  bottom: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 6;
}

.side-avatar-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.side-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.side-follow-badge {
  position: absolute;
  bottom: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--dark-bg);
}

.side-follow-badge.is-followed {
  background: #334155;
  font-size: 10px;
}

.side-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #e2e8f0;
  font-size: 11px;
}

.video-bottom-area {
  flex-shrink: 0;
  padding: 0 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 6;
}

.video-hook-banner {
  width: calc(100% - 54px);
  background: rgba(30, 36, 48, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hook-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hook-left img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.hook-text {
  min-width: 0;
}

.hook-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hook-sub {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hook-cta {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: 14px;
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

.video-play-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
}

.video-controls-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #cbd5e1;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 24px;
  background: transparent;
  outline: none;
  cursor: pointer;
  touch-action: none;
  margin: 0;
}

.range-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, #ffffff var(--pct, 0%), rgba(255, 255, 255, 0.25) var(--pct, 0%));
}

.range-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, #ffffff var(--pct, 0%), rgba(255, 255, 255, 0.25) var(--pct, 0%));
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.range-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.speed-chip {
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  color: #ffffff;
}

.ai-footnote {
  text-align: center;
  font-size: 10px;
  color: #64748b;
}

.video-end-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 12;
}

.video-end-overlay[hidden] {
  display: none;
}

.video-end-card {
  width: 100%;
  background: #1e2432;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.end-badge {
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 87, 34, 0.16);
  color: #ff8a65;
  font-size: 11px;
  font-weight: 600;
}

.end-headline {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.end-subtext {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.6;
}

.end-cta-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 22px;
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.end-replay-btn {
  font-size: 12px;
  color: #94a3b8;
  padding: 4px 10px;
}

/* ================= ARTICLE PAGE ================= */
.article-page {
  flex: 1;
  min-height: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.article-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 18px 110px;
}

.article-mag-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.article-mag-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-mag-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-mag-name {
  font-size: 14px;
  font-weight: 600;
}

.article-mag-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.follow-btn {
  padding: 5px 12px;
  border-radius: 14px;
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.follow-btn.is-followed {
  background: #f1f5f9;
  color: var(--text-muted);
}

.share-inline-btn {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-title {
  margin: 16px 0 6px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.article-meta-line {
  font-size: 12px;
  color: var(--text-subtle);
  margin-bottom: 14px;
}

.ai-summary-box {
  background: var(--bg-blue-soft);
  border: 1px solid var(--border-blue-soft);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 18px;
}

.ai-summary-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ai-pill {
  padding: 2px 6px;
  border-radius: 4px;
  background: #e0eaff;
  color: var(--accent-blue);
  font-size: 10px;
  font-weight: 600;
}

.ai-summary-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.ai-summary-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-cover {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 220px;
}

.article-h2 {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.article-p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: #27272a;
  text-align: justify;
}

.article-floating-podcast {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(24, 28, 36, 0.94);
  backdrop-filter: blur(12px);
  color: #ffffff;
  border-radius: 28px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  z-index: 15;
}

.floating-pod-left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.floating-pod-left img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.floating-pod-text {
  min-width: 0;
}

.floating-pod-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-pod-sub {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-pod-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ================= PODCAST PAGE ================= */
.podcast-page {
  flex: 1;
  min-height: 0;
  background: linear-gradient(180deg, #eef2f6 0%, #f8fafc 45%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.podcast-main {
  flex: 1;
  padding: 8px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vinyl-stage {
  position: relative;
  width: 226px;
  height: 176px;
  margin: 6px 0 14px;
}

.vinyl-disc {
  position: absolute;
  left: 74px;
  top: 14px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: radial-gradient(circle, #334155 0%, #151619 36%, #0b0c0e 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.vinyl-disc.is-spinning {
  animation: spinDisc 12s linear infinite;
}

@keyframes spinDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-cover {
  position: relative;
  z-index: 2;
  width: 124px;
  height: 168px;
  margin-left: 34px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
}

.vinyl-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tonearm {
  position: absolute;
  right: 8px;
  top: 2px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 10px 10px;
  transform: rotate(-8deg);
  transition: transform 0.35s ease;
}

.tonearm.is-playing {
  transform: rotate(8deg);
}

.tonearm-head {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tonearm-head::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-primary);
}

.tonearm-stick {
  width: 4px;
  height: 54px;
  border-radius: 2px;
  background: #222428;
  margin-top: -2px;
}

.pod-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 6px;
}

.pod-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.pod-follow-pill {
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--text-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

.pod-follow-pill.is-followed {
  background: #e2e8f0;
  color: var(--text-muted);
}

/* Rolling Transcript Card */
.transcript-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 27, 30, 0.06);
  border-radius: 12px;
  padding: 10px 10px 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.transcript-lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.t-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-line.is-prev {
  font-size: 11px;
  line-height: 15px;
  color: var(--text-muted);
  opacity: 0.45;
}

.t-line.is-curr {
  font-size: 12.5px;
  line-height: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.t-line.is-next {
  font-size: 11px;
  line-height: 15px;
  color: var(--text-muted);
  opacity: 0.65;
}

.t-divider {
  width: 1px;
  height: 36px;
  background: rgba(26, 27, 30, 0.08);
  flex-shrink: 0;
}

.t-entry-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 4px 4px 2px;
  flex-shrink: 0;
}

.t-entry-label {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pod-progress-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pod-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 24px;
  background: transparent;
  outline: none;
  cursor: pointer;
  touch-action: none;
  margin: 0;
}

.pod-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--text-primary) var(--pct, 0%), #e2e8f0 var(--pct, 0%));
}

.pod-range::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--text-primary) var(--pct, 0%), #e2e8f0 var(--pct, 0%));
}

.pod-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
}

.pod-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
}

.pod-controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pod-ctrl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--text-muted);
  min-width: 44px;
}

.pod-speed-pill {
  padding: 3px 8px;
  border-radius: 10px;
  background: #e2e8f0;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
}

.pod-play-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(26, 27, 30, 0.22);
}

.pod-origin-card {
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  margin-bottom: 16px;
}

.pod-origin-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pod-origin-left img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.pod-origin-title {
  font-size: 14px;
  font-weight: 600;
}

.pod-origin-issue {
  font-size: 11px;
  color: var(--text-subtle);
}

.pod-origin-cta {
  padding: 7px 14px;
  border-radius: 16px;
  background: var(--text-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.pod-footnote {
  font-size: 10.5px;
  color: var(--text-subtle);
  margin-top: auto;
}

/* ================= BOTTOM SHEET DIALOG ================= */
.sheet-dialog {
  margin: auto 0 0;
  padding: 0;
  border: none;
  background: transparent;
  width: 100%;
  max-width: 390px;
  max-height: 76dvh;
  justify-self: center;
  overflow: visible;
}

@media (max-width: 519px) {
  .sheet-dialog {
    max-width: 100%;
  }
}

.sheet-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
}

.sheet-surface {
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  height: min(540px, 74dvh);
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.18);
}

.sheet-drag-bar {
  padding: 10px 0 6px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.sheet-drag-bar span {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #cbd5e1;
}

.sheet-header {
  padding: 4px 16px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sheet-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sheet-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--text-muted);
}

.sheet-tab.is-active {
  font-weight: 700;
  color: var(--text-primary);
}

.sheet-tab-indicator {
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--text-primary);
  opacity: 0;
}

.sheet-tab.is-active .sheet-tab-indicator {
  opacity: 1;
}

.sheet-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sheet-divider {
  height: 1px;
  background: rgba(26, 27, 30, 0.06);
  flex-shrink: 0;
}

.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.sheet-section-head strong {
  font-size: 12.5px;
  color: var(--text-primary);
}

.sheet-section-head span {
  font-size: 10.5px;
  color: var(--text-subtle);
}

.chapter-card {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chapter-card.is-active {
  border-color: rgba(26, 27, 30, 0.14);
}

.chapter-time {
  padding: 2px 7px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #475569;
  font-size: 10.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.chapter-card.is-active .chapter-time {
  background: var(--text-primary);
  color: #ffffff;
}

.chapter-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.chapter-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sheet-helper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-subtle);
}

.locate-btn {
  padding: 3px 9px;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 600;
}

.transcript-row {
  width: 100%;
  text-align: left;
  padding: 4px 6px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.transcript-row.is-past {
  color: var(--text-subtle);
}

.transcript-row.is-upcoming {
  color: var(--text-secondary);
}

.transcript-row.is-active {
  background: var(--bg-blue-soft);
  border: 1px solid var(--border-blue-soft);
  padding: 10px 12px 10px 16px;
  position: relative;
}

.transcript-row.is-active::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: var(--text-primary);
}

.transcript-row-time {
  font-size: 10.5px;
  font-weight: 600;
}

.transcript-row-text {
  font-size: 12px;
  line-height: 1.55;
}

.transcript-row.is-active .transcript-row-text {
  font-weight: 600;
  color: var(--text-primary);
}

.sheet-footer {
  padding: 10px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  flex-shrink: 0;
}

.mini-player-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mini-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-title {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-time {
  font-size: 10.5px;
  color: var(--text-muted);
}

.mini-cta {
  padding: 7px 13px;
  border-radius: 15px;
  background: var(--text-primary);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Toast */
.toast {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 16px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 40;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
