:root {
  --bg: #0c1110;
  --bg-soft: #111915;
  --panel: rgba(19, 25, 22, 0.88);
  --panel-2: rgba(25, 33, 29, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3efe7;
  --muted: #c4b8a6;
  --muted-2: #8f9a92;
  --canyon: #d96840;
  --earth: #b88d55;
  --moss: #7d8e61;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-lg: 30px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 14%, rgba(217, 104, 64, 0.18), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(125, 142, 97, 0.16), transparent 26%),
    radial-gradient(circle at 50% 0%, rgba(184, 141, 85, 0.12), transparent 34%),
    linear-gradient(180deg, #0b100e 0%, #0e1311 48%, #0b100e 100%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(10, 15, 13, 0.68);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(217,104,64,.95), rgba(184,141,85,.92));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(217,104,64,.25);
}
.brand-text { display: grid; min-width: 0; }
.brand-text strong {
  font-size: 1rem;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text em {
  font-style: normal;
  color: var(--muted-2);
  font-size: .82rem;
}
.main-nav { display: flex; gap: 10px; align-items: center; }
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: .24s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  border-color: rgba(255,255,255,.11);
  background: rgba(255,255,255,.05);
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.03);
}
.hero {
  padding: 28px 0 10px;
}
.hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 75% 20%, rgba(217,104,64,.32), transparent 20%),
    radial-gradient(circle at 15% 30%, rgba(125,142,97,.25), transparent 18%),
    linear-gradient(135deg, rgba(23,31,27,.92), rgba(11,16,14,.96));
  box-shadow: var(--shadow);
}
.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,.06), transparent 28%, rgba(255,255,255,.03) 55%, transparent 80%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .95fr;
  gap: 26px;
  padding: 30px;
}
.hero-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #eedfc4;
  border: 1px solid rgba(255,255,255,.09);
  font-size: .88rem;
}
.hero-title {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.hero-title span { color: #ffd4bf; }
.hero-desc {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.04rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.04);
  color: #fff;
  transition: .24s ease;
}
.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--canyon), var(--earth));
  box-shadow: 0 16px 28px rgba(217,104,64,.18);
}
.btn:hover { transform: translateY(-1px); }
.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.search-bar input {
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  padding: 0 10px;
}
.search-bar input::placeholder { color: rgba(255,255,255,.45); }
.search-bar button {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--canyon), var(--earth));
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stat {
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.stat strong { display: block; font-size: 1.2rem; }
.stat span { color: var(--muted-2); font-size: .84rem; }
.hero-rail {
  display: grid;
  gap: 14px;
  align-self: center;
}
.hero-feature {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
}
.hero-feature .poster-wrap {
  position: absolute;
  inset: 0;
}
.hero-feature .poster-wrap img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.03) contrast(1.02); }
.hero-feature .overlay {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, transparent 8%, rgba(7,10,9,.12) 38%, rgba(7,10,9,.88) 100%);
}
.hero-feature h2 { margin: 0 0 8px; font-size: 1.7rem; }
.hero-feature p { margin: 0 0 16px; color: rgba(255,255,255,.8); }
.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hero-mini-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  min-height: 162px;
}
.hero-mini-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-mini-card .mini-overlay {
  position: absolute;
  inset: 0;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, transparent 18%, rgba(7,10,9,.78) 100%);
}
.hero-mini-card .mini-overlay strong { display: block; font-size: .98rem; }
.hero-mini-card .mini-overlay span { color: rgba(255,255,255,.76); font-size: .8rem; }
.section { padding: 26px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 1.5rem; }
.section-head p { margin: 0; color: var(--muted-2); }
.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  transition: transform .24s ease, border-color .24s ease, background .24s ease;
}
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217,104,64,.22);
  background: rgba(30, 37, 33, .98);
}
.movie-link { display: block; height: 100%; }
.movie-poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.movie-year {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  background: rgba(10, 15, 13, 0.65);
  border: 1px solid rgba(255,255,255,.12);
}
.movie-body { padding: 16px 16px 18px; }
.movie-body h3 {
  margin: 0 0 6px;
  font-size: 1.03rem;
  line-height: 1.35;
}
.movie-meta,
.movie-summary {
  margin: 0;
  color: var(--muted-2);
  font-size: .88rem;
}
.movie-meta { margin-bottom: 8px; }
.movie-summary { min-height: 3em; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #efe4d2;
  font-size: .78rem;
}
.section-card,
.panel {
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.08);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.panel { padding: 18px; }
.split-layout {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 18px;
}
.list-stack { display: grid; gap: 14px; }
.rank-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.rank-index {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(217,104,64,.2), rgba(184,141,85,.2));
  border: 1px solid rgba(255,255,255,.08);
}
.rank-item h3 { margin: 0 0 4px; font-size: 1rem; }
.rank-item p { margin: 0; color: var(--muted-2); font-size: .86rem; }
.rank-item .go { color: #ffd4bf; font-size: .88rem; }
.detail-hero {
  padding: 28px 0 12px;
}
.breadcrumb { color: var(--muted-2); font-size: .9rem; margin-bottom: 12px; }
.detail-shell {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  padding: 22px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(18, 24, 21, 0.94);
  box-shadow: var(--shadow);
}
.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.detail-poster img { width: 100%; height: auto; }
.detail-main h1 { margin: 0 0 10px; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.08; }
.detail-main p { margin: 0; }
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
}
.detail-stats .chip { background: rgba(255,255,255,.06); }
.detail-copy { color: var(--muted); margin-bottom: 18px; }
.watch-box {
  margin-top: 20px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.watch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.watch-toolbar strong { font-size: 1rem; }
.player-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,.1);
}
.player-wrap video {
  width: 100%;
  max-height: 600px;
  background: #000;
  display: block;
}
.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.46));
  pointer-events: none;
}
.play-btn {
  pointer-events: auto;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 999px;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--canyon), var(--earth));
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.story-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr .9fr;
  margin-top: 18px;
}
.story-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.story-card h2 { margin: 0 0 12px; font-size: 1.16rem; }
.story-card p { color: var(--muted); margin: 0 0 10px; }
.story-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.category-hero {
  padding: 24px 0 10px;
}
.category-intro {
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(21,28,24,.96), rgba(12,17,16,.94));
  box-shadow: var(--shadow);
}
.category-intro h1 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3.4rem); }
.category-intro p { margin: 0; color: var(--muted); max-width: 70ch; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.toolbar select,
.toolbar input {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #fff;
  padding: 0 14px;
}
.toolbar input::placeholder { color: rgba(255,255,255,.4); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  padding: 18px;
}
.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(217,104,64,.26), transparent 24%), radial-gradient(circle at 20% 80%, rgba(125,142,97,.18), transparent 22%);
  pointer-events: none;
}
.category-card h3 { position: relative; margin: 0 0 6px; font-size: 1.22rem; }
.category-card p,
.category-card span { position: relative; color: var(--muted); }
.category-card .count { display: block; margin-top: 10px; color: #fff; font-weight: 700; }
.site-footer {
  margin-top: 34px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 11, 0.65);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1fr;
  gap: 24px;
}
.footer-brand { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.footer-grid h4 { margin: 0 0 10px; }
.footer-grid p { margin: 0; color: var(--muted-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.footer-links a { color: #efe4d2; }
.section-note { color: var(--muted-2); }
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--muted);
}
.search-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.search-empty {
  padding: 40px;
  border-radius: 24px;
  border: 1px dashed rgba(255,255,255,.14);
  color: var(--muted-2);
  text-align: center;
}
.small { font-size: .92rem; }
.muted { color: var(--muted-2); }
.hero-mini-card, .hero-feature, .movie-card, .category-card, .rank-item { transform: translateZ(0); }
@media (max-width: 1080px) {
  .grid-cards, .search-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-layout, .story-grid, .detail-shell, .hero-grid { grid-template-columns: 1fr; }
  .hero-feature .overlay { min-height: 360px; }
}
@media (max-width: 760px) {
  .container { width: min(1240px, calc(100% - 20px)); }
  .nav-toggle { display: inline-grid; place-items: center; }
  .main-nav {
    position: absolute;
    top: 76px;
    left: 10px;
    right: 10px;
    display: none;
    flex-direction: column;
    padding: 12px;
    border-radius: 20px;
    background: rgba(12,17,15,.96);
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .grid-cards, .search-results, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .detail-shell, .story-grid { padding: 18px; }
  .hero-shell { border-radius: 26px; }
  .hero-mini-grid { grid-template-columns: 1fr; }
  .search-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .rank-item { grid-template-columns: 44px 1fr; }
  .rank-item .go { grid-column: 2; }
}
@media (max-width: 540px) {
  .grid-cards, .search-results, .category-grid { grid-template-columns: 1fr; }
  .hero-grid, .detail-shell { padding: 16px; }
}
