:root {
  --cyan: #06b6d4;
  --blue: #2563eb;
  --dark: #0f172a;
  --muted: #64748b;
  --line: rgba(14, 165, 233, 0.16);
  --soft: #f0fdfa;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 32rem),
    linear-gradient(180deg, #f8fdff 0%, #ffffff 46%, #f8fafc 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 13px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.brand-name {
  font-size: 1.35rem;
  background: linear-gradient(135deg, #0891b2, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #334155;
  font-weight: 700;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0891b2;
  transform: translateY(-1px);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.08);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  border-radius: 10px;
  background: #0f172a;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-nav a {
  padding: 10px 2px;
}

main {
  overflow: hidden;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 76px;
  padding: 22px;
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(236, 254, 255, 0.72)),
    linear-gradient(135deg, rgba(34, 211, 238, 0.24), rgba(37, 99, 235, 0.18));
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: var(--shadow);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.72;
  pointer-events: none;
}

.hero-orb.one {
  width: 170px;
  height: 170px;
  right: 12%;
  top: -64px;
  background: rgba(34, 211, 238, 0.22);
}

.hero-orb.two {
  width: 120px;
  height: 120px;
  left: -36px;
  bottom: 72px;
  background: rgba(37, 99, 235, 0.14);
}

.hero-carousel {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 38px;
  align-items: center;
  padding: 56px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  color: #0e7490;
  font-size: 0.86rem;
  font-weight: 800;
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-copy h1,
.page-hero h1,
.ranking-feature h1,
.detail-content h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.ranking-feature p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #475569;
  font-size: 1.1rem;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  color: #0e7490;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 16px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.25);
}

.btn.secondary {
  color: #075985;
  border: 1px solid rgba(6, 182, 212, 0.25);
  background: rgba(255, 255, 255, 0.82);
}

.btn.full {
  width: 100%;
}

.hero-poster {
  position: relative;
  min-height: 460px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
  transform: rotate(2deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(15, 23, 42, 0.7));
}

.hero-poster span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  padding: 9px 14px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  left: 56px;
  bottom: 42px;
  display: flex;
  gap: 9px;
  z-index: 3;
}

.hero-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.2);
}

.hero-dot.active {
  width: 56px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.glass-card {
  border: 1px solid rgba(6, 182, 212, 0.18);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.9fr) auto;
  gap: 18px;
  align-items: center;
  margin: -18px 34px 22px;
  padding: 18px;
  border-radius: 24px;
  position: relative;
  z-index: 4;
}

.hero-search strong,
.toolbar label span {
  display: block;
  color: #0f172a;
  font-weight: 900;
}

.hero-search span {
  display: block;
  color: #64748b;
  font-size: 0.92rem;
}

.hero-search label,
.toolbar label {
  display: grid;
  gap: 6px;
}

.hero-search label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

input[type="search"] {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  color: #0f172a;
  border: 2px solid rgba(6, 182, 212, 0.14);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input[type="search"]:focus {
  border-color: rgba(6, 182, 212, 0.58);
  box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.1);
}

.hero-search a,
.text-link,
.section-more {
  color: #0891b2;
  font-weight: 900;
}

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

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

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: #64748b;
}

.section-kicker {
  width: 7px;
  height: 34px;
  display: inline-block;
  margin-right: 10px;
  vertical-align: -7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #06b6d4, #2563eb);
}

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

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(6, 182, 212, 0.13);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.38);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(37, 99, 235, 0.1));
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.54));
  opacity: 0.9;
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  min-width: 42px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
}

.rank-badge.big {
  width: 64px;
  height: 50px;
  left: 20px;
  top: 20px;
  font-size: 1.2rem;
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.card-meta span {
  padding: 3px 9px;
  color: #0e7490;
  font-size: 0.76rem;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.09);
}

.movie-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.07rem;
  line-height: 1.34;
}

