:root {
  --ink: #18201d;
  --muted: #66706b;
  --paper: #f5f2eb;
  --card: #fffdf8;
  --line: #dcd7cd;
  --green: #315d4e;
  --green-dark: #21463a;
  --accent: #cb7047;
  --shadow: 0 18px 48px rgba(28, 45, 38, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header {
  height: 84px;
  padding: 0 clamp(24px, 6vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(49, 93, 78, .18);
  background: rgba(245, 242, 235, .9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  color: #fff; background: var(--green); border-radius: 50%;
  font-family: "Noto Serif SC", serif; font-size: 20px;
}
.brand strong { display: block; font-family: "Noto Serif SC", serif; letter-spacing: .12em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; letter-spacing: .16em; }
nav { display: flex; gap: 42px; font-size: 14px; }
nav a { padding: 31px 0 27px; border-bottom: 3px solid transparent; }
nav a.active, nav a:hover { color: var(--green); border-color: var(--green); }
.saved-button {
  border: 1px solid var(--green); border-radius: 999px; padding: 8px 15px;
  color: var(--green); background: transparent; cursor: pointer;
}
.saved-button span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; color: #fff; background: var(--green); border-radius: 50%; font-size: 11px; }

.hero {
  min-height: 640px;
  padding: 72px clamp(24px, 8vw, 130px) 96px;
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(440px, 1.15fr);
  align-items: center;
  gap: clamp(56px, 8vw, 130px);
  background: radial-gradient(circle at 78% 18%, rgba(82, 121, 103, .18), transparent 31%), var(--paper);
}
.eyebrow { margin: 0 0 19px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.hero h1, .section-heading h2, .about h2 {
  margin: 0; font-family: "Noto Serif SC", serif; font-weight: 700;
}
.hero h1 { font-size: clamp(42px, 5.3vw, 76px); line-height: 1.25; letter-spacing: -.045em; }
.hero h1 em { color: var(--green); font-style: normal; position: relative; }
.hero h1 em::after { content: ""; position: absolute; height: 8px; left: 2%; right: 0; bottom: 4px; background: rgba(203, 112, 71, .28); z-index: -1; }
.hero-intro { max-width: 500px; margin: 28px 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.primary-action { display: inline-flex; align-items: center; gap: 34px; padding: 13px 20px; color: #fff; background: var(--green); font-size: 14px; }
.primary-action:hover { background: var(--green-dark); }
.featured-card { background: var(--card); box-shadow: var(--shadow); }
.featured-visual {
  width: 100%; min-height: 360px; border: 0; position: relative; cursor: pointer;
  color: white;
  background:
    linear-gradient(135deg, rgba(13, 36, 29, .14), rgba(13, 36, 29, .72)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1400&q=80") center/cover;
}
.feature-number, .duration { position: absolute; top: 20px; font-size: 11px; letter-spacing: .14em; }
.feature-number { left: 22px; }.duration { top: auto; right: 20px; bottom: 18px; padding: 5px 8px; background: rgba(0,0,0,.55); }
.play-button { width: 68px; height: 68px; display: grid; place-items: center; padding-left: 5px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(255,255,255,.15); backdrop-filter: blur(8px); font-size: 18px; transition: transform .25s; }
.featured-visual:hover .play-button { transform: scale(1.08); }
.featured-content { padding: 28px 32px 32px; }
.tag { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.featured-content h2 { margin: 9px 0 7px; font: 700 23px/1.5 "Noto Serif SC", serif; }
.featured-content p { margin: 0; color: var(--muted); font-size: 13px; }

.watchlist { padding: 100px clamp(24px, 8vw, 130px) 120px; background: #fcfaf5; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading h2 { font-size: clamp(34px, 4vw, 50px); }
.search-box { width: min(310px, 100%); display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.search-box svg { width: 19px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.filter-row { display: flex; gap: 8px; margin: 42px 0 36px; overflow-x: auto; }
.filter { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; white-space: nowrap; font-size: 13px; }
.filter.active, .filter:hover { color: white; border-color: var(--green); background: var(--green); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px 24px; }
.video-card { min-width: 0; }
.video-thumbnail { aspect-ratio: 16/10; position: relative; overflow: hidden; background: #d9ddd8; cursor: pointer; }
.video-thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s, filter .5s; }
.video-card:hover img { transform: scale(1.035); filter: brightness(.88); }
.card-play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s; color: #fff; font-size: 16px; }
.card-play::before { content: ""; width: 52px; height: 52px; position: absolute; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(20,40,32,.48); }
.card-play span { position: relative; margin-left: 3px; }
.video-card:hover .card-play, .video-thumbnail:focus-visible .card-play { opacity: 1; }
.card-duration { position: absolute; right: 10px; bottom: 9px; padding: 3px 6px; color: white; background: rgba(0,0,0,.65); font-size: 10px; }
.card-body { padding-top: 16px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.save { width: 27px; height: 27px; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 19px; }
.save.saved { color: var(--accent); }
.card-body h3 { margin: 7px 0 7px; font: 600 18px/1.55 "Noto Serif SC", serif; }
.card-body p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.empty-state { padding: 60px 0; color: var(--muted); text-align: center; }

.about { padding: 100px clamp(24px, 14vw, 220px); display: grid; grid-template-columns: .55fr 1.45fr; gap: 50px; color: white; background: var(--green-dark); }
.about h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.45; }
.about div p { max-width: 650px; margin: 28px 0 0; color: rgba(255,255,255,.65); line-height: 1.9; }
footer { padding: 42px clamp(24px, 8vw, 130px); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 11px; }
.footer-brand .brand-mark { width: 30px; height: 30px; font-size: 15px; }

dialog { width: min(960px, calc(100% - 32px)); padding: 0; border: 0; color: white; background: #0d1512; box-shadow: 0 30px 100px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(11, 18, 15, .82); backdrop-filter: blur(8px); }
.dialog-header { height: 55px; padding: 0 16px 0 22px; display: flex; align-items: center; justify-content: space-between; }
.dialog-header h2 { margin: 0; font-size: 14px; font-weight: 500; }
.dialog-header button { border: 0; color: white; background: transparent; cursor: pointer; font-size: 30px; font-weight: 200; }
.video-frame { aspect-ratio: 16/9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; gap: 50px; }
  .hero-copy { max-width: 650px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-header { height: 70px; padding-inline: 18px; }
  .brand small { display: none; }
  .saved-button { font-size: 12px; }
  .hero { min-height: auto; padding: 52px 20px 70px; }
  .hero h1 { font-size: 42px; }
  .featured-visual { min-height: 250px; }
  .watchlist { padding: 72px 20px 85px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .search-box { width: 100%; }
  .filter-row { margin-top: 30px; }
  .video-grid { grid-template-columns: 1fr; }
  .about { padding: 75px 24px; }
  footer { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
