* {
  box-sizing: border-box;
}

:root {
  --bg: #f7faff;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --brand: #2563eb;
  --brand-dark: #1e3a8a;
  --cyan: #22d3ee;
  --pink: #fb7185;
  --orange: #f97316;
  --green: #10b981;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--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;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94), rgba(8, 145, 178, 0.9));
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.24);
}

.header-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #60a5fa, #22d3ee, #a7f3d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.34);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.main-nav > a,
.nav-dropdown > button {
  color: rgba(255, 255, 255, 0.9);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.main-nav > a:hover,
.nav-dropdown > button:hover {
  color: #67e8f9;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown div {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover div {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: #334155;
}

.nav-dropdown a:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.header-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(255, 255, 255, 0.25);
  outline: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

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

.header-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #0f172a;
  font-weight: 800;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

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

.mobile-panel a {
  display: block;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-shell {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.28), transparent 30%), linear-gradient(135deg, #0f172a 0%, #172554 45%, #0e7490 100%);
}

.hero-bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.46;
}

.hero-bg-one {
  width: 360px;
  height: 360px;
  top: 70px;
  left: 8%;
  background: #22d3ee;
}

.hero-bg-two {
  width: 460px;
  height: 460px;
  right: 4%;
  bottom: 20px;
  background: #2563eb;
}

.hero-slider {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 56px;
  align-items: center;
  padding: 86px 0;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 42px);
  color: #a5f3fc;
}

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

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

.hero-tags span,
.movie-tags span,
.tag-cloud span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #075985;
  background: rgba(224, 242, 254, 0.92);
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.36);
  transform: rotate(1deg);
}

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

.poster-glass {
  position: absolute;
  inset: auto 20px 20px;
  height: 82px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12));
  backdrop-filter: blur(16px);
}

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

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

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

.content-section {
  padding: 72px 0;
}

.warm-section {
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.cool-section {
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.light-section {
  background: #f8fafc;
}

.rank-section {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #0e7490);
}

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

.section-head h2,
.rank-layout h2,
.rank-layout h1,
.result-bar h1 {
  margin: 8px 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
}

.section-head p,
.rank-layout p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
}

.rank-section .section-head p,
.rank-section .rank-layout p {
  color: rgba(255, 255, 255, 0.78);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1d4ed8;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

.movie-card-wide .movie-poster {
  aspect-ratio: auto;
  min-height: 230px;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.7));
  opacity: 0.75;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: all 0.22s ease;
}

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

.card-category,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: #2563eb;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: #f97316;
}

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

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

.movie-card-body h3 a:hover {
  color: #2563eb;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

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

.category-tile {
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.category-tile > a {
  display: block;
  min-height: 170px;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0891b2);
}

.category-tile strong {
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.category-tile span {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.category-tile small {
  display: inline-flex;
  margin-top: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.category-tile ul {
  list-style: none;
  margin: 0;
  padding: 14px 18px 18px;
}

.category-tile li + li {
  margin-top: 8px;
}

.category-tile li a {
  color: #334155;
  font-weight: 700;
}

.category-tile li a:hover {
  color: #2563eb;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 42px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 18px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
}

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

.compact-card span {
  display: grid;
  gap: 4px;
}

.compact-card strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.compact-card em {
  font-style: normal;
  font-weight: 900;
}

.compact-card small {
  color: #64748b;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 78px 0;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.32;
}

.glow-one {
  width: 320px;
  height: 320px;
  left: 5%;
  top: 20px;
  background: #67e8f9;
}

.glow-two {
  width: 360px;
  height: 360px;
  right: 10%;
  bottom: -80px;
  background: #a78bfa;
}

.back-link,
.breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.filter-panel,
.search-panel {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 14px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.large-search input {
  width: 100%;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.result-bar span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #1e40af;
  background: #dbeafe;
  font-weight: 900;
}

.large-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.large-search input {
  border-radius: 18px;
  padding: 14px 16px;
}

.large-search button {
  border-radius: 18px;
  color: #ffffff;
  background: #2563eb;
}

.detail-hero {
  padding: 52px 0 76px;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.2);
  opacity: 0.36;
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 58, 138, 0.68));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.68);
}

.detail-head-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.detail-cover {
  width: 230px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.62));
}

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

.play-layer button {
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.detail-card,
.side-card {
  margin-top: 22px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-card p {
  margin: 0;
  color: #334155;
}

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

.detail-list div {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.detail-list dt {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.detail-list dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.detail-list a {
  color: #1d4ed8;
}

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

.side-card .compact-card {
  grid-template-columns: 64px 1fr;
  background: #f8fafc;
  box-shadow: none;
}

.side-card .compact-card img {
  width: 64px;
  height: 82px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 36px;
}

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

.site-footer p {
  max-width: 460px;
  color: #94a3b8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #67e8f9;
}

.footer-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-categories a {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

.empty-result {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 24px;
  text-align: center;
  color: #64748b;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

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

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

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

  .hero-poster {
    min-height: 420px;
  }

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

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

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

@media (max-width: 760px) {
  .hero-shell {
    min-height: auto;
  }

  .hero-slide {
    padding: 48px 0 86px;
  }

  .hero-poster {
    min-height: 320px;
    border-radius: 24px;
  }

  .hero-poster img {
    min-height: 320px;
  }

  .section-head,
  .result-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .wide-grid,
  .category-grid,
  .filter-panel,
  .large-search,
  .footer-inner,
  .detail-head-grid,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    display: block;
  }

  .detail-cover {
    width: 180px;
  }

  .content-section {
    padding: 48px 0;
  }
}

@media (max-width: 460px) {
  .container,
  .header-inner,
  .mobile-panel,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

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

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

  .detail-card,
  .side-card,
  .filter-panel,
  .search-panel {
    padding: 18px;
  }
}
