:root {
  --bg: #ecfeff;
  --bg-soft: #eef6ff;
  --text: #111827;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.28);
  --card: rgba(255, 255, 255, 0.92);
  --cyan: #0891b2;
  --cyan-bright: #06b6d4;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --dark: #111827;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 52%, #eef2ff 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.nav-shell {
  max-width: 80rem;
  height: 4.5rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
}

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

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

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.8rem;
  background: #f1f5f9;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.2rem;
  height: 0.12rem;
  margin: 0.27rem auto;
  background: #334155;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

.mobile-nav a {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  color: #334155;
  font-weight: 700;
}

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

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 16%, rgba(6, 182, 212, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.62) 48%, rgba(2, 6, 23, 0.16));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(44rem, calc(100% - 2rem));
  margin-left: max(1rem, calc((100vw - 80rem) / 2 + 1rem));
  color: #ffffff;
}

.hero-kicker,
.detail-meta,
.meta-line,
.tag-row,
.hero-tags,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-kicker span,
.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-kicker span:first-child {
  color: #ffffff;
  background: var(--cyan-bright);
}

.hero-kicker span:last-child,
.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.hero-content h1 {
  max-width: 45rem;
  margin: 1.2rem 0 1rem;
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-content p {
  max-width: 42rem;
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.85;
}

.hero-actions {
  margin-top: 1.6rem;
}

.primary-button,
.ghost-button,
.text-button,
.section-more,
.search-panel button,
.wide-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.75rem 1.2rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button,
.search-panel button,
.wide-filter button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.25);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-more:hover,
.search-panel button:hover,
.wide-filter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(8, 145, 178, 0.24);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 3;
  display: flex;
  gap: 0.6rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

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

.search-band {
  max-width: 80rem;
  margin: -2.3rem auto 0;
  padding: 0 1rem;
  position: relative;
  z-index: 5;
}

.search-panel,
.filter-panel {
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-panel label,
.filter-panel label {
  display: block;
  margin-bottom: 0.65rem;
  color: #0f172a;
  font-weight: 900;
}

.search-panel div,
.wide-filter form div {
  display: flex;
  gap: 0.7rem;
}

.search-panel input,
.filter-panel input,
.wide-filter input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  outline: none;
  color: #0f172a;
  background: #ffffff;
}

