:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-strong: #f8fbff;
  --text: #142033;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.10);
  --cyan: #06b6d4;
  --blue: #2563eb;
  --teal: #14b8a6;
  --green: #10b981;
  --yellow: #facc15;
  --red: #ef4444;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.96), rgba(37, 99, 235, 0.96), rgba(20, 184, 166, 0.96));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.30);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.88);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover {
  color: #0b5d7a;
  background: #ffffff;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 18px;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-shell {
  position: relative;
  overflow: hidden;
  background: #051426;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(6, 182, 212, 0.34), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(250, 204, 21, 0.16), transparent 22%),
    linear-gradient(180deg, transparent 0%, rgba(5, 20, 38, 0.90) 100%);
}

.hero-content {
  position: relative;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 90px 24px 180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
  color: #ffffff;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fef08a;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.primary-button,
.ghost-button,
.plain-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.primary-button {
  background: linear-gradient(90deg, var(--yellow), #ffffff);
  color: #0f172a;
  box-shadow: 0 14px 28px rgba(250, 204, 21, 0.20);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
}

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

.ghost-button:hover {
  background: #ffffff;
  color: var(--blue);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.1);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #ffffff;
  font-weight: 800;
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: min(1232px, calc(100% - 44px));
  transform: translateX(-50%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

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

.hero-search input,
.inline-search input,
.inline-search select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 15px;
}

.hero-search button,
.inline-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

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

.hero-categories {
  margin-top: 12px;
}

.hero-categories a,
.tag-row span,
.meta-pills span {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 800;
}

.hero-categories a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-categories a:hover {
  background: #ffffff;
  color: var(--blue);
}

.hero-dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.hero-dot {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 0;
  border-radius: 18px;
  padding: 8px;
  color: rgba(255, 255, 255, 0.80);
  text-align: left;
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
}

.hero-dot.is-active,
.hero-dot:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.24);
}

.hero-dot img {
  width: 44px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-dot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.page-hero,
.detail-hero {
  background:
    radial-gradient(circle at 18% 22%, rgba(250, 204, 21, 0.24), transparent 22%),
    linear-gradient(90deg, #06b6d4, #2563eb, #14b8a6);
  color: #ffffff;
  padding: 64px 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-hero h1,
.detail-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
}

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

.section {
  padding: 54px 0;
}

.section.compact {
  padding-top: 24px;
}

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

.section-header h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

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

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

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.20), rgba(37, 99, 235, 0.22));
}

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

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

.quality-badge,
.rank-number {
  position: absolute;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.quality-badge {
  right: 12px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.rank-number {
  left: 12px;
  min-width: 32px;
  text-align: center;
  background: linear-gradient(90deg, var(--red), #fb923c);
}

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

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

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

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

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

.tag-row span,
.meta-pills span {
  background: #ecfeff;
  color: #0e7490;
}

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

.category-tile {
  min-height: 160px;
  padding: 22px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--teal));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile strong {
  display: block;
  font-size: 24px;
}

.category-tile span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
}

.inline-search {
  display: grid;
  grid-template-columns: 1fr 170px 150px auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 70px 90px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rank-index {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), #f59e0b);
}

.rank-item img {
  width: 90px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 6px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
}

.rank-score {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.detail-hero {
  padding: 52px 0;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  background: #020617;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle, rgba(6, 182, 212, 0.24), transparent 34%),
    rgba(2, 6, 23, 0.52);
  color: #ffffff;
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.34);
  font-size: 32px;
}

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

.player-caption {
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.76);
}

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

.content-card,
.sidebar-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.content-card h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 16px;
  color: #344054;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

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

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

.mini-card strong {
  line-height: 1.35;
}

.mini-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 800;
}

.pagination .current {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.site-footer {
  margin-top: 56px;
  padding: 52px 0;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-logo {
  color: #ffffff;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer a {
  display: block;
  margin: 6px 0;
}

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

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

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

  .menu-button {
    display: block;
  }

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

  .hero-poster {
    display: none;
  }

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

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

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

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

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

  .hero-content {
    padding: 72px 18px 260px;
  }

  .hero-panel {
    bottom: 18px;
    width: calc(100% - 24px);
    border-radius: 22px;
  }

  .hero-search,
  .inline-search {
    grid-template-columns: 1fr;
  }

  .hero-search button,
  .inline-search button {
    min-height: 44px;
  }

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

  .hero-dot:nth-child(n+4) {
    display: none;
  }

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

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

  .rank-item {
    grid-template-columns: 46px 72px 1fr;
  }

  .rank-score {
    grid-column: 2 / -1;
  }

  .rank-item img {
    width: 72px;
    height: 96px;
  }

  .video-shell video {
    min-height: 220px;
  }
}
