:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff3db;
  --line: rgba(251, 146, 60, 0.24);
  --amber: #d97706;
  --orange: #ea580c;
  --deep: #78350f;
  --shadow: 0 18px 50px rgba(124, 45, 18, 0.14);
  --radius: 24px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(251, 191, 36, 0.28), transparent 28rem),
    radial-gradient(circle at 95% 15%, rgba(249, 115, 22, 0.18), transparent 30rem),
    linear-gradient(180deg, #fffaf4 0%, #fff7ed 45%, #ffffff 100%);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  backdrop-filter: blur(20px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.28);
}

.brand-text {
  font-size: clamp(20px, 2vw, 28px);
  color: transparent;
  background: linear-gradient(90deg, #b45309, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 700;
}

.desktop-nav a,
.nav-dropdown > button {
  border: 0;
  padding: 10px 0;
  color: #374151;
  background: transparent;
}

.desktop-nav a:hover,
.nav-dropdown > button:hover {
  color: var(--orange);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -22px;
  width: 198px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.18s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.nav-dropdown-menu a:hover {
  background: #fff7ed;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--deep);
}

.mobile-nav {
  display: none;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: #fff7ed;
  color: var(--orange);
}

.hero-carousel {
  width: min(var(--max), calc(100% - 32px));
  margin: 34px auto 0;
}

.hero-stage {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 28px 80px rgba(124, 45, 18, 0.28);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

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

.hero-slide > img {
  position: absolute;
  inset: 0;
  opacity: 0.62;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 146, 60, 0.42), transparent 26rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.52) 54%, rgba(17, 24, 39, 0.16)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: clamp(30px, 6vw, 78px);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #f59e0b;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  font-size: clamp(36px, 6.4vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-desc,
.page-hero p,
.detail-lead {
  margin: 22px 0 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 247, 237, 0.92);
  font-size: 12px;
  font-weight: 800;
}

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

.hero-tags span {
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.18s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 16px 38px rgba(234, 88, 12, 0.28);
}

.btn-glass {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: #78350f;
  background: rgba(255, 255, 255, 0.92);
}

.hero-nav {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-nav button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 32px;
  line-height: 1;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: #78350f;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(124, 45, 18, 0.08);
}

.hero-thumb.is-active {
  border-color: rgba(234, 88, 12, 0.42);
  background: #ffffff;
}

.hero-thumb img {
  height: 72px;
  border-radius: 12px;
  background: var(--soft);
}

.hero-thumb span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: left;
  font-size: 13px;
  font-weight: 900;
}

.search-band,
.section,
.page-hero,
.detail-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 30px auto 0;
}

.search-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.search-copy h2,
.section-heading h2,
.trend-panel h2,
.copy-card h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(234, 88, 12, 0.24);
  border-radius: 999px;
  background: #fff7ed;
}

.search-box span {
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
}

.section {
  padding: 24px 0;
}

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

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

.category-tile,
.category-overview-card,
.trend-panel,
.copy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.category-tile {
  padding: 20px;
}

.category-main-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--deep);
  font-weight: 950;
}

.category-main-link strong {
  color: var(--orange);
  font-size: 13px;
}

