:root {
  color-scheme: light;
  --bg: #f8fbff;
  --surface: #ffffff;
  --surface-soft: #eff8ff;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --sky: #38bdf8;
  --blue: #2563eb;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

* {
  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, #f9fcff 0%, #eef7ff 48%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.36);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #475569;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #0284c7;
  background: #e0f2fe;
}

.header-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  border: 1px solid #dbeafe;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.11);
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.hero-search input {
  border: 0;
  outline: 0;
  min-width: 180px;
  padding: 12px 14px;
  color: var(--text);
  background: transparent;
}

.header-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #0369a1;
  background: #e0f2fe;
}

.mobile-panel {
  display: none;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--line);
}

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

.mobile-search {
  width: 100%;
  margin-bottom: 8px;
}

.mobile-search input {
  flex: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f7ff 0%, #ffffff 45%, #dbeafe 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.12), transparent 28%), radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.10), transparent 26%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.45;
}

.hero-glow-one {
  width: 330px;
  height: 330px;
  left: 5%;
  top: 10%;
  background: #7dd3fc;
}

.hero-glow-two {
  width: 420px;
  height: 420px;
  right: -8%;
  bottom: -20%;
  background: #bfdbfe;
}

.hero-inner,
.section-inner,
.footer-inner,
.detail-shell,
.page-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-inner {
  padding-top: 54px;
  padding-bottom: 54px;
}

.hero-topline,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0284c7;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-topline span,
.eyebrow {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(224, 242, 254, 0.86);
}

.hero h1 {
  max-width: 820px;
  margin: 22px 0 24px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-search {
  width: min(720px, 100%);
  margin-bottom: 28px;
}

.hero-search input {
  flex: 1;
  padding: 16px 20px;
}

.hero-search button {
  padding: 16px 24px;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 390px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: stretch;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-copy {
  padding: 34px;
  border: 1px solid rgba(186, 230, 253, 0.88);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy h2 {
  margin: 16px 0 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
}

.hero-desc {
  max-width: 680px;
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.card-meta span,
.detail-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
}

.btn-soft {
  color: #0369a1;
  background: #e0f2fe;
}

.hero-poster {
  position: relative;
  min-height: 390px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #bae6fd, #dbeafe);
  box-shadow: var(--shadow);
}

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

.hero-poster span,
.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 165, 233, 0.88);
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.34);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: #bae6fd;
}

.hero-dot.is-active {
  width: 28px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
}

.content-section {
  padding: 54px 0;
}

.content-section:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.72);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: #0284c7;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dff6ff, #dbeafe);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.64));
}

.play-chip {
  width: 44px;
  height: 44px;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
  padding: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

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

.movie-card h3 a:hover {
  color: #0284c7;
}

.movie-card p {
  min-height: 46px;
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.movie-card--compact p {
  display: none;
}

.movie-card--compact .tag-row {
  display: none;
}

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

.category-card {
  min-height: 160px;
  padding: 24px;
  border: 1px solid rgba(186, 230, 253, 0.9);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #eff8ff);
  box-shadow: 0 10px 32px rgba(14, 165, 233, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
  color: #0284c7;
  font-weight: 800;
}

.category-card h3 {
  margin: 10px 0;
  font-size: 23px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 50px 58px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: #7dd3fc;
}

.rank-row img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  background: #e0f2fe;
}

.rank-num {
  color: #0284c7;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-info {
  min-width: 0;
}

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

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rank-score {
  justify-self: end;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, #f59e0b);
  font-weight: 900;
}

.page-hero {
  background: linear-gradient(135deg, #e0f2fe, #ffffff 45%, #dbeafe);
}

.page-hero-inner {
  padding-top: 54px;
  padding-bottom: 54px;
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 780px;
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.filter-search-wrap input,
.filter-panel select {
  width: 100%;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  background: #fff;
}

.filter-search-wrap input:focus,
.filter-panel select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 0;
  padding: 10px 13px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
}

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

.detail-shell {
  padding-top: 28px;
  padding-bottom: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #0284c7;
  font-weight: 700;
}

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

.player-card,
.detail-panel,
.story-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.video-stage video {
  width: 100%;
  height: 100%;
  background: #0f172a;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
  cursor: pointer;
  z-index: 2;
}

.video-stage.is-playing .player-overlay {
  display: none;
}

.player-play {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.92);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.42);
  font-size: 30px;
}

.player-overlay strong {
  max-width: min(86%, 720px);
  text-align: center;
  font-size: clamp(22px, 4vw, 38px);
}

.detail-panel {
  padding: 16px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
  background: linear-gradient(135deg, #dff6ff, #dbeafe);
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.detail-content {
  max-width: 900px;
  margin-top: 28px;
}

.detail-content h1 {
  margin: 16px 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
}

.lead {
  color: #475569;
  font-size: 19px;
  line-height: 1.85;
}

.tag-row--large span {
  min-height: 32px;
  padding: 7px 12px;
}

.story-card {
  margin-top: 20px;
  padding: 24px;
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.story-card p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
  white-space: pre-line;
}

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

.search-shell {
  min-height: 460px;
}

.site-footer {
  margin-top: 30px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  color: #0284c7;
  font-weight: 700;
}

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

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

  .hero-carousel {
    min-height: auto;
  }

  .hero-poster {
    min-height: 320px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 64px;
    padding: 0 14px;
  }

  .brand-text small {
    display: none;
  }

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

  .hero-inner,
  .section-inner,
  .footer-inner,
  .detail-shell,
  .page-hero-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-inner,
  .page-hero-inner {
    padding-top: 34px;
    padding-bottom: 36px;
  }

  .hero-copy {
    padding: 22px;
  }

  .hero-search {
    align-items: stretch;
    flex-direction: column;
    border-radius: 22px;
  }

  .hero-search input,
  .hero-search button {
    width: 100%;
    border-radius: 0;
  }

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

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

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

  .rank-row {
    grid-template-columns: 40px 52px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .card-body {
    padding: 12px;
  }

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

  .player-play {
    width: 62px;
    height: 62px;
  }
}
