:root {
  color-scheme: light;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-600: #ea580c;
  --text: #4a2d08;
  --muted: #8a5b1e;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
  --soft-shadow: 0 8px 24px rgba(120, 53, 15, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--amber-50) 0%, var(--orange-50) 46%, var(--amber-100) 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
}

.header-inner {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 900;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.28);
}

.logo-text {
  font-size: 26px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-link {
  color: var(--amber-800);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.search-form,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form input,
.mobile-search input,
.filter-input,
.search-page-input {
  width: 210px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  outline: none;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--amber-900);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-form input:focus,
.mobile-search input:focus,
.filter-input:focus,
.search-page-input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.search-form button,
.mobile-search button,
.search-page-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  cursor: pointer;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--amber-800);
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 16px 20px 20px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(245, 158, 11, 0.18);
}

.mobile-panel.open {
  display: block;
}

.mobile-links,
.mobile-cats {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.mobile-cats a {
  color: var(--amber-700);
  font-size: 14px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.46) 46%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  padding: 0 0 70px;
  color: white;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  color: white;
  background: rgba(245, 158, 11, 0.92);
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.hero h1,
.hero h2 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 8px 25px rgba(0, 0, 0, 0.38);
}

.hero .hero-movie-title {
  display: block;
  margin-top: 10px;
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 740px;
  margin: 0 0 28px;
  font-size: clamp(17px, 2.1vw, 23px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.90);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

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

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.35);
}

.secondary-button {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 72px;
}

.section {
  margin: 0 0 70px;
}

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

.section-title {
  margin: 0;
  color: var(--amber-900);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--amber-700);
  line-height: 1.75;
}

.section-link {
  color: var(--amber-600);
  font-weight: 900;
  white-space: nowrap;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-poster {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

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

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

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.55) 100%);
}

.card-type {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(245, 158, 11, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 9px;
  color: var(--amber-900);
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

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

.card-body p {
  min-height: 48px;
  margin: 0 0 13px;
  color: var(--amber-700);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

.movie-row {
  display: grid;
  gap: 18px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.movie-card-horizontal .card-poster {
  aspect-ratio: auto;
  height: 100%;
  min-height: 210px;
}

.movie-card-large .card-poster {
  aspect-ratio: 16 / 9;
}

.scroller {
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: thin;
}

.scroller-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.scroller .movie-card {
  width: 320px;
}

.feature-band {
  margin-left: -20px;
  margin-right: -20px;
  padding: 44px 20px;
  border-radius: 30px;
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.96), rgba(255, 237, 213, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

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

.category-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 22px;
  color: var(--amber-900);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(254, 243, 199, 0.86));
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--amber-700);
  line-height: 1.7;
  font-size: 14px;
}

.category-strip {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.category-strip img {
  width: 42px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--amber-100);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
  color: var(--amber-600);
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.rank-item img {
  width: 86px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--amber-100);
}

.rank-title {
  color: var(--amber-900);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--amber-700);
  font-size: 13px;
}

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 20px 28px;
}

.page-hero-box {
  overflow: hidden;
  border-radius: 30px;
  padding: 46px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(255, 237, 213, 0.95));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 14px;
  color: var(--amber-900);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--amber-700);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.filter-input,
.search-page-input {
  width: min(420px, 100%);
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 0.85fr);
  gap: 30px;
}

.breadcrumb {
  margin-bottom: 20px;
  color: var(--amber-700);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-600);
  font-weight: 800;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.28);
}

.player-cover.is-hidden {
  display: none;
}

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

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.08));
}

.play-button {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.30);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.detail-card,
.side-card {
  border-radius: 22px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

.detail-card h1 {
  margin: 0 0 18px;
  color: var(--amber-900);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--amber-700);
  font-size: 14px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--amber-50);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-content h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--amber-900);
  font-size: 24px;
}

.detail-content p {
  margin: 0 0 18px;
  color: var(--amber-800);
  line-height: 1.85;
}

.side-card {
  position: sticky;
  top: 90px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 96px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--amber-100);
}

.related-item span {
  color: var(--amber-900);
  font-weight: 850;
  line-height: 1.4;
}

.guess-grid {
  margin-top: 44px;
}

.search-panel {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.search-results-empty {
  padding: 32px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--amber-700);
  box-shadow: var(--soft-shadow);
}

.site-footer {
  background: linear-gradient(180deg, var(--amber-50), var(--orange-100));
  border-top: 1px solid rgba(245, 158, 11, 0.16);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 34px;
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1.1fr;
  gap: 34px;
}

.footer-brand p,
.footer-block a {
  color: var(--amber-700);
  line-height: 1.75;
}

.footer-block {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-block h2 {
  margin: 0 0 8px;
  color: var(--amber-900);
  font-size: 18px;
}

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

.footer-cats h2 {
  grid-column: 1 / -1;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid rgba(245, 158, 11, 0.22);
  color: var(--amber-600);
  font-size: 14px;
}

@media (max-width: 980px) {
  .desktop-nav,
  .search-form {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .hero {
    height: 62vh;
    min-height: 480px;
  }

  .hero-content {
    padding-bottom: 62px;
  }

  .movie-grid,
  .movie-grid-three,
  .category-grid,
  .rank-panel,
  .detail-shell,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

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

  .side-card {
    position: static;
  }

  .movie-card-horizontal {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

  .logo-text {
    font-size: 22px;
  }

  .hero {
    height: 68vh;
    min-height: 520px;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-bottom: 72px;
  }

  .hero-control {
    display: none;
  }

  .page-main,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero-box {
    padding: 28px;
    border-radius: 24px;
  }

  .section-head,
  .filter-bar,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid-three,
  .category-grid,
  .rank-panel,
  .footer-inner,
  .footer-cats {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }

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

  .rank-meta {
    display: none;
  }

  .detail-card,
  .side-card {
    padding: 22px;
  }

  .play-button {
    width: 72px;
    height: 72px;
  }
}
