:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --purple: #7c3aed;
  --pink: #db2777;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #ffffff;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.96), rgba(124, 58, 237, 0.96));
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.28);
  backdrop-filter: blur(20px);
}

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

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 900;
  font-size: 24px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 23px;
  letter-spacing: 0.04em;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.desktop-nav > a,
.nav-dropdown > button {
  border: 0;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  padding: 9px 4px;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown > button:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 220px;
  padding: 10px;
  display: grid;
  gap: 4px;
  background: #ffffff;
  color: #111827;
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.nav-dropdown-panel a {
  padding: 9px 12px;
  border-radius: 12px;
  color: #1f2937;
}

.nav-dropdown-panel a:hover {
  background: #eff6ff;
  color: var(--blue);
}

.header-search {
  display: flex;
  align-items: center;
  width: 300px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  color: #ffffff;
  background: transparent;
  padding: 8px 12px;
}

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

.header-search button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--blue);
  background: #ffffff;
  padding: 8px 14px;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.home-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}

.hero-carousel,
.hero-slide,
.hero-side-panel,
.page-hero,
.detail-hero {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  background: #0f172a;
}

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

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 30px;
  padding: 58px;
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(100deg, rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.72), rgba(124, 58, 237, 0.58)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.6s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.18), transparent 32%);
}

.hero-content,
.hero-cover {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(120deg, var(--blue), var(--purple));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 18px 0 14px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.tag-row span {
  color: var(--blue);
  background: #eff6ff;
}

.detail-tags a {
  color: #e0e7ff;
  background: rgba(255, 255, 255, 0.12);
}

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

.primary-button,
.ghost-button,
.panel-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;
}

.primary-button {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.primary-button:hover,
.ghost-button:hover,
.panel-link:hover {
  transform: translateY(-2px);
}

.hero-cover img {
  width: 280px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

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

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

.hero-side-panel {
  padding: 26px;
  color: #ffffff;
  background: linear-gradient(145deg, #1d4ed8, #7c3aed);
}

.hero-side-panel h2 {
  margin: 0 0 4px;
  font-size: 28px;
}

.hero-side-panel p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
}

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

.hero-mini-list a {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-mini-list img {
  width: 62px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.panel-link {
  width: 100%;
  margin-top: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.section-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 48px auto;
}

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

.intro-section {
  align-items: center;
  padding: 30px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2,
.intro-section h2,
.page-hero h1,
.detail-info h1 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-head p,
.intro-section p,
.page-hero p {
  margin: 0;
  color: var(--muted);
}

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

.section-head.light h2,
.section-head.light p,
.section-head.light a {
  color: #ffffff;
}

.wide-search,
.inline-filter {
  display: flex;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.wide-search input,
.inline-filter input {
  width: min(460px, 55vw);
  border: 0;
  outline: none;
  padding: 12px 16px;
  background: transparent;
}

.wide-search button,
.inline-filter button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(120deg, var(--blue), var(--purple));
  padding: 0 20px;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}

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

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  font-weight: 800;
  font-size: 12px;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(120deg, var(--pink), var(--purple));
  font-style: normal;
  font-weight: 900;
}

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

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

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

.movie-meta,
.movie-brief {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.movie-brief {
  min-height: 42px;
}

.blue-section {
  padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--blue), var(--purple));
  box-shadow: var(--shadow);
}

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

.category-tile {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.category-tile > a {
  display: grid;
  gap: 10px;
  padding: 20px;
  color: #ffffff;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 500;
}

.category-tile div {
  display: grid;
  gap: 1px;
  padding: 0 12px 12px;
}

.category-tile div a {
  padding: 8px 10px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  font-size: 13px;
}

.large-category-grid .category-tile {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.large-category-grid .category-tile > a,
.large-category-grid .category-tile div a {
  color: var(--text);
}

.large-category-grid .category-tile strong {
  color: var(--muted);
}

.large-category-grid .category-tile div a {
  background: #eff6ff;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.rank-list span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(120deg, var(--blue), var(--purple));
  font-weight: 900;
}

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

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 56px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(135deg, #1d4ed8, #7c3aed);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.page-hero .inline-filter {
  max-width: 650px;
  margin-top: 22px;
}

.category-chip-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip-line a,
.category-chip-line button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
  font-weight: 800;
}

.filter-line {
  margin-bottom: 22px;
}

.movie-card.is-hidden {
  display: none;
}

.detail-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  color: #ffffff;
  background-image: linear-gradient(100deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.72)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.18), transparent 28%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  padding: 32px;
}

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

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

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

.detail-cover img {
  width: 280px;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 64px);
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-info .primary-button {
  margin-top: 24px;
}

.player-section {
  margin-top: 32px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.78), rgba(37, 99, 235, 0.48));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: #ffffff;
  font-size: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.player-cover strong {
  font-size: clamp(24px, 4vw, 42px);
}

.player-cover em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
}

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

.detail-content article,
.detail-side {
  padding: 28px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.08);
}

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

.detail-content p {
  color: #334155;
  font-size: 16px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  margin: 0;
}

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

.detail-side dd {
  margin: 0;
  font-weight: 700;
}

.site-footer {
  margin-top: 64px;
  color: #ffffff;
  background: #0f172a;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  max-width: 620px;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner a:hover {
  color: #ffffff;
}

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .site-header.is-open .mobile-nav {
    display: grid;
  }

  .home-hero,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 620px;
  }

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

  .hero-cover img {
    width: 190px;
  }

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

@media (max-width: 760px) {
  .header-inner,
  .section-wrap,
  .home-hero,
  .page-hero,
  .detail-hero,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .site-brand {
    min-width: 0;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .hero-carousel {
    min-height: 680px;
  }

  .hero-slide {
    padding: 28px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-dots {
    left: 28px;
  }

  .intro-section,
  .section-head,
  .footer-inner {
    display: grid;
  }

  .wide-search,
  .inline-filter {
    width: 100%;
  }

  .wide-search input,
  .inline-filter input {
    width: 100%;
  }

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

  .blue-section,
  .page-hero,
  .detail-inner {
    padding: 24px;
  }

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

  .detail-cover img {
    width: min(250px, 70vw);
  }

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

  .rank-list em {
    grid-column: 2;
  }
}

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

  .hero-side-panel {
    padding: 20px;
  }

  .page-hero h1,
  .section-head h2,
  .intro-section h2 {
    font-size: 30px;
  }
}
