:root {
  --primary: #ee7f38;
  --primary-dark: #d96c24;
  --primary-soft: #fff1e7;
  --accent: #eab308;
  --accent-soft: #fef9c3;
  --secondary: #433f3c;
  --secondary-soft: #78716c;
  --warm-50: #fdf8f6;
  --warm-100: #f2e8e5;
  --warm-200: #eaded8;
  --surface: #ffffff;
  --ink: #292524;
  --muted: #78716c;
  --line: #eaded8;
  --shadow: 0 18px 45px rgba(67, 63, 60, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--warm-50);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(234, 222, 216, 0.8);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--secondary);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 24px rgba(238, 127, 56, 0.28);
}

.brand-text {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--secondary-soft);
}

.nav-link {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--warm-100);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--secondary);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--warm-100);
  color: var(--secondary);
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  color: #fff;
  background: #1f1a17;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 690px;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  display: block;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 26, 23, 0.92), rgba(31, 26, 23, 0.68) 44%, rgba(31, 26, 23, 0.18));
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(0deg, var(--warm-50), rgba(253, 248, 246, 0));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
  padding: 62px 0 94px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff8ed;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  font-weight: 700;
  font-size: 14px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-site-title {
  margin: 0 0 12px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.12;
  font-weight: 900;
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 30px rgba(238, 127, 56, 0.28);
}

.btn-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  color: var(--primary);
  border-color: var(--line);
  background: #fff;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 620px;
  margin: 28px 0 0;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
}

.hero-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 0 14px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
  border: 0;
  cursor: pointer;
}

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-poster {
  width: min(390px, 88%);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
}

.hero-chip {
  position: absolute;
  left: 6%;
  bottom: 8%;
  padding: 14px 18px;
  border-radius: 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.section,
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 62px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--secondary);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
}

.section-desc {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.movie-grid.is-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(234, 222, 216, 0.8);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(67, 63, 60, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--secondary);
}

.movie-card.is-large .poster-link {
  aspect-ratio: 16 / 9;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.movie-card:hover .poster-link img,
.compact-card:hover img,
.related-card:hover img,
.category-card:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 58%);
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.card-body {
  padding: 18px;
}

.card-meta {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.card-body h3 {
  margin: 8px 0 8px;
  color: var(--secondary);
  font-size: 20px;
  line-height: 1.32;
}

.card-body p {
  margin: 0;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #8a5a10;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: var(--secondary);
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.42s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(31, 26, 23, 0.88), rgba(31, 26, 23, 0.16));
}

.category-card div {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 26px;
}

.compact-list {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: auto 112px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(234, 222, 216, 0.85);
  box-shadow: 0 14px 34px rgba(67, 63, 60, 0.08);
}

.rank-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.compact-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: var(--secondary);
}

.compact-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.compact-card h3 {
  margin: 0 0 6px;
  color: var(--secondary);
  font-size: 18px;
}

.compact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  margin: 36px auto 28px;
  padding: 42px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(234, 179, 8, 0.36), transparent 34%), linear-gradient(135deg, #3b302b, #1f1a17 70%);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 900;
}

.page-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.filter-panel {
  margin: 24px 0 30px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(234, 222, 216, 0.88);
  box-shadow: 0 16px 42px rgba(67, 63, 60, 0.08);
}

.filter-search input,
.filter-selects select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: var(--warm-50);
  color: var(--secondary);
}

.filter-search input {
  padding: 0 16px;
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.filter-selects label span {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-selects select {
  padding: 0 12px;
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: 18px;
}

.empty-state.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.sidebar-card {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(234, 222, 216, 0.88);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.play-launcher {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
  cursor: pointer;
}

.play-launcher[hidden] {
  display: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  font-size: 34px;
  padding-left: 6px;
}

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-title {
  margin: 0 0 14px;
  color: var(--secondary);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 900;
}

.detail-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.detail-card h2,
.sidebar-card h2 {
  margin: 28px 0 12px;
  color: var(--secondary);
  font-size: 24px;
  font-weight: 900;
}

.detail-card p {
  color: #57534e;
  font-size: 17px;
}

.sidebar-card {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: var(--warm-50);
}

.related-card img {
  width: 112px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.related-card h3 {
  margin: 0 0 6px;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.32;
}

.related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 80px;
  color: rgba(255, 255, 255, 0.8);
  background: #332d29;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  padding: 46px 0;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
}

.footer-inner p {
  max-width: 520px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 1060px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero-inner,
  .ranking-layout,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    display: none;
  }

  .movie-grid,
  .movie-grid.is-wide,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 64px;
  }

  .hero,
  .hero-slide,
  .hero-inner {
    min-height: 650px;
  }

  .hero-inner {
    padding: 44px 0 92px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .hero-search input {
    min-height: 46px;
  }

  .hero-controls {
    bottom: 22px;
  }

  .section {
    padding: 42px 0;
  }

  .section-header {
    display: block;
  }

  .movie-grid,
  .movie-grid.is-wide,
  .category-grid,
  .filter-selects {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: auto 88px 1fr;
  }

  .page-hero,
  .detail-card {
    padding: 24px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
