:root {
  --warm-50: #fdf8f6;
  --warm-100: #f2e8e5;
  --warm-200: #eadbd6;
  --warm-300: #e0cec7;
  --warm-400: #d2bab0;
  --warm-600: #a18072;
  --warm-700: #977669;
  --warm-800: #846358;
  --warm-900: #43302b;
  --sky-50: #f0f9ff;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --white: #ffffff;
  --shadow-md: 0 10px 24px rgba(67, 48, 43, 0.12);
  --shadow-xl: 0 26px 60px rgba(67, 48, 43, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--warm-50);
  color: var(--warm-900);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  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.92);
  border-bottom: 1px solid rgba(224, 206, 199, 0.72);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

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

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-600), var(--sky-800));
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.28);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
  color: var(--warm-700);
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--sky-600);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--warm-100);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--warm-900);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px 16px 18px;
  background: var(--white);
  border-top: 1px solid var(--warm-100);
}

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

.mobile-nav a {
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--warm-700);
  font-weight: 700;
}

.hero-slider {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  color: var(--white);
  background: var(--warm-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

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

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

.hero-shade {
  background: linear-gradient(90deg, rgba(67, 48, 43, 0.92), rgba(67, 48, 43, 0.62) 46%, rgba(67, 48, 43, 0.16)), linear-gradient(0deg, rgba(67, 48, 43, 0.85), rgba(67, 48, 43, 0.05) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  gap: 42px;
  align-items: center;
  min-height: 72vh;
  padding: 72px 0;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-400);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 23px);
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-form button {
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-600), var(--sky-800));
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.28);
}

.primary-button:hover,
.search-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(2, 132, 199, 0.36);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(18px);
}

.hero-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--amber-400);
  font-size: 22px;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

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

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

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.search-strip {
  margin-top: -38px;
  position: relative;
  z-index: 5;
}

.search-strip-inner,
.page-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-xl);
}

.search-strip h2,
.section-heading h2,
.story-card h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.search-form {
  display: flex;
  gap: 10px;
  width: min(560px, 100%);
}

.search-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--warm-200);
  border-radius: 999px;
  color: var(--warm-900);
  background: var(--white);
  outline: none;
}

.search-form input:focus {
  border-color: var(--sky-600);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

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

.warm-section {
  background: var(--warm-100);
}

.rank-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--warm-900), var(--sky-800));
}

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

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

.light-heading a,
.light-heading .eyebrow {
  color: var(--amber-400);
}

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

.category-tile a {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(224, 206, 199, 0.82);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  min-height: 170px;
}

.category-covers img {
  width: 100%;
  height: 100%;
  min-height: 80px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--warm-100), var(--warm-300));
}

.category-copy h2 {
  margin: 8px 0 10px;
  font-size: 25px;
}

.category-copy p {
  margin: 0 0 18px;
  color: var(--warm-700);
}

.category-copy span {
  color: var(--sky-700);
  font-weight: 900;
}

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

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

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

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--warm-100), var(--warm-300));
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.05);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--sky-600));
  font-size: 12px;
}

.movie-card-body {
  padding: 16px;
}

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--sky-600);
}

.card-meta,
.card-line {
  margin: 0 0 10px;
  color: var(--warm-700);
  font-size: 13px;
}

.card-line {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  background: var(--warm-100);
  color: var(--warm-800);
}

.page-hero {
  padding: 74px 0 58px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-600), var(--sky-800));
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 12px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

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

.page-search {
  justify-content: start;
  width: min(720px, 100%);
  margin-top: 24px;
  padding: 12px;
  border-radius: 999px;
}

.detail-hero {
  padding: 58px 0;
  color: var(--white);
  background: radial-gradient(circle at 12% 10%, rgba(251, 191, 36, 0.16), transparent 34%), linear-gradient(135deg, var(--warm-900), var(--sky-800));
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--warm-100), var(--warm-300));
  box-shadow: var(--shadow-xl);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: var(--shadow-xl);
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  gap: 14px;
  place-items: center;
  align-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(2, 132, 199, 0.34), rgba(5, 5, 5, 0.66));
  cursor: pointer;
}

.player-start span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  padding-left: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky-600), var(--sky-800));
  box-shadow: 0 18px 42px rgba(2, 132, 199, 0.45);
  font-size: 32px;
}

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

.player-shell.is-playing .player-start {
  display: none;
}

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

.story-card {
  padding: 28px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.story-card p {
  margin: 14px 0 0;
  color: var(--warm-700);
  font-size: 17px;
}

.site-footer {
  color: var(--warm-100);
  background: var(--warm-900);
}

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

.footer-brand {
  margin-bottom: 16px;
  font-size: 20px;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: var(--warm-300);
}

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

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

.footer-links a {
  color: var(--warm-300);
}

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

.copyright {
  padding: 18px 0 28px;
  color: var(--warm-400);
  border-top: 1px solid rgba(242, 232, 229, 0.14);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-content,
  .detail-grid,
  .story-grid,
  .footer-grid,
  .category-tile a {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

  .search-strip-inner,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

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

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

  .hero-slider,
  .hero-content {
    min-height: 78vh;
  }

  .hero-content {
    padding: 54px 0 86px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .search-form,
  .page-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

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

  .movie-card {
    display: grid;
    grid-template-columns: 118px 1fr;
  }

  .poster-frame {
    height: 100%;
  }

  .footer-grid {
    gap: 24px;
  }
}