.category-tile p,
.trend-panel p,
.copy-card p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.75;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.category-samples a {
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.trend-panel {
  position: sticky;
  top: 100px;
  padding: 26px;
}

.trend-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.trend-tags a,
.chip-filter button {
  border: 1px solid rgba(234, 88, 12, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--deep);
  background: #fff7ed;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
  transition: 0.18s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(124, 45, 18, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(251, 191, 36, 0.32), transparent 11rem),
    linear-gradient(135deg, #451a03, #9a3412);
}

.poster-link img {
  transition: transform 0.25s ease;
}

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

.poster-type,
.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.poster-type {
  left: 10px;
  top: 10px;
}

.poster-year {
  right: 10px;
  top: 10px;
}

.rank-badge {
  left: 10px;
  bottom: 10px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.card-body {
  padding: 14px;
}

.card-body.compact {
  padding: 12px;
}

.card-meta {
  margin: 0 0 7px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.card-body h3 {
  margin: 0;
  min-height: 48px;
  color: var(--deep);
  font-size: 17px;
  line-height: 1.28;
  font-weight: 950;
}

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

.card-desc {
  overflow: hidden;
  display: -webkit-box;
  min-height: 62px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 56px 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.08);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 950;
}

.ranking-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #fed7aa;
}

.ranking-copy h3 {
  margin: 0;
  color: var(--deep);
  font-size: 18px;
  font-weight: 950;
}

.ranking-copy p {
  margin: 6px 0 8px;
  color: var(--muted);
  line-height: 1.62;
}

.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.section-more {
  display: inline-flex;
  margin-top: 16px;
  color: var(--orange);
  font-weight: 950;
}

.page-hero,
.detail-hero {
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 10%, rgba(251, 191, 36, 0.5), transparent 22rem),
    linear-gradient(135deg, #78350f, #9a3412 52%, #f97316);
  box-shadow: var(--shadow);
}

.page-hero-inner {
  padding: clamp(32px, 6vw, 72px);
  color: #ffffff;
}

.small-hero .page-hero-inner,
.category-hero .page-hero-inner {
  width: min(820px, 100%);
}

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

.breadcrumb a:hover {
  color: #ffffff;
}

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

.category-overview-card {
  overflow: hidden;
}

.category-overview-card > a {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  min-height: 210px;
  padding: 18px;
}

.mini-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mini-posters img {
  min-height: 170px;
  border-radius: 14px;
  background: #ffedd5;
}

.chip-filter {
  width: min(var(--max), calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-filter button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.detail-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(251, 191, 36, 0.34), transparent 24rem),
    linear-gradient(135deg, #1f2937, #78350f 52%, #9a3412);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(230px, 340px) 1fr;
  gap: clamp(24px, 5vw, 54px);
  padding: clamp(28px, 5vw, 62px);
  color: #ffffff;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.detail-intro {
  align-self: center;
}

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

.detail-pills span,
.detail-tags span {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  scroll-margin-top: 96px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.22);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 28px;
  border: 0;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.78));
}

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

.play-symbol {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 20px 46px rgba(234, 88, 12, 0.34);
  font-size: 30px;
}

.player-cover strong {
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.player-cover small {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.detail-copy-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.copy-card {
  padding: 26px;
}

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

.feature-poster {
  position: relative;
  display: block;
  overflow: hidden;
  width: min(260px, 100%);
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  background: #78350f;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.22);
}

.feature-poster span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  color: #ffffff;
  font-weight: 950;
}

.ranking-feature {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: end;
}

.site-footer {
  margin-top: 60px;
  color: #ffedd5;
  background: linear-gradient(135deg, #78350f, #451a03);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 26px;
  padding: 46px 0;
}

.footer-logo .brand-text {
  color: #ffedd5;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 560px;
  color: #fed7aa;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff7ed;
  font-size: 18px;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 9px;
}

.footer-links a {
  color: #fed7aa;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 237, 213, 0.14);
  text-align: center;
}

.footer-bottom p {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  color: #fdba74;
  font-size: 13px;
}

.is-hidden {
  display: none !important;
}

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

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

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

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

  .trend-panel {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
  }

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

  .hero-stage {
    min-height: 540px;
    border-radius: 24px;
  }

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

  .hero-nav {
    right: 18px;
    bottom: 18px;
  }

  .search-band,
  .ranking-feature,
  .detail-grid,
  .footer-inner,
  .category-overview-card > a {
    grid-template-columns: 1fr;
  }

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

  .detail-poster,
  .feature-poster {
    max-width: 280px;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .hero-carousel,
  .search-band,
  .section,
  .page-hero,
  .detail-hero,
  .chip-filter {
    width: min(100% - 22px, var(--max));
  }

  .brand-text {
    font-size: 20px;
  }

  .hero-content,
  .page-hero-inner,
  .detail-grid {
    padding: 24px;
  }

  .hero-stage {
    min-height: 500px;
  }

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

  .ranking-item {
    grid-template-columns: 42px 68px 1fr;
    gap: 10px;
  }

  .ranking-number {
    width: 38px;
    height: 38px;
  }

  .card-body h3 {
    min-height: auto;
  }
}
