:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --teal: #0d9488;
  --emerald: #059669;
  --deep: #0f172a;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

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

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

button,
input {
  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.8);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--cyan-dark);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(8, 145, 178, 0.24);
}

.brand-name {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-link:hover,
.nav-link.is-active {
  background: var(--cyan);
  color: #ffffff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #ecfeff;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--cyan-dark);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2 0%, #0d9488 54%, #059669 100%);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.36), transparent 30%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.26));
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 76px 0 60px;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 54px;
}

.hero-slide.is-active {
  display: grid;
  animation: fade-up 0.55s ease both;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 12px 0 12px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy h3 {
  margin: 0 0 20px;
  font-size: clamp(22px, 3vw, 36px);
  color: #cffafe;
}

.hero-summary {
  max-width: 650px;
  margin: 0 0 26px;
  color: #ecfeff;
  font-size: 19px;
  line-height: 1.8;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #a7f3d0;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  background: #ecfeff;
  color: var(--cyan-dark);
  border-color: #cffafe;
}

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

.hero-actions.single-row {
  margin-top: 22px;
}

.btn,
.global-search button,
.section-more,
.watch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.global-search button:hover,
.section-more:hover,
.watch-link:hover {
  transform: translateY(-2px);
}

.btn.primary,
.global-search button,
.watch-link {
  color: #ffffff;
  background: var(--cyan);
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.28);
}

.btn.primary:hover,
.global-search button:hover,
.watch-link:hover {
  background: var(--cyan-dark);
}

.btn.ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.btn.ghost.dark {
  color: var(--cyan-dark);
  border-color: #bae6fd;
  background: #ffffff;
}

.btn.text {
  color: #ecfeff;
  background: transparent;
}

.hero-visual {
  position: relative;
  min-height: 500px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-visual img,
.detail-bg img,
.poster-frame img,
.rank-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after,
.poster-frame::after,
.detail-poster::after,
.rank-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, 0.58));
  pointer-events: none;
}

.glass-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.glass-card strong {
  font-size: 22px;
}

.glass-card small {
  color: #cffafe;
}

.hero-controls {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.hero-dot {
  width: 42px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

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

.search-band {
  width: min(1180px, calc(100% - 32px));
  margin: -36px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-band h2,
.section-head h2,
.page-hero h1,
.content-section h2,
.story-card h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.search-band h2,
.section-head h2,
.content-section h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.global-search {
  display: flex;
  gap: 10px;
}

.global-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  color: var(--ink);
}

.global-search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.search-results {
  grid-column: 1 / -1;
  display: none;
  gap: 10px;
  padding-top: 12px;
}

.search-results.is-open {
  display: grid;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.search-result-item strong {
  color: var(--ink);
}

.search-result-item span {
  color: var(--muted);
}

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 20px;
}

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

.section-head.centered {
  justify-content: center;
  text-align: center;
}

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

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

.category-card {
  padding: 26px;
  min-height: 230px;
  border-radius: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
}

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

.category-card p,
.category-card small,
.movie-card p,
.rank-body p,
.story-card p,
.text-page p,
.site-footer p {
  color: var(--muted);
  line-height: 1.78;
}

.category-card small {
  display: block;
  margin-top: 14px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card.compact .poster-frame {
  height: 210px;
}

.poster-frame {
  position: relative;
  display: block;
  height: 280px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.78), rgba(5, 150, 105, 0.78)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.34), transparent 34%);
}

.poster-frame img {
  transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.poster-year,
.rank-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.rank-badge {
  left: 14px;
  right: auto;
  background: rgba(15, 23, 42, 0.72);
}

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

.movie-meta {
  color: var(--cyan-dark);
  font-weight: 900;
  font-size: 13px;
}

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

.movie-card h3 a:hover,
.rank-body h2 a:hover,
.neighbor-nav a:hover {
  color: var(--cyan-dark);
}

.movie-card p {
  min-height: 58px;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card .tag-row {
  margin-bottom: 16px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  background:
    radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.32), transparent 32%),
    linear-gradient(135deg, #ecfeff, #f0fdfa 60%, #ffffff);
}

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

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.page-search {
  max-width: 720px;
  margin-top: 24px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 38px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.pagination a.is-current {
  color: #ffffff;
  background: var(--cyan);
  border-color: var(--cyan);
}

.pagination .disabled,
.pagination .gap {
  color: #94a3b8;
}

.rank-list {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 24px;
  display: grid;
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 70px 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-num {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  font-weight: 900;
}

.rank-poster {
  position: relative;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
}

.rank-body h2 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.rank-body p {
  margin: 0 0 10px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(6px) saturate(1.12);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.48));
}

.detail-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  position: relative;
  height: 410px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 10px 0 18px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-info .lead {
  max-width: 820px;
  color: #e0f2fe;
  font-size: 19px;
  line-height: 1.84;
}

.detail-tags span {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

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

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

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

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

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 18px 30px rgba(8, 145, 178, 0.28);
  font-size: 28px;
  padding-left: 4px;
}

.player-state {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 4;
  margin: 0;
  color: #e0f2fe;
  font-weight: 700;
}

.detail-content,
.text-page {
  width: min(980px, calc(100% - 32px));
  margin: 50px auto 0;
  display: grid;
  gap: 22px;
}

.story-card,
.text-page article {
  padding: 28px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.story-card p,
.text-page p {
  font-size: 17px;
}

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

.neighbor-nav a {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.feature-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto;
  padding: 36px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal), var(--emerald));
  box-shadow: var(--shadow);
}

.feature-strip span {
  color: #cffafe;
  font-weight: 900;
}

.feature-strip h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.feature-strip p {
  max-width: 720px;
  margin: 0;
  color: #ecfeff;
  line-height: 1.8;
}

.site-footer {
  margin-top: 76px;
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 21px;
}

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

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #94a3b8;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: none;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--cyan);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  font-weight: 900;
}

.back-top.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.image-missing img,
img.image-missing {
  opacity: 0;
}

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slide,
  .hero-slide.is-active,
  .search-band,
  .detail-shell,
  .footer-grid,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
    padding: 54px 0;
  }

  .hero-visual {
    min-height: 430px;
  }

  .search-band {
    display: grid;
    margin-top: 22px;
  }

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

  .rank-item {
    grid-template-columns: 54px 96px minmax(0, 1fr);
  }

  .rank-item .watch-link {
    grid-column: 2 / -1;
  }

  .footer-bottom,
  .feature-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 18px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .detail-info h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .hero-visual {
    min-height: 360px;
    border-radius: 24px;
  }

  .global-search {
    flex-direction: column;
  }

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

  .detail-shell {
    padding: 44px 0;
  }

  .detail-poster {
    height: 360px;
  }

  .rank-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .rank-poster {
    display: none;
  }

  .rank-item .watch-link {
    grid-column: 1 / -1;
  }
}
