:root {
  --bg: #ecfeff;
  --bg-soft: #f0fdfa;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --cyan: #0891b2;
  --blue: #2563eb;
  --teal: #0d9488;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #ecfeff 0%, #eff6ff 42%, #f0fdfa 100%);
}

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

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

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

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

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  color: #0e7490;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--teal));
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.32);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: #155e75;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: white;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: #0e7490;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 46px 0 58px;
  color: white;
  background: linear-gradient(120deg, #0891b2 0%, #2563eb 50%, #0d9488 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.26), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.22), transparent 30%);
  opacity: 0.72;
}

.hero-ambient {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  filter: blur(55px);
  animation: pulseGlow 7s ease-in-out infinite;
}

.hero-ambient.one {
  top: -110px;
  left: -100px;
}

.hero-ambient.two {
  right: -80px;
  bottom: -130px;
  animation-delay: 1.3s;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

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

.hero-kicker,
.page-hero span,
.category-card span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #cffafe;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  background: rgba(240, 253, 250, 0.95);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  transition: 0.22s ease;
}

.btn.primary {
  color: #0f172a;
  background: white;
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.28);
}

.btn.ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.btn:hover,
.text-link:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 32px;
  min-height: 470px;
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.42);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.06));
}

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

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  color: white;
  font-size: 15px;
  font-weight: 900;
}

.hero-dots {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.hero-dots button {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-dots button.active {
  width: 58px;
  background: white;
}

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-quick a {
  padding: 10px 14px;
  border-radius: 999px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.page-section {
  padding: 72px 0;
}

.soft-bg {
  background: rgba(255, 255, 255, 0.42);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

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

.section-link,
.text-link {
  display: inline-flex;
  color: #0e7490;
  font-weight: 900;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(8, 145, 178, 0.55);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.14);
}

.sticky-filter {
  position: sticky;
  top: 86px;
  z-index: 8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 2.7;
  background: linear-gradient(135deg, #cffafe, #dbeafe, #ccfbf1);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.cover-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
}

.movie-info {
  padding: 17px;
}

.movie-meta {
  margin-bottom: 8px;
  color: #0891b2;
  font-size: 12px;
  font-weight: 900;
}

.movie-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.movie-info p {
  display: -webkit-box;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.movie-bottom span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-bottom a {
  flex: 0 0 auto;
  color: #2563eb;
  font-weight: 900;
}

.movie-card.compact .movie-info p {
  -webkit-line-clamp: 2;
}

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

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

.category-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.09);
}

.category-visual {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #cffafe, #dbeafe, #ccfbf1);
}

.category-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card span {
  color: #0e7490;
  background: #ecfeff;
  border-color: rgba(8, 145, 178, 0.16);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.category-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(120deg, #0891b2, #2563eb 52%, #0d9488);
}

.compact-hero {
  padding: 76px 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

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

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

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: white;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.rank-thumb {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  background: #dbeafe;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-body p {
  display: -webkit-box;
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.rank-meta span,
.rank-meta strong {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

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

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

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 2 / 2.8;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.32);
  background: rgba(255, 255, 255, 0.14);
}

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

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

.breadcrumb a {
  color: white;
  font-weight: 800;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.detail-line {
  max-width: 780px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.player-section {
  padding-top: 54px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.24);
}

.movie-player {
  display: block;
  width: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.68));
  cursor: pointer;
}

.player-start.hidden {
  display: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.30);
}

.play-icon::before {
  content: "";
  margin-left: 7px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #0891b2;
}

.detail-article {
  max-width: 900px;
}

.detail-article h2 {
  margin: 0 0 16px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.detail-article p {
  margin: 0 0 28px;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  padding: 34px 0;
  color: #155e75;
  background: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

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

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

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.64;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.92;
  }
}

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

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

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

  .hero-poster {
    min-height: 360px;
  }

  .hero-poster img {
    height: 360px;
  }

  .category-grid,
  .home-rank {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

  .hero-section {
    padding-top: 28px;
  }

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

  .hero-copy h1 {
    font-size: 36px;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    margin-top: 12px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

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

  .rank-item {
    grid-template-columns: 42px 86px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-num {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    font-size: 14px;
  }

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

  .detail-poster {
    max-width: 250px;
  }

  .movie-player {
    min-height: 220px;
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 870px;
  }

  .page-section {
    padding: 48px 0;
  }
}
