:root {
  --honey-50: #fff8e7;
  --honey-100: #fff0d1;
  --honey-200: #ffe0a6;
  --honey-500: #d4a574;
  --honey-600: #c4954f;
  --honey-800: #88642f;
  --honey-900: #5a3418;
  --flame-400: #ffa726;
  --flame-500: #ff6b35;
  --flame-600: #f4511e;
  --phoenix-500: #c1440e;
  --phoenix-900: #4a1708;
  --ink: #111827;
  --muted: #6b7280;
  --line: rgba(136, 100, 47, 0.16);
  --shadow: 0 18px 40px rgba(74, 23, 8, 0.12);
  --soft-shadow: 0 10px 24px rgba(74, 23, 8, 0.1);
  --gradient-main: linear-gradient(135deg, var(--honey-600), var(--flame-500), var(--phoenix-500));
  --gradient-dark: linear-gradient(135deg, var(--honey-900), var(--phoenix-900), #1f0d06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--honey-50), #ffffff 42%, #fff4ed);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--gradient-main);
  box-shadow: 0 12px 30px rgba(74, 23, 8, 0.2);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  animation: flamePulse 3s ease-in-out infinite;
}

.logo-text {
  font-size: 24px;
}

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.header-search {
  position: relative;
  width: min(320px, 28vw);
}

.search-input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(420px, 90vw);
  max-height: 520px;
  overflow: auto;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  display: none;
}

.search-panel.is-open {
  display: grid;
  gap: 8px;
}

.search-result {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: 0.25s ease;
}

.search-result:hover {
  background: var(--honey-50);
}

.search-result img {
  width: 52px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--gradient-main);
}

.search-result strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.search-result small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 14px 16px 20px;
  background: linear-gradient(180deg, rgba(136, 100, 47, 0.98), rgba(193, 68, 14, 0.98));
}

.mobile-search-wrap {
  margin-top: 8px;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #140804;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms 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.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.16));
}

.hero-content {
  position: relative;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 44px;
  color: #ffffff;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.section-label,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--gradient-main);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-one-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2.2vw, 21px);
  max-width: 760px;
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.text-button,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--gradient-main);
  box-shadow: 0 16px 30px rgba(193, 68, 14, 0.26);
}

.primary-button:hover,
.rank-action:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 42px rgba(193, 68, 14, 0.32);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.ghost-button.light {
  color: #ffffff;
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 300px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--gradient-main);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.45);
  transition: 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

.quick-search-band {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.quick-search-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.quick-search-inner h2,
.section-heading h2,
.category-overview-head h2,
.detail-article h2,
.side-panel h2,
.ranking-preview-layout h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.quick-search-inner p,
.ranking-preview-layout p,
.category-overview-head p,
.detail-article p,
.side-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.quick-links a,
.text-button {
  color: var(--phoenix-500);
  background: var(--honey-50);
  box-shadow: inset 0 0 0 1px var(--line);
}

.section {
  padding: 72px 0;
}

.section-warm {
  background: linear-gradient(135deg, var(--honey-100), #fffaf0 46%, #ffe9df);
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading a {
  color: var(--flame-600);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: 0.28s ease;
}

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

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

.poster-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: 0.35s ease;
}

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

.year-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(8px);
}

.year-badge {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.movie-card h3 {
  margin: 0;
  min-height: 50px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-copy h2 a:hover,
.category-overview-head h2 a:hover {
  color: var(--flame-600);
}

.movie-meta,
.movie-one-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.movie-one-line {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card .tag-row span {
  color: var(--honey-800);
  background: var(--honey-50);
  box-shadow: inset 0 0 0 1px var(--line);
}

.section-ranking-preview {
  color: #ffffff;
  background: var(--gradient-dark);
}

.ranking-preview-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 38px;
  align-items: start;
}

.ranking-preview-layout p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 24px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 82px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.compact-ranking .ranking-row {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.rank-number {
  color: var(--flame-600);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.compact-ranking .rank-number,
.compact-ranking .rank-copy h2,
.compact-ranking .rank-copy p,
.compact-ranking .rank-meta {
  color: #ffffff;
}

.rank-cover img {
  width: 82px;
  height: 108px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--gradient-main);
}

.rank-copy h2 {
  margin: 0;
  font-size: 20px;
}

.rank-copy p {
  margin: 7px 0 0;
  color: var(--muted);
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.rank-action {
  color: #ffffff;
  background: var(--gradient-main);
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  box-shadow: var(--soft-shadow);
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.78));
}

.category-card span,
.category-card small {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 18px;
}

.category-card span {
  margin-top: 118px;
  font-size: 24px;
  font-weight: 900;
}

.category-card small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

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

.page-hero,
.detail-hero {
  color: #ffffff;
  background: var(--gradient-dark);
}

.page-hero {
  padding: 76px 0;
}

.small-hero,
.category-hero,
.rank-hero {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 167, 38, 0.35), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(255, 107, 53, 0.35), transparent 34%),
    var(--gradient-dark);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.filter-bar input,
.filter-bar select {
  color: var(--ink);
  background: var(--honey-50);
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.category-overview-card {
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

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

.category-overview-head span {
  color: var(--flame-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--honey-50);
}

.compact-card img {
  grid-row: span 2;
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--gradient-main);
}

.compact-card span {
  align-self: end;
  font-weight: 800;
}

.compact-card small {
  align-self: start;
  color: var(--muted);
}

.detail-hero {
  padding: 48px 0 68px;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 167, 38, 0.28), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(255, 107, 53, 0.3), transparent 35%),
    var(--gradient-dark);
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
}

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

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--gradient-main);
}

.detail-meta span,
.large-tags span {
  color: #ffffff;
}

.player-section {
  padding: 56px 0 28px;
  background: #140804;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.24), rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play-button {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--gradient-main);
  box-shadow: 0 18px 44px rgba(255, 107, 53, 0.38);
  transition: 0.25s ease;
}

.player-play-button span {
  display: block;
  transform: translateX(3px);
  font-size: 34px;
}

.player-play-button:hover {
  transform: scale(1.06);
}

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

.detail-article,
.side-panel {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.detail-article h2 + p {
  margin-bottom: 24px;
}

.side-panel dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.side-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.side-panel dt {
  color: var(--muted);
}

.side-panel dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.prev-next {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.prev-next a {
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--phoenix-500);
  background: var(--honey-50);
}

.site-footer {
  color: #ffffff;
  background: var(--gradient-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 28px;
  padding: 52px 0;
}

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

.footer-grid p,
.footer-grid a {
  color: rgba(255, 240, 209, 0.86);
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: rgba(255, 240, 209, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

@keyframes flamePulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(-3px);
    opacity: 0.84;
  }
}

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

  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: block;
  }

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

  .mobile-link {
    color: #ffffff;
  }
}

@media (max-width: 860px) {
  .hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-content,
  .detail-layout,
  .ranking-preview-layout,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .quick-search-inner,
  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .logo-text {
    font-size: 20px;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-arrow {
    display: none;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

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

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

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

  .ranking-row {
    grid-template-columns: 42px 66px 1fr;
  }

  .rank-action {
    grid-column: 2 / -1;
  }

  .rank-cover img {
    width: 66px;
    height: 88px;
  }

  .section {
    padding: 46px 0;
  }

  .page-hero,
  .detail-hero {
    padding: 44px 0;
  }

  .detail-poster-wrap {
    max-width: 240px;
  }

  .player-shell {
    border-radius: 18px;
  }
}
