:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--cyan-dark);
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
  font-size: 16px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  color: #334155;
}

.desktop-nav a {
  padding: 24px 0;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--cyan-dark);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 210px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

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

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.dropdown-panel a:hover {
  background: #ecfeff;
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #f1f5f9;
  border-radius: 999px;
}

.nav-search input,
.quick-search input,
.search-panel input,
.filter-bar input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.nav-search input {
  width: 220px;
  padding: 8px 8px 8px 14px;
}

.nav-search button,
.quick-search button,
.search-panel button,
.filter-bar button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.18);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: #ecfeff;
  color: var(--cyan-dark);
  border-radius: 14px;
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.mobile-panel form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-panel input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.mobile-panel button {
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  padding: 0 14px;
  background: var(--cyan-dark);
}

.mobile-panel a {
  display: block;
  padding: 10px 4px;
  font-weight: 700;
  color: #334155;
}

.mobile-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #082f49;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(103, 232, 249, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(8, 47, 73, 0), rgba(8, 47, 73, 0.86));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  color: #ffffff;
}

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

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 16px 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-title-link {
  margin: -4px 0 16px;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.08;
}

.hero-title-link a:hover {
  color: #cffafe;
}

.hero-copy p,
.page-hero p,
.detail-info .lead-text {
  max-width: 720px;
  color: #ecfeff;
  font-size: 19px;
  line-height: 1.85;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.hero-tags span {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-ghost,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.2s ease;
}

.btn-primary {
  padding: 0 24px;
  color: var(--cyan-dark);
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #ecfeff;
}

.btn-ghost {
  padding: 0 24px;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(16px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(8, 145, 178, 0.62);
}

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

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: var(--cyan-dark);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  font-size: 28px;
  box-shadow: var(--shadow);
}

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

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

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.quick-search {
  position: relative;
  z-index: 4;
  margin-top: -42px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search form,
.search-panel {
  display: flex;
  gap: 12px;
}

.quick-search input,
.search-panel input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 999px;
}

.quick-cats,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-cats a,
.inline-links a {
  padding: 8px 12px;
  color: #0369a1;
  background: #ecfeff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: #eff6ff;
}

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

.section-head.compact {
  align-items: center;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-head a,
.text-link {
  color: var(--cyan-dark);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #0e7490, #2563eb);
}

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

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

.poster-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 32px;
  background: rgba(8, 47, 73, 0.16);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.poster-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  color: #ffffff;
  background: var(--cyan);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

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

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

.movie-card h2 a:hover {
  color: var(--cyan-dark);
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.movie-meta {
  margin-bottom: 8px !important;
  color: #0891b2 !important;
  font-size: 14px;
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.compact-card img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #0e7490, #2563eb);
}

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

.compact-card strong {
  margin-bottom: 6px;
  font-size: 16px;
}

.compact-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-num {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 12px;
  font-weight: 900;
}

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

.category-card,
.category-cover {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 210px;
  border-radius: 24px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

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

.category-card::after,
.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(8, 47, 73, 0.88));
}

.category-card span,
.category-card p,
.category-cover span {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.category-card span,
.category-cover span {
  bottom: 64px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  bottom: 18px;
  margin: 0;
  color: #cffafe;
  line-height: 1.45;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0e7490, #2563eb);
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding: 92px 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(103, 232, 249, 0.28), transparent 32%);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.category-overview-card .category-cover {
  min-height: 220px;
}

.category-overview-card h2 {
  margin: 8px 0 10px;
  font-size: 26px;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.75;
}

.muted-line {
  color: #0891b2 !important;
  font-weight: 800;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.filter-bar input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 999px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  color: var(--muted);
  font-weight: 800;
}

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

.detail-hero {
  min-height: 520px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 520px;
  padding: 52px 0;
}

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #0e7490, #2563eb);
}

.watch-section {
  margin-top: 52px;
}

.player-card {
  overflow: hidden;
  background: #020617;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

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

.play-circle {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  color: var(--cyan-dark);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  font-size: 30px;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.22);
}

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

.detail-text,
.detail-side {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

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

.detail-text p {
  margin: 0 0 28px;
  color: #334155;
  line-height: 1.95;
  font-size: 17px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0 0 24px;
}

.detail-side dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.search-panel {
  width: min(720px, 100%);
  margin-top: 24px;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  margin-top: 46px;
  padding: 22px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

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

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

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

  .hero-content {
    padding: 90px 0;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-hero-inner {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .site-logo {
    font-size: 19px;
  }

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

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

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

  .quick-search form,
  .search-panel,
  .filter-bar {
    flex-direction: column;
  }

  .section {
    padding: 48px 0;
  }

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

  .movie-grid,
  .small-grid,
  .related-grid,
  .rank-grid,
  .overview-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .movie-card h2 {
    font-size: 16px;
  }

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

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

  .detail-poster {
    width: 210px;
  }

  .compact-card {
    grid-template-columns: auto 54px minmax(0, 1fr);
  }

  .compact-card img {
    width: 54px;
    height: 74px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .small-grid,
  .related-grid,
  .rank-grid,
  .overview-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .quick-search {
    margin-top: -26px;
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
}
