:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --red-50: #fef2f2;
  --blue-50: #eff6ff;
  --cyan-50: #ecfeff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 10px 28px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-xl: 0 30px 80px rgba(17, 24, 39, 0.28);
  --radius-lg: 18px;
  --radius-xl: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--amber-50) 0%, var(--white) 42%, var(--orange-50) 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 247, 237, 0.94));
  box-shadow: 0 10px 25px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  color: var(--gray-900);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 13px;
  background: linear-gradient(135deg, var(--amber-500), #ea580c);
  box-shadow: 0 12px 22px rgba(245, 158, 11, 0.32);
}

.brand-text {
  font-size: 18px;
  letter-spacing: 0.02em;
}

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

.nav-link {
  position: relative;
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 3px;
  border-radius: 999px;
  background: var(--amber-500);
}

.nav-category {
  cursor: default;
  padding: 20px 0;
}

.dropdown-panel {
  position: absolute;
  top: 54px;
  left: 0;
  width: 188px;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease;
}

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

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--gray-700);
}

.dropdown-panel a:hover {
  background: var(--amber-50);
  color: var(--amber-600);
}

.nav-search {
  width: 310px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-search input,
.mobile-search input,
.big-search input,
.filter-tools input {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--gray-900);
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.nav-search button,
.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--white);
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.big-search button:hover {
  background: var(--amber-600);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--white);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

.mobile-menu {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-link {
  display: block;
  padding: 12px 2px;
  color: var(--gray-700);
  font-weight: 700;
}

.mobile-link.active {
  color: var(--amber-600);
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.hero-carousel {
  position: relative;
  height: min(720px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: var(--gray-900);
}

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

.hero-slide.is-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;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 43%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  max-width: 760px;
  color: var(--white);
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--amber-500);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-eyebrow::before,
.section-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber-500);
  box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.18);
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-meta,
.detail-meta,
.rank-meta,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span,
.detail-meta span,
.rank-meta span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

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

.left-actions {
  justify-content: flex-start;
}

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

.primary-button {
  color: var(--white);
  background: var(--amber-500);
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.36);
}

.primary-button:hover {
  background: var(--amber-600);
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(217, 119, 6, 0.34);
}

.glass-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.glass-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.glass-button.light {
  color: var(--amber-700, #b45309);
  background: rgba(255, 251, 235, 0.72);
  border-color: rgba(217, 119, 6, 0.16);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 36px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

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

.tight-section {
  padding-top: 38px;
  padding-bottom: 38px;
}

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

.single-head {
  width: min(var(--max), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-text h2 {
  margin: 0;
  color: var(--gray-900);
  line-height: 1.15;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

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

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

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

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-100);
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 42px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.76);
  color: var(--amber-200);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(10px);
}

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

.card-tags {
  gap: 6px;
  margin-bottom: 12px;
}

.card-tags span {
  background: var(--amber-100);
  color: #92400e;
  padding: 4px 8px;
  font-size: 12px;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.category-samples a:hover,
.overview-links a:hover {
  color: var(--amber-600);
}

.movie-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.featured-card .poster-link {
  aspect-ratio: 16 / 9;
}

.warm-panel {
  width: min(var(--max), calc(100% - 32px));
  margin-top: 20px;
  padding: 46px;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--red-50), var(--orange-50));
}

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

.category-tile,
.category-overview-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-main-link,
.category-title-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.category-main-link span,
.category-title-link h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.category-main-link strong,
.category-title-link span {
  color: var(--amber-600);
}

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

.category-samples,
.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a,
.overview-links a {
  border-radius: 999px;
  background: var(--amber-50);
  color: var(--gray-700);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: auto 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), #ef4444);
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: var(--gray-100);
}

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

.rank-content h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.rank-content p {
  margin: 0 0 8px;
  color: var(--gray-600);
  font-size: 14px;
}

.rank-meta span {
  color: #92400e;
  background: var(--amber-100);
  font-size: 12px;
}

.page-main {
  padding-bottom: 40px;
}

.page-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 38px auto 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100) 50%, var(--blue-50));
  box-shadow: var(--shadow-sm);
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -90px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 66%);
}

.page-hero > * {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 6vw, 62px);
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--gray-600);
  font-size: 18px;
}

.filter-tools {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.filter-tools label {
  color: var(--gray-700);
  font-weight: 900;
}

.empty-state {
  margin: 26px 0 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--gray-600);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.big-search {
  display: flex;
  width: min(680px, 100%);
  gap: 12px;
  margin-top: 26px;
}

.detail-main {
  padding-bottom: 40px;
}

.detail-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--white), var(--amber-50));
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 4vw, 42px);
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  background: var(--gray-100);
  box-shadow: var(--shadow-md);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-600);
  font-weight: 800;
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 18px 0;
  color: var(--gray-600);
  font-size: 18px;
}

.detail-meta span {
  background: var(--amber-100);
  color: #92400e;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-cloud span {
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

.player-section {
  padding: 70px 0 20px;
}

.video-shell {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--black);
  box-shadow: var(--shadow-xl);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(217, 119, 6, 0.28));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber-500);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.35);
  font-size: 34px;
  padding-left: 5px;
}

.play-cover strong {
  font-size: 22px;
}

.detail-text {
  display: grid;
  gap: 16px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 42px);
}

.detail-text h2 {
  font-size: 28px;
}

.detail-text p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.site-footer {
  margin-top: 48px;
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.82);
}

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

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(245, 158, 11, 0.35);
}

.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.52);
}

[hidden] {
  display: none !important;
}

.is-filtered-out {
  display: none !important;
}

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

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

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

  .rank-list.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    height: 62px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-carousel {
    min-height: 580px;
    height: 78vh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.86));
    align-items: flex-end;
    padding-bottom: 86px;
  }

  .hero-arrow {
    top: auto;
    bottom: 22px;
    width: 44px;
    height: 44px;
    font-size: 30px;
  }

  .hero-prev {
    left: 16px;
  }

  .hero-next {
    right: 16px;
  }

  .hero-dots {
    bottom: 38px;
  }

  .section-head {
    display: grid;
  }

  .featured-grid,
  .movie-grid,
  .movie-grid.four-cols,
  .four-cols,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .warm-panel {
    padding: 32px 18px;
  }

  .filter-tools {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: auto 96px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-content p {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .big-search {
    display: grid;
  }
}

@media (max-width: 480px) {
  .movie-card-body {
    padding: 15px;
  }

  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-cover {
    width: 100%;
  }
}
