:root {
  --bg: #ffffff;
  --soft: #f8fafc;
  --soft-blue: #eff6ff;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --orange: #ea580c;
  --amber: #f59e0b;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.32);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 14px;
  color: #334155;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px;
  width: min(360px, 34vw);
  background: #f1f5f9;
  border-radius: 999px;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 12px;
  color: var(--text);
}

.header-search button {
  border: 0;
  color: #ffffff;
  background: var(--blue);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #0f172a;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-brand {
  padding: 14px 0;
  color: var(--orange);
  font-weight: 900;
}

.mobile-link,
.mobile-category-links a {
  display: block;
  padding: 10px 0;
  color: #334155;
  font-weight: 700;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  color: #ffffff;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.08);
  transform: scale(1.04);
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 72% 42%, rgba(245, 158, 11, 0.38), transparent 32%),
    linear-gradient(110deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.58) 48%, rgba(234, 88, 12, 0.62));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.1fr 340px;
  align-items: center;
  gap: 48px;
  padding: 84px 0 130px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-summary {
  max-width: 700px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  color: #475569;
  background: #f1f5f9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 16px 36px rgba(234, 88, 12, 0.32);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

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

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

.hero-poster img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

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

.hero-search-large {
  display: flex;
  width: min(560px, 55vw);
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
}

.hero-search-large input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 10px 16px;
}

.hero-search-large input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.hero-search-large button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 900;
}

.section {
  padding: 76px 0;
}

.bg-soft {
  background: var(--soft);
}

.bg-gradient-panel {
  background: linear-gradient(135deg, #eff6ff, #fff7ed);
}

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

.section-kicker {
  color: var(--orange);
  font-weight: 900;
}

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

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.section-more {
  flex-shrink: 0;
  color: var(--blue);
  font-weight: 900;
}

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

.category-feature,
.category-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-feature {
  padding: 24px;
}

.category-feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.category-feature-head span,
.category-card h2 {
  font-size: 24px;
  font-weight: 950;
}

.category-feature-head strong,
.category-count {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  padding: 7px 12px;
  border-radius: 999px;
}

.category-feature p,
.category-card p {
  color: var(--muted);
}

.category-card a {
  display: block;
  height: 100%;
  padding: 24px;
}

.category-count {
  display: inline-flex;
  margin-bottom: 14px;
  font-weight: 900;
}

.category-enter {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 900;
}

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

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

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

.mini-card {
  position: relative;
  display: block;
  min-height: 180px;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
}

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

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

.mini-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent 60%);
}

.mini-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 10px;
  background: var(--orange);
  font-weight: 950;
}

.mini-title,
.mini-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  color: #ffffff;
}

.mini-title {
  bottom: 34px;
  font-weight: 950;
}

.mini-meta {
  bottom: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

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

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

.movie-card {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

.movie-link {
  display: block;
  overflow: hidden;
  height: 100%;
  border-radius: var(--radius);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #f97316);
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72), transparent 55%);
}

.rank-badge,
.score-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-weight: 950;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.score-badge {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  font-size: 12px;
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

.movie-meta {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

.movie-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 82px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #ea580c);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.42)),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero.compact {
  padding: 96px 0 72px;
}

.page-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 180px 220px;
  gap: 14px;
}

.filter-row label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.filter-row input,
.filter-row select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 0 14px;
  color: var(--text);
  background: #f8fafc;
}

.filter-status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-aside {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 20px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-aside h2 {
  margin: 0 0 12px;
}

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

.ranking-row a {
  display: grid;
  grid-template-columns: 42px 54px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: #f8fafc;
}

.ranking-row img {
  width: 54px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.ranking-no {
  color: var(--orange);
  font-weight: 950;
}

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

.ranking-main em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.ranking-score {
  color: #ffffff;
  background: var(--blue);
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 950;
}

.detail-hero {
  position: relative;
  color: #ffffff;
  overflow: hidden;
  background: #0f172a;
}

.detail-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(105deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.62) 55%, rgba(234, 88, 12, 0.48)),
    var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(0px);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 92px 0 76px;
}

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

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

.detail-copy h1 {
  margin: 12px 0 12px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.detail-meta-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

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

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

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

.play-shield {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(234, 88, 12, 0.44));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .play-shield {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  padding: 16px 24px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.36);
}

.play-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--orange);
  border-radius: 50%;
  background: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.detail-article,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.detail-article {
  padding: 30px;
}

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

.detail-article p {
  color: #334155;
  font-size: 17px;
}

.detail-side {
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 22px;
}

.side-card h3 {
  margin: 0 0 14px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 9px 12px;
  margin: 0;
}

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

.side-card dd {
  margin: 0;
  font-weight: 800;
}

.next-card a {
  display: block;
  padding: 10px 0;
  color: var(--blue);
  font-weight: 900;
}

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

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

  .nav-toggle {
    display: block;
  }

  .hero-content,
  .detail-hero-inner,
  .detail-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .ranking-aside {
    position: static;
    max-height: none;
  }
}

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

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

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

  .hero-content {
    padding: 72px 0 156px;
  }

  .hero-controls {
    display: grid;
    gap: 16px;
  }

  .hero-search-large {
    width: 100%;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .category-feature-grid,
  .category-card-grid,
  .movie-grid,
  .movie-grid.large,
  .mini-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-hero-inner {
    padding: 58px 0;
  }

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

  .ranking-row a {
    grid-template-columns: 34px 44px 1fr;
  }

  .ranking-score {
    grid-column: 2 / -1;
    justify-self: start;
  }
}
