:root {
  --cream: #ffffff;
  --paper: #ffffff;
  --ink: #26221d;
  --muted: #7b746b;
  --line: #e5ded2;
  --gold: #b9872f;
  --gold-dark: #8e6420;
  --gold-soft: #f3e6c8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
}

.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}
.brand-name { font-family: Georgia, serif; font-size: 22px; letter-spacing: 2px; }
.brand-divider { height: 28px; width: 1px; background: var(--line); }
.brand-tagline { color: var(--muted); font-size: 10px; line-height: 1.35; }

.main-nav { display: flex; gap: 22px; margin-left: 30px; }
.main-nav a { font-size: 12px; white-space: nowrap; }
.main-nav a.is-active { border-bottom: 2px solid var(--gold); padding-bottom: 4px; font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.search-box { position: relative; }
.search-box input {
  width: 150px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 28px 8px 14px;
  background: var(--cream);
  font-size: 12px;
}
.search-icon { position: absolute; right: 10px; top: 6px; color: var(--muted); }
.lang, .auth-link { font-size: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 3px;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 13px;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-small { padding: 8px 14px; font-size: 12px; }

.page { max-width: 1280px; margin: 0 auto; padding: 34px 24px 70px; }

.hero { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: center; }
.kicker { font-size: 11px; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; }
.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1.03;
  margin: 14px 0 18px;
  font-weight: 400;
}
.hero-lead { color: var(--muted); line-height: 1.6; max-width: 430px; }
.hero-buttons { display: flex; align-items: center; gap: 24px; margin: 26px 0; }
.text-link { color: var(--gold-dark); font-size: 12px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.hero-author { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.hero-author small { color: var(--muted); }
.avatar, .mini-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ddd2bf;
  color: #5b4e3c;
  font-size: 11px;
  width: 34px;
  height: 34px;
  flex: none;
}
.mini-avatar { width: 22px; height: 22px; font-size: 9px; }
.avatar.big { width: 62px; height: 62px; font-size: 20px; margin: 8px 0; }
.verified { color: var(--gold-dark); font-size: 11px; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 330px;
  background: linear-gradient(150deg, #d8b98f 0%, #b0856a 28%, #6d7b78 52%, #354652 74%, #202c36 100%);
  border-radius: 4px;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 35% 0 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(16,24,30,.45) 100%);
}
.hero-play {
  position: relative;
  width: 74px;
  height: 74px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.hero-duration {
  position: absolute;
  right: 14px;
  bottom: 12px;
  background: #14181c;
  color: #fff;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 30px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.features > div { display: flex; align-items: center; gap: 10px; font-size: 11px; line-height: 1.4; }
.feature-icon { color: var(--gold); font-size: 20px; border: 1px solid var(--gold); width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex: none; }

.section { margin: 46px 0; }
.section-head { display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.section-head h2 { font-family: Georgia, serif; font-size: 32px; font-weight: 400; margin: 0; }
.section-head span { color: var(--muted); font-size: 12px; }
.section-head .text-link { margin-left: auto; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.thumb {
  display: block;
  position: relative;
  height: 132px;
  background: linear-gradient(135deg, #c5b19a, #6f7d79 55%, #34444e);
  border-radius: 3px;
}
.thumb-duration { position: absolute; right: 8px; bottom: 8px; background: #171b1f; color: #fff; font-size: 10px; padding: 3px 6px; border-radius: 2px; }
.card b { line-height: 1.35; }
.card-meta { color: var(--muted); font-size: 10px; }
.badge { align-self: flex-start; margin-top: 4px; background: var(--gold-soft); color: var(--gold-dark); font-size: 9px; padding: 3px 8px; border-radius: 10px; }
.empty { color: var(--muted); }

.constellation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.constellation {
  display: flex;
  justify-content: space-between;
  min-height: 150px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.constellation b { font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.constellation small { color: var(--muted); }
.arrow { color: var(--gold); font-size: 20px; }
.constellation-image { width: 74px; background: linear-gradient(150deg, #d9c8ae, #8c7c6a); }

.promo-row { display: grid; grid-template-columns: 1fr 180px 1fr 180px; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.promo-card b { font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.promo-card p { color: var(--muted); font-size: 12px; max-width: 320px; }
.promo-image { background: linear-gradient(135deg, #cbb79b, #5a5147); }
.promo-image.books { background: linear-gradient(135deg, #8c7a63, #2f2a24); }
.promo-image.whale { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 60px; background: linear-gradient(150deg, #b9c4c8, #5d6f74); }

.subscribe { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 30px; align-items: center; background: var(--gold-soft); padding: 26px 30px; margin-top: 34px; }
.subscribe b { font-family: Georgia, serif; font-size: 24px; font-weight: 400; }

.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 30px 24px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; gap: 60px; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-note { color: var(--muted); font-size: 10px; margin-left: 10px; }
.footer-column { display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
.footer-column b { color: var(--gold-dark); }
.footer-socials { margin-left: auto; display: flex; gap: 14px; font-size: 16px; }

.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.player { width: 100%; aspect-ratio: 16 / 9; background: #171b1f; border-radius: 4px; }
.patron-bar { background: var(--paper); border: 1px solid var(--line); padding: 8px 12px; font-size: 11px; color: var(--muted); margin-top: 8px; }
.watch-page h1 { font-family: Georgia, serif; font-size: 32px; font-weight: 400; margin: 22px 0 10px; }
.watch-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.watch-actions { display: flex; align-items: center; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.chip { background: var(--gold-soft); color: var(--gold-dark); padding: 5px 10px; border-radius: 12px; font-size: 10px; }
.action { color: var(--gold-dark); font-size: 11px; }
.watch-columns { display: grid; grid-template-columns: 1fr 240px; gap: 24px; margin-top: 16px; }
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 8px; font-size: 12px; }
.tabs span { color: var(--muted); }
.description { line-height: 1.7; color: #4b453e; }
.transcript { border: 1px solid var(--line); padding: 12px; font-size: 11px; }
.transcript p { margin: 6px 0; color: var(--muted); }
.support-card { border: 1px solid var(--line); background: var(--paper); padding: 14px; font-size: 11px; }
.support-card b { display: block; margin-bottom: 10px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 8px; }
.amounts span { border: 1px solid var(--line); padding: 6px 0; text-align: center; }
.amounts .is-active { background: var(--gold); color: #fff; border-color: var(--gold); }
.support-card input[type="text"] { width: 100%; padding: 7px; border: 1px solid var(--line); margin-bottom: 8px; }
.support-card .btn { width: 100%; margin: 8px 0; }
.support-card small { color: var(--muted); display: block; line-height: 1.5; }

.side-card { background: var(--paper); border: 1px solid var(--line); padding: 14px; margin-bottom: 14px; font-size: 11px; }
.side-card > div { display: flex; flex-direction: column; gap: 6px; color: var(--gold-dark); }
.author-card { text-align: center; }
.author-card > b, .author-card > small { display: block; }
.search-result { color: var(--muted); margin: 0 0 20px; }
.author-stats { display: flex; justify-content: space-around; margin: 12px 0; }
.author-stats span { display: flex; flex-direction: column; }
.author-stats small { color: var(--muted); }
.side-video { display: flex; gap: 10px; margin: 12px 0; }
.side-thumb { width: 90px; height: 58px; flex: none; background: linear-gradient(135deg, #c5b19a, #5c6b70); color: #fff; font-size: 9px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 4px; }
.side-video small { display: block; color: var(--muted); margin-top: 3px; }

.upload-page h1 { font-family: Georgia, serif; font-size: 34px; font-weight: 400; }
.lead { color: var(--muted); }
.upload-form { max-width: 620px; background: var(--paper); border: 1px solid var(--line); padding: 24px; }
.upload-form p { display: flex; flex-direction: column; gap: 6px; }
.upload-form label { font-weight: 600; font-size: 12px; }
.upload-form input, .upload-form textarea, .upload-form select { padding: 9px; border: 1px solid var(--line); background: var(--cream); font: inherit; }

@media (max-width: 1000px) {
  .main-nav, .brand-tagline, .brand-divider { display: none; }
  .hero, .watch-grid, .watch-columns { grid-template-columns: 1fr; }
  .card-grid, .constellation-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .promo-row, .subscribe { grid-template-columns: 1fr; }
}
