* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --deep: #020617;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 48%, #f8fafc 100%);
  color: var(--ink);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(18px);
}

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

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

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.25);
}

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

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

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

.nav-link {
  padding: 10px 15px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

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

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  border-radius: 999px;
  background: #0f172a;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(6, 182, 212, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.35) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 720px;
  margin: 0 auto;
  padding: 96px 24px 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 60px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(125, 211, 252, 0.36);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.14);
  color: #bae6fd;
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 850px;
  margin: 22px 0 10px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.tag-cloud,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span,
.tag-cloud span,
.card-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #e0f2fe;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.detail-actions,
.sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  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(--blue), var(--cyan));
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.32);
}

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

.ghost-button.light {
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

.primary-button:hover,
.ghost-button:hover,
.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover,
.rank-row:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.compact-section {
  padding-top: 34px;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.single-heading {
  align-items: flex-start;
}

.section-more {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 900;
}

.search-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.search-box input {
  flex: 1;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #334155;
  background: #e0f2fe;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

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

.slim-grid,
.category-movie-grid,
.ranking-grid,
.related-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow);
}

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

.movie-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-poster {
  transform: scale(1.06);
}

.quality-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.quality-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.year-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  right: 10px;
  top: 10px;
  min-width: 36px;
  text-align: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

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

.movie-card h3 {
  min-height: 48px;
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta span {
  color: #1e40af;
  background: #eff6ff;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 58px rgba(15, 23, 42, 0.08);
}

.rank-panel h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.rank-panel p {
  margin: 0 0 18px;
  color: var(--muted);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  background: #eef6ff;
}

.rank-row img {
  width: 54px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-number {
  color: var(--blue);
  font-size: 20px;
  font-weight: 950;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-copy strong,
.rank-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy small {
  color: var(--muted);
}

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

.category-tile,
.category-overview-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile {
  min-height: 150px;
  padding: 24px;
  display: grid;
  align-content: space-between;
}

.category-tile span,
.category-overview-card span {
  color: var(--blue);
  font-weight: 950;
}

.category-tile strong,
.category-overview-card p {
  color: #334155;
  font-weight: 600;
  line-height: 1.7;
}

.sub-hero {
  padding: 92px 24px 84px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 28%, rgba(6, 182, 212, 0.34), transparent 34%),
    linear-gradient(135deg, #020617 0%, #0f172a 52%, #1d4ed8 100%);
}

.sub-hero > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.sub-hero h1 {
  margin-top: 22px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.sub-hero p {
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.category-overview-card {
  overflow: hidden;
  display: grid;
  min-height: 330px;
}

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 160px;
}

.overview-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card > div:last-child {
  padding: 22px;
}

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

.detail-head {
  padding: 34px 24px 72px;
  color: #fff;
  background:
    radial-gradient(circle at 74% 24%, rgba(6, 182, 212, 0.32), transparent 34%),
    linear-gradient(135deg, #020617, #0f172a 56%, #1d4ed8);
}

.breadcrumb,
.detail-layout {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #bfdbfe;
  font-weight: 700;
  margin-bottom: 32px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.detail-poster-wrap {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.42);
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 820px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.85;
}

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

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

.player-section {
  padding-top: 56px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.24), rgba(2, 6, 23, 0.74));
  cursor: pointer;
}

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

.play-core {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 52px rgba(37, 99, 235, 0.36);
  font-size: 32px;
}

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

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

.article-card {
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.article-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.article-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.95;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), #eaf3ff);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1fr;
  gap: 32px;
}

.footer-main h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.footer-main p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #1e40af;
  background: #eff6ff;
  font-weight: 800;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--muted);
  text-align: center;
}

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

@media (max-width: 1180px) {
  .movie-grid,
  .slim-grid,
  .category-movie-grid,
  .ranking-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .two-column-section {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

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

  .hero-slide.active {
    display: block;
  }

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

  .hero-content {
    padding-top: 76px;
  }

  .hero-poster,
  .detail-poster-wrap {
    max-width: 360px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

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

  .mobile-nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content,
  .page-section,
  .sub-hero,
  .detail-head,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-copy h2,
  .detail-copy h1,
  .sub-hero h1 {
    font-size: 34px;
  }

  .hero-actions,
  .detail-actions,
  .sub-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .movie-grid,
  .slim-grid,
  .category-movie-grid,
  .ranking-grid,
  .related-grid,
  .category-grid,
  .category-overview-grid,
  .article-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-card p {
    display: none;
  }

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

  .detail-layout {
    gap: 28px;
  }

  .play-core {
    width: 72px;
    height: 72px;
  }
}
