:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --red: #dc2626;
  --rose: #db2777;
  --shadow: 0 20px 45px rgba(146, 64, 14, 0.14);
  --soft-shadow: 0 10px 24px rgba(146, 64, 14, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 42%, #ffffff 100%);
  line-height: 1.65;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid rgba(251, 191, 36, 0.32);
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--amber-dark);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
  font-size: 14px;
}

.brand-text {
  font-size: clamp(20px, 2vw, 28px);
  background: linear-gradient(90deg, var(--amber-dark), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-dark);
  background: #ffedd5;
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #fbbf24;
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.08);
}

.top-search input {
  width: 230px;
  border: 0;
  outline: 0;
  padding: 9px 10px 9px 14px;
  background: transparent;
}

.top-search button,
.primary-btn,
.secondary-btn,
.text-btn,
.filter-panel button,
.load-btn {
  border: 0;
  cursor: pointer;
}

.top-search button,
.primary-btn,
.load-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.primary-btn:hover,
.load-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 35px rgba(217, 119, 6, 0.28);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--amber-dark);
  border-radius: 99px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 32%), linear-gradient(135deg, #b45309 0%, #ea580c 52%, #be123c 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(36px);
}

.hero::before {
  top: -110px;
  left: 6%;
}

.hero::after {
  right: 6%;
  bottom: -150px;
}

.hero-shell {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 70px 0;
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 46px;
}

.hero-slide.active {
  display: grid;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #ffedd5;
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-meta,
.detail-meta,
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.inline-meta span,
.score-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 11px;
  font-weight: 750;
  background: #fff7ed;
  color: var(--amber-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-poster {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 3 / 4.15;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.35), rgba(252, 211, 77, 0.18));
  box-shadow: 0 36px 80px rgba(69, 26, 3, 0.38);
  transform: rotate(2deg);
}

.hero-poster img,
.poster-frame img,
.detail-cover img,
.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.5));
}

.hero-poster strong {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  font-size: 24px;
  line-height: 1.25;
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--amber-dark);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-size: 26px;
  font-weight: 900;
  box-shadow: var(--soft-shadow);
}

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

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

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 28px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 32px;
  background: #ffffff;
}

.section {
  padding: 58px 0;
}

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

.section-heading h2,
.page-title h1,
.detail-copy h1,
.filter-panel h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

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

.section-more,
.text-btn {
  color: var(--amber-dark);
  font-weight: 850;
}

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

.stat-card,
.category-tile,
.feature-card,
.filter-panel,
.content-box,
.movie-card,
.rank-card,
.detail-panel,
.faq-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.stat-card {
  color: #ffffff;
  padding: 26px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  overflow: hidden;
  position: relative;
}

.stat-card:nth-child(2) {
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, var(--red), var(--rose));
}

.stat-card strong {
  display: block;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1;
}

.stat-card span {
  color: #ffedd5;
  font-weight: 700;
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 119, 6, 0.48);
  box-shadow: var(--shadow);
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.poster-frame img {
  transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.56));
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.86);
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.poster-year {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  color: var(--amber-dark);
  background: #fffbeb;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 850;
  font-size: 13px;
}

.card-content {
  padding: 18px;
}

.card-meta,
.card-extra {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-content h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.28;
}

.card-content h3 a:hover {
  color: var(--amber-dark);
}

.card-content p {
  min-height: 3.2em;
  margin: 0 0 14px;
  color: #4b5563;
}

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

.tag-pill,
.filter-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 11px;
  color: var(--amber-dark);
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tag-pill:hover,
.filter-tag:hover,
.filter-tag.active {
  background: #fcd34d;
  transform: translateY(-1px);
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.18), transparent 32%), linear-gradient(120deg, var(--amber), var(--orange));
  padding: 70px 0;
}

.page-title h1 {
  color: #ffffff;
}

.page-title p {
  color: #ffedd5;
  max-width: 820px;
  font-size: 19px;
}

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

.filter-panel {
  position: sticky;
  top: 94px;
  padding: 24px;
}

