:root {
  --sunset-50: #fff7ed;
  --sunset-100: #ffedd5;
  --sunset-200: #fed7aa;
  --sunset-400: #fb923c;
  --sunset-500: #f97316;
  --sunset-600: #ea580c;
  --twilight-50: #fef2f2;
  --twilight-100: #fee2e2;
  --twilight-500: #ef4444;
  --twilight-600: #dc2626;
  --golden-500: #eab308;
  --ocean-500: #0ea5e9;
  --ink-900: #111827;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --line: #e5e7eb;
  --white: #ffffff;
  --soft-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --strong-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink-800);
  background: linear-gradient(180deg, var(--sunset-50) 0%, #ffffff 45%, var(--sunset-50) 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: var(--soft-shadow);
  font-size: 14px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  color: var(--ink-900);
  font-size: 20px;
}

.brand-copy small {
  color: var(--ink-500);
  font-size: 12px;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  padding: 8px 2px;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--sunset-600);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--sunset-50);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink-700);
  border-radius: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 72px 0 82px;
  background: linear-gradient(105deg, var(--sunset-500), var(--twilight-500) 55%, var(--sunset-600));
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255,255,255,0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(12px);
}

.hero::before {
  left: -120px;
  top: -120px;
}

.hero::after {
  right: -130px;
  bottom: -140px;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--sunset-700, #c2410c);
  background: rgba(255, 237, 213, 0.9);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero .eyebrow {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions,
.center-action {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
}

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

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: var(--soft-shadow);
}

.hero .primary-btn {
  color: var(--sunset-600);
  background: var(--white);
}

.ghost-btn {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-category-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  transition: background 0.2s ease;
}

.hero-category-links a:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-slider {
  position: relative;
  min-height: 458px;
}

.hero-slides {
  position: relative;
  height: 432px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  border-radius: 28px;
  overflow: hidden;
  background: #000000;
  box-shadow: var(--strong-shadow);
  opacity: 0;
  transform: translateX(28px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.42s ease, transform 0.42s ease;
}

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

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

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

.hero-slide:hover .hero-media img {
  transform: scale(1.04);
}

.hero-media-shade,
.card-shade,
.player-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.38) 52%, rgba(0, 0, 0, 0.08));
}

.hero-panel {
  position: relative;
  align-self: end;
  z-index: 2;
  padding: 34px;
}

.hero-kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(249, 115, 22, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel h2 {
  margin: 14px 0 10px;
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.hero-panel p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.hero-watch {
  display: inline-flex;
  margin-top: 18px;
  color: var(--white);
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 28px;
  bottom: -10px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

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

.hero-dot.is-active {
  width: 28px;
  background: var(--white);
}

.section-block {
  padding: 58px 0;
}

.section-title {
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-title.left-title {
  margin-left: 0;
  text-align: left;
}

.section-title span {
  color: var(--sunset-600);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-title h2,
.inner-hero h1,
.detail-info h1,
.content-card h2 {
  color: var(--ink-900);
}

.section-title h2 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
}

.section-title p,
.inner-hero p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.75;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 160px 160px 100px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.filter-input,
.filter-select,
.filter-type,
.filter-reset {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink-700);
  outline: none;
}

.filter-input {
  padding: 0 14px;
}

.filter-select,
.filter-type {
  padding: 0 12px;
}

.filter-reset {
  cursor: pointer;
  color: var(--white);
  border: 0;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  font-weight: 800;
}

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

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

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

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

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

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

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

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

.card-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.92);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--golden-500), var(--sunset-500));
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
}

.meta-row span {
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--sunset-50);
}

.card-body h2 {
  margin: 0 0 8px;
  color: var(--ink-900);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body h2 a:hover {
  color: var(--sunset-600);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--sunset-700, #c2410c);
  background: var(--sunset-50);
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile,
.category-overview-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(254, 215, 170, 0.8);
}

.category-tile > a,
.category-overview-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.category-tile span,
.category-overview-head span {
  color: var(--sunset-600);
  font-size: 20px;
  font-weight: 900;
}

.category-tile strong,
.category-overview-head strong {
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
}

.category-tile ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-tile li a,
.category-samples a {
  display: block;
  color: var(--ink-700);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--sunset-50);
}

.category-tile li a:hover,
.category-samples a:hover {
  color: var(--sunset-600);
  background: var(--sunset-100);
}

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

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

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 64px 1fr 20px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-num {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  font-weight: 900;
}

.rank-item img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--ink-900);
}

.rank-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.rank-info strong {
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info em {
  color: var(--ink-500);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-arrow {
  color: var(--sunset-500);
  font-size: 28px;
  font-weight: 300;
}

.page-main {
  min-height: 70vh;
}

.inner-hero,
.detail-hero-section {
  padding: 54px 0;
  background: linear-gradient(135deg, var(--sunset-50), #ffffff 50%, var(--twilight-50));
  border-bottom: 1px solid rgba(254, 215, 170, 0.7);
}

.inner-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--ink-500);
  font-size: 14px;
}

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

.detail-hero-card {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--strong-shadow);
  background: var(--ink-900);
}

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

.detail-info h1 {
  margin: 16px 0 14px;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.08;
}

.detail-one-line {
  color: var(--ink-700);
  font-size: 17px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--ink-700);
  background: var(--sunset-50);
  border: 1px solid var(--sunset-200);
  font-size: 14px;
  font-weight: 700;
}

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

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--strong-shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--white);
  background: #000000;
  cursor: pointer;
  overflow: hidden;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-play-icon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  color: var(--sunset-600);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--strong-shadow);
  font-size: 32px;
  text-indent: 4px;
}

.player-play-text {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(50% - 78px);
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.92);
  font-weight: 900;
}

.content-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.content-card h2:not(:first-child) {
  margin-top: 28px;
}

.content-card p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.95;
  font-size: 16px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 14px;
}

.site-footer p {
  margin: 0;
  max-width: 520px;
  line-height: 1.75;
  color: #cbd5e1;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.center-action {
  justify-content: center;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1024px) {
  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

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

  .hero-slider {
    min-height: 430px;
  }

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

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

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

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--strong-shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
    border-radius: 12px;
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: var(--sunset-50);
  }

  .hero {
    padding: 52px 0 64px;
  }

  .hero-slides {
    height: 390px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

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

  .hero-slides {
    height: 360px;
  }

  .hero-panel {
    padding: 24px;
  }

  .movie-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 40px 54px 1fr 14px;
    gap: 10px;
  }

  .rank-item img {
    width: 54px;
    height: 72px;
  }

  .content-card {
    padding: 22px;
  }
}
