
:root {
  --teal-900: #134e4a;
  --teal-700: #0f766e;
  --cyan-700: #0e7490;
  --cyan-500: #06b6d4;
  --amber-300: #fcd34d;
  --amber-400: #f59e0b;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --radius-lg: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, .16);
  --shadow-hover: 0 24px 60px rgba(8, 145, 178, .24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, #ecfeff 0, #f8fafc 340px, #f8fafc 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--teal-700), var(--cyan-700));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(15, 118, 110, .22);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #083344;
  background: linear-gradient(135deg, var(--amber-300), #fff7ed);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(252, 211, 77, .24);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link,
.nav-drop button {
  border: 0;
  color: var(--white);
  background: transparent;
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-drop:hover button {
  background: rgba(255, 255, 255, .14);
  color: var(--amber-300);
  transform: translateY(-1px);
}

.nav-drop {
  position: relative;
}

.nav-drop-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 210px;
  padding: 10px;
  background: var(--white);
  color: var(--slate-900);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.nav-drop:hover .nav-drop-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-drop-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--slate-700);
}

.nav-drop-panel a:hover {
  color: var(--teal-700);
  background: #ecfeff;
}

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

.nav-search input,
.mobile-panel input,
.wide-search input,
.inline-filter,
.filter-line input {
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--slate-900);
  background: rgba(255, 255, 255, .94);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.nav-search input {
  width: 240px;
}

.nav-search button,
.mobile-panel button,
.wide-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #083344;
  background: linear-gradient(135deg, var(--amber-300), #fbbf24);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(245, 158, 11, .24);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 10px 12px;
}

.mobile-panel {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 18px;
}

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

.mobile-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
}

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

.mobile-links a {
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .10);
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .55s ease, transform .55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-backdrop,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-backdrop::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(252, 211, 77, .20), transparent 34%), radial-gradient(circle at 16% 85%, rgba(6, 182, 212, .28), transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 74px 22px 96px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-300);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal-700);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.hero-summary,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  font-size: 19px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .88);
}

.hero-tags,
.detail-meta,
.chip-row,
.tag-links,
.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags a,
.detail-meta a,
.chip-row span,
.tag-links a {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

.hero-actions,
.detail-actions {
  margin-top: 28px;
}

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

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

.btn.primary {
  color: #083344;
  background: linear-gradient(135deg, var(--amber-300), #f97316);
  box-shadow: 0 18px 34px rgba(249, 115, 22, .28);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .20);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 5;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.hero-dots,
.hero-quick-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--amber-300);
}

.hero-quick-links a {
  color: var(--white);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
}

.section-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 22px;
}

.section-shell.tinted {
  max-width: none;
  padding-left: max(22px, calc((100vw - 1240px) / 2 + 22px));
  padding-right: max(22px, calc((100vw - 1240px) / 2 + 22px));
  background: linear-gradient(135deg, #ecfeff, #f0fdfa);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-top: -38px;
  position: relative;
  z-index: 8;
  background: rgba(255, 255, 255, .92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding-top: 34px;
  padding-bottom: 34px;
}

.search-panel h2,
.section-head h2,
.content-card h2,
.side-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.04em;
}

.wide-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.wide-search input,
.inline-filter,
.filter-line input {
  width: 100%;
  min-height: 52px;
  background: var(--white);
}

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

.text-link {
  color: var(--teal-700);
  font-weight: 900;
}

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

.category-pill {
  min-height: 132px;
  padding: 22px;
  border-radius: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--teal-700));
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-pill:nth-child(3n+1) {
  background: linear-gradient(135deg, #fb7185, #f97316);
}

.category-pill:nth-child(3n+2) {
  background: linear-gradient(135deg, #22c55e, #06b6d4);
}

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

.category-pill span {
  display: block;
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-pill small {
  color: rgba(255, 255, 255, .86);
  line-height: 1.6;
}

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

.movie-grid .filter-line {
  grid-column: 1 / -1;
}

.movie-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .10);
  transition: transform .2s ease, box-shadow .2s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #cffafe, #fef3c7);
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}

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

.play-dot,
.rank-badge {
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
}

.play-dot {
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(14px);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  border-radius: 12px;
  color: #78350f;
  background: linear-gradient(135deg, var(--amber-300), #fb923c);
}

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

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--slate-700);
  line-height: 1.7;
  font-size: 14px;
}

.chip-row span {
  color: var(--teal-700);
  background: #ecfeff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-700), var(--cyan-700));
}

.page-hero {
  padding: 92px 22px;
}

.page-hero > div {
  max-width: 1240px;
  margin: 0 auto;
}

.page-hero.slim {
  padding: 70px 22px;
}

.ranking-hero {
  background: linear-gradient(135deg, #f97316, #0e7490);
}

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

.category-card-large {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}

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

.category-posters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.category-posters img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.category-card-large h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

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

.category-card-large span {
  color: var(--teal-700);
  font-weight: 900;
}

.detail-hero {
  min-height: 560px;
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 22px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .78);
}

.detail-meta a {
  font-weight: 800;
}

.player-section {
  padding-top: 42px;
  padding-bottom: 30px;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .62));
}

.player-cover span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 999px;
  color: #083344;
  background: linear-gradient(135deg, var(--amber-300), #f97316);
  font-size: 34px;
  box-shadow: 0 20px 48px rgba(249, 115, 22, .34);
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  padding-top: 30px;
}

.content-card,
.side-card {
  background: var(--white);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.content-card h2,
.side-card h2 {
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 14px;
}

.content-card p {
  color: var(--slate-700);
  line-height: 2;
  margin: 0 0 28px;
  font-size: 17px;
}

.tag-links a {
  color: var(--teal-700);
  background: #ecfeff;
  box-shadow: none;
}

.side-card {
  align-self: start;
  display: grid;
  gap: 12px;
}

.side-card a {
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--slate-700);
  background: #f8fafc;
}

.side-card a:hover {
  color: var(--teal-700);
  background: #ecfeff;
}

.movie-index-list {
  columns: 3 280px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.movie-index-list li {
  break-inside: avoid;
  display: grid;
  gap: 5px;
  padding: 14px;
  margin: 0 0 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.movie-index-list a {
  color: var(--slate-900);
  font-weight: 900;
}

.movie-index-list span {
  color: var(--slate-700);
  font-size: 13px;
}

.search-page .movie-grid:empty::after {
  content: "请输入关键词搜索影片";
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--slate-700);
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), #064e3b 55%, #0e7490);
  padding: 58px 22px 26px;
  margin-top: 40px;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

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

.site-footer p {
  color: rgba(255, 255, 255, .72);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
}

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

.footer-links.inline-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, .78);
}

.footer-links a:hover {
  color: var(--amber-300);
}

.copyright {
  max-width: 1240px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .68);
}

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

  .hero-content {
    grid-template-columns: 1fr 280px;
  }

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

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

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

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

  .hero-content,
  .detail-wrap,
  .search-panel,
  .footer-grid,
  .category-card-link {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 260px;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

@media (max-width: 560px) {
  .nav-wrap {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

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

  .hero-content {
    padding: 54px 16px 120px;
    gap: 28px;
  }

  .page-hero,
  .section-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .wide-search {
    grid-template-columns: 1fr;
  }

  .player-cover span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
