:root {
  --honey-50: #fff8e6;
  --honey-100: #ffefbd;
  --honey-500: #f5a524;
  --honey-600: #d98909;
  --flame-50: #fff0e8;
  --flame-500: #f97316;
  --flame-600: #ea580c;
  --phoenix-500: #ef4444;
  --phoenix-600: #dc2626;
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: linear-gradient(135deg, var(--honey-50), #ffffff 42%, var(--flame-50));
  min-height: 100vh;
}

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: 50;
  background: linear-gradient(90deg, var(--honey-600), var(--flame-500), var(--honey-500));
  box-shadow: 0 12px 30px rgba(217, 137, 9, 0.24);
}

.site-header__inner {
  max-width: var(--max);
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.site-logo__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  animation: flameFloat 3.2s ease-in-out infinite;
}

.site-logo__text {
  font-size: 22px;
}

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

.desktop-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: #fff8db;
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 300px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 11px 82px 11px 18px;
}

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

.header-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--flame-600);
  background: #ffffff;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  color: #ffffff;
  background: transparent;
  border: 0;
  font-size: 28px;
}

.mobile-nav {
  display: none;
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

.mobile-nav a {
  color: #ffffff;
  font-weight: 800;
  padding: 10px 0;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

.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-slide__image,
.detail-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 30% 30%, rgba(249, 115, 22, 0.5), transparent 35%), linear-gradient(135deg, #111827, #7c2d12);
  transform: scale(1.02);
}

.hero-slide__shade,
.detail-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  max-width: var(--max);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
  animation: floatIn 0.9s ease both;
}

.hero-kicker,
.section-kicker,
.page-hero span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 14px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--honey-500), var(--flame-500));
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0 14px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-weight: 700;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--flame-500), var(--phoenix-500));
  box-shadow: 0 16px 32px rgba(239, 68, 68, 0.28);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.18);
}

.primary-button--light {
  color: var(--flame-600);
  background: #ffffff;
}

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

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

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-50%) scale(1.08);
}

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

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

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

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 68px 20px;
}

.section--wide {
  max-width: var(--max);
}

.section--warm,
.section--editor {
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(90deg, var(--honey-100), #fff9ed, var(--flame-50));
}

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

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

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

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

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

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

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

.movie-card__poster,
.detail-poster,
.rank-item__poster,
.category-overview-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #7c2d12, #f59e0b 52%, #f97316);
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
  text-align: center;
  padding: 16px;
}

.movie-card__poster {
  display: block;
  aspect-ratio: 2 / 3;
}

.movie-card__poster img,
.rank-item__poster img,
.category-overview-card img,
.detail-poster img,
.feature-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.movie-card:hover img,
.feature-card:hover img {
  transform: scale(1.08);
}

.movie-card__quality,
.movie-card__score {
  position: absolute;
  z-index: 2;
  top: 10px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
}

.movie-card__quality {
  left: 10px;
  background: linear-gradient(90deg, var(--flame-500), var(--phoenix-500));
}

.movie-card__score {
  right: 10px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.movie-card__body {
  padding: 14px;
}

.movie-card__title {
  display: block;
  overflow: hidden;
  min-height: 44px;
  color: var(--ink-900);
  font-weight: 900;
  line-height: 1.35;
}

.movie-card__title:hover {
  color: var(--flame-600);
}

.movie-card__meta,
.movie-card__desc {
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 13px;
}

.movie-card__desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.55;
}

.movie-card__tags,
.detail-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.movie-card__tags span,
.detail-tags a,
.tag-cloud a {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--flame-600);
  background: var(--flame-50);
  font-weight: 800;
  font-size: 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 38px 86px 1fr;
  align-items: stretch;
  overflow: hidden;
  min-height: 120px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-item__number {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(180deg, var(--honey-500), var(--flame-500));
  font-weight: 900;
  font-size: 18px;
}

.rank-item__poster {
  min-height: 120px;
}

