:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.14);
  --soft-shadow: 0 10px 25px rgba(17, 24, 39, 0.10);
  --radius-xl: 1.25rem;
  --radius-lg: 0.9rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--amber-50), #ffffff 34rem);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500), var(--amber-600));
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.28);
}

.nav-wrap {
  max-width: 1280px;
  height: 4.25rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-600);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.brand-text {
  font-size: 1.2rem;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  color: var(--white);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 650;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

.mobile-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.32rem;
}

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

.mobile-nav {
  display: none;
  padding: 0.3rem 1.25rem 1rem;
  background: rgba(180, 83, 9, 0.94);
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.35rem;
}

.mobile-link {
  color: var(--white);
  padding: 0.75rem 0.9rem;
  border-radius: 0.8rem;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, 0.16);
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: var(--gray-900);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.08);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.74) 42%, rgba(17, 24, 39, 0.12) 100%),
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.48), transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 7.5rem 1.25rem 6rem;
  margin-left: max(1.25rem, calc((100vw - 1280px) / 2 + 1.25rem));
  color: var(--white);
}

.hero-kicker,
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--amber-400);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero-content p {
  max-width: 690px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags {
  margin-top: 1.4rem;
}

.hero-tags span,
.detail-tags a,
.tag-row span {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-tags span {
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.primary-button,
.ghost-button,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-button,
.quick-search button {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
  border: 0;
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

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

.hero-poster {
  position: absolute;
  right: max(1.25rem, calc((100vw - 1280px) / 2 + 1.25rem));
  bottom: 4.8rem;
  z-index: 3;
  width: min(28vw, 330px);
  aspect-ratio: 2 / 3;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
}

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

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

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 2.15rem;
  background: var(--amber-400);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.quick-panel {
  margin-top: -2.5rem;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 1.25rem;
  align-items: center;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.quick-panel h2,
.section-heading h2,
.detail-content h2,
.category-card h2,
.movie-card h2,
.list-card h2 {
  margin: 0;
  color: var(--gray-900);
}

.quick-panel p {
  margin: 0.4rem 0 0;
  color: var(--gray-500);
}

.quick-search {
  display: flex;
  gap: 0.7rem;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--gray-200);
  outline: 0;
  background: var(--white);
  border-radius: 999px;
  padding: 0.82rem 1rem;
  color: var(--gray-800);
}

.quick-search 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.14);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading a,
.text-link {
  color: var(--amber-600);
  font-weight: 800;
}

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

.category-tile,
.category-card {
  display: block;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--white), var(--amber-50));
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(245, 158, 11, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span {
  color: var(--gray-900);
  font-weight: 850;
  font-size: 1.05rem;
}

.category-tile p,
.category-card p {
  margin: 0.55rem 0 0;
  color: var(--gray-500);
  font-size: 0.92rem;
}

.category-samples {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0;
}

.category-samples a {
  color: var(--gray-700);
  font-weight: 650;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.15rem;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent);
}

.rating,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-weight: 900;
}

.rating {
  right: 0.65rem;
  bottom: 0.65rem;
  color: var(--gray-900);
  background: var(--amber-400);
}

.rank-badge {
  top: 0.65rem;
  left: 0.65rem;
  color: var(--white);
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(8px);
}

.movie-card-body {
  padding: 1rem;
}

.movie-card h2 {
  font-size: 1rem;
  line-height: 1.35;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin: 0.5rem 0;
  color: var(--gray-500);
  font-size: 0.82rem;
}

.movie-card p {
  display: -webkit-box;
  margin: 0.5rem 0 0.75rem;
  color: var(--gray-500);
  font-size: 0.9rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 1rem;
}

.simple-hero > div {
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.38), transparent 34%),
    linear-gradient(135deg, var(--gray-800), var(--gray-900));
  box-shadow: var(--shadow);
}

.simple-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.simple-hero p {
  max-width: 760px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 210px));
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.filter-panel label {
  display: grid;
  gap: 0.35rem;
  color: var(--gray-500);
  font-size: 0.82rem;
  font-weight: 750;
}

.list-section {
  padding-top: 2rem;
}

.list-grid {
  display: grid;
  gap: 0.9rem;
}

.list-card {
  display: grid;
  grid-template-columns: 3rem 5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-rank,
.list-dot {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-weight: 900;
}

.list-rank {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.list-dot {
  background: var(--amber-100);
}

.list-poster {
  aspect-ratio: 2 / 3;
  border-radius: 0.7rem;
  overflow: hidden;
  background: var(--gray-100);
}

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

.list-card p {
  margin: 0.35rem 0 0;
  color: var(--gray-500);
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.05);
  transform: scale(1.08);
  opacity: 0.44;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.78));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
}

.detail-poster {
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.38);
  border: 4px solid rgba(255, 255, 255, 0.22);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 820px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.3rem 0;
}

.detail-meta span {
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
}

.detail-tags a {
  color: var(--gray-900);
  background: var(--amber-400);
}

.player-section {
  padding-bottom: 2rem;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
  color: var(--white);
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.34);
  font-size: 2rem;
  transform: translateX(0.1rem);
}

.detail-content {
  padding-top: 2rem;
}

.detail-content article {
  max-width: 920px;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.detail-content h2 + p {
  margin-top: 0.75rem;
}

.detail-content p {
  color: var(--gray-700);
}

.site-footer {
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, var(--gray-800), var(--gray-900));
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 0.8rem;
  color: var(--amber-400);
  font-size: 1rem;
}

.site-footer p {
  margin: 0.55rem 0 0;
}

.site-footer a {
  display: block;
  margin: 0.45rem 0;
}

.site-footer a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
}

@media (max-width: 1180px) {
  .movie-grid,
  .small-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .hero-content {
    margin: 0;
    padding: 5.8rem 1.25rem 19rem;
  }

  .hero-poster {
    left: 1.25rem;
    right: auto;
    bottom: 4.2rem;
    width: 160px;
  }

  .quick-panel,
  .filter-panel,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .brand-text {
    font-size: 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .movie-grid,
  .small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .category-grid,
  .category-page-grid {
    grid-template-columns: 1fr;
  }

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

  .quick-search {
    flex-direction: column;
  }

  .list-card {
    grid-template-columns: 2.5rem 4.2rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .detail-wrap {
    padding-bottom: 3rem;
  }

  .detail-content article {
    padding: 1.3rem;
  }

  .play-circle {
    width: 4.2rem;
    height: 4.2rem;
  }
}