.filter-control {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.filter-control label {
  color: #374151;
  font-weight: 850;
}

.filter-control input,
.filter-control select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #fbbf24;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 13px;
  outline: 0;
}

.filter-control input:focus,
.filter-control select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.24);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.filter-tag {
  border: 0;
  cursor: pointer;
}

.no-results {
  display: none;
  padding: 42px;
  text-align: center;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.category-tile,
.feature-card,
.content-box,
.faq-card {
  display: block;
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.feature-card:hover,
.faq-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 119, 6, 0.48);
  box-shadow: var(--shadow);
}

.category-tile strong,
.feature-card strong {
  display: block;
  color: var(--amber-dark);
  font-size: 22px;
  margin-bottom: 8px;
}

.category-tile p,
.feature-card p,
.content-box p,
.faq-card p {
  margin: 0;
  color: var(--muted);
}

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

.rank-card {
  overflow: hidden;
}

.rank-link {
  display: grid;
  grid-template-columns: 64px 86px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
}

.rank-no {
  color: var(--orange);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  width: 86px;
  height: 112px;
  overflow: hidden;
  border-radius: 16px;
  background: #fed7aa;
}

.rank-copy {
  display: grid;
  gap: 4px;
}

.rank-copy strong {
  font-size: 20px;
}

.rank-copy em {
  color: var(--muted);
  font-style: normal;
}

.rank-copy span {
  color: #4b5563;
}

.rank-score {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.detail-hero {
  background: linear-gradient(135deg, #7c2d12, #c2410c 48%, #9f1239);
  color: #ffffff;
  padding: 58px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-cover {
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  border-radius: 32px;
  background: #fed7aa;
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.34);
}

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 62px);
}

.detail-copy p {
  color: #ffedd5;
  font-size: 19px;
}

.player-section {
  padding: 48px 0;
  background: #111827;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 32px 80px rgba(17, 24, 39, 0.38);
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  outline: 0;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.66));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-start {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  cursor: pointer;
  font-size: 38px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.detail-main {
  padding: 58px 0;
}

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

.detail-panel {
  padding: 28px;
}

.detail-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.detail-panel p {
  color: #374151;
}

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

.related-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  transition: transform 0.2s ease, background 0.2s ease;
}

.related-item:hover {
  background: #ffedd5;
  transform: translateX(3px);
}

.related-item img {
  width: 68px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  background: #fed7aa;
}

.related-item strong {
  display: block;
  line-height: 1.3;
}

.related-item span {
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #ffedd5;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.contact-form {
  display: grid;
  gap: 12px;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
  margin-top: 42px;
  padding-top: 46px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

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

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  color: #9ca3af;
}

.site-footer a {
  display: block;
  color: #d1d5db;
  margin: 7px 0;
}

.site-footer a:hover {
  color: #fcd34d;
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: none;
  width: 48px;
  height: 48px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: var(--shadow);
  cursor: pointer;
}

.back-top.show {
  display: grid;
  place-items: center;
}

.image-hidden {
  opacity: 0;
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .top-search {
    display: none;
  }

  .main-nav.open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 8px;
    padding-bottom: 16px;
  }

  .main-nav.open .nav-link {
    background: #ffffff;
  }

  .top-search.open {
    display: flex;
    grid-column: 1 / -1;
    margin-bottom: 16px;
  }

  .top-search.open input {
    width: 100%;
  }

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

  .hero-poster {
    max-width: 360px;
    margin: 0 auto;
  }

  .filter-panel {
    position: static;
  }

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

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-shell {
    min-height: auto;
    padding: 44px 0;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-control {
    display: none;
  }

  .section {
    padding: 38px 0;
  }

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

  .stats-grid,
  .category-grid,
  .feature-grid,
  .movie-grid,
  .movie-grid.three,
  .about-layout,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .rank-link {
    grid-template-columns: 44px 72px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 2 / 4;
    width: fit-content;
    height: auto;
    padding: 6px 14px;
  }

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

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