* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --cyan: #0891b2;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

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

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.32);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--teal-dark);
  background: rgba(20, 184, 166, 0.10);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
}

.menu-toggle span {
  height: 2px;
  border-radius: 99px;
  background: #0f172a;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #134e4a 0%, #0e7490 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.33;
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 25%, rgba(45, 212, 191, 0.22), transparent 32%), linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.56), rgba(15, 118, 110, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 620px;
  margin: 0 auto;
  padding: 96px 20px 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.hero-pill,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(20, 184, 166, 0.88);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 16px 30px rgba(13, 148, 136, 0.28);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.10);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 3;
}

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

.hero-dot.is-active {
  width: 30px;
  background: #2dd4bf;
}

.search-panel {
  max-width: 980px;
  margin: -34px auto 0;
  position: relative;
  z-index: 5;
  padding: 0 20px;
}

.search-box,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 16px;
  color: #0f172a;
  background: #fff;
  outline: none;
  font: inherit;
}

.search-box input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.search-box button {
  min-width: 112px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--teal);
  font-weight: 800;
  cursor: pointer;
}

.quick-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.quick-links a {
  color: var(--teal-dark);
  font-weight: 800;
  background: #ccfbf1;
  border-radius: 999px;
  padding: 7px 13px;
}

.section-block,
.page-main,
.wide-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 20px 0;
}

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

.section-title-row h2,
.page-hero h1,
.wide-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.section-more,
.text-link {
  color: var(--teal-dark);
  font-weight: 800;
}

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

.listing-grid {
  padding-top: 26px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #0e7490);
}

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

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

.play-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) scale(0.72);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(13, 148, 136, 0.92);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-type,
.card-year {
  position: absolute;
  top: 10px;
  border-radius: 8px;
  padding: 3px 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-type {
  left: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.card-year {
  right: 10px;
  background: rgba(13, 148, 136, 0.88);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.35;
}

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

.card-body p {
  min-height: 45px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  justify-content: space-between;
  color: #64748b;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 20px;
  padding: 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #0f766e;
  box-shadow: var(--soft-shadow);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.78));
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.25s ease;
}

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

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 20px;
  font-weight: 900;
}

.category-tile small {
  margin-top: 6px;
  color: #dbeafe;
}

.wide-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.wide-copy {
  border-radius: 26px;
  padding: 36px;
  color: #fff;
  min-height: 420px;
  background: radial-gradient(circle at 80% 15%, rgba(45, 212, 191, 0.35), transparent 35%), linear-gradient(135deg, #0f172a, #134e4a);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wide-copy p {
  color: #cbd5e1;
  margin-bottom: 26px;
}

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

.rank-line {
  display: grid;
  grid-template-columns: 34px 58px 1fr;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  padding: 10px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  border: 1px solid #e2e8f0;
}

.rank-line img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f766e, #0e7490);
}

.rank-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--teal-dark);
  text-align: center;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info em {
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-main {
  padding-top: 42px;
}

.page-hero {
  border-radius: 28px;
  padding: 44px;
  color: #fff;
  background: radial-gradient(circle at 80% 10%, rgba(45, 212, 191, 0.36), transparent 34%), linear-gradient(135deg, #0f172a, #0f766e);
  box-shadow: var(--shadow);
}

.page-hero.slim {
  padding: 36px;
}

.page-hero p {
  max-width: 760px;
  color: #dbeafe;
  margin: 14px 0 0;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--teal-dark);
  font-weight: 800;
}

.filter-bar {
  margin-top: 24px;
}

.filter-bar.full {
  align-items: stretch;
}

.filter-bar select {
  max-width: 190px;
}

.category-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 28px;
}

.category-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--soft-shadow);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  min-height: 170px;
}

.category-cover-stack img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #0e7490);
}

.category-card-body h2 {
  margin: 5px 0 8px;
}

.category-card-body p {
  color: var(--muted);
}

.ranking-grid {
  display: grid;
  gap: 16px;
  padding-top: 26px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--soft-shadow);
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f766e, #0e7490);
}

.ranking-cover img {
  width: 118px;
  height: 160px;
  object-fit: cover;
}

.ranking-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #fff;
  background: rgba(13, 148, 136, 0.92);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.ranking-body h2 {
  margin: 2px 0 8px;
}

.ranking-body p {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag-row span {
  border-radius: 999px;
  padding: 5px 10px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 800;
}

.detail-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  align-items: center;
  border-radius: 28px;
  padding: 28px;
  color: #fff;
  background: radial-gradient(circle at 84% 12%, rgba(45, 212, 191, 0.28), transparent 36%), linear-gradient(135deg, #0f172a, #164e63);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #0f766e, #0e7490);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

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

.detail-copy h1 {
  margin: 14px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 760px;
  color: #dbeafe;
  font-size: 18px;
}

.player-section,
.detail-section,
.detail-side,
.related-block {
  margin-top: 34px;
}

.player-section h2,
.detail-section h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.18), rgba(0, 0, 0, 0.36));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.player-start span {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(13, 148, 136, 0.94);
  box-shadow: 0 20px 36px rgba(13, 148, 136, 0.38);
  font-size: 28px;
}

.player-shell.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}

.detail-section,
.detail-side {
  border-radius: 22px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--soft-shadow);
}

.detail-section p {
  margin: 0;
  color: #334155;
  font-size: 16px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  margin: 0;
  font-weight: 800;
}

.detail-side a {
  color: var(--teal-dark);
}

.movie-card.is-hidden,
.ranking-card.is-hidden {
  display: none;
}

.site-footer {
  margin-top: 86px;
  color: #cbd5e1;
  background: #111827;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  gap: 34px;
}

.footer-brand {
  color: #fff;
}

.footer-main p {
  max-width: 520px;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #2dd4bf;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 20px;
  text-align: center;
  color: #94a3b8;
}

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

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

  .wide-section,
  .detail-content-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 64px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    border-radius: 12px;
  }

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

  .hero-content {
    padding-top: 84px;
  }

  .search-box,
  .filter-bar,
  .filter-bar.full {
    flex-direction: column;
  }

  .filter-bar select {
    max-width: none;
  }

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

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

  .section-title-row {
    align-items: start;
    flex-direction: column;
  }

  .page-hero,
  .page-hero.slim,
  .wide-copy,
  .detail-hero {
    padding: 24px;
    border-radius: 22px;
  }

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

  .ranking-card {
    grid-template-columns: 92px 1fr;
  }

  .ranking-cover img {
    width: 92px;
    height: 128px;
  }

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

@media (max-width: 460px) {
  .brand,
  .footer-brand {
    font-size: 18px;
  }

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

  .card-body p {
    min-height: auto;
  }

  .rank-line {
    grid-template-columns: 30px 52px 1fr;
  }

  .rank-line img {
    width: 52px;
    height: 70px;
  }
}
