:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --amber-300: #fcd34d;
  --blue-600: #2563eb;
  --green-600: #16a34a;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 52%, #f8fafc 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #fff;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-700), var(--slate-900));
  box-shadow: 0 16px 44px rgba(2, 6, 23, 0.28);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 14px 35px rgba(249, 115, 22, 0.34);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
}

.brand-title {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #cbd5e1;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 12px;
  color: #e2e8f0;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: var(--orange-500);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.26);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.42), transparent 32%), linear-gradient(135deg, #111827 0%, #0f172a 50%, #1e293b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
  pointer-events: none;
}

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

.hero-slider {
  position: relative;
  padding: 62px 0 34px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: 34px;
  min-height: 520px;
}

.hero-slide.is-active {
  display: grid;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(251, 146, 60, 0.42);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 24px 0 14px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-lead {
  margin: 0 0 18px;
  max-width: 680px;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.8;
}

.hero-summary {
  margin: 0 0 28px;
  max-width: 760px;
  color: #cbd5e1;
  line-height: 1.9;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.hero .tag {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.28);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.34);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-media {
  position: relative;
  min-height: 420px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(251, 146, 60, 0.35), rgba(30, 41, 59, 0.8)), var(--hero-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 34px 90px rgba(2, 6, 23, 0.45);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent 48%);
}

.hero-media-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(18px);
}

.hero-media-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 0 36px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  width: 28px;
  background: var(--orange-400);
}

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 24px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(16px);
}

.quick-search input,
.filter-bar input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  outline: none;
  padding: 0 16px;
}

.quick-search input {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.quick-search input::placeholder {
  color: #cbd5e1;
}

.section {
  padding: 68px 0;
}

.section-tight {
  padding: 44px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--orange-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.38);
  box-shadow: var(--shadow);
}

.poster-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.84), rgba(30, 41, 59, 0.94)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

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

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

.poster-shell.image-empty img {
  opacity: 0;
}

.poster-label {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 900;
}

.poster-score {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
}

.movie-body {
  padding: 16px;
}

.movie-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-title a:hover {
  color: var(--orange-600);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-line {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #475569;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--orange-600);
  font-weight: 900;
}

.filter-panel {
  position: relative;
  margin-top: -38px;
  z-index: 4;
}

.filter-card {
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
}

.filter-bar input {
  border: 1px solid var(--line);
  background: #fff;
}

.filter-groups {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-label {
  min-width: 64px;
  color: var(--slate-700);
  font-weight: 900;
}

.filter-chip,
.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
}

.filter-chip:hover,
.filter-chip.is-active,
.category-chip:hover {
  color: #fff;
  border-color: var(--orange-500);
  background: var(--orange-500);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

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

.category-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.category-block h3 {
  margin: 0 0 16px;
}

.page-hero {
  padding: 64px 0 78px;
  color: #fff;
  background: radial-gradient(circle at 16% 20%, rgba(249, 115, 22, 0.42), transparent 30%), linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  color: #fed7aa;
  font-weight: 900;
}

.detail-shell {
  background: #fff;
}

.detail-hero {
  padding: 36px 0 56px;
  color: #fff;
  background: radial-gradient(circle at 78% 12%, rgba(249, 115, 22, 0.32), transparent 34%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.detail-heading {
  margin: 20px 0 26px;
}

.detail-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-heading p {
  max-width: 900px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

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

.player-card,
.detail-side,
.content-card {
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.18);
}

.player-card {
  overflow: hidden;
}

.video-box {
  position: relative;
  background: #000;
}

.video-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.26), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  padding-left: 6px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 20px 44px rgba(249, 115, 22, 0.38);
  font-size: 34px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: #e2e8f0;
  font-size: 13px;
  pointer-events: none;
}

.detail-side {
  overflow: hidden;
  color: var(--text);
}

.detail-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.82), rgba(15, 23, 42, 0.94)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

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

.detail-side-body {
  padding: 20px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.info-list strong {
  color: var(--slate-900);
}

.detail-content {
  padding: 54px 0 72px;
}

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

.content-card {
  padding: 28px;
  color: var(--text);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.content-card p {
  margin: 0 0 18px;
  color: #334155;
  line-height: 1.95;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.related-item:hover {
  transform: translateX(4px);
  border-color: rgba(249, 115, 22, 0.38);
}

.related-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.8), rgba(15, 23, 42, 0.9)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

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

.related-title {
  display: block;
  font-weight: 900;
  line-height: 1.35;
}

.related-meta {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 68px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  font-size: 18px;
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.8), rgba(15, 23, 42, 0.9)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

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

.empty-state {
  display: none;
  padding: 42px;
  border: 1px dashed #cbd5e1;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 48px 0;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-grid p,
.footer-grid li {
  color: #94a3b8;
  line-height: 1.75;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a:hover {
  color: var(--orange-400);
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--orange-500);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  transform: translateY(-3px);
}

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

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

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

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 26px 60px rgba(2, 6, 23, 0.36);
  }

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

  .nav-link {
    width: 100%;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 22px;
  }

  .hero-media {
    min-height: 330px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 52px 76px minmax(0, 1fr);
  }

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

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

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

  .brand {
    min-width: 0;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-slider {
    padding-top: 42px;
  }

  .hero h1 {
    letter-spacing: -0.04em;
  }

  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: 1fr;
  }

  .detail-side {
    max-width: none;
  }

  .content-card {
    padding: 22px;
  }

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