:root {
  --bg: #f8fbff;
  --card: #ffffff;
  --text: #172033;
  --muted: #5d6b82;
  --soft: #eef8ff;
  --line: #dce8f5;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --pink: #db2777;
  --blue: #2563eb;
  --dark: #061529;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(18, 53, 84, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(236, 254, 255, 0.93), rgba(239, 246, 255, 0.93), rgba(253, 242, 248, 0.93));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--pink));
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.32);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--cyan-dark), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--cyan-dark);
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.filter-input,
.search-page-input {
  min-width: 230px;
  border: 1px solid #cbd5e1;
  border-radius: 999px 0 0 999px;
  padding: 11px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.mobile-search button {
  border: 0;
  padding: 12px 18px;
  color: #ffffff;
  background: var(--cyan);
  border-radius: 0 999px 999px 0;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--dark);
}

.mobile-panel {
  display: none;
  padding: 0 18px 18px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: var(--dark);
}

.hero-stage {
  min-height: 690px;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.75s ease, transform 0.75s ease;
  transform: scale(1.02);
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(0, 1180px) minmax(24px, 1fr);
  align-items: center;
}

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

.hero-copy {
  grid-column: 2;
  width: min(680px, 100%);
  padding: 120px 0 90px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
}

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

.hero-line {
  font-size: clamp(18px, 2vw, 24px);
  max-width: 720px;
  margin: 0 0 16px;
}

.hero-summary {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  color: #075985;
  background: linear-gradient(90deg, #cffafe, #dbeafe);
  font-size: 12px;
  font-weight: 800;
}

.large-tags span {
  padding: 8px 13px;
  font-size: 13px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.24);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.btn.text {
  color: #ffffff;
}

.btn.mini {
  min-height: 38px;
  color: var(--cyan-dark);
  background: #ecfeff;
}

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

.hero-poster {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 80px;
  width: min(330px, 28vw);
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-poster img,
.detail-cover,
.movie-cover,
.rank-thumb img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 76px 0;
}

.soft-section {
  background: linear-gradient(180deg, #f0fbff, #ffffff);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.category-panel h2,
.story-card h2,
.side-card h2,
.site-footer h2 {
  margin: 8px 0 8px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p,
.category-panel p,
.page-hero p {
  color: var(--muted);
  max-width: 740px;
}

.with-link {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.section-more {
  color: var(--cyan-dark);
  background: #ecfeff;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.poster-link {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #fce7f3);
}

.movie-card.compact .poster-link {
  aspect-ratio: 16 / 10;
}

.poster-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
  font-size: 12px;
  font-weight: 900;
}

.movie-cover {
  transition: transform 0.3s ease;
}

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

.movie-info {
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.movie-title {
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-title:hover {
  color: var(--cyan-dark);
}

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.category-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.88));
}

.category-card img {
  position: absolute;
  inset: 0;
  opacity: 0.78;
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card span,
.category-card p {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.category-card span {
  bottom: 66px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  bottom: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.rank-section {
  background: linear-gradient(135deg, #061529, #0b2858);
  color: #ffffff;
}

.rank-section .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

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

.rank-list {
  grid-template-columns: 1fr;
}

.rank-item {
  display: grid;
  grid-template-columns: 56px 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rank-section .rank-item {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  font-weight: 900;
}

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

.rank-body a {
  font-size: 17px;
  font-weight: 900;
}

.rank-body p {
  margin: 5px 0;
  color: #64748b;
  font-size: 14px;
}

.rank-section .rank-body p,
.rank-section .rank-body span {
  color: rgba(255, 255, 255, 0.7);
}

.rank-body span {
  color: #64748b;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.2), transparent 34%), linear-gradient(135deg, #07152a, #0b2d5f 60%, #86198f);
  color: #ffffff;
  padding: 86px 0;
}

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

.page-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.category-list {
  display: grid;
  gap: 24px;
}

.category-panel {
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}

.filter-panel,
.search-panel {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.filter-input,
.search-page-input {
  width: 100%;
  min-width: 0;
  border-radius: 999px;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-actions button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #334155;
  background: #f1f5f9;
  font-weight: 800;
}

.filter-actions button:hover,
.filter-actions button.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.detail-hero {
  background-size: cover;
  background-position: center;
  padding: 54px 0 86px;
}

.crumb,
.crumb-sep {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.crumb:hover {
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  margin-top: 36px;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  background: #e0f2fe;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.detail-meta span {
  color: #dbeafe;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
  aspect-ratio: 16 / 9;
}

.player-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-video {
  object-fit: contain;
  background: #000000;
}

.player-cover {
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  z-index: 2;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-cover strong {
  position: absolute;
  left: 28px;
  bottom: 24px;
  right: 28px;
  font-size: clamp(20px, 3vw, 34px);
  text-align: left;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  font-size: 34px;
  box-shadow: 0 18px 45px rgba(6, 182, 212, 0.36);
}

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

.story-card,
.side-card {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.story-card p {
  color: #334155;
  font-size: 17px;
  margin: 0 0 22px;
}

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

.side-card dt {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.side-card dd {
  margin: 4px 0 0;
  color: #111827;
  font-weight: 800;
}

.site-footer {
  color: #dbeafe;
  background: linear-gradient(135deg, #061529, #0b2d5f 64%, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 58px 0 36px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

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

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 980px) {
  .header-search,
  .nav-links {
    display: none;
  }

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

  .hero,
  .hero-stage {
    min-height: 780px;
  }

  .hero-slide {
    display: block;
    padding: 0 18px;
  }

  .hero-copy {
    padding: 78px 0 24px;
  }

  .hero-poster {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(310px, 82vw);
    margin: 0 auto 80px;
  }

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

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

  .detail-cover {
    width: min(280px, 70vw);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero,
  .hero-stage {
    min-height: 740px;
  }

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

  .hero-summary {
    display: none;
  }

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

  .rank-item {
    grid-template-columns: 44px 72px 1fr;
    gap: 10px;
    padding: 11px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .with-link,
  .category-panel-head {
    display: block;
  }

  .section-more,
  .category-panel .btn {
    margin-top: 12px;
  }

  .section {
    padding: 52px 0;
  }

  .player-card {
    border-radius: 20px;
  }

  .play-circle {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
