:root {
  --sky: #0ea5e9;
  --blue: #2563eb;
  --deep: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--deep);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 32%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

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

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

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--sky), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

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

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

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #0f172a;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
  background: #f8fafc;
}

.mobile-link.active {
  color: var(--blue);
  background: #dbeafe;
}

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

.main-visual {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

.visual-stage {
  position: absolute;
  inset: 0;
}

.visual-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.visual-slide.is-active {
  opacity: 1;
}

.visual-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(56, 189, 248, 0.34), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.62) 44%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 48%);
}

.visual-content {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #fff;
}

.visual-content h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.visual-content p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #e2e8f0;
  font-size: clamp(16px, 2vw, 21px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sky);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-actions,
.detail-actions,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.32);
}

.primary-button:hover,
.ghost-button:hover,
.outline-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.ghost-button.light {
  color: var(--blue);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.outline-button {
  color: var(--blue);
  border: 1px solid #bfdbfe;
  background: #fff;
}

.visual-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 40px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.visual-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.visual-dot.is-active {
  width: 34px;
  background: #fff;
}

.search-panel {
  transform: translateY(-34px);
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.search-panel h2,
.section-head h2,
.page-banner h1,
.detail-info h1,
.article-box h2 {
  margin: 8px 0 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  padding: 8px 12px;
  color: #0f172a;
}

.search-box span {
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sky), var(--blue));
}

.search-box.compact {
  max-width: 560px;
}

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

.section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 22;
  overflow: hidden;
  background: #e0f2fe;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(2, 6, 23, 0.76));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: rgba(14, 165, 233, 0.92);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translateY(0);
}

.rank-mark {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-body h2 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.card-body h2 a:hover {
  color: var(--blue);
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #475569;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span,
.meta-pills span,
.ghost-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tag-row span {
  padding: 5px 9px;
  color: #0369a1;
  background: #e0f2fe;
}

.soft-band {
  margin: 72px 0;
  padding: 58px 0;
  background: linear-gradient(90deg, #f0f9ff, #eff6ff);
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

.category-glow {
  position: absolute;
  top: -30px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.26), transparent 62%);
}

.category-card strong,
.category-title {
  color: #0f172a;
  font-size: 21px;
  font-weight: 900;
}

.category-card em,
.category-overview-card p {
  margin: 12px 0;
  color: #475569;
  font-style: normal;
  font-size: 14px;
}

.category-card small {
  color: var(--blue);
  font-weight: 800;
}

.latest-section {
  padding-bottom: 72px;
}

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

.wide-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.wide-item img {
  width: 100%;
  height: 158px;
  object-fit: cover;
}

.wide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 18px 18px 0;
}

.wide-content strong {
  font-size: 22px;
  line-height: 1.25;
}

.wide-content em {
  margin: 6px 0;
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.wide-content small {
  color: #475569;
  font-size: 14px;
}

.page-banner {
  padding: 68px 0;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(56, 189, 248, 0.28), transparent 30%),
    linear-gradient(135deg, #0f172a, #0ea5e9 56%, #2563eb);
}

.page-banner h1 {
  max-width: 760px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
}

.page-banner p {
  max-width: 720px;
  color: #e0f2fe;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #fff;
}

.category-banner,
.ranking-banner {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.26), transparent 26%),
    linear-gradient(135deg, #0369a1, #2563eb);
}

.filter-line {
  padding: 28px 0 8px;
}

.category-list {
  padding-bottom: 76px;
}

.category-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 54px 0 76px;
}

.category-overview-card {
  min-height: 260px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 20px;
}

.mini-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 13px;
  font-weight: 800;
}

.ghost-chip {
  padding: 8px 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
}

.detail-top {
  padding: 58px 0;
  color: #fff;
  background:
    radial-gradient(circle at 12% 16%, rgba(14, 165, 233, 0.34), transparent 30%),
    linear-gradient(135deg, #020617, #0f172a 52%, #075985);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 16 / 22;
  object-fit: cover;
}

.detail-info h1 {
  max-width: 850px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.06;
}

.lead-text {
  max-width: 780px;
  color: #cbd5e1;
  font-size: 19px;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 16px;
}

.meta-pills span {
  padding: 8px 12px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-tags span {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.26);
}

.detail-actions {
  margin-top: 28px;
}

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

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

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

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

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

.player-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 999px;
  color: #fff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.34);
}

.player-overlay span:last-child {
  font-size: 18px;
  font-weight: 900;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 44px 0 18px;
}

.article-box {
  padding: 30px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.article-box h2 {
  font-size: 24px;
}

.article-box p {
  color: #334155;
  font-size: 17px;
}

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

.pager-links a {
  padding: 16px;
  border-radius: 18px;
  color: var(--blue);
  font-weight: 900;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.related-grid {
  padding-bottom: 72px;
}

.site-footer {
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc, #eef6ff);
}

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

.footer-brand p {
  max-width: 430px;
  color: #475569;
}

.brand-footer .brand-icon {
  width: 32px;
  height: 32px;
}

.brand-footer .brand-text {
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.footer-links a {
  color: #475569;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  padding: 18px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

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

@media (max-width: 1024px) {
  .movie-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-button {
    display: block;
  }

  .main-visual {
    min-height: 640px;
  }

  .visual-content {
    bottom: 88px;
  }

  .visual-dots {
    left: 16px;
    right: auto;
  }

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

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

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

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

  .wide-item {
    grid-template-columns: 1fr;
  }

  .wide-item img {
    height: 220px;
  }

  .wide-content {
    padding: 20px;
  }

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

  .detail-poster {
    max-width: 320px;
  }

  .pager-links,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .section-wrap,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 24px, 1180px);
  }

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

  .visual-content h1 {
    font-size: 40px;
  }

  .search-panel {
    padding: 18px;
    border-radius: 22px;
  }

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

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

  .page-banner,
  .detail-top {
    padding: 46px 0;
  }

  .article-box {
    padding: 22px;
  }
}
