:root {
  --brand-blue: #2563eb;
  --brand-cyan: #06b6d4;
  --brand-teal: #0f766e;
  --ink: #0f172a;
  --muted: #64748b;
  --paper: #ffffff;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: #f8fafc;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.12));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

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

.brand-text {
  font-size: 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: #334155;
  font-weight: 700;
  border-radius: 12px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--brand-blue);
  background: #eff6ff;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 250px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.nav-search input,
.mobile-search input {
  width: 100%;
  padding: 11px 12px;
  outline: none;
  color: #0f172a;
}

.nav-search button,
.mobile-search button {
  padding: 11px 16px;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: #f1f5f9;
}

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

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.hero-shell {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 52%, #0f766e 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 80% 16%, rgba(125, 211, 252, 0.25), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.2));
}

.hero-track {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.74fr);
  align-items: center;
  gap: 58px;
  padding: 82px 0 96px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(36px);
  transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hero-content {
  display: grid;
  gap: 22px;
}

.hero-pill,
.detail-kicker,
.page-hero span,
.section-heading span,
.category-overview-title span {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.hero-content h1 {
  max-width: 760px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content h2 {
  color: #cffafe;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-content p {
  max-width: 680px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.8;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-button,
.ghost-button,
.ghost-dark-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 900;
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: var(--brand-blue);
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.2);
}

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

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.11);
}

.ghost-dark-button,
.section-more {
  color: var(--brand-blue);
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 8px;
}

.hero-stats span {
  display: grid;
  gap: 2px;
}

.hero-stats strong {
  font-size: 30px;
  line-height: 1;
}

.hero-stats em {
  color: #bfdbfe;
  font-size: 13px;
  font-style: normal;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.38);
  transform: perspective(1200px) rotateY(-6deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: perspective(1200px) rotateY(0deg) translateY(-6px);
}

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

.hero-poster::after,
.poster-link::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 44%, rgba(15, 23, 42, 0.84));
}

.hero-poster-info {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  display: grid;
  gap: 4px;
}

.hero-poster-info strong {
  font-size: 26px;
  line-height: 1.15;
}

.hero-poster-info em {
  color: #dbeafe;
  font-style: normal;
}

.hero-dots {
  position: absolute;
  right: calc((100% - min(1280px, calc(100% - 32px))) / 2);
  bottom: 38px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.content-section,
.overview-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.soft-section {
  width: 100%;
  padding-right: max(16px, calc((100% - 1280px) / 2));
  padding-left: max(16px, calc((100% - 1280px) / 2));
  background: #eef6ff;
}

.section-heading,
.category-overview-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading span,
.category-overview-title span,
.page-hero span {
  color: var(--brand-blue);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.section-heading h2,
.category-overview-title h2,
.page-hero h1 {
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p,
.category-overview-title p,
.page-hero p {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border 0.28s ease;
}

.movie-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.14);
  transform: translateY(-8px);
}

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

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

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
}

.year-badge {
  left: 14px;
}

.rank-badge {
  right: 14px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 900;
}

.card-meta span {
  color: var(--muted);
}

.movie-card h2 {
  font-size: 18px;
  line-height: 1.28;
  font-weight: 900;
}

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

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

.card-tags,
.detail-tags,
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.detail-tags span,
.footer-tags a {
  display: inline-flex;
  padding: 6px 9px;
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: #e0f2fe;
}

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

.category-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid #dbeafe;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

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

.category-card h2 {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.8;
}

.category-samples {
  display: grid;
  gap: 8px;
}

.category-samples a {
  overflow: hidden;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-samples a:hover {
  color: var(--brand-blue);
}

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

.mini-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mini-card:hover {
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.12);
  transform: translateY(-3px);
}

.mini-card img {
  width: 78px;
  height: 104px;
  object-fit: cover;
  border-radius: 14px;
}

.mini-card span {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.mini-card strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 62px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ffffff, #eff6ff 46%, #ecfeff);
  box-shadow: var(--shadow);
}

.page-hero::after {
  position: absolute;
  top: -110px;
  right: -80px;
  width: 300px;
  height: 300px;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.24), transparent 68%);
}

.category-overview-block {
  padding: 34px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 170px;
  gap: 14px;
  padding: 16px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: none;
  background: #ffffff;
}

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

.empty-state {
  display: none;
  padding: 38px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  background: #ffffff;
}

.empty-state.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  width: min(1280px, calc(100% - 32px));
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--brand-blue);
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  width: min(1280px, calc(100% - 32px));
  margin: 26px auto 0;
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

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

.detail-info {
  display: grid;
  align-content: center;
  gap: 20px;
}

.detail-info h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  color: #334155;
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-meta div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.detail-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-meta dd {
  margin-top: 5px;
  font-weight: 900;
}

.player-section,
.detail-text-section {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
}

.compact-heading {
  margin-bottom: 18px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
}

.site-video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 18px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-shell.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  margin: 0 auto;
  font-size: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.36);
}

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

.player-message {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: none;
  max-width: 360px;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.player-message.is-visible {
  display: block;
}

.detail-text-section {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.detail-text-section h2 {
  margin-bottom: 14px;
  font-size: 28px;
  font-weight: 900;
}

.detail-text-section p {
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.related-section {
  padding-top: 48px;
}

.site-footer {
  margin-top: 80px;
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-grid h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: #94a3b8;
  line-height: 1.8;
}

.footer-grid a:hover {
  color: #7dd3fc;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    height: 66px;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-track {
    min-height: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 54px 0 82px;
  }

  .hero-poster {
    max-width: 430px;
    margin: 0 auto;
    transform: none;
  }

  .hero-dots {
    right: 16px;
    bottom: 24px;
  }

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

  .section-heading,
  .category-overview-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding: 42px 28px;
  }

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

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

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

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

@media (max-width: 620px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content h2 {
    font-size: 28px;
  }

  .hero-content p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .movie-grid,
  .compact-grid,
  .ranking-grid,
  .category-grid,
  .rank-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .content-section,
  .overview-wrap,
  .player-section,
  .detail-text-section,
  .breadcrumb,
  .detail-hero {
    width: min(100% - 24px, 1280px);
  }

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

  .soft-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .detail-hero,
  .detail-text-section,
  .category-overview-block {
    padding: 22px;
    border-radius: 24px;
  }

  .video-shell {
    border-radius: 20px;
  }
}
