:root {
  --page: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #d97706;
  --primary-dark: #b45309;
  --accent: #f97316;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  height: 66px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.28);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #374151;
  font-weight: 700;
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--primary-dark);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 10px 24px 20px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: #374151;
  font-weight: 700;
}

.mobile-nav.is-open {
  display: block;
}

main {
  min-height: 70vh;
}

.hero-section {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #111827;
}

.hero-carousel,
.hero-slide,
.hero-slide img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s 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 {
  background:
    radial-gradient(circle at 75% 20%, rgba(251, 146, 60, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.70) 42%, rgba(17, 24, 39, 0.30) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 115px 24px 180px;
  margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  color: #ffffff;
}

.hero-kicker,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.15);
  color: #fed7aa;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h2 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  padding: 7px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  padding: 13px 24px;
  color: var(--primary-dark);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.ghost-button {
  padding: 12px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.10);
}

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

.hero-search-panel {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 5;
  width: min(1232px, calc(100% - 48px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search-panel h1 {
  margin: 0 0 4px;
  font-size: clamp(22px, 3vw, 34px);
}

.hero-search-panel p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
}

.hero-search input,
.filter-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  color: var(--text);
  background: #ffffff;
}

.hero-search input {
  padding: 14px 18px;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  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.is-active {
  width: 32px;
  background: #ffffff;
}

.section-wrap,
.detail-layout {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.section-wrap {
  padding: 56px 0;
}

.spotlight-section {
  margin-top: 40px;
  padding: 44px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

.section-heading span {
  color: var(--primary-dark);
  background: #ffedd5;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading a,
.text-button {
  color: var(--primary-dark);
  font-weight: 900;
}

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

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

.movie-card,
.horizontal-card,
.category-card-wide,
.rank-card,
.detail-card,
.player-card,
.side-card {
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.78);
  box-shadow: var(--shadow-soft);
}

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

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #111827;
}

.movie-card-large .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 58%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.30);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.24s ease;
}

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

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

.poster-badge {
  left: 12px;
  background: var(--primary);
}

.poster-year {
  right: 12px;
  background: rgba(17, 24, 39, 0.72);
}

.movie-info {
  padding: 16px;
}

.movie-info h3,
.horizontal-card h3,
.rank-body h2 {
  margin: 0;
  line-height: 1.3;
}

.movie-info h3 {
  min-height: 2.6em;
  font-size: 18px;
}

.movie-info h3 a:hover,
.horizontal-card h3 a:hover,
.rank-body h2 a:hover,
.category-card-wide h2 a:hover {
  color: var(--primary);
}

.movie-info p,
.horizontal-card p,
.rank-body p,
.side-card p,
.category-card-wide p {
  color: var(--muted);
}

.movie-info p {
  min-height: 3.2em;
  margin: 10px 0 14px;
  font-size: 14px;
}

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

.movie-meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: #d1d5db;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  padding: 5px 9px;
  color: var(--primary-dark);
  background: #ffedd5;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 22px;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

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

.category-overlay {
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.12));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 18px;
}

.category-tile strong {
  margin-top: 104px;
  font-size: 21px;
}

.category-tile em {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  font-size: 13px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 18px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-card:hover,
.rank-card:hover,
.category-card-wide:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.horizontal-poster {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  background: #111827;
}

.horizontal-poster img,
.rank-poster img,
.category-covers img,
.side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.horizontal-poster span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 26px;
  background: rgba(0, 0, 0, 0.22);
}

.page-hero {
  background: radial-gradient(circle at 80% 20%, rgba(251, 146, 60, 0.18), transparent 30%), linear-gradient(135deg, #92400e, #f97316);
  color: #ffffff;
}

.slim-hero {
  padding: 72px 0;
}

.slim-hero > div {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
}

.category-wide-grid {
  display: grid;
  gap: 24px;
}

.category-card-wide {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  padding: 18px;
  border-radius: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
  min-height: 210px;
  background: #111827;
}

.category-card-wide h2 {
  margin: 4px 0 8px;
  font-size: 28px;
}

.category-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.category-preview-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #78350f;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 8px;
}

.filter-box {
  display: grid;
  gap: 8px;
  width: min(480px, 100%);
  color: var(--muted);
  font-weight: 900;
}

.wide-filter {
  width: min(780px, 100%);
}

.filter-box input {
  padding: 13px 17px;
  box-shadow: var(--shadow-soft);
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 68px 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.rank-poster {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  background: #111827;
}

.rank-body p {
  margin: 8px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 34px 0 64px;
}

.detail-main {
  min-width: 0;
}

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

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

.player-card,
.detail-card,
.side-card {
  border-radius: 24px;
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
  background: #000000;
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.movie-player {
  z-index: 1;
  background: #000000;
}

.player-overlay {
  z-index: 2;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: #000000;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.player-shade {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22));
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  font-size: 34px;
}

.detail-card {
  padding: 28px;
  margin-bottom: 24px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 900;
}

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

.detail-card h2 {
  margin: 26px 0 10px;
  font-size: 24px;
}

.detail-card p {
  color: #374151;
  margin: 0 0 14px;
}

.lead-text {
  font-weight: 800;
}

.compact-heading {
  margin-bottom: 18px;
}

.compact-heading h2 {
  margin: 8px 0 0;
}

.detail-side {
  position: relative;
}

.side-card {
  position: sticky;
  top: 90px;
  padding: 18px;
}

.side-card img {
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  background: #111827;
}

.side-card h2 {
  margin: 18px 0 8px;
}

.side-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.side-links a {
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--primary-dark);
  background: #ffedd5;
  font-weight: 900;
}

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

.footer-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0;
}

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

.footer-inner p {
  max-width: 650px;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 22px 0;
}

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

.footer-copy {
  padding-top: 22px;
  border-top: 1px solid #1f2937;
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .card-grid,
  .card-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .side-card {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero-section {
    min-height: 720px;
  }

  .hero-content {
    margin-left: 0;
    padding: 76px 24px 250px;
  }

  .hero-search-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-dots {
    justify-content: flex-start;
  }

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

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

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

  .category-card-wide {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 52px 92px 1fr;
  }

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

@media (max-width: 560px) {
  .header-inner,
  .section-wrap,
  .detail-layout,
  .footer-inner,
  .slim-hero > div {
    width: calc(100% - 32px);
    padding-left: 0;
    padding-right: 0;
  }

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

  .hero-search-panel {
    width: calc(100% - 32px);
    padding: 16px;
    border-radius: 22px;
  }

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

  .hero-search button {
    min-height: 46px;
  }

  .spotlight-section {
    padding: 24px 16px;
  }

  .card-grid,
  .card-grid-three,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    grid-template-columns: 120px 1fr;
  }

  .rank-card {
    grid-template-columns: 42px 82px 1fr;
    gap: 10px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 13px;
  }

  .detail-card {
    padding: 20px;
  }

  .big-play {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
