:root {
  color-scheme: light;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 22px 50px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 10px 30px rgba(17, 24, 39, 0.09);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.top-strip {
  background: var(--amber-700);
  color: var(--white);
  font-size: 14px;
}

.top-strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 38px;
}

.top-strip-inner span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 16px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(12px);
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-800);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-600), var(--amber-800));
  color: var(--white);
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  color: var(--gray-500);
  font-size: 12px;
  margin-top: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  color: var(--gray-700);
  font-weight: 650;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover,
.inline-links a:hover {
  color: var(--amber-700);
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  background: var(--gray-50);
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 11px 14px;
  background: transparent;
}

.header-search button,
.hero-search button {
  border: 0;
  background: var(--amber-600);
  color: var(--white);
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
}

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

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: var(--amber-100);
  color: var(--amber-800);
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-nav {
  border-top: 1px solid var(--gray-200);
  padding: 10px 16px 18px;
  background: var(--white);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 700;
  color: var(--gray-700);
}

.hero-slider {
  min-height: 600px;
  background: linear-gradient(90deg, var(--amber-50), #fff7ed 58%, #ffffff);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  min-height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 54px;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 520ms ease, transform 520ms ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

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

.hero-copy h1 {
  margin: 0 0 22px;
  color: var(--gray-900);
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 30px;
  color: var(--gray-600);
  font-size: 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn.primary {
  background: var(--amber-600);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.26);
}

.btn.primary:hover {
  background: var(--amber-700);
  transform: translateY(-2px);
}

.btn.ghost {
  background: var(--white);
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
}

.btn.ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.hero-art {
  position: relative;
  display: block;
  height: 420px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.44));
}

.hero-art img {
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 42px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dots button {
  width: 36px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: var(--gray-200);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--amber-600);
}

.section {
  padding: 70px 0;
}

.alt-section {
  background: var(--white);
}

.search-panel-section {
  padding: 34px 0 0;
}

.search-panel {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: center;
  padding: 26px;
  margin-top: -56px;
  position: relative;
  z-index: 4;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-panel h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: 24px;
}

.hero-search {
  display: flex;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray-50);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 16px 18px;
  background: transparent;
}

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

.section-head h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: 32px;
  line-height: 1.2;
}

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

.section-link {
  flex: none;
  color: var(--amber-700);
  font-weight: 800;
}

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

.movie-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.home-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.category-movie-grid,
.search-grid {
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
}

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

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

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

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

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 220ms ease;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--amber-700);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 220ms ease, transform 220ms ease;
}

.movie-card:hover .poster-shade {
  background: rgba(0, 0, 0, 0.24);
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--amber-600);
  color: var(--white);
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.movie-info p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-row {
  justify-content: space-between;
  color: var(--gray-500);
  font-size: 13px;
  margin-bottom: 10px;
}

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

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.category-tile {
  position: relative;
  min-height: 210px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  background: var(--gray-900);
}

.category-tile img {
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 320ms ease;
}

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

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.74));
}

.category-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: var(--white);
}

.category-copy strong {
  display: block;
  font-size: 23px;
  margin-bottom: 6px;
}

.category-copy small {
  color: rgba(255, 255, 255, 0.82);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
}

.rank-panel {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.07);
}

.mini-card img {
  aspect-ratio: 3 / 4;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-card strong,
.mini-card small {
  display: block;
}

.mini-card strong {
  color: var(--gray-900);
  line-height: 1.35;
}

.mini-card small {
  margin-top: 6px;
  color: var(--gray-500);
}

.mini-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 8px;
  background: var(--amber-600);
  color: var(--white);
  font-weight: 900;
}

.page-hero,
.category-hero,
.detail-hero {
  position: relative;
  padding: 86px 0;
  background: linear-gradient(90deg, var(--amber-50), #fff7ed);
}

.page-hero h1,
.category-hero h1,
.detail-intro h1 {
  max-width: 880px;
  margin: 16px 0 14px;
  color: var(--gray-900);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.page-hero p,
.category-hero p,
.detail-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-weight: 700;
}

.crumb a:hover {
  color: var(--amber-700);
}

.crumb.light {
  color: rgba(255, 255, 255, 0.78);
}

.crumb.light a:hover {
  color: var(--white);
}

.category-hero {
  color: var(--white);
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.45)), var(--cover-image);
  background-size: cover;
  background-position: center;
}

.category-hero h1,
.category-hero p {
  color: var(--white);
}

.category-hero .btn {
  margin-top: 26px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  outline: 0;
  padding: 13px 14px;
  color: var(--gray-800);
  background: var(--gray-50);
}

.overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.category-overview-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.category-cover img {
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 4px 0 8px;
  color: var(--gray-900);
  font-size: 23px;
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--gray-600);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.inline-links a {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-800);
  font-size: 13px;
  font-weight: 800;
}

.ranking-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.rank-section + .rank-section {
  padding-top: 10px;
}

.detail-hero {
  padding: 72px 0;
  color: var(--white);
  background: radial-gradient(circle at 70% 10%, rgba(245, 158, 11, 0.45), transparent 30%), linear-gradient(135deg, var(--gray-900), #3b2410 70%, var(--amber-800));
}

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

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

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-intro h1,
.detail-intro p {
  color: var(--white);
}

.detail-intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.detail-tags {
  margin: 24px 0 26px;
}

.player-section {
  padding-bottom: 30px;
}

.player-section h2,
.detail-article h2,
.detail-side h2 {
  margin: 0 0 18px;
  color: var(--gray-900);
  font-size: 28px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--gray-900);
  box-shadow: var(--shadow);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-900);
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
  color: var(--white);
  cursor: pointer;
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.play-circle {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amber-600);
  font-size: 28px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
  font-size: 20px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
}

.detail-article,
.detail-side {
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.detail-article {
  padding: 30px;
}

.detail-article p {
  margin: 0 0 16px;
  color: var(--gray-700);
  font-size: 17px;
}

.detail-side {
  padding: 24px;
  align-self: start;
}

.detail-side dl {
  margin: 0;
}

.detail-side dt {
  color: var(--gray-500);
  font-weight: 800;
  margin-top: 14px;
}

.detail-side dd {
  margin: 4px 0 0;
  color: var(--gray-900);
}

.side-link {
  display: block;
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--amber-100);
  color: var(--amber-800);
  font-weight: 900;
  text-align: center;
}

.related-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.site-footer {
  background: var(--gray-900);
  color: var(--white);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 38px;
}

.footer-logo {
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.site-footer p,
.site-footer a,
.site-footer h2 {
  margin-top: 0;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer h2 {
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  margin-top: 36px;
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--amber-600);
  color: var(--white);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 62px 0 84px;
  }

  .hero-art {
    display: none;
  }

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

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

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

  .top-strip-inner {
    font-size: 12px;
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand-text strong {
    font-size: 20px;
  }

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

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

  .hero-summary,
  .page-hero p,
  .category-hero p {
    font-size: 16px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    display: block;
  }

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

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

  .hero-search {
    display: grid;
  }

  .compact-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

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

  .category-cover img {
    height: 220px;
  }

  .page-hero,
  .category-hero,
  .detail-hero {
    padding: 58px 0;
  }
}
