:root {
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --cyan: #0891b2;
  --accent: #fbbf24;
  --orange-soft: #fff7ed;
  --blue-soft: #eff6ff;
  --slate-soft: #f8fafc;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e5e7eb;
  --card: #ffffff;
  --footer: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #f9fafb;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-nav {
  background: linear-gradient(90deg, #2563eb 0%, #0891b2 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fef3c7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

.nav-link {
  font-weight: 650;
  opacity: 0.94;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fde68a;
  opacity: 1;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  padding: 10px;
  cursor: pointer;
}

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

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
}

.nav-search input {
  width: 180px;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #0f172a;
  outline: none;
  background: rgba(255, 255, 255, 0.94);
}

.nav-search button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: #facc15;
  color: #1e3a8a;
  font-weight: 800;
  cursor: pointer;
}

.search-panel {
  position: absolute;
  right: 0;
  top: 48px;
  width: min(420px, calc(100vw - 32px));
  max-height: 460px;
  overflow: auto;
  display: none;
  background: #ffffff;
  color: var(--text);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 8px;
}

.search-panel.open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
}

.search-result-item:hover {
  background: #eff6ff;
}

.search-result-item img {
  width: 58px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  background: #dbeafe;
}

.search-result-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.search-result-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(110deg, #0f2f75 0%, #2563eb 48%, #06b6d4 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.24;
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(30, 64, 175, 0.50), rgba(6, 182, 212, 0.32));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 560px;
  margin: 0 auto;
  padding: 70px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.62fr);
  align-items: center;
  gap: 44px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.20);
  color: #dff7ff;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 26px;
  font-size: clamp(17px, 2vw, 23px);
  color: #dbeafe;
}

.hero-actions,
.hero-tags,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags {
  margin-top: 18px;
}

.hero-tags a,
.hero-tags span,
.quick-actions a,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-card {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-card h2 {
  margin: 16px 0 6px;
  font-size: 24px;
}

.hero-card p {
  font-size: 14px;
  margin: 0 0 12px;
  color: #e0f2fe;
}

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

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

.hero-dot.active {
  width: 62px;
  background: #facc15;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #1e3a8a;
  background: #facc15;
  box-shadow: 0 18px 35px rgba(250, 204, 21, 0.30);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.20);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 20px;
}

.section.wide {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section-band {
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
}

.section-band.orange {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}

.section-subtitle {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.movie-card,
.movie-row,
.category-tile,
.info-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dbeafe;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.34s ease;
}

.movie-card:hover .poster-wrap img,
.movie-row:hover img,
.category-tile:hover img {
  transform: scale(1.07);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.58));
}

.movie-year,
.play-hover {
  position: absolute;
  z-index: 3;
  color: #ffffff;
}

.movie-year {
  right: 12px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
}

.play-hover {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.88);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.86);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-title,
.movie-row-title {
  display: block;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.movie-title:hover,
.movie-row-title:hover,
.category-tile h2 a:hover {
  color: var(--primary);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eff6ff;
  color: #2563eb;
}

.movie-card p,
.movie-row p,
.category-tile p,
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.movie-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 14px;
}

.movie-row-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #dbeafe;
}

.movie-row-poster img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  transition: transform 0.34s ease;
}

.movie-row-body {
  position: relative;
  padding: 2px 6px 2px 0;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #facc15);
  color: #78350f;
  font-weight: 900;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-list span {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
}

.category-tile {
  display: grid;
  grid-template-columns: 210px 1fr;
}

.category-cover {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  background: #dbeafe;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.34s ease;
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.70));
}

.category-cover span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  color: #ffffff;
  font-weight: 900;
  font-size: 20px;
}

.category-tile-body {
  padding: 22px;
}

.category-tile h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  border-radius: 999px;
  padding: 6px 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin: 0 0 28px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  outline: none;
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
}

.page-hero {
  background: linear-gradient(110deg, #1e3a8a 0%, #2563eb 54%, #0891b2 100%);
  color: #ffffff;
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 20px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #dbeafe;
  font-size: 19px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #dbeafe;
  font-size: 14px;
}

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

.detail-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 70px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.72));
}

.player-overlay.hidden {
  display: none;
}

.player-button {
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #1e3a8a;
  font-size: 34px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 22px 45px rgba(250, 204, 21, 0.32);
}

.detail-side {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-side img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #dbeafe;
}

.detail-side-body {
  padding: 20px;
}

.detail-side h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  margin-top: 34px;
}

.article-box,
.related-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.article-box h2,
.related-box h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.article-box p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 16px;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
}

.related-mini:hover {
  background: #eff6ff;
}

.related-mini img {
  width: 72px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  background: #dbeafe;
}

.related-mini strong {
  display: block;
  line-height: 1.35;
  margin-bottom: 4px;
}

.related-mini span {
  color: var(--muted);
  font-size: 13px;
}

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

.info-card {
  padding: 22px;
}

.info-card h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.site-footer {
  background: var(--footer);
  color: #cbd5e1;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-logo span {
  color: #67e8f9;
}

.footer-brand p {
  margin: 0;
  max-width: 360px;
  color: #94a3b8;
}

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

.footer-group a {
  display: block;
  color: #cbd5e1;
  margin: 8px 0;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

@media (max-width: 1040px) {
  .nav-inner {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-search {
    order: 4;
    width: 100%;
  }

  .nav-search input {
    width: 100%;
  }

  .hero-inner,
  .player-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 430px;
  }

  .card-grid,
  .card-grid.featured,
  .info-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .nav-inner {
    gap: 12px;
  }

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

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .nav-links.open {
    display: flex;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 84px;
  }

  .hero-card {
    display: none;
  }

  .section,
  .page-hero-inner,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-header {
    display: block;
  }

  .section-link {
    display: inline-flex;
    margin-top: 10px;
  }

  .card-grid,
  .card-grid.featured,
  .card-grid.category-grid,
  .info-card-grid {
    grid-template-columns: 1fr;
  }

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

  .category-cover {
    min-height: 180px;
  }

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

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