:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --orange-500: #f97316;
  --white: #ffffff;
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.16);
  --shadow-md: 0 12px 26px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
  color: var(--slate-800);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.22);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  color: var(--white);
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-2deg);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 22px;
  line-height: 1.05;
  background: linear-gradient(90deg, #fde68a, #fdba74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--slate-300);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--slate-200);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--amber-500);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.26);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-nav input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  outline: 0;
}

.header-search input,
.mobile-nav input {
  width: 190px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.45);
}

.header-search input::placeholder,
.mobile-nav input::placeholder {
  color: var(--slate-300);
}

.header-search button,
.mobile-nav button {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--white);
  background: var(--amber-500);
  transition: background 0.25s ease, transform 0.25s ease;
}

.header-search button:hover,
.mobile-nav button:hover {
  background: var(--amber-600);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav a,
.mobile-nav form {
  display: flex;
  width: 100%;
  margin-top: 8px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--slate-200);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-nav form {
  gap: 8px;
}

.mobile-nav input {
  flex: 1;
}

.hero-carousel {
  position: relative;
  height: min(80vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.48) 48%, rgba(2, 6, 23, 0.1));
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(54px, 8vw, 94px);
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.9);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--slate-200);
  font-size: clamp(16px, 2.2vw, 21px);
  line-height: 1.75;
}

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

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

.hero-tags span,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
}

.hero-tags span {
  padding: 7px 12px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: var(--white);
  background: var(--amber-500);
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.28);
}

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

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
}

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

.text-btn {
  min-height: auto;
  padding: 0;
  color: var(--amber-600);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-controls button,
.hero-dot {
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-controls button {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.hero-controls button:hover,
.hero-dot.is-active {
  background: var(--amber-500);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
}

.section {
  padding: 58px 0;
}

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

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--slate-800);
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.15;
  font-weight: 900;
}

.section-kicker::before {
  content: "";
  width: 6px;
  height: 34px;
  border-radius: 999px;
  background: var(--amber-500);
}

.section-heading p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--slate-600);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--slate-200);
}

.movie-card.featured .card-cover {
  aspect-ratio: 16 / 10;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover img,
.category-tile:hover img,
.compact-card:hover img {
  transform: scale(1.08);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 58%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-year,
.card-region {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.card-year {
  right: 12px;
  background: rgba(2, 6, 23, 0.74);
}

.card-region {
  left: 12px;
  background: var(--amber-500);
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.92);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

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

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: var(--slate-800);
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--amber-600);
}

.card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--slate-600);
  background: var(--slate-100);
}

.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: var(--radius-lg);
  background: var(--slate-800);
  box-shadow: var(--shadow-md);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.2));
}

.category-content {
  position: absolute;
  inset: auto 16px 16px 16px;
  color: var(--white);
}

.category-content strong {
  display: block;
  font-size: 21px;
  font-weight: 900;
}

.category-content em {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--slate-200);
  font-size: 13px;
  line-height: 1.55;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rank-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  font-weight: 900;
}

.rank-item img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-200);
}

.rank-info strong {
  display: block;
  margin-bottom: 5px;
  color: var(--slate-800);
  font-size: 17px;
}

.rank-info span {
  display: block;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.55;
}

.rank-score {
  color: var(--amber-600);
  font-weight: 900;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.compact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  scroll-snap-align: start;
}

.compact-card img {
  width: 66px;
  height: 88px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  background: var(--slate-200);
  transition: transform 0.35s ease;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  color: var(--slate-800);
  line-height: 1.35;
}

.compact-card em {
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500), var(--amber-500));
}

.page-hero.dark {
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
}

.page-hero .container {
  padding: 58px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.page-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 900;
}

.page-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.75;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  padding: 0 14px;
  color: var(--slate-800);
  background: var(--slate-50);
}

.filter-panel input {
  flex: 1 1 260px;
}

.filter-panel select {
  flex: 0 1 190px;
}

.filter-panel button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  color: var(--white);
  background: var(--amber-500);
}

.searchable-card.is-hidden {
  display: none;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.05);
  transform: scale(1.08);
  opacity: 0.45;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.64), rgba(2, 6, 23, 0.9));
}

.detail-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  padding: 54px 0;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.08;
  font-weight: 900;
}

.detail-copy p {
  max-width: 780px;
  margin: 0 0 22px;
  color: var(--slate-200);
  line-height: 1.8;
  font-size: 17px;
}

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

.meta-pill {
  padding: 7px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--slate-800);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
}

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

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 48px 0;
}

.panel {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.panel-body {
  padding: clamp(20px, 3vw, 32px);
}

.panel h2 {
  margin: 0 0 18px;
  color: var(--slate-800);
  font-size: 26px;
  font-weight: 900;
}

.article-text {
  color: var(--slate-700);
  line-height: 1.9;
}

.article-text p {
  margin: 0 0 18px;
}

.player-panel {
  overflow: hidden;
  margin-bottom: 28px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.2));
}

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

.player-start {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-500);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.34);
  font-size: 30px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.player-start:hover {
  background: var(--amber-600);
  transform: scale(1.06);
}

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

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

.no-result {
  display: none;
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--white);
  color: var(--slate-600);
  box-shadow: var(--shadow-md);
}

.no-result.is-active {
  display: block;
}

.site-footer {
  color: var(--slate-300);
  background: var(--slate-900);
}

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 16px;
  color: var(--white);
}

.site-footer h2 {
  color: var(--amber-400);
}

.site-footer p {
  margin: 0;
  max-width: 480px;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--slate-300);
}

.site-footer a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  color: var(--slate-400);
  font-size: 14px;
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

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

  .detail-shell,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-carousel {
    min-height: 620px;
    height: 82vh;
  }

  .hero-content {
    padding-bottom: 96px;
  }

  .hero-controls {
    left: 12px;
    right: 12px;
    bottom: 28px;
    justify-content: center;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .section {
    padding: 42px 0;
  }

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

  .featured-grid,
  .movie-grid,
  .category-grid,
  .rank-list,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-score {
    grid-column: 3;
  }

  .page-hero .container,
  .detail-shell {
    padding: 40px 0;
  }
}
