* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-xl: 0 30px 70px rgba(15, 23, 42, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: var(--white);
  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,
select {
  font: inherit;
}

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

.narrow-container {
  width: min(900px, calc(100% - 32px));
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-nav.is-scrolled,
.site-nav:hover {
  background: rgba(250, 250, 249, 0.95);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: 0.04em;
}

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

.brand-name {
  font-size: 22px;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-link,
.mobile-link {
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--slate-700);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--amber-700);
  background: rgba(254, 243, 199, 0.75);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--slate-800);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  background: rgba(250, 250, 249, 0.98);
  box-shadow: var(--shadow-sm);
}

.mobile-menu.is-open {
  display: grid;
  gap: 4px;
}

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

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

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

.hero-slide img,
.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(850px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 72px;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(217, 119, 6, 0.22);
  border: 1px solid rgba(254, 243, 199, 0.28);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1,
.hero-content h2 {
  margin: 22px 0 16px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 700px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

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

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

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

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

.btn-primary:hover {
  background: var(--amber-700);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

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

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

.quick-discover {
  padding: 58px 0 28px;
  background: linear-gradient(to bottom, var(--stone-100), var(--white));
}

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

.section-block.surface,
.surface {
  background: linear-gradient(to bottom, var(--stone-50), var(--white));
}

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

.section-heading.align-center {
  display: block;
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading span,
.small-heading span {
  display: block;
  margin-bottom: 5px;
  color: var(--amber-700);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.section-heading h2,
.page-hero h1,
.detail-intro h1,
.detail-article h2,
.detail-meta h2 {
  margin: 0;
  color: var(--slate-800);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p {
  margin: 12px auto 0;
  color: var(--slate-600);
}

.section-heading a {
  color: var(--amber-700);
  font-weight: 800;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pill-link {
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  transition: color 0.25s ease, border 0.25s ease, transform 0.25s ease;
}

.pill-link:hover {
  color: var(--amber-700);
  border-color: var(--amber-600);
  transform: translateY(-2px);
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(214, 211, 209, 0.72);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 119, 6, 0.32);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-200);
}

.poster-wrap img,
.horizontal-poster img,
.detail-poster img,
.rank-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent 58%);
}

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  color: var(--white);
  background: rgba(217, 119, 6, 0.9);
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.card-content {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.card-content strong {
  min-height: 44px;
  color: var(--slate-800);
  line-height: 1.35;
  font-size: 17px;
}

.card-content span {
  display: -webkit-box;
  min-height: 45px;
  overflow: hidden;
  color: var(--slate-600);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.card-content small {
  color: var(--slate-500);
  font-weight: 700;
}

.card-large .poster-wrap {
  aspect-ratio: 16 / 11;
}

.large-title {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  z-index: 2;
}

.card-horizontal {
  display: flex;
  min-height: 152px;
}

.horizontal-poster {
  position: relative;
  width: 220px;
  flex: 0 0 220px;
  overflow: hidden;
  background: var(--stone-200);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--stone-100), var(--white));
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
}

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

.rank-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px 112px minmax(0, 1fr) 44px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: var(--shadow-md);
}

.rank-index {
  color: var(--amber-700);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  height: 70px;
  border-radius: 12px;
  background: var(--stone-200);
}

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

.rank-info strong,
.rank-info em,
.rank-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info strong {
  color: var(--slate-800);
  font-style: normal;
}

.rank-info em {
  color: var(--slate-600);
  font-size: 14px;
  font-style: normal;
}

.rank-info small {
  color: var(--slate-500);
  font-weight: 700;
}

.rank-play {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--amber-600);
  border-radius: 50%;
  opacity: 0.72;
  transition: opacity 0.25s ease;
}

.mini-rank .rank-row {
  grid-template-columns: 42px minmax(0, 1fr) 36px;
}

.mini-rank .rank-row img {
  display: none;
}

.page-main {
  padding-top: 76px;
}

.page-hero {
  padding: 82px 0 64px;
  background: linear-gradient(180deg, var(--stone-100), var(--white));
}

.compact-hero {
  padding-bottom: 42px;
}

.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  color: var(--slate-600);
  font-size: 18px;
}

.category-list {
  display: grid;
  gap: 28px;
}

