:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-900: #881337;
  --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 20px 45px rgba(120, 53, 15, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 28%, #fffaf0 100%);
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--amber-600), var(--rose-500), var(--amber-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  position: relative;
  color: var(--gray-700);
  font-weight: 650;
  padding: 24px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 17px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--amber-600);
  transition: width 0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--amber-100);
  color: var(--amber-700);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 650;
}

.mobile-nav a:hover {
  color: var(--amber-700);
  background: var(--amber-50);
}

.silk-shine {
  position: relative;
  overflow: hidden;
}

.silk-shine::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: silk-shine 3.8s infinite;
}

@keyframes silk-shine {
  0% {
    transform: translateX(0);
  }

  60%,
  100% {
    transform: translateX(220%);
  }
}

.hero-shell {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 630px;
  margin: 28px auto 0;
  border-radius: 34px;
  overflow: hidden;
  background: #2a1609;
  box-shadow: var(--shadow);
}

.hero-slider {
  position: relative;
  min-height: 630px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  align-items: stretch;
  min-height: 630px;
  isolation: isolate;
}

.hero-slide.is-active {
  display: grid;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 25% 18%, rgba(251, 191, 36, 0.45), transparent 34%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.55));
}

.hero-image {
  position: relative;
  min-height: 630px;
  overflow: hidden;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.14), rgba(17, 24, 39, 0.82));
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  color: var(--white);
  padding: 74px 70px 74px 24px;
}

.eyebrow,
.hero-content .eyebrow,
.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--amber-200);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-content h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  color: #fff7ed;
}

.hero-content p {
  max-width: 640px;
  margin: 0;
  color: #fef3c7;
  font-size: 18px;
  line-height: 1.9;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 13px;
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

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

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 16px 28px rgba(244, 63, 94, 0.25);
}

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

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

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

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

.section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

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

.section-heading.centered {
  display: block;
  text-align: center;
}

.section-heading h2 {
  margin: 6px 0 0;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.section-heading > a,
.category-overview-head > a {
  color: var(--amber-700);
  font-weight: 800;
}

.search-section {
  padding-bottom: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  margin: 26px auto 0;
  padding: 16px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 15px 35px rgba(146, 64, 14, 0.08);
}

.search-box,
.select-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--amber-50);
  color: var(--amber-700);
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--gray-800);
  background: transparent;
}

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

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  overflow: hidden;
  border-radius: 26px;
  color: var(--white);
  background: var(--gray-900);
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(120, 53, 15, 0.86));
}

.category-card strong,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card strong {
  display: block;
  margin-top: 68px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: #ffedd5;
  line-height: 1.7;
}

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

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

.movie-grid.catalog-grid {
  margin-top: 28px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.13);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(120, 53, 15, 0.16);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #2a1609;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.1);
}

.movie-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.34), rgba(251, 113, 133, 0.28));
  transition: opacity 0.3s ease;
}

.movie-card:hover .movie-glow {
  opacity: 1;
}

.movie-category {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.movie-body {
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  min-height: 54px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover,
.rank-title:hover {
  color: var(--amber-600);
}

.movie-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 8px 0 14px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--gray-100);
}

.highlight-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1200px) / 2));
  padding-right: max(16px, calc((100% - 1200px) / 2));
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.68), rgba(255, 241, 242, 0.9));
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: auto 154px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
}

.rank-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
}

.rank-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #2a1609;
}

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

.rank-title {
  display: block;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.45;
}

.rank-content p {
  display: -webkit-box;
  margin: 6px 0 10px;
  overflow: hidden;
  color: var(--gray-500);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 34px;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 15%, rgba(251, 191, 36, 0.52), transparent 32%),
    linear-gradient(135deg, var(--amber-900, #78350f), var(--rose-900), #78350f);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero span {
  display: block;
  max-width: 720px;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

.category-overview-block {
  padding: 28px;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.08);
}

.category-overview-block + .category-overview-block {
  margin-top: 24px;
}

.category-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-overview-head h2 {
  margin: 0 0 6px;
  color: var(--gray-900);
  font-size: 30px;
}

.category-overview-head p {
  margin: 0;
  color: var(--gray-500);
}

.breadcrumb {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.detail-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: stretch;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 30px;
  background: #130b05;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.64));
}

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

.play-icon {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.28);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid var(--white);
  transform: translate(-36%, -50%);
}

.player-overlay strong {
  font-size: 20px;
  letter-spacing: 0.03em;
}

.detail-panel {
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 235, 0.9));
  box-shadow: var(--shadow);
}

.detail-panel h1 {
  margin: 10px 0 14px;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-weight: 750;
}

.detail-tags span {
  background: var(--white);
  box-shadow: 0 8px 18px rgba(120, 53, 15, 0.08);
}

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

.detail-content article {
  padding: 34px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
}

.detail-content h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 28px;
}

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

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

.next-links {
  display: grid;
  gap: 12px;
}

.next-links a {
  display: block;
  padding: 18px;
  border-radius: 20px;
  color: var(--amber-700);
  background: var(--amber-50);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
}

.next-links a:hover {
  background: var(--amber-100);
}

.site-footer {
  margin-top: 40px;
  color: var(--white);
  background: linear-gradient(135deg, #78350f, var(--rose-900), #78350f);
}

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

.footer-brand {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
  color: #fde68a;
  line-height: 1.8;
}

.footer-inner h2 {
  margin: 0 0 14px;
  color: #fde68a;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(253, 230, 138, 0.28);
  color: #fde68a;
  text-align: center;
}

[data-card].is-hidden {
  display: none;
}

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

  .menu-button {
    display: inline-flex;
  }

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

  .hero-slide,
  .detail-hero,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 42px;
  }

  .hero-image {
    min-height: 340px;
  }

  .category-grid,
  .category-grid.wide,
  .movie-grid,
  .movie-grid.compact,
  .movie-grid.mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .header-inner {
    min-height: 66px;
  }

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

  .hero-shell,
  .hero-slider,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-image {
    min-height: 300px;
  }

  .hero-image::after {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.86));
  }

  .hero-content {
    padding: 28px;
  }

  .hero-content p,
  .page-hero span,
  .detail-one-line {
    font-size: 16px;
  }

  .section {
    padding: 42px 0;
  }

  .section-heading,
  .page-hero,
  .category-overview-head {
    display: block;
  }

  .section-heading > a,
  .category-overview-head > a {
    display: inline-block;
    margin-top: 12px;
  }

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

  .category-grid,
  .category-grid.wide,
  .movie-grid,
  .movie-grid.compact,
  .movie-grid.mini {
    grid-template-columns: 1fr;
  }

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

  .rank-number {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 13px;
  }

  .rank-content p,
  .rank-content .movie-meta {
    display: none;
  }

  .page-hero {
    padding: 34px;
  }

  .detail-panel,
  .detail-content article,
  .category-overview-block {
    padding: 24px;
  }
}
