:root {
  --emerald: #059669;
  --teal: #0d9488;
  --cyan: #0891b2;
  --rose: #e11d48;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #64748b;
  --paper: #ffffff;
  --soft: #f8fafc;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #eef6f6 48%, #f8fafc 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, var(--emerald), var(--teal), var(--cyan));
  box-shadow: 0 14px 32px rgba(8, 145, 178, 0.22);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #0f766e;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.brand-text {
  font-size: 24px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.desktop-nav a,
.footer-links a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fde68a;
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.nav-search input,
.mobile-nav input,
.search-panel input {
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
}

.nav-search input {
  width: 230px;
  padding: 7px 8px 7px 14px;
}

.nav-search button,
.mobile-nav button,
.search-panel button {
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), var(--teal));
  padding: 8px 15px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  color: #fff;
}

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

.mobile-nav form {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 6px;
}

.mobile-nav input {
  flex: 1;
  padding: 8px 12px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 118, 110, 0.58), rgba(8, 145, 178, 0.28)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 22%, rgba(251, 191, 36, 0.28), transparent 25%), linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 52px;
  align-items: center;
  color: #fff;
}

.hero-copy h1 {
  margin: 18px 0 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.hero-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.85;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero-tags,
.meta-line,
.mini-meta,
.tag-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-line span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.more-link,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: #064e3b;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.32);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.more-link:hover,
.card-link:hover {
  transform: translateY(-2px);
}

.hero-cover {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.55));
}

.hero-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

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

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

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

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

.main-shell {
  padding: 56px 0 72px;
}

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

.section-head h2,
.page-head h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

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

.more-link {
  color: var(--emerald);
  background: #ecfdf5;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card,
.wide-card,
.compact-card,
.category-card,
.info-card,
.rank-row,
.search-panel,
.detail-card,
.player-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover,
.wide-card:hover,
.compact-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.poster,
.wide-poster,
.compact-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.poster {
  aspect-ratio: 3 / 4;
}

.poster img,
.wide-poster img,
.compact-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster img,
.wide-card:hover .wide-poster img,
.compact-card:hover .compact-poster img {
  transform: scale(1.08);
}

.poster-year,
.poster-play {
  position: absolute;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
}

.poster-year {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.62);
}

.poster-play {
  left: 12px;
  top: 12px;
  padding: 7px 11px;
  background: linear-gradient(90deg, var(--rose), #fb7185);
}

.card-body {
  padding: 18px;
}

.card-title,
.wide-title,
.compact-title {
  display: block;
  font-weight: 900;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.card-title {
  font-size: 18px;
}

.card-title:hover,
.wide-title:hover,
.compact-title:hover {
  color: var(--emerald);
}

.card-body p,
.wide-body p,
.compact-card p,
.detail-card p,
.category-card p {
  color: var(--muted);
  line-height: 1.7;
}

.card-body p {
  min-height: 82px;
}

.meta-line,
.mini-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

.meta-line span,
.mini-meta span,
.heat {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f1f5f9;
  font-weight: 800;
}

.heat {
  color: #be123c;
  background: #ffe4e6;
}

.tag-line {
  margin-top: 14px;
}

.tag-line span {
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
}

.bright-band {
  margin: 56px 0;
  border-radius: 34px;
  padding: 32px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  box-shadow: var(--shadow);
}

.teal-band {
  margin: 56px 0;
  border-radius: 34px;
  padding: 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--teal), var(--cyan));
  box-shadow: var(--shadow);
}

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

.wide-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
}

.wide-poster {
  min-height: 152px;
}

.wide-body {
  padding: 20px;
}

.wide-title {
  font-size: 21px;
}

.compact-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}

.compact-poster {
  height: 104px;
  border-radius: 16px;
}

.compact-title {
  font-size: 16px;
}

.category-card {
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.16), rgba(8, 145, 178, 0.12));
  transform: translate(42px, -72px);
}

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

.category-card ul,
.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
}

.category-card li a,
.sitemap-list a {
  color: var(--teal);
  font-weight: 800;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--teal), var(--cyan));
  padding: 54px 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
}

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

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}

.category-nav a {
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: #334155;
  font-weight: 800;
}

.category-nav a.is-current,
.category-nav a:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--emerald), var(--teal));
}

.rank-row {
  display: grid;
  grid-template-columns: 70px 92px minmax(0, 1fr) 88px;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-num {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), #fb7185);
  font-size: 20px;
  font-weight: 900;
}

.rank-row img {
  width: 92px;
  height: 122px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.score-pill {
  border-radius: 999px;
  color: #be123c;
  background: #ffe4e6;
  font-weight: 900;
  padding: 8px 12px;
  text-align: center;
}

.search-panel {
  padding: 18px;
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.search-panel input {
  flex: 1;
  border-radius: 18px;
  background: #f1f5f9;
  padding: 14px 16px;
}

.search-panel button {
  padding: 0 22px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  padding: 34px 0 72px;
}

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

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
}

.player-overlay.is-hidden {
  display: none;
}

.play-toggle {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 18px 28px;
  color: #064e3b;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.34);
}

.detail-card {
  padding: 26px;
  margin-bottom: 22px;
}

.detail-title h1 {
  margin-bottom: 16px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.badges span {
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  padding: 8px 12px;
  font-weight: 900;
}

.detail-card h2,
.sidebar h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.detail-card p {
  font-size: 16px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.sidebar .info-card {
  padding: 20px;
}

.sitemap-grid {
  columns: 4 220px;
  column-gap: 28px;
}

.sitemap-list li {
  break-inside: avoid;
  margin: 0 0 7px;
}

.site-footer {
  color: #cbd5e1;
  background: #111827;
  padding: 46px 0 24px;
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 26px;
}

.footer-shell h2 {
  color: #fff;
  margin: 0 0 10px;
}

.footer-shell p {
  max-width: 560px;
  line-height: 1.75;
}

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

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 13px;
}

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-cover {
    max-width: 320px;
    transform: none;
  }

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

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

  .footer-shell {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .brand-text {
    font-size: 20px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    padding: 32px 0 68px;
  }

  .hero-copy p {
    font-size: 16px;
  }

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

  .card-body {
    padding: 14px;
  }

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

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

  .wide-card,
  .rank-row {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .rank-row .score-pill {
    grid-column: 2;
  }

  .rank-num {
    width: 42px;
    height: 42px;
  }

  .wide-poster {
    min-height: 132px;
  }

  .search-panel {
    flex-direction: column;
  }

  .bright-band,
  .teal-band {
    padding: 22px;
    border-radius: 24px;
  }
}

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

  .compact-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }
}
