:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --orange-900: #7c2d12;
  --rose-600: #e11d48;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --shadow-lg: 0 16px 40px rgba(28, 25, 23, 0.14);
  --shadow-xl: 0 25px 70px rgba(28, 25, 23, 0.24);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--stone-800);
  background: var(--stone-50);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-800), var(--orange-900));
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.22);
}
.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.site-logo {
  font-size: 21px;
}
.site-logo-icon,
.footer-logo span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--amber-600);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link,
.mobile-link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}
.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}
.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}
main {
  min-height: 70vh;
}
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--stone-900);
}
.hero-track {
  position: relative;
  min-height: 560px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.hero-backdrop,
.hero-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-backdrop img {
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0.15) 100%), linear-gradient(0deg, rgba(28, 25, 23, 0.74), rgba(28, 25, 23, 0.1));
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  padding: 96px 0 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.9);
}
.hero-tags span,
.detail-tags span {
  padding: 6px 12px;
  font-size: 13px;
}
.card-tags span {
  padding: 4px 8px;
  font-size: 12px;
  color: var(--amber-800);
  background: var(--amber-100);
}
.hero-content h1 {
  max-width: 760px;
  margin: 20px 0 14px;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero-one-line {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(18px, 2.2vw, 25px);
  color: var(--amber-100);
}
.hero-summary {
  max-width: 720px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}
.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: inherit;
}
.hero-meta span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}
.hero-actions,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.primary-button,
.ghost-button,
.quick-search-bar button,
.rank-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.primary-button,
.quick-search-bar button,
.rank-play {
  padding: 13px 22px;
  color: #fff;
  background: var(--amber-600);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.34);
}
.primary-button:hover,
.quick-search-bar button:hover,
.rank-play:hover {
  transform: translateY(-2px);
  background: var(--amber-700);
  box-shadow: 0 18px 36px rgba(217, 119, 6, 0.42);
}
.ghost-button {
  padding: 12px 21px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transform: translateY(-50%);
}
.hero-prev {
  left: 20px;
}
.hero-next {
  right: 20px;
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 6;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.hero-dot.is-active {
  width: 34px;
  background: var(--amber-500);
}
.quick-search-bar,
.content-section,
.today-pick,
.filter-panel,
.detail-content,
.cta-section {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.quick-search-bar {
  margin-top: -34px;
  position: relative;
  z-index: 12;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}
.quick-search-bar form {
  display: flex;
  gap: 10px;
}
.quick-search-bar input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--stone-800);
  background: #fff;
  outline: none;
}
.quick-search-bar input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}
.quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--amber-800);
  background: var(--amber-100);
  font-size: 14px;
  font-weight: 700;
}
.content-section {
  padding: 66px 0 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.section-kicker {
  margin: 0 0 8px;
  color: var(--amber-600);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.section-heading h2,
.today-info h2,
.cta-section h2,
.detail-content h2,
.category-card-body h2 {
  margin: 0;
  color: var(--stone-800);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
}
.section-more {
  color: var(--amber-700);
  font-weight: 800;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.movie-card {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--stone-800);
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.movie-card:hover .card-cover img {
  transform: scale(1.08);
}
.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 34px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.38);
  transition: opacity 0.25s ease;
}
.movie-card:hover .card-play {
  opacity: 1;
}
.card-body {
  padding: 16px;
}
.card-body h3 {
  min-height: 44px;
  margin: 0 0 8px;
  color: var(--stone-800);
  font-size: 17px;
  line-height: 1.3;
}
.card-body h3 a:hover,
.today-info h2 a:hover,
.rank-info h3 a:hover {
  color: var(--amber-700);
}
.card-body p {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.55;
}
.card-meta {
  margin-bottom: 10px;
  color: var(--stone-500);
  font-size: 12px;
}
.today-pick {
  margin-top: 70px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  border-radius: 26px;
  background: linear-gradient(90deg, var(--amber-50), #fff7ed);
  box-shadow: var(--shadow-lg);
}
.today-cover {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.today-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.today-info p {
  color: var(--stone-600);
  line-height: 1.75;
}
.category-grid,
.category-large-grid,
.top-rank-grid {
  display: grid;
  gap: 24px;
}
.category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
}
.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 16px;
}
.category-tile span {
  margin-top: 98px;
  font-size: 22px;
  font-weight: 800;
}
.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.4;
}
.category-tile:hover img {
  transform: scale(1.08);
}
.cta-section {
  margin-top: 70px;
  margin-bottom: 30px;
  padding: 52px 26px;
  text-align: center;
  color: #fff;
  border-radius: 28px;
  background: linear-gradient(90deg, var(--amber-600), #ea580c);
  box-shadow: var(--shadow-xl);
}
.cta-section h2 {
  color: #fff;
}
.cta-section p {
  max-width: 680px;
  margin: 14px auto 26px;
  color: var(--amber-50);
  font-size: 18px;
  line-height: 1.7;
}
.page-hero {
  position: relative;
  padding: 76px 0;
  color: #fff;
  background: radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.42), transparent 30%), linear-gradient(110deg, var(--stone-900), var(--amber-800));
}
.compact-hero > * {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.page-hero h1 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
}
.page-hero p {
  max-width: 760px;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}
