:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --deep: #0f172a;
  --muted: #64748b;
  --soft: #f1f5f9;
  --line: rgba(148, 163, 184, 0.24);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #0f172a;
  background: #ffffff;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

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

.brand-icon {
  font-size: 2rem;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.18));
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-5deg);
}

.brand-name {
  font-size: 1.2rem;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: none;
  color: #ffffff;
  padding: 9px 12px 9px 16px;
  background: transparent;
}

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

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 12px 16px 18px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.mobile-nav.open {
  display: grid;
  gap: 10px;
}

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

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.mobile-nav input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
}

.mobile-nav button {
  border: 0;
  border-radius: 12px;
  color: var(--blue);
  font-weight: 800;
  background: #ffffff;
  padding: 10px 14px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 18% 22%, rgba(34, 211, 238, 0.55), transparent 30%), linear-gradient(135deg, #0f172a 0%, #0e7490 48%, #2563eb 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.48), rgba(37, 99, 235, 0.18));
  pointer-events: none;
}

.hero-slider {
  position: relative;
  z-index: 2;
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: 56px;
  align-items: center;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

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

.hero-text {
  max-width: 680px;
  padding: 80px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 18px;
  color: #e0f2fe;
  font-size: clamp(1rem, 2vw, 1.28rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(255, 255, 255, 0.22);
}

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

.hero-art {
  position: relative;
  min-height: 420px;
}

.hero-poster {
  position: absolute;
  right: 0;
  top: 50%;
  width: min(380px, 78vw);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  transform: translateY(-50%) rotate(3deg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

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

.hero-card {
  position: absolute;
  left: 0;
  bottom: 54px;
  width: 260px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.hero-card span {
  color: #bae6fd;
  font-size: 0.9rem;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 72px 0;
}

.section.soft {
  background: linear-gradient(180deg, #f8fafc, #eef6ff);
}

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

.section-heading h2,
.page-title h1,
.detail-copy h2,
.related-section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.15;
}

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

.heading-line {
  width: 80px;
  height: 4px;
  border-radius: 999px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.feature-card,
.category-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card {
  padding: 24px;
  text-align: center;
}

.feature-card:hover,
.category-tile:hover,
.movie-card:hover,
.rank-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 18px;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #ecfeff, #dbeafe);
}

.feature-card h3,
.category-tile h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.feature-card p,
.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  margin: 0;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

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

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

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.card-meta {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-content h3 {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.card-content p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.card-tags span,
.detail-tags span,
.category-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 4px 8px;
}

.large-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 222px;
}

.large-card .card-poster {
  aspect-ratio: auto;
  height: 100%;
}

.large-card .card-content h3 {
  min-height: auto;
  font-size: 1.08rem;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 54px 80px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 116px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.rank-card img {
  width: 80px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  background: #e2e8f0;
}

.rank-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.rank-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.page-hero {
  padding: 70px 0 52px;
  color: #ffffff;
  background: radial-gradient(circle at 22% 22%, rgba(34, 211, 238, 0.42), transparent 30%), linear-gradient(135deg, #0f172a, #0e7490, #2563eb);
}

.page-title {
  max-width: 820px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #dbeafe;
  font-size: 0.92rem;
}

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

.category-tile {
  overflow: hidden;
}

.category-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.category-body {
  padding: 18px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-input,
.search-panel input,
.search-panel select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  padding: 0 16px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.filter-input {
  width: min(420px, 100%);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 170px 110px;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #020617, #0e7490 58%, #2563eb);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.2), transparent 26%);
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 56px 0;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: #1e293b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 6px 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
}

.detail-info p {
  max-width: 760px;
  margin: 0 0 22px;
  color: #e0f2fe;
  font-size: 1.08rem;
}

.player-section {
  padding: 64px 0 36px;
  background: #020617;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.24), rgba(37, 99, 235, 0.36));
  cursor: pointer;
}

.play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: var(--blue);
  font-size: 2.3rem;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}

.play-overlay strong {
  display: block;
  margin-top: 16px;
  font-size: 1.18rem;
  letter-spacing: 0.08em;
}

.detail-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  padding: 52px 0;
}

.copy-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  padding: 26px;
}

.copy-card + .copy-card {
  margin-top: 20px;
}

.copy-card h2,
.side-card h2 {
  margin: 0 0 14px;
}

.copy-card p,
.side-card p {
  margin: 0;
  color: #334155;
  font-size: 1rem;
}

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

.side-list a {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-list a:hover {
  background: #e0f2fe;
  transform: translateX(3px);
}

.side-list img {
  width: 66px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: #e2e8f0;
}

.side-list strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-list span {
  color: var(--muted);
  font-size: 0.86rem;
}

.related-section {
  padding: 10px 0 72px;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  padding: 44px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.2rem;
}

.site-footer p {
  max-width: 560px;
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
}

.footer-links a {
  color: #e0f2fe;
}

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

.empty-state {
  display: none;
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #f8fafc;
}

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-art {
    display: none;
  }

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

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-text {
    padding: 58px 0 90px;
  }

  .section {
    padding: 52px 0;
  }

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

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

  .large-card {
    display: flex;
    min-height: auto;
  }

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

  .search-panel {
    grid-template-columns: 1fr;
  }

  .search-panel button {
    min-height: 46px;
  }

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

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

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

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

  .rank-card {
    grid-template-columns: 44px 68px minmax(0, 1fr);
  }

  .rank-card img {
    width: 68px;
    height: 82px;
  }
}
