:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --rose-500: #f43f5e;
  --slate-900: #0f172a;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(120, 53, 15, 0.16);
  --soft-shadow: 0 12px 30px rgba(120, 53, 15, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500), var(--amber-600));
  box-shadow: 0 10px 26px rgba(120, 53, 15, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-icon {
  font-size: 30px;
}

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

.main-nav a,
.mobile-nav a {
  padding: 8px 2px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--amber-100);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px 16px 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.hero-slider {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #fbbf24, #f97316, #f43f5e);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 14, 8, 0.82), rgba(120, 53, 15, 0.68), rgba(244, 63, 94, 0.22)), linear-gradient(0deg, rgba(255, 251, 235, 0.9), rgba(255, 251, 235, 0) 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 360px;
  align-items: center;
  gap: 56px;
  min-height: 600px;
  color: #ffffff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 18px 0 14px;
  color: var(--amber-100);
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.15;
}

.hero-copy p,
.page-hero p,
.detail-hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.movie-tags span {
  color: #92400e;
  background: var(--amber-100);
}

.hero-actions,
.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: var(--orange-600);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.22);
}

.btn.ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.btn.light {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-600));
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 10px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-500));
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span,
.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  color: var(--orange-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
}

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

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

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

.quick-filter {
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.filter-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 18px 0;
}

.filter-scroll a,
.filter-button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
  box-shadow: var(--soft-shadow);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-scroll a:hover,
.filter-button:hover,
.filter-button.active {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.section {
  padding: 72px 0;
}

.warm-section {
  background: linear-gradient(180deg, var(--amber-50), #ffffff);
}

.soft-section,
.category-section {
  background: linear-gradient(180deg, #ffffff, var(--amber-50));
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
}

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

.movie-grid,
.feature-grid,
.category-grid,
.category-overview-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.listing-grid {
  align-items: stretch;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  height: 270px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-500));
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.62));
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  top: 14px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  left: 14px;
  background: var(--amber-500);
}

.poster-year {
  right: 14px;
  background: rgba(0, 0, 0, 0.62);
}

.poster-play {
  z-index: 3;
  width: 54px;
  height: 54px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
}

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

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 12px 0 10px;
  overflow: hidden;
  color: #111827;
  font-size: 19px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body h3 a:hover,
.rank-title:hover,
.category-tile a:hover,
.category-overview-card a:hover {
  color: var(--orange-600);
}

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

.movie-meta,
.rank-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.category-tile,
.category-overview-card,
.narrow-content,
.sidebar-card,
.detail-card,
.article-content {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.category-tile,
.category-overview-card {
  padding: 24px;
}

.category-tile > a,
.category-overview-main {
  display: block;
}

.category-icon,
.category-overview-main span {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: var(--amber-100);
  font-size: 28px;
}

.category-tile h3,
.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-tile p,
.category-overview-card p,
.narrow-content p {
  margin: 0 0 16px;
  color: var(--muted);
}

.category-tile ul,
.category-overview-card ul,
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-tile li,
.category-overview-card li {
  padding: 8px 0;
  border-top: 1px solid #f3f4f6;
  color: #92400e;
  font-weight: 700;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500), var(--amber-600));
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -180px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.slate-hero {
  background: linear-gradient(90deg, #334155, #0f172a, #111827);
}

.category-hero,
.search-hero {
  background: linear-gradient(135deg, var(--orange-500), var(--amber-500), #facc15);
}

.tool-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  padding: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.filter-input {
  width: 100%;
  min-height: 50px;
  border: 2px solid var(--amber-100);
  border-radius: 999px;
  outline: 0;
  padding: 0 20px;
  color: #111827;
  background: var(--amber-50);
}

.filter-input:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-600));
  font-weight: 900;
}

.rank-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 96px;
  border-radius: 18px;
}

.rank-cover {
  overflow: hidden;
  background: var(--amber-100);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
}

.rank-body {
  padding: 14px 18px;
}

.rank-title {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-weight: 900;
}

.rank-body p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 96px;
  color: #ffffff;
  background: var(--slate-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.08);
  transform: scale(1.08);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(120, 53, 15, 0.72)), linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 50%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--amber-100);
  font-weight: 800;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: #111827;
  cursor: pointer;
  overflow: hidden;
}

.play-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.08);
}

.play-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.12));
}

.play-overlay strong,
.play-circle {
  position: relative;
  z-index: 2;
}

.play-overlay strong {
  max-width: 80%;
  text-align: center;
  font-size: clamp(18px, 3vw, 28px);
}

.play-circle {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: var(--orange-600);
  background: rgba(255, 255, 255, 0.94);
  font-size: 28px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}

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

.detail-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 20px;
  background: var(--amber-100);
}

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

.detail-info h2,
.article-content h2,
.sidebar-card h2,
.related-section h2,
.narrow-content h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-info dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-info dl div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
}

.detail-info dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-info dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.article-content {
  margin-top: 24px;
  padding: 28px;
}

.article-content p {
  margin: 0 0 22px;
  color: #374151;
  font-size: 17px;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 34px;
}

.prev-next a {
  border-radius: 18px;
  padding: 16px;
  color: #92400e;
  background: var(--amber-100);
  font-weight: 900;
}

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

.detail-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-card {
  padding: 20px;
}

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

.sidebar-list .rank-item {
  grid-template-columns: 96px 1fr;
  box-shadow: none;
  border: 1px solid #f3f4f6;
}

.sidebar-list .rank-body p,
.sidebar-list .rank-meta {
  display: none;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.site-footer p,
.site-footer a {
  color: var(--amber-100);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer li {
  margin: 8px 0;
}

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

.narrow-content {
  max-width: 860px;
  padding: 36px;
}

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

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 86px 0 110px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-sidebar {
    position: static;
  }
}

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

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

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

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

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

  .detail-card,
  .prev-next {
    grid-template-columns: 1fr;
  }
}

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

  .brand {
    font-size: 20px;
  }

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

  .hero-copy h1,
  .page-hero h1,
  .detail-hero h1 {
    font-size: 34px;
  }

  .hero-controls {
    width: calc(100% - 32px);
    justify-content: center;
  }

  .section {
    padding: 46px 0;
  }

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

  .movie-grid,
  .feature-grid,
  .category-grid,
  .category-overview-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    height: 330px;
  }

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

  .rank-number {
    width: 36px;
    height: 36px;
  }

  .rank-item {
    grid-template-columns: 105px 1fr;
  }

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