.breadcrumbs a:hover {
  color: var(--amber-100);
}
.category-large-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.category-card-large {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.category-card-link {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 190px;
}
.category-covers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background: var(--stone-800);
}
.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-card-body {
  padding: 24px;
}
.category-card-body p {
  color: var(--stone-600);
  line-height: 1.7;
}
.category-card-body span {
  color: var(--amber-700);
  font-weight: 800;
}
.filter-panel {
  margin-top: 34px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.search-panel {
  margin-bottom: 0;
}
.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}
.top-rank-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 34px;
}
.top-rank-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.top-rank-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.top-rank-card div {
  padding: 20px;
}
.rank-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: var(--rose-600);
  font-weight: 900;
}
.top-rank-card h2 {
  margin: 14px 0 8px;
}
.top-rank-card p,
.rank-info p {
  color: var(--stone-600);
  line-height: 1.65;
}
.rank-list {
  display: grid;
  gap: 14px;
}
.rank-row {
  display: grid;
  grid-template-columns: 52px 150px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.08);
}
.rank-index {
  color: var(--amber-700);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}
.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
}
.rank-thumb img {
  width: 150px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.rank-info h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.detail-hero {
  padding: 34px 0 54px;
  color: #fff;
  background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.32), transparent 26%), linear-gradient(135deg, var(--stone-900), #431407 100%);
}
.detail-hero > * {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 32px;
  align-items: center;
}
.player-panel {
  min-width: 0;
}
.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: var(--shadow-xl);
}
.player-frame video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.player-frame video {
  object-fit: contain;
  background: #000;
  z-index: 1;
}
.player-cover {
  z-index: 2;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
}
.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.player-cover img {
  object-fit: cover;
}
.player-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}
.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  color: #fff;
  background: var(--amber-600);
  font-size: 42px;
  line-height: 1;
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}
.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
}
.detail-one-line {
  color: var(--amber-100);
  font-size: 18px;
  line-height: 1.7;
}
.detail-meta {
  margin: 18px 0;
}
.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.13);
}
.detail-info .primary-button {
  margin-top: 22px;
}
.detail-content {
  padding: 58px 0 0;
}
.detail-content article {
  padding: 34px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.detail-content h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 28px;
}
.detail-content p {
  color: var(--stone-600);
  font-size: 17px;
  line-height: 2;
}
.related-section {
  padding-top: 48px;
}
.site-footer {
  margin-top: 72px;
  color: var(--stone-300);
  background: var(--stone-800);
}
.site-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.footer-brand p {
  max-width: 650px;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links a {
  color: var(--stone-200);
}
.footer-links a:hover {
  color: var(--amber-100);
}
.footer-bottom {
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--stone-300);
}
@media (max-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail-layout,
  .today-pick {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .menu-button {
    display: block;
  }
  .site-logo {
    font-size: 18px;
  }
  .hero-track,
  .hero-content {
    min-height: 610px;
  }
  .hero-content {
    padding-top: 76px;
  }
  .hero-arrow {
    display: none;
  }
  .quick-search-bar,
  .filter-panel,
  .site-footer-inner,
  .rank-row {
    grid-template-columns: 1fr;
  }
  .quick-search-bar form {
    flex-direction: column;
  }
  .movie-grid,
  .category-grid,
  .category-large-grid,
  .top-rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-card-link {
    grid-template-columns: 1fr;
  }
  .category-covers {
    min-height: 160px;
  }
  .rank-thumb img {
    width: 100%;
  }
  .rank-play {
    width: 100%;
  }
}
@media (max-width: 540px) {
  .movie-grid,
  .category-grid,
  .category-large-grid,
  .top-rank-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 42px;
  }
  .today-pick,
  .detail-content article {
    padding: 20px;
  }
  .content-section {
    padding-top: 46px;
  }
}
