:root {
  --bg: #f5f7fb;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --orange: #f97316;
  --pink: #ec4899;
  --sky: #0ea5e9;
  --green: #10b981;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 45%, #fff7ed 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
}

.brand-name {
  font-size: 24px;
  background: linear-gradient(90deg, #fb923c, #f472b6);
  -webkit-background-clip: text;
  color: transparent;
}

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

.desktop-nav > a,
.nav-dropdown > a,
.nav-dropdown > button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #e5e7eb;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown:hover > a {
  color: #fff;
  background: rgba(249, 115, 22, 0.16);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 48px;
  left: 0;
  width: 210px;
  padding: 10px;
  display: none;
  grid-template-columns: 1fr;
  gap: 4px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-menu {
  display: grid;
}

.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #cbd5e1;
}

.dropdown-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input,
.mobile-search input {
  width: 220px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(51, 65, 85, 0.72);
}

.nav-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.nav-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.open {
  display: grid;
  gap: 8px;
}

.mobile-panel a {
  padding: 11px 14px;
  border-radius: 12px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.hero-section {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 34px;
  background: radial-gradient(circle at 18% 22%, rgba(249, 115, 22, 0.42), transparent 30%), radial-gradient(circle at 78% 20%, rgba(236, 72, 153, 0.34), transparent 34%), linear-gradient(135deg, #111827 0%, #1e293b 58%, #020617 100%);
  color: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.hero-bg-glow {
  position: absolute;
  inset: auto -12% -28% 38%;
  height: 55%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.28), transparent 62%);
  filter: blur(22px);
  pointer-events: none;
}

.hero-slide {
  position: relative;
  z-index: 2;
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 42px;
  min-height: 560px;
  padding: 62px;
  align-items: center;
}

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

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

.hero-copy p,
.page-hero p,
.section-heading p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

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

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

.primary-btn,
.ghost-btn,
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.22);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.pill-link:hover,
.movie-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-poster img {
  height: 520px;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.78));
}

.hero-poster span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  font-size: 24px;
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  left: 62px;
  bottom: 36px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

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

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

.hero-hot-list {
  position: absolute;
  right: 38px;
  bottom: 34px;
  z-index: 5;
  width: 320px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
}

.hero-hot-list > strong,
.side-panel > h2 {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 20px;
}

.stat-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -24px auto 22px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-strip div {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.stat-strip strong,
.stat-strip span {
  display: block;
}

.stat-strip strong {
  font-size: 20px;
}

.stat-strip span {
  color: var(--muted);
}

.content-section,
.category-preview,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto;
}

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading a {
  color: var(--orange);
  font-weight: 800;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #fff7ed);
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.category-card:hover img {
  opacity: 0.33;
  transform: scale(1.08);
}

.large-category-grid .category-card {
  min-height: 150px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #111827, #334155);
}

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s ease, filter 0.38s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

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

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta-line span,
.detail-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.movie-card h3 {
  margin: 11px 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

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

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

.side-panel,
.poster-panel,
.detail-content,
.player-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.side-panel,
.poster-panel,
.detail-content {
  padding: 22px;
}

.side-panel {
  position: sticky;
  top: 96px;
  background: linear-gradient(180deg, #111827, #1e293b);
}

.stacked-panel {
  position: static;
}

.hot-link {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  color: #e5e7eb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hot-link:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.hot-link img {
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.hot-link strong,
.hot-link em {
  display: block;
}

.hot-link strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
}

.hot-link em {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.list-number,
.list-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 900;
  font-size: 13px;
}

.list-dot {
  width: 10px;
  height: 10px;
  background: var(--orange);
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: clamp(36px, 7vw, 76px);
  border-radius: 34px;
  color: #fff;
  background: radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.46), transparent 32%), radial-gradient(circle at 84% 22%, rgba(236, 72, 153, 0.32), transparent 30%), linear-gradient(135deg, #0f172a, #1e293b 54%, #111827);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 780px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select,
.hero-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--text);
  background: #fff;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 720px;
  margin-top: 28px;
}

.detail-shell {
  margin-top: 24px;
}

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

.breadcrumb a {
  color: var(--orange);
}

.player-card {
  overflow: hidden;
  padding: 0;
}

.movie-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

.player-overlay.hidden {
  display: none;
}

.player-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: 30px;
  box-shadow: 0 18px 32px rgba(236, 72, 153, 0.35);
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.2;
}

.detail-content {
  margin-top: 22px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.detail-title-row h1 {
  margin: 12px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.pill-link {
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--green));
}

.detail-meta {
  margin: 18px 0;
}

.lead-text {
  font-size: 20px;
  color: #334155;
  font-weight: 700;
}

.detail-content h2 {
  margin: 28px 0 10px;
  font-size: 26px;
}

.detail-content p {
  margin: 0;
  color: #475569;
}

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

.poster-panel img {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.full-btn {
  width: 100%;
  margin-top: 16px;
}

.detail-hot {
  position: static;
}

.site-footer {
  margin-top: 60px;
  background: #0f172a;
  color: #94a3b8;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 220px;
  gap: 32px;
}

.footer-brand {
  color: #fff;
  margin-bottom: 12px;
}

.footer-inner p {
  max-width: 520px;
}

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

.footer-links strong {
  color: #fff;
  margin-bottom: 6px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 14px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px;
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  color: var(--muted);
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-slide,
  .detail-layout,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-hot-list {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 24px 24px;
  }

  .hero-dots {
    left: 36px;
  }

  .stat-strip,
  .category-grid,
  .movie-grid,
  .preview-grid,
  .two-col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .nav-wrap,
  .mobile-panel,
  .content-section,
  .category-preview,
  .detail-shell,
  .page-hero,
  .hero-section,
  .stat-strip,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .brand-name {
    font-size: 20px;
  }

  .hero-slide {
    padding: 32px 22px 70px;
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-poster {
    min-height: auto;
  }

  .hero-poster img {
    height: 380px;
  }

  .hero-dots {
    bottom: 24px;
    left: 24px;
  }

  .stat-strip,
  .category-grid,
  .movie-grid,
  .preview-grid,
  .two-col-grid,
  .filter-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .page-hero {
    padding: 34px 22px;
  }

  .detail-content,
  .side-panel,
  .poster-panel {
    padding: 18px;
  }
}