.rank-item__content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.rank-item__content strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-item__content em {
  color: var(--ink-500);
  font-style: normal;
  font-size: 13px;
}

.feature-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.feature-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #ffffff;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #7c2d12, #111827);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.05));
}

.feature-card span,
.feature-card strong,
.feature-card p {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
}

.feature-card span {
  bottom: 102px;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--honey-500);
  font-weight: 900;
  font-size: 12px;
}

.feature-card strong {
  bottom: 62px;
  font-size: 26px;
}

.feature-card p {
  bottom: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

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

.category-tile,
.category-overview-card {
  min-height: 166px;
  border-radius: var(--radius-lg);
  padding: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong,
.category-overview-card strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.category-tile span,
.category-overview-card em {
  display: block;
  margin-top: 6px;
  color: var(--flame-600);
  font-style: normal;
  font-weight: 900;
}

.category-tile p,
.category-overview-card p {
  margin: 12px 0 0;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.6;
}

.category-overview-card {
  display: block;
  min-height: 260px;
  padding: 0;
}

.category-overview-card img {
  height: 150px;
  object-fit: cover;
}

.category-overview-card strong,
.category-overview-card em,
.category-overview-card p {
  position: relative;
  z-index: 2;
  margin-left: 16px;
  margin-right: 16px;
}

.page-hero {
  padding: 92px 20px;
  color: #ffffff;
  text-align: center;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(90deg, var(--honey-600), var(--flame-500), var(--phoenix-600));
}

.page-hero--small {
  padding: 68px 20px;
}

.page-hero span {
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.2);
}

.page-hero h1 {
  margin: 18px auto 10px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 780px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.filter-bar input,
.filter-bar select,
.search-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 16px;
  outline: 0;
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus {
  border-color: var(--flame-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-count {
  margin: 0 0 18px;
  color: var(--ink-500);
  font-weight: 800;
}

.rankings-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.ranking-column h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

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

.ranking-column .rank-item {
  grid-template-columns: 34px 72px 1fr;
  min-height: 104px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: #111827;
}

.detail-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  min-height: 620px;
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

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

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.75;
}

.detail-tags a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.24), rgba(0, 0, 0, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--flame-500), var(--phoenix-500));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
  font-size: 34px;
}

.player-overlay strong {
  margin-top: 110px;
  font-size: 20px;
}

.detail-content-section {
  display: grid;
  grid-template-columns: minmax(0, 880px);
  justify-content: center;
}

.detail-article {
  border-radius: var(--radius-xl);
  padding: 36px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-article h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

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

.detail-article p {
  margin: 0 0 16px;
  color: var(--ink-700);
  line-height: 1.9;
}

.detail-table {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
}

.detail-table div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.detail-table dt {
  color: var(--ink-500);
  font-weight: 900;
}

.detail-table dd {
  margin: 0;
}

.site-cta {
  padding: 76px 20px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(90deg, var(--honey-600), var(--flame-500), var(--phoenix-600));
}

.site-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
}

.site-cta p {
  margin: 0 auto 24px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #451a03, #7f1d1d, #111827);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 20px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.site-footer p {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-content: start;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

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

@keyframes flameFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-2px) scale(1.03);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .rank-grid,
  .rankings-layout {
    grid-template-columns: 1fr;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero {
    height: 540px;
  }

  .hero-slide__content {
    width: calc(100% - 40px);
  }

  .hero-arrow {
    display: none;
  }

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

  .feature-pair,
  .detail-hero__inner,
  .filter-bar,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .detail-hero__inner {
    min-height: auto;
    padding-top: 40px;
  }

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

@media (max-width: 620px) {
  .site-logo__text {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 38px;
  }

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

  .rank-item {
    grid-template-columns: 34px 74px 1fr;
  }

  .movie-card__body {
    padding: 12px;
  }

  .movie-card__title {
    min-height: 40px;
    font-size: 14px;
  }

  .movie-card__desc,
  .movie-card__tags {
    display: none;
  }

  .detail-article {
    padding: 24px;
  }

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