:root {
  --black: #0d0d0f;
  --black-soft: #151517;
  --panel: #1d1d20;
  --panel-light: #252529;
  --red: #d62828;
  --red-dark: #a91f1f;
  --white: #ffffff;
  --muted: #b9b9bf;
  --soft: #e7e7eb;
  --border: rgba(255,255,255,0.11);
  --shadow: 0 24px 80px rgba(0,0,0,0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: 'Montserrat', Arial, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 42px;
  background: rgba(13, 13, 15, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand img { display: block; width: min(320px, 46vw); height: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav a,
.nav-search {
  color: var(--soft);
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-search:hover { color: var(--red); }

.view { display: none; }
.view--active { display: block; }

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  padding: 120px 28px;
  overflow: hidden;
  background: linear-gradient(115deg, rgba(0,0,0,0.92), rgba(0,0,0,0.45)), url('Cinematic-China.webp') center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, var(--black));
  pointer-events: none;
}

.hero__content { position: relative; z-index: 1; max-width: 980px; text-align: center; }

.eyebrow {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__copy { max-width: 780px; margin: 0 auto 34px; color: var(--soft); font-size: clamp(1.05rem, 2.4vw, 1.45rem); }
.hero__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--red); color: var(--white); }
.button--primary:hover { background: var(--red-dark); }
.button--ghost { border-color: var(--border); background: rgba(255,255,255,0.06); color: var(--white); }

.section { padding: 86px 42px; max-width: 1240px; margin: 0 auto; }
.section__heading { max-width: 850px; margin-bottom: 34px; }
.section h2 { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.02; letter-spacing: -0.05em; }

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.panel { background: linear-gradient(145deg, var(--panel), var(--black-soft)); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: 28px; }
.panel h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 12px; }
.panel p, .site-footer { color: var(--muted); }
.collaborate .panel { display: grid; gap: 24px; }

.search-view { min-height: 100vh; background: #080809; }
.search-hero {
  position: sticky;
  top: 76px;
  z-index: 900;
  padding: 22px 42px 18px;
  background: linear-gradient(180deg, rgba(8,8,9,0.98), rgba(8,8,9,0.92));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.search-bar-row { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 16px; align-items: end; max-width: 1400px; margin: 0 auto 14px; }
.search-filter-row { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 16px; align-items: end; max-width: 1400px; margin: 0 auto; }
.search-box label, .select-box label { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.search-box input, .select-box select { width: 100%; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--white); padding: 14px 18px; outline: none; }
.search-box--large input { min-height: 56px; font-size: clamp(1.05rem, 2vw, 1.35rem); padding-left: 22px; }
.search-box input:focus, .select-box select:focus { border-color: var(--red); }
.select-box select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--red) 50%), linear-gradient(135deg, var(--red) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 15px) 50%; background-size: 7px 7px, 7px 7px; background-repeat: no-repeat; }

.tag-cloud { display: flex; gap: 10px; flex-wrap: wrap; max-height: 94px; overflow: auto; padding-bottom: 2px; }
.tag-filter, .tag-link { border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: var(--soft); padding: 9px 13px; border-radius: 999px; cursor: pointer; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.tag-filter.active, .tag-filter:hover, .tag-link:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.results-shell { max-width: 1500px; margin: 0 auto; padding: 46px 42px 92px; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.results-heading h1, .results-heading h2 { font-size: clamp(2rem, 4vw, 4.6rem); line-height: 0.98; letter-spacing: -0.06em; }
.results-heading--small h2 { font-size: clamp(1.8rem, 3vw, 3.2rem); }
.result-count, .empty-state, .error-state { color: var(--muted); }
.error-state { padding: 18px; border: 1px solid rgba(214,40,40,0.45); background: rgba(214,40,40,0.12); border-radius: 18px; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tile-grid--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.video-tile { text-align: left; color: var(--white); background: #151517; border: 1px solid transparent; border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: 0 18px 44px rgba(0,0,0,0.32); transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.video-tile:hover { transform: translateY(-5px) scale(1.015); border-color: rgba(255,255,255,0.24); background: #1f1f23; }
.video-tile__poster { position: relative; aspect-ratio: 16 / 9; background: #000 center/cover no-repeat; }
.video-tile__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.72)); opacity: 0.95; }
.play-pill { position: absolute; left: 14px; bottom: 12px; z-index: 1; background: rgba(214,40,40,0.92); color: #fff; border-radius: 999px; padding: 8px 12px; font-size: 0.74rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.video-tile__body { padding: 16px; }
.video-label { color: var(--red); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 6px; }
.video-tile h3 { font-size: 1.05rem; line-height: 1.14; margin-bottom: 8px; }
.video-meta { color: var(--muted); font-size: 0.84rem; }
.mini-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mini-tags span { color: var(--soft); background: rgba(255,255,255,0.08); border-radius: 999px; padding: 5px 8px; font-size: 0.68rem; font-weight: 700; }

.video-detail { min-height: 100vh; background: #050506; }
.video-detail__backbar { position: sticky; top: 76px; z-index: 850; padding: 14px 42px; background: rgba(5,5,6,0.9); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); }
.watch-page { max-width: 1540px; margin: 0 auto; padding: 28px 42px 90px; }
.watch-hero { display: grid; grid-template-columns: minmax(320px, 1.6fr) minmax(280px, 0.8fr); gap: 34px; align-items: center; }
.watch-hero__video { background: #000; border-radius: 22px; overflow: hidden; box-shadow: 0 32px 90px rgba(0,0,0,0.55); border: 1px solid var(--border); }
.watch-hero__video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.watch-hero__info h1 { font-size: clamp(2.2rem, 4.8vw, 5.6rem); line-height: 0.95; letter-spacing: -0.07em; margin-bottom: 18px; }
.watch-meta { color: var(--soft); font-weight: 800; margin-bottom: 18px; }
.watch-blurb { color: var(--muted); font-size: 1.08rem; max-width: 720px; }
.category-list, .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.category-list span { color: var(--white); background: rgba(255,255,255,0.08); border: 1px solid var(--border); padding: 7px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; }
.watch-tags, .more-like-this { margin-top: 48px; }
.watch-tags h2 { font-size: 1.4rem; margin-bottom: 14px; }

.site-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 34px 42px; background: #080809; border-top: 1px solid var(--border); }
.site-footer a { color: var(--red); }
[hidden] { display: none !important; }

@media (max-width: 980px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 18px 24px; }
  .main-nav { width: 100%; overflow-x: auto; gap: 18px; font-size: 0.78rem; padding-bottom: 4px; }
  .section, .site-footer, .search-hero, .results-shell, .video-detail__backbar, .watch-page { padding-left: 24px; padding-right: 24px; }
  .about-grid, .search-bar-row, .search-filter-row, .watch-hero { grid-template-columns: 1fr; display: grid; }
  .search-hero, .video-detail__backbar { top: 117px; }
  .results-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 620px) {
  .hero { min-height: 78vh; padding: 100px 20px; }
  .site-footer { display: block; }
  .tile-grid { grid-template-columns: 1fr; }
  .search-hero { position: static; }
  .video-detail__backbar { position: static; }
}