.category-card {
  padding: 24px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
}

.category-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.category-card-head span {
  color: var(--amber-700);
  font-size: 24px;
  font-weight: 900;
}

.category-card-head strong {
  color: var(--slate-600);
  font-weight: 600;
}

.filter-bar {
  margin-top: 28px;
}

.advanced-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
}

.filter-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(720px, 100%);
  padding: 0 18px;
  border: 2px solid var(--stone-200);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-input-wrap span {
  color: var(--slate-500);
  font-size: 22px;
}

.filter-input-wrap input,
.advanced-filter select {
  width: 100%;
  min-height: 56px;
  border: 0;
  outline: 0;
  color: var(--slate-800);
  background: transparent;
}

.advanced-filter select {
  padding: 0 14px;
  border: 2px solid var(--stone-200);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 36px;
  text-align: center;
  color: var(--slate-500);
  background: var(--stone-50);
  border-radius: 22px;
  border: 1px solid var(--stone-200);
}

.empty-state.is-visible {
  display: block;
}

.detail-main {
  padding-top: 0;
}

.detail-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

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

.detail-bg {
  opacity: 0.72;
  filter: blur(2px) saturate(1.05);
  transform: scale(1.02);
}

.detail-shade {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.2));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 130px 0 58px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 3 / 4;
  background: var(--stone-300);
}

.detail-intro h1 {
  margin: 18px 0 14px;
  color: var(--white);
  font-size: clamp(34px, 6vw, 64px);
}

.detail-intro p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

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

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

.breadcrumb em {
  font-style: normal;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.player-section {
  padding-top: 54px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.35), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--amber-600);
  font-size: 34px;
  box-shadow: 0 24px 60px rgba(217, 119, 6, 0.42);
}

.player-start strong {
  font-size: 22px;
}

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

.detail-article,
.detail-meta {
  padding: 28px;
  border: 1px solid var(--stone-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-article h2,
.detail-meta h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.detail-article p {
  margin: 0 0 28px;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.9;
}

.detail-meta {
  position: sticky;
  top: 96px;
}

.detail-meta dl {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px 16px;
  margin: 0;
}

.detail-meta dt {
  color: var(--slate-500);
  font-weight: 800;
}

.detail-meta dd {
  margin: 0;
  color: var(--slate-800);
}

.detail-meta a {
  color: var(--amber-700);
  font-weight: 800;
}

.site-footer {
  padding: 54px 0 28px;
  background: linear-gradient(to bottom, var(--stone-100), var(--stone-200));
  border-top: 1px solid var(--stone-300);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.footer-brand strong {
  display: inline-flex;
  margin-left: 10px;
  color: var(--slate-800);
  font-size: 20px;
}

.footer-brand p {
  max-width: 620px;
  color: var(--slate-600);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--slate-700);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 22px;
  color: var(--slate-500);
  text-align: center;
  border-top: 1px solid var(--stone-300);
}

@media (max-width: 1024px) {
  .movie-grid,
  .large-grid,
  .compact-grid,
  .category-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .rank-panel,
  .detail-meta {
    position: static;
  }
}

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

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

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

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .large-grid,
  .compact-grid,
  .category-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 110px;
  }

  .detail-poster {
    width: min(240px, 70vw);
  }

  .card-horizontal {
    display: block;
  }

  .horizontal-poster {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .rank-row {
    grid-template-columns: 46px 84px minmax(0, 1fr);
  }

  .rank-play {
    display: none;
  }

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

@media (max-width: 560px) {
  .container,
  .nav-inner,
  .mobile-menu,
  .footer-inner,
  .footer-copy {
    width: min(100% - 22px, 1180px);
  }

  .brand-name {
    font-size: 18px;
  }

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

  .page-hero {
    padding-top: 58px;
  }

  .movie-grid,
  .large-grid,
  .compact-grid,
  .category-preview {
    grid-template-columns: 1fr;
  }

  .hero-content {
    align-items: flex-start;
    text-align: left;
  }

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

  .section-heading {
    display: block;
  }

  .detail-hero {
    min-height: 760px;
  }

  .detail-intro p {
    font-size: 16px;
  }

  .player-start strong {
    max-width: 260px;
    font-size: 18px;
  }
}
