:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #172036;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --orange-500: #f97316;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f8fafc;
  color: var(--slate-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800) 52%, #78350f);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 70px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.32);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  margin-top: 2px;
}

.desktop-nav,
.category-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.category-nav {
  flex: 1;
  gap: 12px;
}

.nav-link {
  color: #e5e7eb;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search,
.mobile-search,
.page-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.header-search input,
.mobile-search input,
.page-search input {
  width: 190px;
  min-width: 0;
  padding: 10px 12px 10px 18px;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.page-search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.header-search button,
.mobile-search button,
.page-search button {
  border: 0;
  color: var(--slate-950);
  background: var(--amber-400);
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-panel {
  padding: 14px 16px 18px;
  background: rgba(15, 23, 42, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mobile-link {
  padding: 11px 12px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--amber-400);
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(245, 158, 11, 0.25), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.2)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 56px;
  align-items: center;
  min-height: 680px;
  padding: 92px 0 84px;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 740px;
  margin: 0 0 22px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--amber-400);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-lead {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: 18px;
}

.hero-tags,
.detail-meta,
.movie-meta-line,
.tag-row,
.quick-links,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-meta span,
.movie-meta-line span,
.tag-row span,
.quick-links a,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.38);
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 22px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.primary-btn.full {
  width: 100%;
}

.ghost-btn {
  min-height: 48px;
  padding: 0 20px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  max-width: 390px;
  justify-self: end;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  transform: perspective(900px) rotateY(-7deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: var(--slate-950);
  background: var(--amber-400);
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 900;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

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

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

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

.feature-section {
  background: linear-gradient(180deg, #ffffff, #fff7ed);
}

.soft-section {
  background: linear-gradient(135deg, #fff7ed, #f8fafc);
}

.dark-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--slate-600);
}

.dark-section .section-heading p {
  color: #cbd5e1;
}

.section-more,
.text-link {
  color: var(--amber-600);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dark-section .movie-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.18);
}

.poster-link {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--slate-200);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card.compact .poster-link img {
  aspect-ratio: 3 / 4;
}

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

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

.movie-meta-line {
  margin-bottom: 10px;
}

.movie-meta-line span,
.tag-row span {
  color: #92400e;
  background: #fef3c7;
  border-color: #fde68a;
}

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

.movie-card.compact h3 {
  font-size: 17px;
}

.movie-card h3 a:hover,
.ranking-row h2 a:hover,
.rank-content h3 a:hover {
  color: var(--amber-600);
}

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

.dark-section .movie-card p {
  color: #cbd5e1;
}

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

.category-card {
  min-height: 210px;
  padding: 22px;
  border-radius: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 10%, rgba(251, 191, 36, 0.34), transparent 34%),
    linear-gradient(135deg, var(--slate-900), var(--slate-700));
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.category-card p {
  margin: 0 0 15px;
  color: #dbeafe;
  font-size: 14px;
}

.category-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-card span {
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-poster img {
  width: 110px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
}

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

.rank-content p,
.ranking-row p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
}

.rank-meta {
  color: var(--amber-400) !important;
  margin-bottom: 7px !important;
}

.page-hero {
  color: var(--white);
  padding: 92px 0 78px;
  background:
    radial-gradient(circle at 75% 0%, rgba(245, 158, 11, 0.32), transparent 30%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero.small {
  padding: 74px 0 64px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e2e8f0;
  font-size: 18px;
}

.page-search {
  max-width: 620px;
  margin-top: 28px;
  color: var(--white);
}

.page-search input {
  width: 100%;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-bar button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
}

.filter-bar button.active,
.filter-bar button:hover {
  color: var(--white);
  background: var(--amber-600);
}

.empty-state {
  margin-top: 30px;
  padding: 26px;
  text-align: center;
  border-radius: 20px;
  background: var(--white);
  color: var(--slate-600);
}

.category-overview-list {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.category-overview-text h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.category-overview-text p {
  color: var(--slate-600);
}

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

.category-preview-row a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
}

.category-preview-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.category-preview-row span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 6px 8px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 86px 1fr;
  gap: 16px;
  align-items: center;
  padding: 15px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  font-weight: 900;
}

.ranking-thumb img {
  width: 86px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-row h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.ranking-row p {
  color: var(--slate-600);
}

.detail-wrap {
  padding: 36px 0 72px;
  background: linear-gradient(180deg, #0f172a 0, #0f172a 330px, #f8fafc 330px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #cbd5e1;
  font-size: 14px;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.42);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.52);
}

.player-play-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.36);
  font-size: 36px;
  padding-left: 5px;
}

.detail-card,
.side-card {
  margin-top: 24px;
  padding: 26px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.detail-card h2,
.side-card h2 {
  margin: 24px 0 10px;
  font-size: 22px;
}

.detail-card p,
.side-card p {
  color: var(--slate-600);
}

.lead-text {
  font-weight: 800;
  color: var(--slate-800) !important;
}

.detail-meta {
  margin-bottom: 20px;
}

.detail-meta span,
.detail-tags a {
  color: #92400e;
  background: #fef3c7;
  border-color: #fde68a;
}

.poster-side img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.poster-side h2 {
  margin-top: 16px;
}

.side-links {
  display: grid;
  gap: 10px;
}

.side-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease;
}

.side-links a:hover {
  background: #fff7ed;
}

.side-links span {
  display: block;
  font-weight: 800;
}

.side-links small {
  color: var(--slate-500);
}

.site-footer {
  color: #cbd5e1;
  background: var(--slate-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding: 54px 0;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 14px;
}

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

.site-footer p {
  max-width: 460px;
  color: #94a3b8;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 16px;
  text-align: center;
  color: #94a3b8;
}

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

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    min-height: 64px;
  }

  .hero-carousel,
  .hero-content {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 62px 0 80px;
  }

  .hero-poster {
    justify-self: start;
    max-width: 260px;
    transform: none;
  }

  .hero-control {
    display: none;
  }

  .movie-grid.three,
  .movie-grid.four,
  .category-grid,
  .rank-grid,
  .footer-grid,
  .category-overview-card,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .side-column {
    order: -1;
  }
}

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

  .brand-text small,
  .desktop-nav,
  .category-nav {
    display: none;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-lead,
  .page-hero p {
    font-size: 16px;
  }

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

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

  .ranking-row {
    grid-template-columns: 42px 72px 1fr;
    gap: 10px;
  }

  .ranking-thumb img {
    width: 72px;
    height: 96px;
  }

  .ranking-row h2 {
    font-size: 17px;
  }

  .detail-card,
  .side-card {
    padding: 20px;
  }

  .player-play-button {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
