/* ============================================
   Hooked to Books TV — Style
   Colors: #1a1510 (dark brown), #f5f0e8 (cream), #c4a35a (warm gold)
   ============================================ */

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

:root {
  --bg: #1a1510;
  --bg-light: #231e17;
  --bg-card: #2a2318;
  --cream: #f5f0e8;
  --cream-muted: #c4bfb5;
  --gold: #c4a35a;
  --gold-hover: #d4b36a;
  --gold-dim: rgba(196, 163, 90, 0.15);
  --red: #e53e3e;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1100px;
  --radius: 8px;
  --radius-lg: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-hover);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 8px 16px;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 14px 28px;
}

.btn-gold, .nav-links a.btn-gold {
  background: var(--gold);
  color: #000 !important;
  font-weight: 700;
}

.btn-gold:hover {
  background: var(--gold-hover);
  color: #000;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold-dim);
  color: var(--gold-hover);
}

/* ---- Nav ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 21, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 163, 90, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-logo:hover {
  color: var(--cream);
}

.nav-icon {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--cream-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--cream);
}

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

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, rgba(196, 163, 90, 0.08) 0%, transparent 70%),
              var(--bg);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4a35a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-inner {
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--cream);
}

.hero-tv {
  color: var(--gold);
  margin-left: 4px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--cream-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Sections ---- */

.section {
  padding: 80px 0;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cream);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---- Live Stream ---- */

.live {
  background: var(--bg-light);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: uppercase;
  margin-right: 12px;
}

.live-badge svg circle {
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.stream-wrapper {
  position: relative;
}

.stream-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.stream-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.stream-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 20px;
  text-align: center;
  color: var(--cream-muted);
  font-size: 0.95rem;
}

.stream-fallback svg {
  color: var(--gold);
  opacity: 0.6;
}

/* ---- Video Grid ---- */

.videos {
  background: var(--bg);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-light);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-thumb img {
  transform: scale(1.05);
}

.video-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-muted);
  opacity: 0.4;
}

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

.video-card:hover .video-play {
  opacity: 1;
}

