:root {
  --bg: #fff7ed;
  --bg-strong: #ffedd5;
  --panel: #ffffff;
  --ink: #3b2208;
  --muted: #8a5b25;
  --soft: #b7791f;
  --brand: #d97706;
  --brand-dark: #b45309;
  --brand-light: #f59e0b;
  --line: rgba(146, 64, 14, 0.16);
  --shadow: 0 18px 55px rgba(146, 64, 14, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #fffbeb 46%, #fff7ed 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 247, 237, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  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: #78350f;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 15px;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.32);
}

.brand-text {
  font-size: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 15px;
  color: #7c4a13;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.25);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.12);
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: #78350f;
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #1c1107;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 55%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: 24px;
  bottom: 70px;
  max-width: 760px;
  color: #ffffff;
}

.hero-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  color: #ffffff;
  background: var(--brand);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #ffedd5;
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(217, 119, 6, 0.28);
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
}

.btn.ghost {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.btn.soft {
  color: #92400e;
  background: #ffedd5;
  box-shadow: none;
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  transform: translateY(-50%);
  transition: 0.25s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.58);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  transition: 0.25s ease;
}

.hero-dots button.active {
  width: 34px;
  background: #f59e0b;
}

.main-content,
.page-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.section {
  margin-bottom: 64px;
}

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

.section-title h2,
.page-hero h1,
.detail-copy h2 {
  margin: 0;
  color: #78350f;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}

.section-title p,
.page-hero p,
.detail-copy p {
  margin: 8px 0 0;
  color: var(--muted);
}

.title-line {
  width: 80px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d97706, #fb923c);
}

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

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

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

.movie-card {
  min-width: 0;
}

.card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(146, 64, 14, 0.10);
  transition: 0.28s ease;
}

.card-link:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s ease;
}

.card-link:hover img {
  transform: scale(1.07);
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: 0.25s ease;
}

.card-link:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 38px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
  font-size: 14px;
}

.card-body {
  flex: 1;
  padding: 18px;
}

.card-body.compact {
  padding: 14px;
}

.card-meta,
.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 9px 0 8px;
  overflow: hidden;
  color: #78350f;
  font-size: 18px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row,
.detail-tags,
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.detail-tags span,
.category-strip a {
  padding: 5px 10px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.feature-panel,
.category-panel,
.page-hero,
.player-panel,
.copy-panel {
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.84), rgba(255, 251, 235, 0.96));
  box-shadow: var(--shadow);
}

.feature-panel {
  padding: clamp(24px, 5vw, 44px);
}

.category-panel {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 30px;
  padding: clamp(22px, 4vw, 36px);
}

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

.category-card {
  display: block;
  padding: 18px;
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  transition: 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.13);
}

.category-card strong {
  display: block;
  color: #78350f;
  font-size: 18px;
}

.category-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 88px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(146, 64, 14, 0.08);
  transition: 0.22s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.14);
}

.rank-number {
  color: #c2410c;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 88px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  background: #fed7aa;
}

.rank-info strong {
  display: block;
  color: #78350f;
}

.rank-info em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-action {
  padding: 8px 12px;
  color: #ffffff;
  background: var(--brand);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  padding: clamp(28px, 5vw, 54px);
  margin-bottom: 28px;
}

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

.breadcrumb a {
  color: #b45309;
  font-weight: 700;
}

.category-strip {
  margin: 20px 0 30px;
}

.category-strip a {
  padding: 9px 14px;
  transition: 0.22s ease;
}

.category-strip a:hover {
  color: #ffffff;
  background: var(--brand);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  padding: 16px;
  margin: 24px 0 28px;
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select,
.hero-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(146, 64, 14, 0.18);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #ffffff;
  padding: 0 14px;
}

.filter-bar input:focus,
.filter-bar select:focus,
.hero-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

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

.hero-search input {
  border-radius: 999px;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 24px;
  align-items: start;
}

.player-panel,
.copy-panel {
  padding: clamp(18px, 3vw, 28px);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #0f0904;
  box-shadow: 0 24px 70px rgba(60, 25, 5, 0.36);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f0904;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12));
}

.play-overlay.hidden {
  display: none;
}

.play-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 18px 45px rgba(217, 119, 6, 0.38);
  font-size: 28px;
}

.play-overlay strong {
  display: block;
  font-size: 18px;
}

.detail-side {
  display: grid;
  gap: 18px;
}

.poster-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fed7aa;
  box-shadow: var(--shadow);
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-title {
  margin: 22px 0 10px;
  color: #78350f;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.12;
}

.detail-intro {
  color: var(--muted);
  font-size: 18px;
}

.detail-copy {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

.copy-panel h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.copy-panel p {
  color: #704214;
}

.related-section {
  margin-top: 46px;
}

.site-footer {
  color: #ffedd5;
  background: linear-gradient(135deg, #3b2208, #78350f);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 28px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.footer-inner p {
  margin: 10px 0 0;
  color: #fed7aa;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  color: #fed7aa;
  border-top: 1px solid rgba(255, 237, 213, 0.16);
  font-size: 13px;
}

.hidden-card {
  display: none !important;
}

@media (max-width: 980px) {
  .movie-grid,
  .movie-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-panel,
  .watch-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 247, 237, 0.98);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero-slider {
    height: 540px;
  }

  .hero-content {
    left: 20px;
    bottom: 64px;
  }

  .hero-content p {
    font-size: 16px;
  }

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

  .hero-control {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.three,
  .movie-grid.two,
  .category-list {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 40px 70px 1fr;
  }

  .rank-row img {
    width: 70px;
    height: 48px;
  }

  .rank-action {
    display: none;
  }
}
