:root {
  color-scheme: light;
  --amber: #d97706;
  --amber-dark: #92400e;
  --amber-soft: #fffbeb;
  --orange: #f97316;
  --red: #ef4444;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 22px 60px rgba(15, 23, 42, 0.18);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

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", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

img,
video {
  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 {
  max-width: 900px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-dark);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--amber);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 999px;
}

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

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.active {
  background: var(--amber-soft);
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(120deg, #fbbf24, #fb923c, #d97706);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.65fr);
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(120, 53, 15, 0.94), rgba(217, 119, 6, 0.72), rgba(251, 146, 60, 0.42)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.2), transparent 28%), rgba(0, 0, 0, 0.12);
}

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

.hero-copy {
  color: var(--white);
  max-width: 720px;
  padding: 42px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.amber {
  color: var(--amber);
}

.hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 26px;
  color: #fff7ed;
  font-size: clamp(18px, 2.3vw, 25px);
}

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

.hero-tags span,
.detail-meta span,
.movie-meta span {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.detail-meta span,
.movie-meta span {
  background: var(--amber-soft);
  color: var(--amber-dark);
}

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

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

.button:hover {
  transform: translateY(-2px) scale(1.02);
}

.button.primary,
.button.light {
  background: var(--white);
  color: var(--amber);
  box-shadow: var(--shadow);
}

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

.hero-poster {
  display: block;
  width: min(360px, 100%);
  margin-left: auto;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

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

.search-strip {
  margin-top: -36px;
  position: relative;
  z-index: 3;
}

.search-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.search-strip h2,
.section-heading h2,
.page-hero h1,
.detail-main h1,
.detail-section h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.search-strip h2 {
  color: var(--gray-800);
  font-size: 26px;
}

.search-strip p,
.page-hero p,
.site-footer p,
.movie-card p,
.detail-section p,
.one-line {
  color: var(--gray-600);
}

.home-search,
.search-panel,
.inline-filter {
  display: flex;
  gap: 10px;
}

.home-search input,
.search-panel input,
.search-panel select,
.inline-filter input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--white);
  color: var(--gray-800);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

.home-search input:focus,
.search-panel input:focus,
.search-panel select:focus,
.inline-filter input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.22);
}

.home-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: var(--white);
  background: var(--amber);
  font-weight: 800;
}

.section {
  padding: 64px 0;
}

.section-soft {
  background: #fff7ed;
}

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

.section-heading h2 {
  color: var(--gray-800);
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading.compact h2 {
  font-size: clamp(24px, 3vw, 34px);
}

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

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

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

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

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fdba74);
}

.poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-year {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--white);
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h3 {
  margin: 12px 0 8px;
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.32;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

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

.tag {
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--amber-dark);
  background: var(--amber-soft);
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile,
.overview-card a {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: linear-gradient(135deg, var(--white), #fff7ed);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.overview-card a:hover {
  transform: translateY(-5px);
  border-color: #f59e0b;
}

.category-tile span,
.overview-card h2 {
  color: var(--gray-800);
  font-size: 22px;
  font-weight: 800;
}

.category-tile small,
.overview-card p,
.overview-samples {
  color: var(--gray-600);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  gap: 36px;
}

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

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

.rank-link {
  display: grid;
  grid-template-columns: 44px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.rank-link:hover strong {
  color: var(--amber);
}

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

.rank-link img {
  width: 76px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  background: #fde68a;
}

.rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-copy strong,
.compact-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy small,
.compact-card small {
  color: var(--gray-500);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  border-radius: 16px;
  padding: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.compact-card:hover span {
  color: var(--amber);
}

.compact-card img {
  grid-row: span 2;
  width: 68px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card span {
  color: var(--gray-800);
  font-weight: 800;
}

.cta-band {
  padding: 72px 0;
  color: var(--white);
  text-align: center;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
}

.cta-band p {
  margin: 0 0 24px;
  color: #fffbeb;
  font-size: 20px;
}

.page-hero {
  padding: 72px 0;
  color: var(--white);
}

.amber-hero {
  background: linear-gradient(120deg, #f59e0b, #f97316);
}

.search-hero {
  background: linear-gradient(120deg, var(--blue), var(--cyan));
}

.page-hero h1 {
  margin-top: 10px;
  font-size: clamp(38px, 6vw, 58px);
}

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

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

.detail-wrap .breadcrumb {
  color: var(--gray-500);
}

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

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

.inline-filter {
  margin-top: 26px;
  max-width: 560px;
}

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

.overview-samples {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
}

.search-panel {
  margin-top: 28px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.search-panel select {
  max-width: 160px;
}

.detail-wrap {
  padding: 34px 0 70px;
}

.detail-card,
.detail-section {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.player-shell {
  position: relative;
  background: #000;
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.play-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.play-icon::before {
  content: "";
  display: block;
  margin-left: 6px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid var(--amber);
}

.player-overlay strong {
  display: block;
  max-width: min(680px, calc(100% - 48px));
  font-size: clamp(22px, 4vw, 40px);
  line-height: 1.2;
}

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

.detail-poster img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-main h1 {
  margin: 10px 0 14px;
  color: var(--gray-800);
  font-size: clamp(32px, 4vw, 48px);
}

.one-line {
  margin: 22px 0;
  font-size: 18px;
}

.detail-tags {
  margin-top: 18px;
}

.detail-section {
  margin-top: 28px;
  padding: 30px;
}

.detail-section h2 {
  margin-bottom: 14px;
  color: var(--gray-800);
  font-size: 28px;
}

.detail-section p {
  margin: 0;
  font-size: 17px;
}

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

.site-footer {
  padding-top: 52px;
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 32px;
}

.footer-brand {
  color: #fbbf24;
  margin-bottom: 14px;
}

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

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: #d1d5db;
}

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

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  margin-top: 38px;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 1100px) {
  .movie-grid,
  .movie-grid.wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .two-column,
  .ranking-board {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero {
    min-height: 700px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 12px;
    align-content: center;
  }

  .hero-poster {
    width: min(240px, 62vw);
    margin: 0 auto;
    transform: none;
  }

  .search-strip-inner,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-search,
  .search-panel {
    flex-direction: column;
    border-radius: 24px;
  }

  .search-panel select {
    max-width: none;
  }

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

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

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

  .hero-copy {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 17px;
  }

  .section {
    padding: 44px 0;
  }

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

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

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

  .rank-link img {
    width: 64px;
  }

  .detail-content,
  .detail-section {
    padding: 22px;
  }
}
