:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --muted: #64748b;
  --text: #0f172a;
  --soft: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

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

.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-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
  font-size: 14px;
}

.brand-text {
  font-size: 20px;
  color: #111827;
}

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

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

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--primary);
}

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

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

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

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

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(37, 99, 235, 0.28), transparent 34%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 70vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 54px;
  padding: 68px 0 92px;
}

.hero-copy {
  color: #ffffff;
}

.hero-tags,
.movie-tags,
.detail-tags,
.hero-meta,
.detail-meta,
.rank-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 13px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 16px;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-meta span {
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.44);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

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

.button-ghost.dark {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.8);
}

.hero-poster {
  position: relative;
  height: 460px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.38);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(8px);
  font-size: 38px;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.content-section {
  padding: 72px 0;
}

.section-muted {
  background: #eef4ff;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-heading h2,
.intro-card h2,
.detail-block h2,
.player-side h2,
.detail-aside h2,
.footer-block h2 {
  margin: 0;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  flex-shrink: 0;
  color: var(--primary);
  font-weight: 800;
}

.intro-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}

.intro-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-card span {
  color: var(--primary);
  font-weight: 900;
}

.intro-card strong {
  font-size: 52px;
  line-height: 1;
}

.intro-card em,
.intro-card p {
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.movie-cover {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a 58%, #2563eb);
}

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

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

.movie-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 9px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-card-body h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card-body p {
  flex: 1;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.62;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
}

.movie-tags {
  margin-top: 12px;
}

.movie-tags span {
  padding: 4px 8px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

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

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

.rank-item a {
  display: grid;
  grid-template-columns: auto 156px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  border-radius: 14px;
  font-weight: 900;
}

.rank-cover {
  height: 92px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

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

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.rank-info p {
  margin: 0 0 10px;
  color: #64748b;
  line-height: 1.55;
}

.rank-meta span {
  color: #64748b;
  font-size: 12px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 13px;
  background: #ffffff;
  color: #0f172a;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 22% 18%, rgba(96, 165, 250, 0.34), transparent 30%),
    linear-gradient(135deg, #020617, #0f172a 48%, #1d4ed8);
}

.compact-hero .container {
  padding: 86px 0 72px;
}

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

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

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

.category-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card span {
  color: var(--primary);
  font-weight: 900;
}

.category-card strong {
  font-size: 48px;
}

.category-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.player-section {
  padding: 36px 0;
  background: #020617;
}

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

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.22), rgba(2, 6, 23, 0.64));
  cursor: pointer;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  font-size: 28px;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.player-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  color: #ffffff;
}

.player-title-row h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.player-side {
  padding: 20px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #ffffff;
}

.player-side h2 {
  margin-bottom: 18px;
}

.side-rec-list {
  display: grid;
  gap: 14px;
}

.side-rec {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.side-rec-cover {
  height: 64px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.side-rec-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-rec strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
}

.side-rec em {
  display: block;
  margin-top: 4px;
  color: #93c5fd;
  font-size: 12px;
  font-style: normal;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.detail-main,
.aside-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.detail-main {
  padding: 28px;
}

.detail-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.detail-head img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.detail-head h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.detail-head p,
.detail-block p {
  color: #475569;
  line-height: 1.85;
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span {
  padding: 7px 10px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 750;
  font-size: 13px;
}

.detail-tags span {
  background: #eff6ff;
  color: #2563eb;
}

.detail-block {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}

.detail-block h2 {
  font-size: 24px;
}

.aside-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  padding: 22px;
}

.aside-card a {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  color: #2563eb;
  font-weight: 800;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
}

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

.brand-footer .brand-text,
.footer-block h2 {
  color: #ffffff;
}

.footer-brand p {
  max-width: 420px;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-block {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-block a {
  color: #94a3b8;
}

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

.hidden-by-filter {
  display: none !important;
}

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

  .menu-button {
    display: block;
  }

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

  .hero-poster {
    display: none;
  }

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

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

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

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

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

  .hero-slider,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content {
    padding: 48px 0 84px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 38px;
  }

  .content-section {
    padding: 48px 0;
  }

  .section-heading {
    display: block;
  }

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

  .intro-grid,
  .movie-grid,
  .large-grid,
  .category-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-item a {
    grid-template-columns: auto 96px 1fr;
    gap: 12px;
  }

  .rank-number {
    width: 36px;
    height: 36px;
  }

  .rank-cover {
    height: 74px;
  }

  .rank-info p,
  .rank-meta span:nth-child(n+3) {
    display: none;
  }

  .player-title-row,
  .detail-head {
    display: block;
  }

  .detail-head img {
    width: 180px;
    margin-bottom: 22px;
  }
}
