:root {
  --cyan: #06b6d4;
  --blue: #2563eb;
  --purple: #9333ea;
  --slate: #0f172a;
  --text: #1f2937;
  --muted: #64748b;
  --soft: #f8fafc;
  --card: #ffffff;
  --ring: rgba(14, 165, 233, 0.24);
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.13);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.28);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--cyan);
  background: #fff;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.24);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search {
  flex: 1;
  max-width: 460px;
}

.top-search input,
.mobile-search input,
.inline-search input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  padding: 12px 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.top-search button,
.mobile-search button,
.hero-button,
.section-link,
.play-button,
.detail-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 20px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.top-search button {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-button:hover,
.section-link:hover,
.play-button:hover,
.detail-button:hover,
.top-search button:hover,
.mobile-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.34);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-links,
.mobile-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mobile-links a,
.mobile-categories a {
  color: #fff;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 650px;
  color: #fff;
  overflow: hidden;
  background: radial-gradient(circle at 15% 15%, rgba(34, 211, 238, 0.55), transparent 35%), radial-gradient(circle at 88% 12%, rgba(168, 85, 247, 0.55), transparent 32%), linear-gradient(135deg, #0891b2 0%, #2563eb 48%, #581c87 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.36;
  background: rgba(255, 255, 255, 0.16);
}

.hero::before {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: 60px;
}

.hero::after {
  width: 460px;
  height: 460px;
  right: -190px;
  top: 80px;
}

.hero-track {
  position: relative;
  z-index: 2;
}

.hero-slide {
  display: none;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  align-items: center;
  gap: 46px;
  padding: 66px 0 76px;
}

.hero-slide.active {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  animation: heroFade 0.65s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 14px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 780px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-button.secondary,
.detail-button.secondary {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.hero-poster-card {
  position: relative;
  min-height: 450px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.42);
  transform: rotate(1deg);
  background: rgba(15, 23, 42, 0.35);
}

.hero-poster-card::after,
.poster-media::after,
.featured-poster::after,
.detail-cover::after,
.player-poster::after,
.rank-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.78));
}

.hero-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-poster-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.hero-poster-info strong {
  display: block;
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-poster-info span {
  color: rgba(255, 255, 255, 0.86);
}

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

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

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

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

.section {
  padding: 62px 0;
}

.page-hero {
  padding: 66px 0 28px;
}

.page-hero-card {
  border-radius: 34px;
  padding: clamp(28px, 5vw, 54px);
  color: #fff;
  background: linear-gradient(135deg, #0891b2, #2563eb 55%, #581c87);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.page-hero-card::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  right: -90px;
  top: -110px;
  background: rgba(255, 255, 255, 0.14);
}

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

.page-hero p,
.detail-hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.8;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

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

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  flex: 0 0 auto;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link,
.poster-media {
  display: block;
}

.poster-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background-color: #dbeafe;
  background-size: cover;
  background-position: center;
}

.poster-badge,
.poster-score {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.poster-badge {
  left: 12px;
  background: rgba(14, 165, 233, 0.86);
}

.poster-score {
  right: 12px;
  background: rgba(15, 23, 42, 0.62);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.card-body h3 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

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

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb 58%, #9333ea);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(37, 99, 235, 0.34);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.featured-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.featured-large,
.featured-small {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 32px;
  color: #fff;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.featured-small {
  min-height: 203px;
}

.featured-stack {
  display: grid;
  gap: 24px;
}

.featured-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.featured-content {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.featured-content h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.featured-small h3 {
  font-size: 22px;
}

.featured-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.rank-panel {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 70px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rank-row:hover {
  transform: translateX(5px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.rank-no {
  color: #2563eb;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  position: relative;
  width: 70px;
  height: 88px;
  overflow: hidden;
  border-radius: 16px;
  background-color: #dbeafe;
  background-size: cover;
  background-position: center;
}

.rank-text strong {
  display: block;
  color: #111827;
  font-size: 17px;
  margin-bottom: 7px;
}

.rank-text small {
  color: #64748b;
  line-height: 1.5;
}

.rank-rating {
  padding: 8px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 900;
}

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 28px;
}

.filter-chip {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  color: #0369a1;
  background: #e0f2fe;
  font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.inline-search {
  flex: 1;
  min-width: 240px;
}

.empty-state {
  display: none;
  padding: 32px;
  text-align: center;
  border-radius: 24px;
  color: #64748b;
  background: #fff;
}

.detail-hero {
  position: relative;
  margin-bottom: 34px;
  overflow: hidden;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.98), rgba(37, 99, 235, 0.96), rgba(88, 28, 135, 0.95));
  box-shadow: var(--shadow);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: 34px;
  padding: clamp(24px, 5vw, 46px);
}

.detail-cover {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 28px;
  background-color: #dbeafe;
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.34);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

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

.detail-summary {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.85;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
  gap: 26px;
  align-items: start;
}

.content-card,
.side-card,
.player-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.content-card,
.side-card {
  padding: clamp(22px, 4vw, 34px);
}

.content-card h2,
.side-card h2,
.player-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.9;
  font-size: 16px;
}

.player-card {
  overflow: hidden;
  margin-bottom: 26px;
}

.player-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
}

.player-wrap {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.72));
}

.play-overlay.hidden {
  display: none;
}

.play-overlay span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f172a;
  background: #fff;
  font-size: 32px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.play-overlay strong {
  font-size: 20px;
  letter-spacing: 0.06em;
}

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

.side-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.side-thumb {
  width: 74px;
  height: 96px;
  border-radius: 14px;
  background-color: #dbeafe;
  background-size: cover;
  background-position: center;
}

.side-item strong {
  display: block;
  color: #111827;
  line-height: 1.45;
  margin-bottom: 7px;
}

.side-item small {
  color: #64748b;
}

.site-footer {
  margin-top: 70px;
  color: #e5e7eb;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0f172a);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 52px 0 34px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #22d3ee;
}

.footer-grid p,
.footer-grid li {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 14px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .mobile-panel.open {
    display: block;
  }

  .hero-slide.active,
  .detail-hero-inner,
  .detail-grid,
  .featured-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster-card {
    min-height: 380px;
  }

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

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

@media (max-width: 720px) {
  .nav-shell {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 15px;
  }

  .hero,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 38px 0 70px;
  }

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

  .hero-poster-card {
    min-height: 320px;
  }

  .section-head,
  .player-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .rank-row {
    grid-template-columns: 42px 58px minmax(0, 1fr);
  }

  .rank-rating {
    grid-column: 3;
    width: fit-content;
  }

  .detail-cover {
    min-height: 350px;
  }
}

.section-kicker {
  color: #0369a1;
  background: #e0f2fe;
  border-color: #bae6fd;
}
