:root {
  --honey-50: #fff8e7;
  --honey-100: #fff0d1;
  --honey-300: #ffd875;
  --honey-500: #d4a574;
  --honey-600: #c4954f;
  --honey-700: #a67c3e;
  --honey-900: #6a4c20;
  --flame-50: #fff3e0;
  --flame-100: #ffe0b2;
  --flame-500: #ff6b35;
  --flame-600: #f4511e;
  --phoenix-500: #e65100;
  --phoenix-600: #c1440e;
  --phoenix-900: #7a2e0e;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(255, 255, 255, 0.22);
  --shadow: 0 18px 48px rgba(106, 76, 32, 0.16);
  --soft-shadow: 0 10px 24px rgba(106, 76, 32, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--honey-600), var(--flame-500), #ffbf69);
  box-shadow: 0 10px 28px rgba(193, 68, 14, 0.24);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon,
.footer-brand span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  animation: flame-flicker 2.4s ease-in-out infinite;
}

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

.nav-link {
  color: #ffffff;
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.search-panel input,
.search-panel select,
.filter-input {
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  min-width: 250px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.top-search button,
.mobile-search button,
.search-panel button,
.primary-btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--flame-500), var(--phoenix-500));
  box-shadow: 0 10px 24px rgba(230, 81, 0, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-search button {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.primary-btn:hover,
.ghost-btn:hover,
.top-search button:hover,
.mobile-search button:hover,
.search-panel button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(230, 81, 0, 0.28);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.mobile-panel {
  display: none;
  padding: 12px 16px 18px;
  background: linear-gradient(180deg, var(--honey-700), var(--flame-600));
  border-top: 1px solid var(--line);
}

.mobile-panel.open {
  display: block;
}

.mobile-panel a {
  display: block;
  color: #ffffff;
  padding: 12px 4px;
  font-weight: 800;
}

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

.mobile-search input {
  min-width: 0;
  width: 100%;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 202, 40, 0.26), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-box {
  width: min(680px, calc(100% - 32px));
  margin-left: max(16px, calc((100% - 1180px) / 2));
  color: #ffffff;
  animation: float-in 800ms ease both;
}

.hero-eyebrow,
.card-badge,
.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--honey-500), #ffbf69);
  box-shadow: 0 10px 26px rgba(255, 191, 105, 0.24);
}

.hero-score {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  color: #ffd54f;
  font-weight: 900;
}

.hero h1 {
  margin: 22px 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.hero-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.44);
  pointer-events: auto;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

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

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
  pointer-events: auto;
}

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

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

.section {
  padding: 70px 0;
}

.section.alt {
  background: linear-gradient(90deg, var(--honey-100), #fff8e1, var(--flame-100));
}

.section.glow {
  background: linear-gradient(135deg, #fff8e7, #fff3e0, #fff0d1);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.section-title span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
  box-shadow: var(--soft-shadow);
}

.section-title h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  color: #111827;
}

.section-title p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

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

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

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--honey-600), var(--flame-500));
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
  transition: transform 0.32s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.58));
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.card-score {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  min-height: 46px;
}

.movie-card h3 a:hover {
  color: var(--flame-600);
}

.card-meta,
.card-line,
.card-actions,
.detail-submeta {
  color: var(--muted);
  font-size: 13px;
}

.card-line {
  min-height: 42px;
  line-height: 1.62;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.text-link {
  color: var(--flame-600);
  font-weight: 900;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 44px 86px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.ranking-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffca28, var(--flame-500));
}

.ranking-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--honey-500), var(--flame-500));
}

.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
}

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

.ranking-content strong {
  color: #111827;
  line-height: 1.35;
}

.ranking-content em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.ranking-score {
  color: #ffb300;
  font-weight: 900;
}

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

.spotlight-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  box-shadow: var(--shadow);
}

.spotlight-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  color: transparent;
  transition: transform 0.35s ease;
}

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

.spotlight-card div {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.spotlight-card h3 {
  margin: 12px 0 8px;
  font-size: 27px;
}

.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.category-chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 17px;
  color: #374151;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  font-weight: 800;
  transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.category-chip:hover,
.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--flame-500), var(--phoenix-500));
  transform: translateY(-2px);
}

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

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
}

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

.page-hero {
  padding: 74px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 213, 79, 0.34), transparent 28%),
    linear-gradient(90deg, var(--honey-600), var(--flame-500), var(--phoenix-600));
}

.page-title h1,
.page-title p {
  color: inherit;
}

.page-title p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 760px;
  line-height: 1.8;
}

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

.category-card {
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 23px;
  color: #111827;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.category-preview {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.category-preview img {
  width: 56px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
  color: transparent;
  background: linear-gradient(135deg, var(--honey-500), var(--flame-500));
}

.filter-bar,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.filter-input,
.search-panel input,
.search-panel select {
  color: #111827;
  background: #fff7ed;
  min-width: 240px;
  box-shadow: inset 0 0 0 1px rgba(212, 165, 116, 0.24);
}

.search-panel button {
  padding-left: 26px;
  padding-right: 26px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 48px 0 70px;
}

.detail-main,
.detail-side,
.detail-card {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.detail-main {
  overflow: hidden;
}

.player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #09090b;
}

.player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.32), rgba(0, 0, 0, 0.46));
  transition: opacity 0.24s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  font-size: 32px;
  background: linear-gradient(135deg, var(--flame-500), var(--phoenix-500));
  box-shadow: 0 18px 48px rgba(255, 107, 53, 0.34);
}

.player.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  padding: 30px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--flame-600);
}

.detail-content h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
}

.detail-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.tag {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--phoenix-600);
  background: #fff3e0;
  font-size: 13px;
  font-weight: 800;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-section p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.detail-side {
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.side-title {
  margin: 0 0 16px;
  font-size: 22px;
}

.side-movie {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(166, 124, 62, 0.14);
}

.side-movie:last-child {
  border-bottom: 0;
}

.side-movie img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  color: transparent;
  background: linear-gradient(135deg, var(--honey-500), var(--flame-500));
}

.side-movie strong {
  display: block;
  line-height: 1.35;
}

.side-movie span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 70px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, var(--honey-900), var(--phoenix-900), #4a1d09);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 28px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffd54f;
}

.site-footer p,
.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

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

.empty-state {
  display: none;
  padding: 44px;
  text-align: center;
  color: var(--muted);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.empty-state.show {
  display: block;
}

@keyframes flame-flicker {
  0%, 100% {
    transform: scale(1) rotate(-2deg);
  }
  50% {
    transform: scale(1.08) rotate(2deg);
  }
}

@keyframes float-in {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .top-search {
    display: none;
  }

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

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

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

  .detail-side {
    position: static;
  }

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-wrap {
    gap: 12px;
  }

  .brand {
    font-size: 20px;
  }

  .hero {
    height: 520px;
  }

  .hero-box {
    width: calc(100% - 32px);
    margin: 0 16px;
  }

  .hero-arrow {
    display: none;
  }

  .grid,
  .grid.six,
  .spotlight-grid,
  .ranking-grid,
  .category-cards,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .section {
    padding: 48px 0;
  }

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

  .ranking-item {
    grid-template-columns: 38px 70px 1fr;
  }

  .ranking-score {
    grid-column: 3;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .grid,
  .grid.six,
  .category-cards,
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .movie-card h3 {
    font-size: 15px;
    min-height: 40px;
  }

  .card-line {
    display: none;
  }

  .ranking-grid,
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .detail-content {
    padding: 22px;
  }

  .play-overlay span {
    width: 70px;
    height: 70px;
  }
}
