/* 10x Interviews — editorial design.
   Palette: warm cream + deep ink + single terracotta accent.
   Type: Fraunces (display, soft curves) + Inter (body). */

:root {
  --cream: #fbf7f0;
  --cream-2: #f4eee2;
  --ink: #1a1916;
  --ink-soft: #423f39;
  --ink-mute: #7a766c;
  --line: rgba(26, 25, 22, 0.08);
  --line-strong: rgba(26, 25, 22, 0.16);
  --accent: #c0563a;
  --accent-soft: #e0a995;
  --shadow-sm: 0 1px 2px rgba(26, 25, 22, 0.04), 0 2px 8px rgba(26, 25, 22, 0.05);
  --shadow-md: 0 4px 12px rgba(26, 25, 22, 0.06), 0 12px 32px rgba(26, 25, 22, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --serif: "Fraunces", "Hoefler Text", "Garamond", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "SOFT" 100, "WONK" 1;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-style: italic;
}

.brand-word {
  font-family: var(--serif);
  font-variation-settings: "opsz" 48, "SOFT" 100;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  padding: 92px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 600;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: var(--ink);
  max-width: 12ch;
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.hero-sub {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 52ch;
  line-height: 1.5;
}

/* ---------- Catalog grid ---------- */

.catalog { padding: 72px 0 96px; }

.catalog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "SOFT" 100;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0;
}

.catalog-meta {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
  letter-spacing: 0.01em;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.topic-card {
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.22s ease;
  border: 1px solid var(--line);
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.topic-thumb {
  aspect-ratio: 9 / 16;
  background: #20201d;
  background-size: cover;
  background-position: center;
  position: relative;
}

.topic-thumb.placeholder {
  background:
    radial-gradient(circle at 30% 30%, rgba(192, 86, 58, 0.32), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(192, 86, 58, 0.18), transparent 60%),
    #20201d;
}

.topic-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45) 100%);
}

.topic-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-card-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "SOFT" 100;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0;
}

.topic-card-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}

.topic-card-meta .dot {
  width: 3px;
  height: 3px;
  background: var(--ink-mute);
  border-radius: 50%;
  display: inline-block;
}

.topic-card-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Empty state ---------- */

.empty-state {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--cream-2);
}

.empty-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "SOFT" 100;
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.empty-sub {
  color: var(--ink-mute);
  margin: 0;
  font-size: 15px;
}

/* ---------- Topic detail page ---------- */

.topic-page main { padding-bottom: 80px; }

.topic-main { padding: 56px 0; }

.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .topic-layout { grid-template-columns: 1fr; gap: 36px; }
}

.topic-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 120, "SOFT" 100, "WONK" 1;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 14px;
}

.topic-desc {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 60ch;
  line-height: 1.55;
}

.player-wrap {
  background: #0e0d0b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 480px;
}

#player {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.chapters-col {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 4px;
}

.chapters-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "SOFT" 100;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.chapters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}

.chip-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream-2);
  border: 1px solid var(--line-strong);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.chip-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.chapter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chapter-row {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
  border: 1px solid var(--line);
  background: transparent;
}

.chapter-row:hover {
  background: var(--cream-2);
  border-color: var(--line-strong);
}

.chapter-row.active {
  background: var(--cream-2);
  border-color: var(--accent-soft);
}

.chapter-row.pending {
  opacity: 0.55;
  cursor: default;
}

.chapter-row.pending:hover {
  background: transparent;
  border-color: var(--line);
}

.chapter-row.locked {
  cursor: not-allowed;
}

.chapter-row.locked .chapter-icon { color: var(--ink-mute); }

.chapter-row.flash-locked {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}

.chapter-icon {
  font-size: 14px;
  color: var(--accent);
  min-width: 18px;
  text-align: center;
  font-family: var(--sans);
}

.chapter-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.chapter-line1 {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.chapter-line2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chapter-num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 100;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  font-style: italic;
  min-width: 22px;
}

.chapter-text {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 500;
}

.chapter-time {
  font-size: 12px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.badge {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}

.badge-free {
  background: rgba(80, 130, 90, 0.12);
  color: #3f6e51;
}

.badge-paid {
  background: rgba(192, 86, 58, 0.12);
  color: var(--accent);
}

.badge-pending {
  background: rgba(122, 118, 108, 0.12);
  color: var(--ink-mute);
}

.badge-partial {
  background: rgba(184, 151, 90, 0.18);
  color: #8a6a2a;
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
}

.badge-rendering {
  background: rgba(122, 118, 108, 0.18);
  color: var(--ink-mute);
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
}

.topic-status {
  margin: -10px 0 24px;
  font-size: 13px;
}
.topic-status:empty { display: none; }

.now-playing {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ink-mute);
  background: #0e0d0b;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--ink-mute);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  text-align: center;
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 640px) {
  .hero { padding: 56px 0 36px; }
  .catalog { padding: 48px 0 64px; }
  .header-inner { padding-top: 16px; padding-bottom: 16px; }
  .topic-grid { grid-template-columns: 1fr; gap: 18px; }
  .topic-card-body { padding: 18px 20px 22px; }
}
