:root {
  --amber-50: #fff8eb;
  --amber-100: #fdecc8;
  --amber-200: #f7d58b;
  --amber-300: #f0bd4f;
  --amber-500: #d99013;
  --amber-600: #b9740c;
  --amber-700: #945908;
  --amber-900: #3d2605;
  --orange-600: #c45612;
  --text: #1f2933;
  --muted: #697386;
  --line: #f0dfc0;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(86, 54, 10, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--amber-50) 0%, #ffffff 38%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 248, 235, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(61, 38, 5, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  color: var(--amber-900);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 10px 20px rgba(185, 116, 12, 0.24);
  font-size: 14px;
}

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

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

.nav-link {
  color: #6b4713;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-600);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  width: 280px;
  flex-shrink: 0;
  border: 1px solid #efcd92;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.top-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  color: var(--text);
}

.top-search button,
.search-large button {
  border: 0;
  padding: 0 16px;
  color: #ffffff;
  background: var(--amber-600);
  font-weight: 700;
  transition: background 0.2s ease;
}

.top-search button:hover,
.search-large button:hover {
  background: var(--amber-700);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--amber-800, #6b4713);
  background: transparent;
  font-size: 26px;
}

.hero {
  position: relative;
  min-height: 520px;
  height: 70vh;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(217, 144, 19, 0.26), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.68) 42%, rgba(0, 0, 0, 0.06));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 36px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #f7c766;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #e8e8e8;
  font-size: 18px;
}

.hero-meta,
.detail-meta,
.movie-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 18px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--amber-100);
  color: #7a4e0c;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags {
  margin-bottom: 28px;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffe1a3;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 18px 30px rgba(185, 116, 12, 0.32);
  font-size: 18px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 38px rgba(185, 116, 12, 0.42);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  font-size: 38px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-500);
}

.main-stack {
  display: grid;
  gap: 54px;
  padding: 56px 0;
}

.content-section,
.toolbar-panel,
.detail-card {
  border-radius: var(--radius);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex-shrink: 0;
  color: var(--amber-600);
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(86, 54, 10, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1f2933;
}

.movie-card-compact .movie-poster-wrap {
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover img {
  transform: scale(1.08);
}

.play-chip,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
}

.play-chip {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(185, 116, 12, 0.92);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: scale(1);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #efb33f, #c45612);
  box-shadow: 0 12px 20px rgba(61, 38, 5, 0.26);
}

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

.movie-meta-line {
  gap: 8px;
  margin-bottom: 10px;
  color: #8b6a2c;
  font-size: 13px;
  font-weight: 800;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #bda16b;
}

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.movie-card h2 a:hover {
  color: var(--amber-600);
}

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

.hot-panel {
  padding: 30px;
  background: linear-gradient(135deg, #fff1cf, #ffe3bd);
  box-shadow: var(--shadow);
}

.dark-panel {
  padding: 30px;
  background: linear-gradient(135deg, var(--amber-900), #8d480b);
  box-shadow: var(--shadow);
}

.dark-panel .section-head h2,
.dark-panel .section-head p,
.dark-panel .section-more {
  color: #ffffff;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
  scroll-snap-align: start;
}

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

.year-tile {
  display: grid;
  gap: 6px;
  padding: 26px;
  border: 2px solid var(--amber-200);
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.year-tile:hover {
  border-color: var(--amber-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.year-tile strong {
  color: var(--amber-600);
  font-size: 30px;
}

.year-tile span {
  color: var(--muted);
}

.page-hero {
  position: relative;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 18%, rgba(247, 197, 102, 0.24), transparent 28%),
    linear-gradient(135deg, var(--amber-900), #9d520a 58%, #d99013);
}

.compact-hero {
  padding: 78px 0;
}

.ranking-hero {
  padding: 92px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #ffe9c2;
  font-size: 18px;
}

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

.category-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-card a {
  position: relative;
  display: grid;
  min-height: 260px;
  color: #ffffff;
  overflow: hidden;
}

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

.category-card:hover img {
  transform: scale(1.08);
}

.category-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.76));
}

.category-card div {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 28px;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.category-card p {
  max-width: 520px;
  margin: 0 0 12px;
  color: #f8e9d0;
}

.category-card small {
  color: #ffcf76;
  font-weight: 800;
}

.toolbar-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(86, 54, 10, 0.08);
}

.filter-label {
  flex-shrink: 0;
  color: var(--amber-700);
  font-weight: 900;
}

.page-filter {
  flex: 1;
  min-height: 46px;
  border: 1px solid #efcd92;
  border-radius: 13px;
  outline: 0;
  padding: 0 14px;
}

.page-filter:focus,
.search-large input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(217, 144, 19, 0.12);
}

.search-panel {
  display: block;
}

.search-large {
  display: flex;
  overflow: hidden;
  border: 1px solid #efcd92;
  border-radius: 16px;
  background: #ffffff;
}

.search-large input {
  flex: 1;
  min-height: 58px;
  border: 0;
  outline: 0;
  padding: 0 18px;
}

.search-large button {
  min-width: 110px;
}

.detail-container {
  padding: 36px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #8b6a2c;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--amber-600);
}

.player-section {
  margin-bottom: 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #0b0f18;
  box-shadow: 0 24px 58px rgba(18, 25, 38, 0.24);
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover,
.player-cover img,
.player-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  background: #0b0f18;
  object-fit: contain;
}

.player-cover {
  z-index: 3;
  padding: 0;
  border: 0;
  background: #0b0f18;
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  object-fit: cover;
}

.player-cover-shade {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(185, 116, 12, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
  font-size: 38px;
}

.detail-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 18px;
  background: #172033;
  aspect-ratio: 3 / 4;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-info .eyebrow {
  color: var(--amber-600);
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-meta span {
  color: #7a4e0c;
  background: var(--amber-100);
}

.detail-tags {
  margin-bottom: 20px;
}

.lead-text {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.article-section {
  padding: 28px;
  margin-bottom: 28px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(86, 54, 10, 0.08);
}

.article-section h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.article-section p {
  margin: 0;
  color: #3b4556;
  font-size: 17px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 40px;
  color: #fff5df;
  background: linear-gradient(135deg, var(--amber-900), #6d3705);
}

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

.footer-logo {
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-brand p,
.footer-links a {
  color: #f5dba7;
}

.footer-brand p {
  max-width: 560px;
  margin: 0;
}

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

.footer-links h2 {
  margin: 0 0 8px;
  color: #ffcf76;
  font-size: 18px;
}

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

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

.no-results {
  grid-column: 1 / -1;
  padding: 38px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  box-shadow: 0 12px 28px rgba(86, 54, 10, 0.08);
}

@media (max-width: 1060px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 68px;
    padding: 12px 0;
  }

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

  .site-nav,
  .top-search {
    display: none;
    width: 100%;
  }

  .site-nav.is-open,
  .top-search.is-open {
    display: flex;
  }

  .site-nav {
    flex-wrap: wrap;
    order: 3;
    margin-left: 0;
  }

  .top-search {
    order: 4;
  }

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

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

@media (max-width: 720px) {
  .brand-text {
    font-size: 19px;
  }

  .hero {
    min-height: 560px;
    height: 72vh;
  }

  .hero-content {
    padding-right: 24px;
  }

  .hero-arrow {
    display: none;
  }

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

  .movie-grid-large,
  .movie-grid-four,
  .year-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hot-panel,
  .dark-panel {
    padding: 20px;
  }

  .toolbar-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .detail-poster {
    max-width: 260px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .search-large {
    flex-direction: column;
  }

  .search-large button {
    min-height: 52px;
  }
}