.movie-card p {
  margin: 10px 0 14px;
  color: #64748b;
  font-size: 0.92rem;
}

.compact-card .poster-link {
  aspect-ratio: 16 / 9;
}

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

.category-tile,
.category-overview-card {
  border: 1px solid rgba(6, 182, 212, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.category-tile {
  min-height: 170px;
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.11);
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 900;
}

.category-tile p,
.category-overview-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.rank-panel {
  padding: 32px;
  border-radius: 30px;
  border: 1px solid rgba(6, 182, 212, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 254, 255, 0.72));
  box-shadow: var(--shadow);
}

.page-hero,
.ranking-hero,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 70px;
}

.page-hero {
  padding: 64px;
  text-align: center;
  border-radius: 34px;
  border: 1px solid rgba(6, 182, 212, 0.15);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 26rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 253, 250, 0.78));
  box-shadow: var(--shadow);
}

.page-hero p {
  margin-left: auto;
  margin-right: auto;
}

.center-actions {
  justify-content: center;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: 18px;
  align-items: end;
  max-width: 980px;
  margin: 34px auto 0;
  padding: 18px;
  border-radius: 24px;
  text-align: left;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 40px;
  padding: 8px 14px;
  color: #334155;
  font-weight: 800;
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.ranking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 30px;
  align-items: stretch;
  padding: 30px;
  border-radius: 34px;
  border: 1px solid rgba(6, 182, 212, 0.14);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 24rem),
    linear-gradient(135deg, #ffffff, #ecfeff);
  box-shadow: var(--shadow);
}

.ranking-feature {
  padding: 32px;
}

.ranking-poster {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

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

.large-meta {
  margin: 24px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  color: #64748b;
  font-size: 0.94rem;
}

.breadcrumb a {
  color: #0891b2;
  font-weight: 800;
}

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

.player-card,
.detail-side,
.detail-content {
  border: 1px solid rgba(6, 182, 212, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.player-card {
  padding: 16px;
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
}

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

.player-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.35), rgba(2, 6, 23, 0.68));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-box.is-playing .player-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-large {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.4);
}

.detail-side {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
}

.detail-content {
  margin-top: 24px;
  padding: 36px;
}

.detail-meta {
  margin: 18px 0;
}

.lead-text {
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 700;
}

.detail-content section {
  margin-top: 30px;
}

.detail-content h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.detail-content p {
  margin: 0;
  color: #475569;
  font-size: 1.02rem;
}

.detail-tags {
  margin-top: 28px;
}

.site-footer {
  border-top: 1px solid rgba(6, 182, 212, 0.14);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.94), rgba(236, 254, 255, 0.62));
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 28px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: #64748b;
  font-size: 0.94rem;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  transition: color 0.25s ease;
}

.site-footer a:hover {
  color: #0891b2;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(6, 182, 212, 0.14);
}

.footer-bottom p {
  margin: 0;
}

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

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

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

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

  .hero-poster {
    min-height: 300px;
    transform: none;
  }

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

  .hero-search,
  .toolbar,
  .ranking-hero,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: inline-block;
  }

  .hero-shell,
  .page-hero,
  .ranking-hero,
  .detail-shell,
  .content-section {
    width: min(100% - 22px, 1180px);
  }

  .hero-shell {
    margin-top: 18px;
    padding: 10px;
    border-radius: 28px;
  }

  .hero-slide {
    padding: 28px 20px 82px;
    gap: 24px;
  }

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

  .hero-dots {
    left: 22px;
    bottom: 28px;
  }

  .hero-search {
    margin: 10px;
    grid-template-columns: 1fr;
  }

  .page-hero,
  .ranking-feature,
  .detail-content {
    padding: 28px 20px;
  }

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

  .movie-grid,
  .featured-grid,
  .rank-grid,
  .all-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-poster {
    min-height: 300px;
  }

  .detail-side {
    grid-row: 1;
  }

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