/* ============================================
   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 {
  background: var(--gold);
  color: var(--bg);
}

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

.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;
}

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

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

  .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;
  }
}

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

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

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

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

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