:root {
  --bg: #fffaf2;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #667085;
  --soft: #fff3df;
  --line: rgba(146, 64, 14, 0.12);
  --accent: #d97706;
  --accent-strong: #ea580c;
  --rose: #f43f5e;
  --shadow: 0 24px 70px rgba(146, 64, 14, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(251, 191, 36, 0.22), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(244, 63, 94, 0.16), transparent 26%),
    var(--bg);
  color: var(--ink);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(217, 119, 6, 0.12);
  background: rgba(255, 250, 242, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.28);
}

.brand-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #b45309, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  margin-left: 2px;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.mobile-link {
  border-radius: 14px;
  color: #475467;
  font-weight: 700;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: #b45309;
  background: rgba(251, 191, 36, 0.18);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-search {
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.22);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff0d4;
  color: #92400e;
  cursor: pointer;
}

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

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
}

.hero-section {
  padding: 34px 0 18px;
}

.hero-shell,
.content-section,
.page-hero,
.detail-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-title-block {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-kicker {
  margin: 0 0 10px;
  color: #b45309;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title-block h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-title-block p,
.page-hero p,
.lead-text {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  border-radius: 36px;
  overflow: hidden;
  background: #1f1307;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.58fr);
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 58px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: blur(10px) saturate(1.2);
  transform: scale(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 19, 7, 0.92), rgba(31, 19, 7, 0.58), rgba(31, 19, 7, 0.75)),
    radial-gradient(circle at 25% 25%, rgba(251, 191, 36, 0.32), transparent 35%);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.14);
  color: #fed7aa;
  font-weight: 800;
}

.hero-copy h2 {
  max-width: 760px;
  margin: 18px 0 14px;
  color: #fff;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 660px;
  color: rgba(255, 247, 237, 0.86);
  font-size: 17px;
  line-height: 1.85;
}

.hero-tags,
.detail-meta,
.movie-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-tags span,
.detail-meta span,
.tag-row span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 247, 237, 0.16);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-btn,
.secondary-btn,
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn,
.card-action {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 36px rgba(234, 88, 12, 0.26);
}

.secondary-btn {
  color: #fff7ed;
  background: rgba(255, 247, 237, 0.14);
  border: 1px solid rgba(255, 247, 237, 0.24);
}

.primary-btn:hover,
.secondary-btn:hover,
.card-action:hover,
.quick-search:hover {
  transform: translateY(-2px);
}

.hero-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  z-index: 6;
  left: clamp(28px, 5vw, 58px);
  bottom: 26px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.28);
  cursor: pointer;
}

.hero-dot.active {
  background: #f59e0b;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: #b45309;
  font-weight: 900;
}

.inline-heading {
  align-items: center;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 40px rgba(146, 64, 14, 0.08);
}

.search-box {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 18px;
  background: #fff7ed;
}

.search-box span {
  color: #b45309;
  font-weight: 900;
}

.search-box input,
.filter-select {
  min-height: 46px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

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

.filter-select {
  padding: 0 14px;
  border-radius: 16px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 800;
}

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

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

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

.movie-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 55px rgba(146, 64, 14, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(146, 64, 14, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.poster-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.52));
  z-index: 1;
}

.poster-type {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.88);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card h3,
.rank-card h2,
.story-card h2,
.category-overview-card h2 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

.movie-card h3 a:hover,
.rank-card h2 a:hover {
  color: #b45309;
}

.movie-card p,
.rank-card p,
.story-card p,
.category-card p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.72;
}

.card-action {
  width: 100%;
  margin-top: 14px;
}

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

.category-card,
.category-overview-card,
.ranking-panel,
.featured-panel,
.story-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 55px rgba(146, 64, 14, 0.10);
}

.category-card {
  padding: 22px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

.category-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-card div span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 24px;
}

.ranking-panel,
.featured-panel {
  padding: 24px;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff7ed;
}

.ranking-list span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--rose));
  font-weight: 900;
}

.ranking-list strong,
.ranking-list em {
  display: block;
}

.ranking-list em {
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  margin-top: 34px;
  padding: clamp(40px, 7vw, 84px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(254, 215, 170, 0.72)),
    radial-gradient(circle at 82% 14%, rgba(244, 63, 94, 0.16), transparent 32%);
  box-shadow: var(--shadow);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 64px 0;
  background: #1f1307;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: blur(8px) saturate(1.1);
  transform: scale(1.06);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 19, 7, 0.96), rgba(31, 19, 7, 0.74));
}

.detail-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

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

.breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #fed7aa;
  font-weight: 800;
  margin-bottom: 18px;
}

.detail-copy h1,
.detail-copy .lead-text {
  color: #fff;
}

.detail-copy .lead-text {
  max-width: 760px;
  color: rgba(255, 247, 237, 0.88);
}

.detail-meta span,
.detail-tags span {
  color: #fff7ed;
  background: rgba(255, 247, 237, 0.14);
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.play-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(234, 88, 12, 0.32), rgba(15, 23, 42, 0.68));
  cursor: pointer;
}

.play-trigger span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 50px rgba(234, 88, 12, 0.36);
  font-size: 30px;
}

.play-trigger strong {
  font-size: 18px;
}

.player-card.playing .play-trigger {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-card {
  padding: clamp(22px, 3vw, 34px);
}

.category-overview-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #fed7aa;
}

.category-overview-card span {
  color: #b45309;
  font-weight: 900;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 72px 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 38px rgba(146, 64, 14, 0.08);
}

.rank-number {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--rose));
  font-weight: 900;
}

.rank-poster img {
  width: 96px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: #fed7aa;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1060px) {
  .movie-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

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

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

  .brand-sub {
    display: none;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-poster {
    width: min(68vw, 260px);
    justify-self: start;
  }

  .section-heading {
    display: block;
  }

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

  .detail-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 280px;
  }

  .rank-card {
    grid-template-columns: 56px 74px 1fr;
    gap: 12px;
  }

  .rank-number {
    width: 48px;
    height: 48px;
  }

  .rank-poster img {
    width: 74px;
  }
}

@media (max-width: 560px) {
  .hero-shell,
  .content-section,
  .page-hero,
  .detail-inner,
  .header-inner,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-carousel {
    min-height: 760px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 22px;
  }

  .hero-controls {
    left: 22px;
    bottom: 18px;
  }

  .movie-grid,
  .catalog-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    border-radius: 20px;
  }

  .filter-select {
    width: 100%;
  }

  .page-hero {
    padding: 28px;
    border-radius: 28px;
  }

  .detail-hero {
    padding: 36px 0;
  }
}
