:root {
  --color-blue: #2563eb;
  --color-cyan: #0891b2;
  --color-teal: #0d9488;
  --color-purple: #7c3aed;
  --color-pink: #db2777;
  --color-orange: #f97316;
  --color-red: #ef4444;
  --color-bg: #f8fafc;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --shadow-card: 0 14px 30px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

img {
  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(--color-blue), var(--color-cyan), var(--color-teal));
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 650;
}

.nav-link,
.mobile-nav-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover {
  color: #fde047;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.header-search input {
  width: 180px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 6px 8px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.header-search button,
.hero-search button,
.btn-primary {
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-orange), var(--color-red));
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.25);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.hero-area {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 42%, #581c87 72%, #831843 100%);
}

.hero-area::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.24), transparent 34%), radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.22), transparent 36%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  min-height: 620px;
  padding: 68px 0 52px;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.42;
}

.hero-glow-one {
  width: 320px;
  height: 320px;
  top: 78px;
  left: 8%;
  background: #38bdf8;
}

.hero-glow-two {
  width: 430px;
  height: 430px;
  right: 6%;
  bottom: 54px;
  background: #ec4899;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 48px;
  animation: fadeIn 0.55s ease both;
}

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

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fde68a;
}

.hero-copy h1 {
  margin: 16px 0 20px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

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

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

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

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.btn-ghost.dark {
  color: #1f2937;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.35);
  transform: rotate(1deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

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

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

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

.hero-search {
  display: flex;
  width: min(720px, 100%);
  gap: 10px;
  margin-top: 28px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

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

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(720px, 100%);
  margin-top: 20px;
}

.hero-stats div,
.hot-entry,
.filter-panel,
.overview-card,
.text-panel,
.sidebar-box {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hero-stats div {
  padding: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-stats strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.78);
}

.section-block {
  margin-top: 58px;
}

.section-heading,
.overview-card-head,
.detail-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2,
.filter-panel h2,
.overview-card h2,
.text-panel h2,
.sidebar-box h2,
.hot-entry h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
}

.section-heading a,
.overview-card-head a {
  color: var(--color-blue);
  font-weight: 800;
}

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

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

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card:hover .poster-link::after {
  opacity: 1;
}

.poster-region,
.poster-play {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-weight: 800;
}

.poster-region {
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  background: linear-gradient(90deg, var(--color-pink), var(--color-purple));
  font-size: 12px;
}

.poster-play {
  left: 50%;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card-body h3 {
  min-height: 44px;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card-body h3 a:hover {
  color: var(--color-blue);
}

.movie-card-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 13px;
}

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.hot-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.hot-entry p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--color-muted);
}

.category-strip {
  margin-top: 64px;
  padding: 54px 0 62px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
}

.light-heading .section-kicker,
.light-heading a {
  color: #fde68a;
}

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

.category-tile {
  display: grid;
  gap: 8px;
  min-height: 150px;
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transition: transform 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.22);
}

.category-tile strong {
  font-size: 23px;
}

.category-tile span,
.category-tile em {
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #172554, #581c87, #831843);
  padding: 58px 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 10px 0 16px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
}

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

.page-hero .section-kicker,
.category-hero .section-kicker,
.ranking-hero .section-kicker,
.search-hero .section-kicker {
  color: #fde68a;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #fde68a;
}

.overview-grid {
  margin-top: 48px;
}

.overview-card {
  padding: 24px;
  background: #ffffff;
}

.overview-card p {
  color: var(--color-muted);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  background: #f8fafc;
  transition: background 0.18s ease, transform 0.18s ease;
}

.compact-card:hover {
  background: #eff6ff;
  transform: translateX(4px);
}

.compact-card img {
  width: 58px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  color: #1f2937;
  line-height: 1.35;
}

.compact-card em {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.category-feature {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  max-width: 760px;
  margin-top: 28px;
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.category-feature img {
  width: 180px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.category-feature h2 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
  margin: 42px 0 26px;
  padding: 22px;
  background: #ffffff;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 160px 180px;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  outline: 0;
  background: #f8fafc;
  padding: 12px 14px;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-result {
  grid-column: 2;
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
}

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

.rank-card a {
  display: grid;
  grid-template-columns: 52px 84px 1fr;
  gap: 14px;
  align-items: center;
  border-radius: var(--radius-md);
  padding: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rank-card a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
  font-weight: 900;
}

.rank-card img {
  width: 84px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
}

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

.rank-content strong {
  font-size: 18px;
}

.rank-content em {
  margin: 6px 0;
  color: #64748b;
  font-style: normal;
}

.rank-content b {
  color: var(--color-red);
}

.player-shell {
  padding: 28px 0 42px;
  background: #020617;
}

.detail-breadcrumb {
  color: rgba(255, 255, 255, 0.72);
}

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

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.78);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.38);
  transform: translate(-50%, -50%);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.player-start span {
  margin-left: 5px;
  font-size: 34px;
}

.player-start[hidden] {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: 46px 0 20px;
}

.detail-content,
.detail-sidebar {
  min-width: 0;
}

.detail-title-row {
  align-items: start;
}

.detail-title-row h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
}

.one-line {
  font-size: 20px;
  color: #334155;
}

.detail-tags span {
  color: #1d4ed8;
  background: #dbeafe;
}

.movie-info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.movie-info-list div {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
}

.movie-info-list dt {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.movie-info-list dd {
  margin: 6px 0 0;
  color: #111827;
  font-weight: 800;
}

.movie-info-list a {
  color: var(--color-blue);
}

.text-panel {
  padding: 24px;
  margin-top: 18px;
  background: #ffffff;
}

.text-panel h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.text-panel p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

.detail-poster {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.sidebar-box {
  margin-top: 20px;
  padding: 18px;
  background: #ffffff;
}

.sidebar-box h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: #111827;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

.site-footer h2 {
  color: #ffffff;
  margin: 0 0 14px;
  font-size: 17px;
}

.site-footer p {
  margin: 12px 0 0;
  color: #94a3b8;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.is-hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .detail-sidebar {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-container {
    min-height: auto;
    padding: 42px 0;
  }

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

  .hero-poster {
    max-width: 340px;
    margin: 0 auto;
  }

  .hero-stats,
  .filter-panel,
  .filter-controls,
  .category-feature,
  .footer-grid,
  .hot-entry,
  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .hot-entry {
    display: grid;
  }

  .filter-result {
    grid-column: auto;
  }

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

  .rank-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-copy h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .page-hero p,
  .one-line {
    font-size: 16px;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

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

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

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

  .movie-card-body h3 {
    font-size: 15px;
  }

  .movie-card-body p {
    display: none;
  }

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

  .movie-info-list {
    grid-template-columns: 1fr;
  }

  .player-start {
    width: 64px;
    height: 64px;
  }

  .rank-card a {
    grid-template-columns: 42px 68px 1fr;
  }

  .rank-card img {
    width: 68px;
    height: 92px;
  }
}
