:root {
  --page: #fff8ec;
  --page-soft: #fffdf7;
  --text: #151515;
  --muted: #6b7280;
  --muted-dark: #3f3f46;
  --line: rgba(17, 24, 39, 0.1);
  --brand: #facc15;
  --brand-strong: #f59e0b;
  --brand-deep: #ea580c;
  --dark: #0b0b0f;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7e6 0%, #ffffff 46%, #fff3dc 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, #facc15 0%, #fb923c 48%, #f59e0b 100%);
  box-shadow: 0 12px 34px rgba(180, 83, 9, 0.2);
}

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

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

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: #ffffff;
  font-weight: 700;
}

.nav-menu a {
  position: relative;
  opacity: 0.96;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-menu a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 24px;
}

.hero-carousel {
  padding: 32px 0 18px;
}

.hero-stage {
  position: relative;
  height: 600px;
  overflow: hidden;
  border-radius: 28px;
  background: #0b0b0f;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.56) 46%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(680px, calc(100% - 56px));
  margin-left: clamp(24px, 7vw, 72px);
  color: #ffffff;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--brand);
  color: #171717;
  font-size: 13px;
  font-weight: 900;
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 70px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-actions,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #111111;
  box-shadow: 0 16px 35px rgba(250, 204, 21, 0.28);
}

.btn-primary:hover {
  background: #fde047;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
  font-size: 26px;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

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

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

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: var(--brand);
}

.section {
  padding: 52px 0;
}

.section-soft {
  margin: 36px 0;
  padding: 46px 0;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.72), rgba(255, 237, 213, 0.9));
  border-radius: 30px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-desc {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

.search-panel {
  margin: 22px auto 12px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(251, 146, 60, 0.18);
  backdrop-filter: blur(14px);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(120px, 180px));
  gap: 12px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  padding: 0 14px;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.22);
}

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #111827;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--brand);
  color: #111111;
  font-size: 12px;
  font-weight: 900;
}

.score-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.66);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title {
  color: #ca8a04;
}

.card-text {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #71717a;
  font-size: 12px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f4f4f5;
}

.masonry {
  columns: 4 220px;
  column-gap: 24px;
}

.masonry .movie-card {
  display: inline-flex;
  width: 100%;
  margin: 0 0 24px;
  break-inside: avoid;
}

.rail-section {
  position: relative;
}

.rail-controls {
  display: flex;
  gap: 10px;
}

.rail-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: #1f2937;
  font-size: 24px;
  transition: background 0.2s ease;
}

.rail-button:hover {
  background: var(--brand);
}

.rail-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 2px 22px;
  scrollbar-width: none;
}

.rail-track::-webkit-scrollbar {
  display: none;
}

.rail-track .movie-card {
  flex: 0 0 280px;
}

.editor-list {
  display: grid;
  gap: 24px;
}

.editor-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.editor-card:nth-child(even) .editor-cover {
  order: 2;
}

.editor-cover {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.editor-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.editor-title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

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

.category-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff7cc, #ffedd5);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #ffffff;
  font-size: 26px;
}

.page-hero {
  margin: 32px 0 14px;
  padding: 62px 0;
  border-radius: 28px;
  background: radial-gradient(circle at 20% 15%, rgba(250, 204, 21, 0.36), transparent 34%), linear-gradient(135deg, #111827 0%, #18181b 55%, #78350f 100%);
  color: #ffffff;
  overflow: hidden;
}

.page-hero h1 {
  margin: 12px 0 14px;
  max-width: 980px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

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

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

.detail-hero {
  padding: 42px 0;
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.detail-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: #111827;
}

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

.detail-title {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.detail-one-line {
  margin: 0 0 22px;
  color: var(--muted-dark);
  font-size: 19px;
  line-height: 1.8;
}

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

.detail-meta .pill {
  background: #ffedd5;
  color: #9a3412;
}

.player-section {
  padding: 24px 0 50px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.player-cover.is-hidden {
  display: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #111111;
  font-size: 34px;
  box-shadow: 0 18px 45px rgba(250, 204, 21, 0.32);
}

.player-cover span:last-child {
  font-size: 20px;
  font-weight: 900;
}

.detail-body {
  padding-bottom: 50px;
}

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

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.content-card p {
  margin: 0 0 22px;
  color: #3f3f46;
  line-height: 1.9;
  font-size: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.tag-list span {
  border-radius: 999px;
  padding: 8px 12px;
  background: #f4f4f5;
  color: #52525b;
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.ranking-num {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #facc15, #fb923c);
  color: #111111;
  font-weight: 1000;
  font-size: 20px;
}

.ranking-thumb {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  background: #111827;
}

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

.ranking-title {
  margin: 0 0 8px;
  font-size: 22px;
}

.site-footer {
  margin-top: 42px;
  color: #ffffff;
  background: linear-gradient(180deg, #18181b 0%, #030712 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

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

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-heading {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 17px;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
}

.no-results {
  display: none;
  padding: 30px;
  border-radius: 20px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.no-results.is-visible {
  display: block;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 62px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 8px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 4px;
  }

  .nav-menu a::after {
    display: none;
  }

  .hero-stage {
    height: 520px;
    border-radius: 22px;
  }

  .hero-content {
    width: min(560px, calc(100% - 48px));
    margin-left: 24px;
  }

  .hero-arrow {
    display: none;
  }

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

  .detail-grid,
  .editor-card,
  .ranking-item,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .editor-card:nth-child(even) .editor-cover {
    order: 0;
  }
}

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

  .logo {
    font-size: 20px;
  }

  .hero-stage {
    height: 480px;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-left: 18px;
  }

  .hero-content p {
    line-height: 1.55;
  }

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

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

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

  .card-body {
    padding: 13px;
  }

  .card-title {
    font-size: 16px;
  }

  .rail-track .movie-card {
    flex-basis: 230px;
  }

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

  .content-card {
    padding: 22px;
  }
}
