:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --teal: #14b8a6;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
  --panel: #ffffff;
  --bg: #f0fdfa;
  --shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ecfeff 0%, #ffffff 36%, #f8fafc 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(125, 211, 252, .4);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  color: var(--slate);
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 12px 30px rgba(8, 145, 178, .28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: #334155;
  font-weight: 650;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-dark);
  background: rgba(6, 182, 212, .08);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.page-search-box input {
  width: 220px;
  border: 1px solid rgba(8, 145, 178, .25);
  border-radius: 999px;
  padding: 11px 16px;
  background: #fff;
  outline: none;
  color: var(--text);
  transition: box-shadow .2s ease, border-color .2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, .16);
}

.header-search button,
.mobile-search button,
.page-search-box button {
  border: 0;
  border-radius: 999px;
  padding: 11px 17px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan-dark), var(--teal));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--slate);
  background: rgba(6, 182, 212, .1);
}

.mobile-panel {
  display: none;
  padding: 14px 22px 20px;
  border-top: 1px solid rgba(125, 211, 252, .4);
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  align-items: center;
  gap: 40px;
  padding: 72px max(24px, calc((100vw - 1280px) / 2 + 24px)) 116px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 1200ms ease;
}

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

.hero-copy {
  max-width: 760px;
  color: #fff;
  animation: fadeUp .7s ease both;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 900;
  color: #facc15;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .96;
  letter-spacing: -.05em;
}

.hero-copy p {
  margin: 0;
  max-width: 650px;
  font-size: 19px;
  line-height: 1.85;
  color: #e2e8f0;
}

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

.hero-meta {
  margin: 26px 0;
}

.hero-meta span,
.detail-meta span,
.movie-meta-line span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 750;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 18px 45px rgba(8, 145, 178, .3);
}

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

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(8, 145, 178, .35);
}

.hero-poster {
  justify-self: center;
  width: min(360px, 84vw);
  aspect-ratio: 2 / 3;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #0e7490, #0f172a);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .46);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  width: min(980px, calc(100% - 36px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.hero-dot {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(14px);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 12px;
}

.hero-dot.active,
.hero-dot:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(6, 182, 212, .8), rgba(20, 184, 166, .75));
}

.section-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
}

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

.section-title-row h2,
.page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -.03em;
}

.section-title-row a {
  color: var(--cyan-dark);
  font-weight: 900;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(125, 211, 252, .34);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, .62);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(125, 211, 252, .7), transparent 30%), linear-gradient(135deg, #0f172a, #0891b2);
}

.poster-frame img,
.rank-thumb img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.score-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(8px);
}

.movie-card-body {
  padding: 17px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.32;
}

.movie-card h3 a:hover,
.rank-row h2 a:hover,
.side-panel a:hover {
  color: var(--cyan-dark);
}

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

.movie-meta-line span {
  padding: 0;
  color: var(--muted);
  background: none;
  backdrop-filter: none;
  font-weight: 700;
}

.movie-meta-line span + span::before {
  content: "·";
  margin-right: 10px;
  color: #94a3b8;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 750;
  color: #0e7490;
  background: #ecfeff;
}

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

.category-tile {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  border-radius: 28px;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .12);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 68px rgba(15, 23, 42, .22);
}

.category-tile span {
  font-size: 24px;
  font-weight: 950;
}

.category-tile small {
  color: #cffafe;
  line-height: 1.5;
}

.page-hero {
  max-width: 1280px;
  margin: 36px auto 0;
  border-radius: 36px;
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: radial-gradient(circle at 20% 15%, rgba(34, 211, 238, .34), transparent 28%), linear-gradient(135deg, #0f172a, #0891b2 55%, #14b8a6);
  box-shadow: var(--shadow);
}

.page-hero.small {
  min-height: 220px;
}

.page-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #dffcff;
  line-height: 1.75;
}

.page-search-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page-search-box input {
  width: min(360px, 80vw);
}

.rank-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  gap: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 70px 92px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(125, 211, 252, .38);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .07);
}

.rank-number {
  font-size: 28px;
  font-weight: 950;
  color: var(--cyan-dark);
  text-align: center;
}

.rank-thumb {
  width: 92px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #0891b2);
}

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

.rank-row p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.detail-hero {
  min-height: 560px;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
}

.detail-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 58px 24px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0891b2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
}

.detail-info h1 {
  margin: 12px 0 16px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.one-line {
  max-width: 850px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.8;
}

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

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

.main-detail-column {
  display: grid;
  gap: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(6, 182, 212, .24), rgba(2, 6, 23, .55));
  cursor: pointer;
  transition: opacity .2s ease, visibility .2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 32px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 20px 55px rgba(6, 182, 212, .36);
}

.player-card.playing .play-overlay {
  opacity: 0;
  visibility: hidden;
}

.text-panel,
.side-panel {
  border: 1px solid rgba(125, 211, 252, .35);
  border-radius: 28px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
}

.text-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-panel p {
  margin: 0;
  color: #334155;
  line-height: 1.95;
  font-size: 16px;
}

.side-panel {
  position: sticky;
  top: 96px;
}

.side-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.side-panel div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.side-panel dt {
  color: var(--muted);
  font-weight: 800;
}

.side-panel dd {
  margin: 0;
  color: var(--text);
  font-weight: 750;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #0f172a 62%, #083344);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 420px;
  line-height: 1.75;
  margin: 0;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

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

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px 32px;
  border-top: 1px solid rgba(148, 163, 184, .22);
  color: #94a3b8;
}

.hidden-by-search {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 44px;
    padding-bottom: 140px;
  }

  .hero-poster {
    width: min(230px, 70vw);
    justify-self: start;
  }

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

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

  .page-hero {
    margin: 20px 16px 0;
    padding: 32px 24px;
    border-radius: 28px;
  }

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

  .detail-shell,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 80vw);
  }

  .side-panel {
    position: static;
  }
}

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

  .logo {
    font-size: 18px;
  }

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

  .hero-copy h1,
  .detail-info h1 {
    font-size: 38px;
  }

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

  .section-shell {
    padding: 42px 16px;
  }

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

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

  .rank-row {
    grid-template-columns: 48px 72px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    font-size: 20px;
  }

  .rank-thumb {
    width: 72px;
  }
}
