:root {
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --deep-blue: #1d4ed8;
  --green: #10b981;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  font-size: 32px;
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.12) rotate(-4deg);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  margin-left: auto;
}

.desktop-nav a,
.category-strip a,
.mobile-panel a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.category-strip a:hover {
  color: #cffafe;
}

.header-search {
  display: flex;
  align-items: center;
  width: min(320px, 28vw);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.header-search input,
.big-search input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  font: inherit;
}

.header-search input {
  min-width: 0;
  flex: 1;
  color: #fff;
  background: transparent;
  padding: 10px 12px;
}

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

.header-search button {
  border: 0;
  color: var(--blue);
  background: #fff;
  padding: 10px 15px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 22px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(29, 78, 216, 0.96);
  padding: 12px 16px 18px;
}

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

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.category-strip {
  background: rgba(29, 78, 216, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.category-strip-inner {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0;
  white-space: nowrap;
  scrollbar-width: none;
}

.category-strip-inner::-webkit-scrollbar {
  display: none;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg,
.detail-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) saturate(1.05);
  transform: scale(1.08);
}

.hero-overlay,
.detail-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(14, 116, 144, 0.72) 45%, rgba(59, 130, 246, 0.58));
}

.hero-content {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 54px;
  color: #fff;
  padding: 72px 0 86px;
}

.hero-kicker,
.page-hero span,
.section-heading span,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags {
  margin: 26px 0 30px;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(6, 182, 212, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions,
.detail-copy .primary-btn {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-btn,
.ghost-btn,
.big-search button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--blue);
  background: #fff;
  padding: 14px 22px;
  box-shadow: 0 16px 36px rgba(255, 255, 255, 0.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.big-search button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

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

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

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

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

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.search-band {
  margin-top: -42px;
  position: relative;
  z-index: 4;
}

.search-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-band h2,
.section-heading h2,
.content-card h2,
.category-overview-card h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.search-band p,
.category-overview-card p,
.content-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.big-search,
.filter-panel {
  display: grid;
  gap: 12px;
}

.big-search {
  grid-template-columns: minmax(0, 1fr) auto;
  border-radius: 999px;
  background: #eef6ff;
  padding: 6px;
  border: 1px solid #dbeafe;
}

.big-search input {
  background: transparent;
  padding: 0 16px;
}

.big-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  padding: 13px 22px;
}

.section-block {
  padding: 64px 0;
}

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

.section-heading span {
  color: var(--blue);
  background: #e0f2fe;
  border-color: #bae6fd;
  margin-bottom: 10px;
}

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

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

.section-heading.light span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

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

.category-card {
  position: relative;
  min-height: 210px;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.category-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.88));
}

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

.category-card span {
  display: block;
  margin-top: 70px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  color: rgba(255, 255, 255, 0.8);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.play-chip {
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.22);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-body h2 {
  margin: 10px 0 8px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

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

.card-body p {
  min-height: 46px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  color: #0369a1;
  background: #e0f2fe;
}

.ranking-band {
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #164e63 55%, #1d4ed8);
}

.page-hero {
  color: #fff;
  padding: 88px 0 74px;
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
}

.gradient-blue {
  background: linear-gradient(120deg, #0891b2, #2563eb);
}

.gradient-cyan {
  background: linear-gradient(120deg, #06b6d4, #3b82f6);
}

.gradient-dark {
  background: linear-gradient(120deg, #111827, #0e7490, #2563eb);
}

.gradient-green {
  background: linear-gradient(120deg, #059669, #06b6d4);
}

.filter-panel {
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border-radius: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.empty-state {
  padding: 28px;
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.overview-image {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: #e0f2fe;
}

.overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.mini-links a {
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.text-link {
  width: fit-content;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  padding: 10px 16px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-head {
  position: relative;
  padding: 34px 0 58px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-copy .primary-btn {
  width: fit-content;
  margin-top: 10px;
}

.watch-section {
  margin-top: -26px;
  position: relative;
  z-index: 4;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.video-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 182, 212, 0.88);
  box-shadow: 0 18px 44px rgba(6, 182, 212, 0.34);
  font-size: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-start:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(59, 130, 246, 0.92);
}

.video-shell.is-playing .video-start {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 44px 0 0;
}

.content-card {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin-bottom: 14px;
}

.meta-card {
  grid-column: 1 / -1;
}

.meta-card dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.meta-card div {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
}

.meta-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.meta-card dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.site-footer {
  margin-top: 42px;
  color: #e5e7eb;
  background: linear-gradient(180deg, #1f2937, #111827);
}

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

.footer-brand {
  font-size: 22px;
  color: #fff;
  margin-bottom: 14px;
}

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

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

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

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 620px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

@media (max-width: 760px) {
  .site-container {
    width: min(100% - 22px, 1200px);
  }

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

  .category-strip {
    display: none;
  }

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

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

  .search-band-inner,
  .big-search,
  .filter-panel,
  .detail-layout,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

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

  .detail-poster {
    max-width: 250px;
  }

  .video-start {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .category-grid,
  .movie-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .meta-card dl {
    grid-template-columns: 1fr;
  }
}
