:root {
  --bg: #f8fcff;
  --bg-soft: #ecfeff;
  --card: rgba(255, 255, 255, 0.88);
  --text: #102033;
  --muted: #64748b;
  --line: rgba(14, 165, 233, 0.16);
  --cyan: #06b6d4;
  --blue: #2563eb;
  --deep: #0f172a;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(103, 232, 249, 0.22), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.18), transparent 30rem),
    linear-gradient(135deg, #f8fcff 0%, #eefbff 45%, #eff6ff 100%);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(14, 165, 233, 0.08);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.brand-text,
.footer-brand {
  font-size: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #0891b2, #2563eb);
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #334155;
  font-weight: 650;
}

.nav-links a:hover,
.mobile-panel a:hover {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(236, 254, 255, 0.9);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #0f172a;
}

.mobile-panel {
  display: none;
  padding: 0 20px 18px;
  background: rgba(255, 255, 255, 0.96);
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 120px 0 70px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 35%, rgba(34, 211, 238, 0.35), transparent 24rem),
    radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.24), transparent 30rem);
  pointer-events: none;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 590px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  padding: 60px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    var(--hero),
    linear-gradient(135deg, #ecfeff, #dbeafe);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 999px;
  color: #0e7490;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 22px 0 10px;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.07em;
  background: linear-gradient(90deg, #0891b2, #2563eb, #06b6d4);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 34px;
  color: #475569;
  font-size: 20px;
}

.hero-actions,
.toolbar,
.meta-line,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid rgba(14, 165, 233, 0.18);
  background: rgba(255, 255, 255, 0.84);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover,
.ranking-item:hover {
  transform: translateY(-4px);
}

.btn.primary,
.btn.full,
.section-more {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
}

.btn.ghost {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.78);
}

.btn.full {
  width: 100%;
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 500px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.22);
}

.hero-poster-img,
.poster,
.detail-poster,
.rank-thumb,
.category-cover {
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.24), rgba(37, 99, 235, 0.32)),
    var(--poster),
    linear-gradient(135deg, #cffafe, #dbeafe);
  background-size: cover;
  background-position: center;
}

.hero-poster-img {
  position: absolute;
  inset: 0;
}

.hero-poster-title {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 14px 16px;
  color: #fff;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(12px);
  font-size: 20px;
  font-weight: 800;
}

.hero-dots {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.26);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.home-search {
  margin-top: -42px;
  position: relative;
  z-index: 4;
}

.search-panel,
.page-hero,
.ranking-card,
.player-card,
.detail-side,
.detail-info,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel {
  padding: 28px;
}

.search-panel h2,
.section-head h2,
.page-hero h1,
.ranking-head h2,
.detail-title-block h1 {
  margin: 0;
  letter-spacing: -0.05em;
}

.search-panel p,
.section-head p,
.page-hero p,
.movie-card p,
.article-content p,
.category-overview-card p,
.ranking-item p,
.site-footer p {
  color: var(--muted);
}

.toolbar {
  margin-top: 18px;
}

.search-box,
.select-box {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.search-box span,
.select-box span {
  color: #0e7490;
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

section.container {
  padding: 64px 0;
}

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

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.section-more {
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card[hidden],
.ranking-item[hidden] {
  display: none;
}

.movie-card:hover {
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.15);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.poster::after,
.rank-thumb::after,
.category-cover::after,
.detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.58));
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(8px);
}

.poster-badge {
  left: 12px;
  top: 12px;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.card-body {
  padding: 18px;
}

.card-body h3,
.card-body h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
}

.card-body p {
  min-height: 68px;
  margin: 0 0 12px;
  font-size: 14px;
}

.meta-line {
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.meta-line span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0f9ff;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  color: #0e7490;
  border-radius: 999px;
  background: #ecfeff;
  font-size: 12px;
  font-weight: 700;
}

.card-link {
  display: inline-flex;
  margin-top: 14px;
  color: #0891b2;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

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

.category-tile {
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease;
}

.category-tile span {
  font-size: 20px;
  font-weight: 850;
}

.category-tile strong {
  color: #0891b2;
}

.category-tile small {
  color: var(--muted);
}

.ranking-card {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.ranking-head span {
  color: var(--cyan);
  font-weight: 900;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.rank-row strong {
  color: var(--blue);
}

.rank-row span {
  font-weight: 800;
}

.rank-row em {
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-main {
  padding-top: 94px;
}

.page-hero {
  padding: 42px;
}

.page-hero.compact h1 {
  margin-top: 12px;
  font-size: clamp(38px, 6vw, 64px);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 20px;
  transition: transform 0.2s ease;
}

.category-cover {
  position: relative;
  min-height: 240px;
  border-radius: 20px;
  overflow: hidden;
}

.category-overview-card h2 {
  margin: 0 0 8px;
}

.category-overview-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #334155;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 70px 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

.rank-thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
}

.ranking-item h2 {
  margin: 0 0 6px;
}

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

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

.breadcrumb a {
  color: #0891b2;
  font-weight: 750;
}

.player-card,
.detail-side,
.detail-info {
  padding: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.34), transparent 18rem),
    rgba(2, 6, 23, 0.54);
  cursor: pointer;
}

.play-layer.is-hidden {
  display: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.45);
  font-size: 32px;
}

.play-layer strong {
  font-size: 26px;
}

.play-layer small {
  color: #cbd5e1;
  font-size: 15px;
}

.detail-poster {
  position: relative;
  min-height: 400px;
  margin-bottom: 16px;
  border-radius: 22px;
  overflow: hidden;
}

.detail-info {
  margin-top: 30px;
}

.detail-title-block h1 {
  margin-top: 14px;
  font-size: clamp(36px, 6vw, 62px);
}

.detail-title-block p {
  max-width: 860px;
  font-size: 19px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.info-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.info-grid strong {
  display: block;
  color: #0e7490;
  font-size: 13px;
}

.info-grid span {
  display: block;
  margin-top: 6px;
  font-weight: 800;
}

.article-content {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.article-content h2 {
  margin: 24px 0 10px;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

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

.site-footer a {
  display: block;
  color: #475569;
  margin: 8px 0;
}

.site-footer a:hover {
  color: var(--cyan);
}

.no-results {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1040px) {
  .hero-slide,
  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero {
    min-height: 840px;
    padding-top: 96px;
  }

  .hero-slide {
    position: relative;
    display: none;
    padding: 28px;
  }

  .hero-slide.is-active {
    display: grid;
  }

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

  .hero-copy h1 {
    font-size: 44px;
  }

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

  .category-overview-card,
  .ranking-item {
    grid-template-columns: 1fr;
  }

  .ranking-item .rank-thumb {
    width: 120px;
  }
}

@media (max-width: 560px) {
  .container,
  .nav-wrap,
  .footer-grid,
  .hero-slider {
    width: min(100% - 22px, 1180px);
  }

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

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

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

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

  .section-head {
    display: block;
  }

  .section-more {
    margin-top: 16px;
    display: inline-flex;
  }

  .page-hero {
    padding: 26px;
  }

  .player-card,
  .detail-side,
  .detail-info {
    padding: 12px;
  }
}
