:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), #fff7ed 46%, var(--white));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  transition: color 0.2s ease;
}

.site-logo:hover {
  color: var(--amber-100);
}

.logo-mark {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.logo-mark path {
  fill: var(--amber-600);
}

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

.nav-link {
  color: var(--white);
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: rgb(255 255 255 / 0.12);
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px 24px 18px;
  border-top: 1px solid rgb(255 255 255 / 0.25);
}

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

.mobile-link {
  color: var(--white);
  padding: 10px 0;
  font-weight: 700;
}

.hero-slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--gray-900);
}

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

.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;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.92), rgb(0 0 0 / 0.52) 50%, rgb(0 0 0 / 0.18));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 74px;
  transform: translateX(-50%);
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 12px;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  backdrop-filter: blur(8px);
  color: var(--amber-100);
  font-size: 14px;
  font-weight: 800;
}

.hero-content h1 {
  max-width: 980px;
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content h2 {
  max-width: 820px;
  margin: 0 0 14px;
  color: var(--amber-100);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 850;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--gray-200);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.detail-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tag,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  padding: 5px 10px;
  color: var(--white);
  background: rgb(255 255 255 / 0.14);
}

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

.primary-button,
.ghost-button,
.section-more,
.category-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  padding: 12px 30px;
  color: var(--white);
  background: var(--amber-600);
  box-shadow: var(--shadow-lg);
}

.primary-button:hover {
  background: var(--amber-700);
  transform: translateY(-1px);
}

.ghost-button {
  padding: 11px 24px;
  color: var(--white);
  border: 1px solid rgb(255 255 255 / 0.32);
  background: rgb(0 0 0 / 0.28);
}

.ghost-button:hover {
  background: rgb(0 0 0 / 0.52);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  color: var(--white);
  background: rgb(0 0 0 / 0.50);
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgb(0 0 0 / 0.72);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-quicklinks {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%) translateY(50%);
  overflow-x: auto;
  padding: 0 0 4px;
}

.hero-quicklinks a {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 850;
}

.filter-panel {
  margin: 52px 0 26px;
  padding: 18px;
  border: 1px solid rgb(245 158 11 / 0.22);
  border-radius: 24px;
  background: rgb(255 255 255 / 0.86);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.filter-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.filter-search input,
.filter-selects select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
}

.filter-search input {
  padding: 13px 16px;
}

.filter-search input:focus,
.filter-selects select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgb(245 158 11 / 0.14);
}

.filter-search button {
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 850;
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.filter-selects select {
  padding: 12px 14px;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 900;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.section-more {
  flex: 0 0 auto;
  padding: 9px 16px;
  color: var(--amber-700);
  background: var(--amber-50);
}

.section-more:hover {
  color: var(--white);
  background: var(--amber-600);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-900);
}

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

.movie-card:hover .movie-poster img,
.compact-card:hover .compact-cover img {
  transform: scale(1.09);
}

.type-badge,
.rank-badge,
.compact-rank {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--amber-500);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--orange-600);
}

.movie-info {
  padding: 16px;
}

.movie-info h3,
.compact-card h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.movie-info h3 a,
.compact-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

.movie-info p,
.compact-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 13px;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--gray-500);
  font-size: 12px;
}

.movie-meta span:last-child {
  color: var(--amber-700);
}

.tag-list {
  margin-top: 12px;
}

.tag-list span {
  padding: 4px 8px;
  color: var(--amber-700);
  background: var(--amber-100);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}

.compact-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: var(--gray-900);
}

.compact-rank {
  left: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--orange-600);
}

.page-hero {
  padding: 78px 0 68px;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgb(245 158 11 / 0.85), transparent 30%), linear-gradient(135deg, var(--gray-900), var(--amber-700));
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  color: var(--amber-100);
  font-weight: 850;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 950;
}

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

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

.category-card {
  min-height: 292px;
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  min-height: 70px;
  margin: 0 0 18px;
  color: var(--gray-600);
}

.category-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.category-links a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-700);
  font-size: 14px;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.category-links a:hover {
  color: var(--amber-600);
}

.category-entry {
  padding: 9px 18px;
  color: var(--white);
  background: var(--amber-600);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  filter: blur(2px);
}

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

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgb(17 24 39 / 0.98), rgb(17 24 39 / 0.68));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 70px 0;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  box-shadow: var(--shadow-2xl);
  background: var(--gray-800);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--amber-100);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--white);
}

.detail-intro h1 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  font-weight: 950;
}

.detail-intro p {
  max-width: 820px;
  margin: 0 0 20px;
  color: var(--gray-200);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.13);
  color: var(--white);
  font-weight: 750;
}

.detail-tag {
  padding: 6px 10px;
  color: var(--amber-100);
  background: rgb(245 158 11 / 0.18);
}

.detail-main {
  padding-top: 36px;
}

.player-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--gray-900);
  box-shadow: var(--shadow-2xl);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.18));
}

.player-overlay span {
  display: flex;
  width: 78px;
  height: 78px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amber-600);
  box-shadow: var(--shadow-xl);
  font-size: 30px;
  transform: translateX(3px);
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 28px;
  margin-top: 34px;
}

.detail-article,
.side-recommend {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.detail-article {
  padding: 30px;
}

.detail-article h2,
.side-recommend h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 950;
}

.detail-article h2:not(:first-child) {
  margin-top: 28px;
}

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

.side-recommend {
  padding: 22px;
}

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

.side-list .compact-card {
  grid-template-columns: 110px minmax(0, 1fr);
  padding: 0;
  box-shadow: none;
}

.side-list .compact-card:hover {
  transform: none;
  box-shadow: none;
}

.side-list .movie-meta {
  gap: 8px;
}

.movie-card.is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .featured-grid,
  .mini-grid,
  .listing-grid,
  .category-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .mobile-toggle {
    display: flex;
  }

  .hero-slider {
    height: 620px;
  }

  .hero-content {
    bottom: 92px;
  }

  .hero-arrow {
    display: none;
  }

  .featured-grid,
  .three-grid,
  .mini-grid,
  .listing-grid,
  .category-overview,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }
}

@media (max-width: 580px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .site-logo span {
    font-size: 17px;
  }

  .hero-slider {
    height: 640px;
  }

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

  .hero-content h2 {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

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

  .featured-grid,
  .three-grid,
  .mini-grid,
  .listing-grid,
  .category-overview,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .compact-card,
  .side-list .compact-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .detail-layout {
    padding: 48px 0;
  }
}

.site-footer {
  margin-top: 80px;
  color: var(--gray-300);
  background: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0 36px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: var(--gray-300);
  font-size: 14px;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--gray-300);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--amber-400, #fbbf24);
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.09);
  padding: 18px 16px;
  color: var(--gray-500);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
