* {
  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: #f9fafb;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-size: 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #2563eb, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #475569;
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.desktop-nav a:hover {
  color: #2563eb;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  background: #eff6ff;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #2563eb;
  border-radius: 999px;
}

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

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #334155;
  font-weight: 700;
  border-top: 1px solid #e2e8f0;
}

.mobile-nav.is-open {
  display: block;
}

.hero-section {
  position: relative;
  min-height: 680px;
  padding: 118px 24px 74px;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 52%, #14b8a6 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 32%), rgba(0, 0, 0, 0.18);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.55;
}

.hero-glow-one {
  width: 280px;
  height: 280px;
  left: 6%;
  top: 20%;
  background: rgba(255, 255, 255, 0.26);
}

.hero-glow-two {
  width: 360px;
  height: 360px;
  right: 4%;
  bottom: 8%;
  background: rgba(59, 130, 246, 0.38);
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-slides {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.66fr);
  align-items: center;
  gap: 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

.eyebrow,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

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

.hero-tags,
.detail-tags,
.rank-tags,
.movie-meta,
.filter-chips,
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.detail-tags span,
.rank-tags span,
.movie-meta span,
.detail-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

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

.hero-actions,
.detail-copy .primary-button {
  margin-top: 32px;
}

.primary-button,
.ghost-button,
.search-panel button,
.section-heading a,
.category-body span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #2563eb;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
}

.ghost-button {
  margin-left: 12px;
  color: #ffffff;
  background: rgba(30, 64, 175, 0.36);
  border: 2px solid rgba(255, 255, 255, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.search-panel button:hover,
.section-heading a:hover,
.category-body span:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  min-height: 420px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(15, 23, 42, 0.3));
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  opacity: 0.94;
}

.hero-poster img.is-missing,
.poster-wrap img.is-missing,
.category-covers img.is-missing,
.rank-cover img.is-missing,
.detail-poster img.is-missing {
  opacity: 0;
}

.hero-poster span,
.poster-play,
.player-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.25);
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

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

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

.hero-category-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.hero-category-row a {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-weight: 900;
  text-align: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-category-row a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

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

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

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: #64748b;
}

.section-heading a,
.search-panel button,
.category-body span {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-badge,
.poster-year {
  position: absolute;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.card-badge {
  left: 12px;
  top: 12px;
  background: linear-gradient(135deg, #ef4444, #ec4899);
}

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

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

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

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

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

.movie-meta span {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 11px;
}

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

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

.category-card {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.14);
}

.category-card a {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  min-height: 210px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 12px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-covers img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
}

.category-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-body h2 {
  margin: 0 0 10px;
  font-size: 25px;
}

.category-body p {
  margin: 0 0 18px;
  color: #64748b;
}

.category-body span {
  width: fit-content;
}

.rank-and-picks {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.2fr);
  gap: 30px;
}

.rank-panel,
.pick-panel {
  min-width: 0;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

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

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.rank-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 900;
}

.rank-copy h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.rank-copy p {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 14px;
}

.page-main {
  padding-top: 68px;
}

.page-hero {
  padding: 82px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.28), transparent 32%), rgba(15, 23, 42, 0.12);
}

.page-hero > div {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 760px;
  margin: 18px 0 12px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #e0f2fe;
  font-size: 20px;
}

.filter-panel,
.search-panel {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-input,
.search-panel input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  color: #0f172a;
  background: #f8fafc;
}

.filter-input:focus,
.search-panel input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.filter-chips button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  font-weight: 800;
  cursor: pointer;
}

.search-panel button {
  border: 0;
  cursor: pointer;
}

.detail-hero {
  position: relative;
  padding: 96px 24px 72px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #0891b2 55%, #0f766e);
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.18), transparent 34%), rgba(15, 23, 42, 0.18);
}

.detail-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: #e0f2fe;
  font-weight: 700;
}

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

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

.detail-poster {
  overflow: hidden;
  min-height: 460px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.34);
}

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

.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 22px;
  color: #e0f2fe;
  font-size: 21px;
}

.detail-tags span,
.detail-facts span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-facts {
  margin-top: 20px;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.48), rgba(37, 99, 235, 0.28));
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

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

.player-icon {
  font-size: 24px;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.detail-text-grid article {
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.detail-text-grid h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-text-grid p {
  margin: 0;
  color: #475569;
}

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

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

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

.site-footer p {
  max-width: 420px;
  color: #94a3b8;
}

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

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

  .rank-and-picks,
  .wide-rank-list {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: grid;
  }

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

  .hero-poster {
    min-height: 280px;
  }

  .hero-poster img {
    min-height: 280px;
  }

  .hero-category-row,
  .category-grid,
  .large-category-grid,
  .movie-grid,
  .small-grid,
  .dense-grid,
  .detail-layout,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .search-panel,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-poster,
  .detail-poster img {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    padding: 0 16px;
  }

  .brand-title {
    font-size: 16px;
  }

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

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

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .ghost-button {
    margin-left: 0;
  }

  .rank-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}