.video-play svg {
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.video-title {
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.4;
}

/* ---- Subscribe CTA ---- */

.subscribe {
  background: linear-gradient(135deg, rgba(196, 163, 90, 0.1) 0%, rgba(196, 163, 90, 0.03) 100%);
  border-top: 1px solid rgba(196, 163, 90, 0.1);
  border-bottom: 1px solid rgba(196, 163, 90, 0.1);
}

.subscribe-inner {
  text-align: center;
  max-width: 640px;
}

.subscribe-icon {
  color: var(--gold);
  margin-bottom: 20px;
}

.subscribe-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.subscribe-sub {
  color: var(--cream-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ---- Community ---- */

.community {
  background: var(--bg-light);
}

.community-inner {
  text-align: center;
  max-width: 640px;
}

.community-icon {
  color: var(--gold);
  margin-bottom: 20px;
}

.community-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.community-sub {
  color: var(--cream-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

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

.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(196, 163, 90, 0.1);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer-icon {
  color: var(--gold);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--cream-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  color: var(--cream-muted);
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-affiliate {
  color: var(--cream-muted);
  font-size: 0.75rem;
  opacity: 0.4;
  margin-top: 8px;
}

/* ---- Book Recommendations ---- */

.books {
  background: var(--bg-light);
}

.section-sub {
  color: var(--cream-muted);
  font-size: 0.95rem;
  margin-top: -20px;
  margin-bottom: 0;
}

.book-category-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 36px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.book-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(196, 163, 90, 0.08);
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(196, 163, 90, 0.2);
}

.book-cover-wrap {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.book-card:hover .book-cover {
  transform: scale(1.05);
}

.book-info {
  padding: 14px 16px 16px;
}

.book-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
  line-height: 1.3;
}

.book-author {
  font-size: 0.8rem;
  color: var(--cream-muted);
  margin-bottom: 8px;
}

.book-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 3px 8px;
  border-radius: 4px;
}

.affiliate-disclosure {
  text-align: center;
  font-size: 0.75rem;
  color: var(--cream-muted);
  opacity: 0.5;
  margin-top: 32px;
}

/* ---- Newsletter ---- */

.newsletter {
  background: linear-gradient(135deg, rgba(196, 163, 90, 0.08) 0%, rgba(196, 163, 90, 0.02) 100%);
  border-top: 1px solid rgba(196, 163, 90, 0.1);
  border-bottom: 1px solid rgba(196, 163, 90, 0.1);
}

.newsletter-inner {
  text-align: center;
  max-width: 560px;
}

.newsletter-icon {
  color: var(--gold);
  margin-bottom: 20px;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.newsletter-sub {
  color: var(--cream-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(196, 163, 90, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input:focus {
  border-color: var(--gold);
}

.newsletter-input::placeholder {
  color: var(--cream-muted);
  opacity: 0.5;
}

.newsletter-count {
  text-align: center;
  font-size: 0.8rem;
  color: var(--cream-muted);
  opacity: 0.5;
  margin-top: 12px;
}

/* ---- About ---- */

.about {
  background: var(--bg);
}

.about-inner {
  text-align: center;
  max-width: 720px;
}

.about-text {
  color: var(--cream-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.about-stat-label {
  font-size: 0.8rem;
  color: var(--cream-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- Selection ---- */

::selection {
  background: rgba(196, 163, 90, 0.25);
  color: var(--cream);
}

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

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    min-height: 70vh;
    padding: 100px 20px 60px;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-stats {
    gap: 24px;
  }

  .about-stat-num {
    font-size: 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .subscribe-title,
  .community-title,
  .newsletter-title {
    font-size: 1.6rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}


/* ── Book Finder (AI librarian ask bar) ── */
.book-finder { max-width: 620px; margin: 2rem auto 0.5rem; text-align: left; }
.bf-bar { display: flex; align-items: center; gap: 10px; background: rgba(245,240,232,0.06);
  border: 1px solid rgba(196,163,90,0.45); border-radius: 12px; padding: 6px 6px 6px 16px;
  box-shadow: 0 0 0 1px rgba(196,163,90,0.08), 0 18px 50px -20px rgba(196,163,90,0.25); }
.bf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 9px var(--gold); flex-shrink: 0; animation: bf-blink 1.8s infinite; }
@keyframes bf-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.bf-input { flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: #f5f0e8; font-size: 1rem; padding: 10px 0; font-family: inherit; }
.bf-input::placeholder { color: rgba(245,240,232,0.45); }
.bf-btn { flex-shrink: 0; background: var(--gold); color: #1a1510; border: none;
  border-radius: 9px; padding: 11px 18px; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.04em; cursor: pointer; font-family: inherit; }
.bf-btn:hover { filter: brightness(1.08); }
.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.bf-chip { background: rgba(245,240,232,0.05); color: rgba(245,240,232,0.7);
  border: 1px solid rgba(245,240,232,0.14); border-radius: 100px; padding: 7px 14px;
  font-size: 0.8rem; cursor: pointer; font-family: inherit; transition: border-color .15s; }
.bf-chip:hover { border-color: var(--gold); color: #f5f0e8; }
.bf-answer { margin-top: 18px; background: rgba(35,28,20,0.85); border: 1px solid rgba(196,163,90,0.25);
  border-radius: 12px; padding: 22px 24px; color: #f5f0e8; line-height: 1.7; font-size: 0.95rem; }
.bf-answer p { margin: 0 0 0.9em; }
.bf-answer p:last-child { margin-bottom: 0; }
.bf-answer a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.bf-kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px; }
.bf-loading { color: rgba(245,240,232,0.6); font-style: italic; }
.bf-note { text-align: center; font-size: 0.72rem; color: rgba(245,240,232,0.4); margin-top: 10px; }
@media (max-width: 560px) { .bf-btn { padding: 10px 13px; font-size: 0.78rem; } }

/* ── Redesign-unified nav + footer for article pages (2026-07-10) ──
   Scoped rd- classes; the legacy .nav fixed wrapper/backdrop is reused,
   only the inner content changes to match the homepage redesign. */
.rd-nav-inner { max-width: 1200px; margin: 0 auto; padding: 16px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rd-wordmark { display: inline-flex; align-items: baseline; gap: 9px; color: var(--cream, #f1e9d9); text-decoration: none; }
.rd-wordmark .name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 21px; letter-spacing: 0.3px; }
.rd-wordmark .tv { font-family: 'Inter', system-ui, sans-serif; font-size: 10px; letter-spacing: 0.32em; color: #c4a35a; text-transform: uppercase; transform: translateY(-2px); }
.rd-nav-right { display: flex; align-items: center; gap: 24px; }
.rd-nav-links { display: none; gap: 24px; font-size: 14px; font-weight: 500; font-family: 'Inter', system-ui, sans-serif; }
.rd-nav-links a { color: #c9bda3; text-decoration: none; transition: color 0.2s ease; }
.rd-nav-links a:hover { color: #d8bd82; }
@media (min-width: 820px) { .rd-nav-links { display: flex; } }
.rd-pill { display: inline-block; border: 1px solid #c4a35a; color: #c4a35a; font-weight: 600; font-size: 13px; font-family: 'Inter', system-ui, sans-serif; padding: 9px 16px; border-radius: 999px; text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
.rd-pill:hover { background: rgba(196, 163, 90, 0.12); color: #d8bd82; }
.rd-footer { text-align: center; }
.rd-footer-mark { justify-content: center; margin-bottom: 14px; display: inline-flex; }
.rd-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin: 6px 0 16px; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; }
.rd-footer-links a { color: #c9bda3; text-decoration: none; }
.rd-footer-links a:hover { color: #d8bd82; }

/* === HTB book cards (booklist) === */
.htb-booklist{display:grid;gap:14px;margin:28px 0}
.htb-book-card{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;
  background:var(--bg-card,#2a2318);border:1px solid rgba(196,163,90,.16);border-radius:12px;
  padding:18px 20px;transition:border-color .2s,transform .2s}
.htb-book-card:hover{border-color:rgba(196,163,90,.42);transform:translateY(-2px)}
.htb-book-rank{font-family:var(--font-display,'Playfair Display',serif);font-size:30px;font-weight:700;
  color:var(--gold,#c4a35a);opacity:.85;min-width:44px;text-align:center;line-height:1}
.htb-book-main{min-width:0}
.htb-book-title{font-family:var(--font-display,'Playfair Display',serif);font-size:19px;font-weight:600;
  color:var(--cream,#f5f0e8);line-height:1.25;text-decoration:none;display:inline-block}
.htb-book-title:hover{color:var(--gold,#c4a35a)}
.htb-book-author{font-style:italic;color:var(--cream-muted,#c4bfb5);font-size:14px;margin-top:2px}
.htb-book-meta{margin-top:9px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.htb-chip{font-size:11.5px;letter-spacing:.02em;color:var(--cream-muted,#c4bfb5);
  background:rgba(196,163,90,.1);border:1px solid rgba(196,163,90,.16);border-radius:100px;padding:3px 10px}
.htb-book-pages{font-size:12.5px;color:var(--cream-muted,#c4bfb5);opacity:.8}
.htb-book-cta{white-space:nowrap}
.htb-book-cta a{display:inline-block;background:var(--gold,#c4a35a);color:#1a1510;font-weight:600;font-size:13.5px;
  padding:10px 16px;border-radius:8px;text-decoration:none;transition:background .2s}
.htb-book-cta a:hover{background:var(--gold-hover,#d4b36a)}
@media(max-width:640px){.htb-book-card{grid-template-columns:auto 1fr;gap:14px}
  .htb-book-rank{font-size:24px;min-width:32px}
  .htb-book-cta{grid-column:1/-1;text-align:left}
  .htb-book-cta a{padding:9px 14px}}