.search-panel input:focus,
.filter-panel input:focus,
.wide-filter input:focus {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.category-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 1rem 0 0.25rem;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: #0e7490;
  font-size: 0.92rem;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid rgba(6, 182, 212, 0.2);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.layout-shell {
  width: min(80rem, calc(100% - 2rem));
  margin: 0 auto;
}

.home-layout,
.page-layout,
.detail-layout {
  padding: 3rem 0;
}

.content-section {
  margin: 0 0 3rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-content h2 {
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.section-heading p,
.page-hero p,
.category-card p,
.detail-copy p,
.detail-content p,
.movie-card-body p,
.rank-card p {
  color: var(--muted);
  line-height: 1.75;
}

.section-heading p {
  margin: 0.35rem 0 0;
}

.section-more,
.text-button {
  color: var(--cyan);
  background: #ffffff;
  border: 1px solid rgba(8, 145, 178, 0.16);
}

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

.movie-card,
.category-card,
.rank-card,
.detail-content article,
.player-section,
.detail-hero {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-0.35rem);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: linear-gradient(135deg, #164e63, #1d4ed8);
}

.poster-link img,
.detail-poster img,
.rank-poster img,
.compact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-badge,
.poster-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poster-badge {
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  background: rgba(8, 145, 178, 0.92);
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 3rem;
  height: 3rem;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  padding: 1rem;
}

.movie-card-body h2 {
  min-height: 2.6rem;
  margin: 0 0 0.55rem;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card-body h2 a:hover,
.rank-card h2 a:hover,
.category-card a:hover,
.compact-card:hover strong {
  color: var(--cyan);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 3.25rem;
  margin: 0 0 0.7rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.92rem;
}

.meta-line {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 0.65rem;
  color: #cbd5e1;
}

.tag-row {
  margin-top: 0.75rem;
}

.tag-row span {
  color: #0e7490;
  background: rgba(6, 182, 212, 0.1);
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.compact-card {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.compact-card img {
  aspect-ratio: 3 / 4;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #164e63, #1d4ed8);
}

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

.compact-card strong {
  color: #0f172a;
  line-height: 1.45;
}

.compact-card em {
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 0.82rem;
  font-style: normal;
}

.page-hero {
  margin-bottom: 1.6rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1.6rem;
}

.soft-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.86));
  box-shadow: var(--shadow);
}

.page-hero span,
.eyebrow {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.page-hero p {
  max-width: 50rem;
  margin: 0.8rem 0 0;
  font-size: 1.06rem;
}

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

.category-card {
  padding: 1.35rem;
}

.category-card h2 {
  margin: 0;
  color: #0f172a;
}

.category-card ul {
  margin: 1rem 0;
  padding-left: 1.1rem;
  color: #334155;
  line-height: 1.9;
}

.filter-panel {
  margin-bottom: 1.4rem;
}

.wide-filter form div {
  display: grid;
  grid-template-columns: 1fr auto;
}

.rank-list {
  display: grid;
  gap: 0.85rem;
}

.rank-card {
  display: grid;
  grid-template-columns: 3rem 5.2rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
}

.rank-number {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
}

.rank-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #164e63, #1d4ed8);
}

.rank-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.rank-card p {
  margin: 0 0 0.55rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  color: #64748b;
  font-size: 0.92rem;
}

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

.breadcrumb strong {
  color: #0f172a;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) 1fr;
  gap: clamp(1.2rem, 4vw, 2.5rem);
  padding: clamp(1rem, 3vw, 1.6rem);
  margin-bottom: 1.4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 96% 12%, rgba(6, 182, 212, 0.2), transparent 28%),
    rgba(255, 255, 255, 0.92);
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(135deg, #164e63, #1d4ed8);
  box-shadow: var(--shadow);
}

.detail-copy {
  align-self: center;
}

.detail-copy h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

.detail-copy p {
  max-width: 48rem;
  margin: 1rem 0;
  font-size: 1.08rem;
}

.detail-meta span {
  color: #0f172a;
  background: #f1f5f9;
}

.detail-tags {
  margin: 1rem 0 1.4rem;
}

.player-section {
  padding: clamp(1rem, 3vw, 1.4rem);
  margin-bottom: 1.4rem;
}

.detail-heading {
  align-items: flex-start;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

.play-overlay span {
  width: 4.6rem;
  height: 4.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.35);
}

.play-overlay strong {
  font-size: 1.05rem;
}

.video-frame.is-ready .play-overlay {
  background: rgba(2, 6, 23, 0.36);
}

.video-frame.is-playing .play-overlay {
  pointer-events: none;
  opacity: 0;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-content article {
  padding: 1.3rem;
}

.detail-content h2 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

.detail-content p {
  margin: 0;
}

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

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-shell {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  margin-bottom: 1rem;
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.site-footer h2 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1.05rem;
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 2;
}

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-slider {
    min-height: 66vh;
  }

  .hero-content {
    margin-left: 1rem;
  }

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

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

  .detail-poster {
    max-width: 18rem;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    height: 4rem;
  }

  .brand,
  .footer-brand {
    font-size: 1.05rem;
  }

  .hero-content h1 {
    font-size: 2.35rem;
  }

  .hero-actions,
  .search-panel div,
  .wide-filter form div,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .related-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 2.6rem 4.6rem 1fr;
    gap: 0.75rem;
  }

  .rank-card p {
    display: none;
  }

  .page-hero,
  .search-panel,
  .filter-panel {
    border-radius: 1.1rem;
  }
}
