* {
  box-sizing: border-box;
}

:root {
  --bg: #f7fbff;
  --text: #162033;
  --muted: #637083;
  --line: rgba(45, 74, 112, 0.14);
  --nav: #0f1d33;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --green: #10b981;
  --orange: #f97316;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(15, 38, 74, 0.12);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, rgba(15, 29, 51, 0.96), rgba(14, 48, 86, 0.96));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 12px 35px rgba(2, 8, 23, 0.18);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.32);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.logo-text small {
  color: #93c5fd;
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: #dbeafe;
  border-radius: 12px;
  transition: 0.25s ease;
}

.nav-link {
  padding: 10px 18px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  background: rgba(37, 99, 235, 0.72);
  color: #fff;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 10px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-link {
  display: block;
  padding: 12px 16px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  color: #fff;
  background: radial-gradient(circle at top left, #1e40af, transparent 34%), linear-gradient(135deg, #0f172a 0%, #12315e 48%, #083344 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  padding: 72px 0 84px;
}

.hero-topline {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  margin-bottom: 26px;
}

.hero-slider {
  position: relative;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  gap: 42px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: 0.65s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: -42px;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.16)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(32px) saturate(1.25);
  opacity: 0.32;
  transform: scale(1.04);
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

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

.hero-copy .eyebrow {
  color: #67e8f9;
}

.hero-copy h2 {
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.04;
  margin: 18px 0 20px;
  letter-spacing: -0.05em;
}

.hero-copy p {
  font-size: 19px;
  color: #dbeafe;
  max-width: 720px;
  margin: 0 0 24px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #1e3a8a;
  background: #dbeafe;
}

.hero-tags span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.primary-button,
.ghost-button,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-button {
  padding: 13px 24px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.32);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(37, 99, 235, 0.42);
}

.ghost-button {
  padding: 13px 24px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster {
  aspect-ratio: 3 / 4.1;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(2, 8, 23, 0.56);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 28px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.is-active {
  width: 48px;
  background: #22d3ee;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -54px;
  position: relative;
  z-index: 4;
}

.feature-card,
.category-card,
.movie-card,
.category-overview-card,
.content-panel,
.ranking-row {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 26px;
  border-radius: 22px;
}

.feature-card span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

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

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

.section-title-row h1,
.section-title-row h2 {
  margin: 6px 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
}

.section-title-row p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.section-title-row.light {
  color: #fff;
}

.section-title-row.light .section-kicker,
.section-title-row.light p {
  color: #bfdbfe;
}

.section-more,
.text-link {
  color: #2563eb;
}

.section-more:hover,
.text-link:hover {
  color: #0891b2;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 8, 23, 0.84), rgba(2, 8, 23, 0.08));
}

.category-card img {
  position: absolute;
  inset: 0;
  transition: 0.35s ease;
}

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

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

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

.category-card p {
  margin: 8px 0 0;
  color: #dbeafe;
}

.rank-section {
  padding: 72px 0;
  background: linear-gradient(135deg, #0f172a, #15335d 48%, #083344);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.rank-poster {
  height: 124px;
  border-radius: 14px;
  overflow: hidden;
}

.rank-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.rank-card p,
.rank-card span {
  display: block;
  margin: 0;
  color: #bfdbfe;
  font-size: 13px;
}

.search-box {
  width: min(360px, 100%);
}

.search-box.wide {
  width: min(680px, 100%);
  margin-top: 24px;
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 16px;
  padding: 0 18px;
  font: inherit;
  background: #fff;
  outline: none;
  box-shadow: 0 12px 26px rgba(15, 38, 74, 0.08);
}

.search-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 58px rgba(15, 38, 74, 0.18);
}

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

.poster-link img {
  transition: 0.3s ease;
}

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

.poster-year,
.poster-play {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(10px);
}

.poster-year {
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
}

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

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

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

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.movie-meta a,
.detail-meta a {
  color: #2563eb;
  font-weight: 800;
}

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

.tag-row.large span {
  font-size: 13px;
  padding: 7px 12px;
}

.page-hero {
  padding: 84px 0;
  background: linear-gradient(135deg, #dbeafe, #ecfeff 48%, #fff);
}

.page-hero.small {
  padding: 68px 0;
}

.page-hero.dark,
.page-hero.category-page {
  color: #fff;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.35), transparent 28%), linear-gradient(135deg, #0f172a, #173866);
}

.page-hero.dark .section-kicker,
.page-hero.dark p,
.page-hero.category-page .section-kicker,
.page-hero.category-page p {
  color: #bfdbfe;
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  color: #bfdbfe;
  font-size: 14px;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  border-radius: 18px;
  overflow: hidden;
}

.category-overview-card h2 {
  margin: 0 0 8px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.ranking-list {
  padding: 54px 0;
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 62px 94px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
}

.ranking-no {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.ranking-img {
  height: 126px;
  border-radius: 14px;
  overflow: hidden;
}

.ranking-main h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.ranking-main p {
  margin: 0 0 8px;
  color: var(--muted);
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.9)), var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.15);
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 58px 0 72px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 36px 78px rgba(2, 8, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-copy h1 {
  margin: 14px 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: 19px;
  color: #dbeafe;
}

.detail-meta {
  color: #cbd5e1;
  margin-bottom: 14px;
}

.player-section {
  padding: 54px 0 24px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 26px 70px rgba(15, 38, 74, 0.2);
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
  color: #fff;
  border: 0;
  cursor: pointer;
  background: linear-gradient(to top, rgba(2, 8, 23, 0.76), rgba(2, 8, 23, 0.2));
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  transition: 0.25s ease;
}

.player-cover:hover {
  background: linear-gradient(to top, rgba(2, 8, 23, 0.86), rgba(2, 8, 23, 0.28));
}

.player-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.36);
}

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

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

.content-panel {
  border-radius: 24px;
  padding: 28px;
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-panel p {
  margin: 0;
  color: #334155;
  white-space: pre-line;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding: 52px 0;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  margin: 0 0 14px;
}

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

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

.site-footer a:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 18px;
  text-align: center;
  color: #94a3b8;
}

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

@media (max-width: 1080px) {
  .feature-grid,
  .category-grid,
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .menu-button {
    display: block;
  }

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

  .home-hero {
    min-height: 760px;
  }

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

  .hero-poster {
    width: min(260px, 78vw);
    margin: 0 auto;
  }

  .feature-grid,
  .category-grid,
  .movie-grid,
  .movie-grid.compact,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-title-row {
    align-items: stretch;
    flex-direction: column;
  }

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

  .detail-poster {
    width: min(260px, 70vw);
  }
}

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

  .header-inner {
    min-height: 68px;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .logo-text strong {
    font-size: 17px;
  }

  .home-hero {
    min-height: 820px;
  }

  .hero-shell {
    padding-top: 42px;
  }

  .hero-copy h2 {
    font-size: 38px;
  }

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

  .feature-grid,
  .category-grid,
  .movie-grid,
  .movie-grid.compact,
  .footer-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

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

  .category-cover-row {
    height: 180px;
  }

  .ranking-img {
    width: 120px;
  }

  .detail-head {
    padding-top: 34px;
  }

  .player-shell {
    border-radius: 18px;
  }
}
