* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #f8fafc;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

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

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: #e5e7eb;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link-active,
.mobile-link:hover,
.mobile-link-active {
  color: #60a5fa;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 10px 20px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 54%, #1e293b);
  color: #ffffff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(59, 130, 246, 0.45), transparent 30%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.7) 46%, rgba(15, 23, 42, 0.2));
}

.hero-content {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(1180px, calc(100% - 40px));
  transform: translate(-50%, -50%);
  padding-right: min(42vw, 520px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero-content h1 {
  max-width: 820px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-tags,
.tag-row,
.filter-chips,
.hero-category-pills,
.hero-actions,
.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

.hero-actions {
  margin-top: 32px;
}

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

.primary-btn {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
}

.primary-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
  background: #1d4ed8;
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-dark-btn {
  color: #0f172a;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

.hero-search-panel {
  position: absolute;
  left: 50%;
  bottom: 84px;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(18px);
}

.hero-search-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.hero-search-panel input,
.filter-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 0 16px;
  outline: 0;
  color: #111827;
  background: #ffffff;
}

.hero-search-panel button,
.filter-chip {
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  color: #ffffff;
  background: #2563eb;
  cursor: pointer;
  font-weight: 800;
}

.hero-category-pills {
  margin-top: 14px;
}

.hero-category-pills a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.1);
}

.hero-dots {
  position: absolute;
  right: 42px;
  bottom: 100px;
  display: grid;
  gap: 10px;
}

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

.hero-dot.active {
  height: 34px;
  background: #60a5fa;
}

.feature-strip,
.content-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 20px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -46px;
  position: relative;
  z-index: 2;
}

.feature-card {
  min-height: 128px;
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.feature-card strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 20px;
}

.feature-card span {
  color: #64748b;
}

.muted-section {
  max-width: none;
  background: #eef4ff;
}

.muted-section > * {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.section-heading p {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 18px;
}

.filter-panel {
  margin: 0 auto 26px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-chips {
  margin-top: 12px;
}

.filter-chip {
  min-height: 36px;
  color: #1e3a8a;
  background: #dbeafe;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: #2563eb;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #1e293b;
}

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

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-region,
.poster-year {
  position: absolute;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.poster-region {
  right: 12px;
  top: 12px;
  background: #2563eb;
}

.poster-year {
  left: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.82);
}

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

.movie-card-body h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h2 a:hover {
  color: #2563eb;
}

.movie-card-body p {
  min-height: 52px;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
}

.movie-meta {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
}

.movie-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.tag-row span {
  font-size: 12px;
}

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

.category-card,
.category-overview-card a {
  min-height: 158px;
  display: block;
  padding: 24px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a, #2563eb 55%, #38bdf8);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.2);
  transition: transform 0.22s ease;
}

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

.category-card strong,
.category-overview-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
}

.category-card span,
.category-overview-card p {
  color: #dbeafe;
}

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

.category-overview-card div span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

.two-column-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 30px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 62px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
}

.rank-num {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: #2563eb;
  font-weight: 900;
}

.rank-item img {
  width: 62px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item strong {
  display: block;
  color: #0f172a;
}

.rank-item small {
  color: #64748b;
}

.wide-rank-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-link {
  margin-top: 18px;
  color: #ffffff;
  background: #2563eb;
}

.page-hero,
.detail-hero {
  position: relative;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0f172a);
  overflow: hidden;
}

.page-hero {
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 70px 20px;
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.38), transparent 28%), radial-gradient(circle at 82% 38%, rgba(14, 165, 233, 0.26), transparent 26%);
}

.page-hero > div {
  position: relative;
  max-width: 850px;
}

.page-hero p {
  margin: 0 0 12px;
  color: #bfdbfe;
  font-weight: 800;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
}

.page-hero span {
  color: #dbeafe;
  font-size: 19px;
}

.compact-hero {
  min-height: 300px;
}

.rank-hero {
  background: linear-gradient(135deg, #111827, #172554 48%, #1d4ed8);
}

.detail-hero {
  min-height: 600px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: blur(8px);
  transform: scale(1.06);
}

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

.detail-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 20px;
  display: grid;
  grid-template-columns: minmax(230px, 330px) 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #bfdbfe;
  font-weight: 700;
}

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

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.05;
}

.detail-one-line {
  max-width: 780px;
  color: #dbeafe;
  font-size: 21px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 6px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.detail-tags {
  margin-bottom: 28px;
}

.player-section {
  padding: 58px 20px;
  background: #020617;
}

.player-shell {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at 50% 42%, rgba(37, 99, 235, 0.4), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  z-index: 3;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.38);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 22px;
}

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

.detail-content {
  padding-top: 56px;
}

.article-section {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.article-section h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 28px;
}

.article-section h2:not(:first-child) {
  margin-top: 32px;
}

.article-section p {
  margin: 0;
  color: #475569;
  font-size: 17px;
}

.article-links {
  margin-top: 26px;
}

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

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 20px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

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

.site-footer p {
  color: #94a3b8;
}

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

.site-footer a:hover {
  color: #60a5fa;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
}

.hidden-card {
  display: none;
}

@media (max-width: 1080px) {
  .movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .two-column-section,
  .wide-rank-list {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-right: 0;
  }
}

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

  .menu-toggle {
    display: inline-block;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-text small {
    display: none;
  }

  .hero-carousel {
    min-height: 700px;
  }

  .hero-content {
    top: 40%;
  }

  .hero-search-panel {
    bottom: 54px;
  }

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

  .hero-search-panel button {
    min-height: 46px;
  }

  .hero-dots {
    right: 20px;
    bottom: 24px;
    display: flex;
  }

  .hero-dot.active {
    width: 34px;
    height: 12px;
  }

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

  .feature-strip {
    margin-top: 0;
  }

  .content-section,
  .feature-strip {
    padding: 44px 16px;
  }

  .detail-inner {
    grid-template-columns: 1fr;
    padding: 44px 20px;
  }

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

  .player-section {
    padding: 34px 12px;
  }

  .player-shell {
    border-radius: 18px;
  }

  .article-section {
    padding: 24px;
  }
}
