:root {
  --amber-50: #fff8e6;
  --amber-100: #ffefc2;
  --amber-200: #fedf8a;
  --amber-300: #fdc95b;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-600: #ea580c;
  --black: #140d05;
  --text: #2b2118;
  --muted: #6f6258;
  --line: rgba(146, 64, 14, 0.18);
  --card: #fffdf8;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--amber-50), #fffaf1 48%, #fff7ed);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 230, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 35px rgba(120, 53, 15, 0.08);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.32);
}

.brand-name {
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(90deg, var(--amber-900), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--amber-800);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #fff;
  background: var(--amber-600);
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  width: min(320px, 26vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.top-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 12px 10px 16px;
  background: transparent;
}

.top-search button {
  border: 0;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 800;
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--amber-800);
  background: var(--amber-100);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--amber-900);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 28%, rgba(253, 201, 91, 0.18), transparent 32%),
    linear-gradient(90deg, rgba(69, 26, 3, 0.94), rgba(146, 64, 14, 0.72) 48%, rgba(20, 13, 5, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 560px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 760px;
  color: var(--amber-50);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-500);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.04;
  font-weight: 950;
  text-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 24px;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--amber-100);
}

.hero-tags,
.tag-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.text-link,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.35);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  color: var(--amber-50);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-card {
  position: relative;
  border-radius: 28px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
}

.hero-card span {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  color: #fff;
  font-weight: 900;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  background: var(--amber-300);
}

.section-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 0;
}

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

.section-heading.centered {
  display: block;
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2,
.page-hero h1,
.detail-content h1 {
  margin: 0;
  color: var(--amber-900);
  font-weight: 950;
  line-height: 1.12;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-link,
.text-link {
  color: var(--amber-800);
  background: var(--amber-100);
}

.filter-bar,
.search-page-form {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.filter-bar input,
.filter-bar select,
.search-page-form input {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text);
  background: #fff;
}

.search-page-form {
  grid-template-columns: 1fr 140px;
  margin-bottom: 32px;
}

.search-page-form button {
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 900;
}

.sticky-filter {
  position: sticky;
  top: 84px;
  z-index: 8;
  margin-bottom: 26px;
}

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

.large-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 26px 55px rgba(120, 53, 15, 0.18);
}

.movie-poster {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--amber-100);
}

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

.movie-card:hover .movie-poster img,
.category-tile:hover img,
.category-cover:hover img,
.side-poster:hover img,
.wide-cover:hover img {
  transform: scale(1.08);
}

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

.movie-duration,
.rank-num {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.movie-duration {
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  font-size: 12px;
}

.rank-num {
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.movie-card-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: var(--amber-950, #451a03);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover,
.wide-head a:hover,
.category-card h2 a:hover {
  color: var(--orange-600);
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.72);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border-radius: 26px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  box-shadow: var(--shadow);
}

.category-tile img,
.category-tile-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-tile-shade {
  background: linear-gradient(0deg, rgba(69, 26, 3, 0.9), rgba(69, 26, 3, 0.12));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 24px;
  font-weight: 950;
}

.category-tile em {
  margin-top: 6px;
  font-style: normal;
  color: var(--amber-100);
}

.wide-list {
  display: grid;
  gap: 16px;
}

.wide-item {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(120, 53, 15, 0.08);
}

.wide-cover {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: var(--amber-100);
}

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

.wide-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wide-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.wide-head a {
  color: var(--amber-900);
  font-size: 20px;
  font-weight: 950;
}

.wide-rank {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 950;
}

.wide-info p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  max-width: 1280px;
  margin: 34px auto 0;
  padding: 70px 24px;
  border-radius: 34px;
  color: var(--amber-50);
  background:
    radial-gradient(circle at 75% 20%, rgba(253, 201, 91, 0.28), transparent 28%),
    linear-gradient(135deg, var(--amber-900), var(--orange-600));
  box-shadow: var(--shadow);
}

.compact-hero {
  text-align: center;
}

.page-hero h1 {
  color: var(--amber-50);
  font-size: clamp(36px, 6vw, 66px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--amber-100);
  font-size: 18px;
}

.compact-hero p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.small-actions {
  margin-top: 24px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.category-cover {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
}

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

.category-card h2 {
  margin: 8px 0 10px;
  color: var(--amber-900);
  font-size: 26px;
  font-weight: 950;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.top-three {
  margin-bottom: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.breadcrumb {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.breadcrumb em {
  font-style: normal;
}

.detail-layout {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #050505;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.26);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(217, 119, 6, 0.24), transparent 26%),
    rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ring {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.4);
  font-size: 34px;
}

.detail-content {
  margin-top: 24px;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.detail-content h1 {
  font-size: clamp(32px, 5vw, 56px);
}

.detail-one-line {
  margin: 16px 0 16px;
  color: var(--amber-800);
  font-size: 20px;
  font-weight: 800;
}

.detail-meta,
.detail-tags {
  margin-bottom: 22px;
}

.detail-content h2,
.side-panel h2 {
  margin: 28px 0 10px;
  color: var(--amber-900);
  font-size: 26px;
  font-weight: 950;
}

.detail-content p {
  color: #3d3129;
  font-size: 17px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.side-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.side-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.side-panel {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
}

.side-panel h2 {
  margin-top: 0;
  font-size: 22px;
}

.side-panel p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 10px 0;
  color: var(--muted);
}

.side-panel strong {
  color: var(--amber-900);
}

.side-panel a {
  color: var(--orange-600);
  font-weight: 900;
}

.related-section {
  padding-top: 40px;
}

.site-footer {
  margin-top: 70px;
  color: var(--amber-100);
  background: linear-gradient(180deg, var(--amber-900), #451a03);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-brand strong {
  font-size: 22px;
}

.footer-brand p {
  max-width: 460px;
  margin: 0;
  color: var(--amber-200);
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links a {
  color: var(--amber-200);
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  padding: 18px 24px;
  text-align: center;
  color: var(--amber-200);
  border-top: 1px solid rgba(253, 230, 138, 0.18);
}

.is-filter-hidden {
  display: none !important;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 50px;
  border-radius: 26px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .top-search {
    display: none;
  }

  .hero-content,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

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

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

  .ranking-list,
  .category-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding-top: 10px;
  }

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

  .main-nav a {
    width: 100%;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 70px 18px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .section-shell {
    padding: 44px 16px 0;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    margin-top: 12px;
  }

  .filter-bar,
  .search-page-form {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .large-grid,
  .top-three,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .movie-card-body {
    padding: 13px;
  }

  .movie-title {
    font-size: 15px;
    min-height: 42px;
  }

  .movie-desc {
    font-size: 13px;
  }

  .category-tile {
    min-height: 190px;
  }

  .wide-item,
  .category-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

  .wide-head a,
  .category-card h2 {
    font-size: 18px;
  }

  .wide-info p {
    -webkit-line-clamp: 2;
    font-size: 13px;
  }

  .page-hero {
    margin: 18px 16px 0;
    padding: 44px 20px;
    border-radius: 26px;
  }

  .breadcrumb,
  .detail-layout {
    padding: 0 16px;
  }

  .detail-content {
    padding: 20px;
    border-radius: 24px;
  }

  .side-poster {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 34px 18px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .large-grid,
  .top-three,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }
}
