* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --red-50: #fef2f2;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-700: #44403c;
  --stone-900: #1c1917;
  --white: #ffffff;
  --black: #0c0a09;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
  --soft-shadow: 0 10px 30px rgba(120, 53, 15, 0.10);
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
}

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(--stone-900);
  background: linear-gradient(180deg, var(--amber-50), var(--white) 38%, var(--orange-50));
}

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: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid var(--amber-200);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 18px rgba(120, 53, 15, 0.06);
}

.header-inner {
  width: min(var(--max-width), calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-900);
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

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

.brand-text em {
  margin-top: 3px;
  font-size: 12px;
  color: var(--amber-600);
  font-style: normal;
}

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

.nav-link,
.mobile-nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--amber-800);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

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

.header-search input,
.mobile-search input,
.filter-bar input,
.search-panel input {
  width: 210px;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  padding: 10px 15px;
  outline: none;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.82);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--amber-500);
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--amber-100);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--amber-200);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.94), rgba(12, 10, 9, 0.46) 48%, rgba(12, 10, 9, 0.12));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 68px;
  width: min(var(--max-width), calc(100% - 40px));
  transform: translateX(-50%);
  color: var(--white);
}

.hero-content h1 {
  max-width: 820px;
  margin: 14px 0 16px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-labels,
.detail-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-labels span,
.detail-labels span,
.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.92);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.hero-primary,
.hero-secondary,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
}

.hero-primary,
.primary-link {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.30);
}

.hero-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: var(--white);
  background: rgba(12, 10, 9, 0.34);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.content-section,
.detail-top {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 62px 0 0;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2,
.ranking-head h2,
.info-box h2,
.detail-copy h2,
.footer-links h2 {
  margin: 0;
  color: var(--amber-900);
}

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

.section-heading p {
  margin: 10px 0 0;
  color: var(--amber-700);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.82);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.poster-link,
.movie-thumb,
.rank-thumb,
.feature-image,
.category-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.poster-link {
  aspect-ratio: 16 / 10;
}

.poster-link img,
.movie-thumb img,
.rank-thumb img,
.feature-image img,
.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover img,
.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.poster-shade,
.category-tile span,
.category-cover span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.82), rgba(12, 10, 9, 0.08));
}

.poster-category {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.90);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3,
.rank-card h3,
.feature-card h3,
.category-overview-card h2 {
  margin: 9px 0 8px;
  color: var(--amber-900);
  line-height: 1.25;
}

.movie-card h3 {
  font-size: 19px;
}

.movie-card p,
.feature-card p,
.category-overview-card p,
.info-box li,
.footer-main p,
.detail-copy p {
  color: var(--stone-700);
  line-height: 1.78;
}

.movie-card p {
  margin: 0 0 14px;
  font-size: 14px;
}

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

.tag-row span {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--amber-800);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.75fr);
  gap: 30px;
  align-items: start;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: stretch;
}

.movie-thumb {
  min-height: 150px;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.86);
  transform: translate(-50%, -50%);
}

.ranking-panel {
  position: sticky;
  top: 86px;
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 251, 235, 0.95));
  box-shadow: var(--soft-shadow);
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ranking-head a,
.text-link {
  color: var(--amber-700);
  font-weight: 900;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 40px 78px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.rank-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}

.rank-card h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.rank-card p {
  margin: 0 0 5px;
  font-size: 13px;
}

.rank-card span {
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 800;
}

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

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
  min-height: 360px;
}

.feature-image {
  min-height: 360px;
}

.feature-copy {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-copy .eyebrow,
.page-hero .eyebrow {
  color: var(--amber-900);
  background: var(--amber-100);
  backdrop-filter: none;
}

.feature-card h3 {
  font-size: clamp(28px, 4vw, 42px);
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
  color: var(--white);
}

.category-tile strong {
  bottom: 54px;
  font-size: 22px;
}

.category-tile em {
  bottom: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.page-hero {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 34px auto 0;
  border: 1px solid rgba(253, 230, 138, 0.86);
  border-radius: 30px;
  padding: clamp(32px, 6vw, 70px);
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 32%), linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 235, 0.92));
  box-shadow: var(--soft-shadow);
}

.page-hero h1 {
  margin: 16px 0 12px;
  color: var(--amber-900);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--amber-800);
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--amber-800);
  font-weight: 800;
}

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

.filter-bar,
.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--amber-200);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.filter-bar label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--amber-900);
  font-weight: 900;
}

.filter-bar input,
.search-panel input {
  width: min(430px, 62vw);
}

.search-panel form {
  width: 100%;
  display: flex;
  gap: 12px;
}

.search-panel input {
  flex: 1;
  width: auto;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.category-cover {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
}

.mini-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.mini-link-list a {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--amber-800);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

.detail-top {
  padding-top: 34px;
}

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

.player-card,
.detail-copy,
.detail-side,
.info-box {
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

.player-card {
  overflow: hidden;
  background: #000000;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.media-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.66), rgba(12, 10, 9, 0.14));
  cursor: pointer;
}

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

.play-ring {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.36);
  font-size: 28px;
}

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

.detail-copy {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 38px);
}

.detail-labels span {
  color: var(--amber-900);
  background: var(--amber-100);
}

.detail-copy h1 {
  margin: 18px 0 14px;
  color: var(--amber-900);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
}

.detail-copy .lead {
  color: var(--amber-800);
  font-size: 18px;
}

.detail-copy h2 {
  margin-top: 28px;
  font-size: 24px;
}

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

.detail-side {
  position: sticky;
  top: 92px;
  padding: 16px;
}

.detail-poster {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.info-box {
  margin-top: 16px;
  padding: 18px;
  box-shadow: none;
}

.info-box ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.info-box li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--amber-100);
  padding: 11px 0;
}

.info-box li span {
  color: var(--amber-700);
  font-weight: 800;
}

.info-box li strong {
  color: var(--stone-900);
  text-align: right;
}

.related-section {
  padding-bottom: 66px;
}

.empty-state {
  display: none;
  margin: 32px 0;
  border: 1px dashed var(--amber-300);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  color: var(--amber-700);
  background: var(--amber-50);
  font-weight: 800;
}

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

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--amber-200);
  background: linear-gradient(180deg, var(--amber-50), var(--amber-100));
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.footer-main p {
  max-width: 430px;
}

.footer-links div {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.footer-links a {
  color: var(--amber-800);
  font-weight: 800;
}

.footer-bottom {
  border-top: 1px solid rgba(180, 83, 9, 0.16);
  padding: 18px;
  text-align: center;
  color: var(--amber-800);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

  .three-cols,
  .overview-grid,
  .rank-list.full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ranking-panel,
  .detail-side {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-arrow {
    display: none;
  }

  .hero-content {
    bottom: 58px;
  }

  .four-cols,
  .three-cols,
  .category-grid,
  .overview-grid,
  .rank-list.full {
    grid-template-columns: 1fr;
  }

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

  .movie-thumb,
  .feature-image {
    min-height: 230px;
  }

  .filter-bar,
  .search-panel form,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar label,
  .search-panel form {
    align-items: stretch;
  }

  .filter-bar input {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .header-inner {
    width: min(100% - 22px, var(--max-width));
  }

  .brand-text em {
    display: none;
  }

  .brand-text strong {
    font-size: 18px;
  }

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

  .hero-actions a {
    width: 100%;
  }

  .content-section,
  .detail-top,
  .page-hero {
    width: min(100% - 22px, var(--max-width));
  }

  .rank-card {
    grid-template-columns: 38px 70px 1fr;
  }
}
