* {
  box-sizing: border-box;
}

:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --yellow: #facc15;
  --orange: #fb923c;
  --red: #ef4444;
  --green: #10b981;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(135deg, #f8fafc 0%, #eef7ff 45%, #f0fdfa 100%);
  line-height: 1.6;
}

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

button,
input {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--teal));
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.28);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  color: var(--white);
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

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

.main-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover,
.main-nav a.active {
  color: #fef08a;
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 250px;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  border-radius: 12px 0 0 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-800);
}

.header-search button {
  border: 0;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 0 12px 12px 0;
  color: #1e40af;
  background: var(--yellow);
  font-weight: 850;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.header-search button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
}

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

.mobile-nav a {
  display: block;
  padding: 10px 0;
}

.mobile-nav .header-search {
  min-width: 0;
  margin-bottom: 10px;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--blue), var(--cyan), var(--teal));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.22;
  background: var(--white);
  animation: glow 5s ease-in-out infinite alternate;
}

.hero::before {
  width: 320px;
  height: 320px;
  left: 7%;
  top: 7%;
}

.hero::after {
  width: 420px;
  height: 420px;
  right: 4%;
  bottom: 4%;
  background: #fde68a;
  animation-delay: 0.9s;
}

@keyframes glow {
  from {
    transform: scale(0.94);
  }

  to {
    transform: scale(1.08);
  }
}

.hero-slider {
  position: relative;
  z-index: 1;
  min-height: 650px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.18)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-content {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 42px;
  padding: 68px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 750;
  color: #fef08a;
}

.hero h1 {
  margin: 22px 0 18px;
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-tags,
.meta-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

.hero-tags span,
.pill,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: var(--white);
}

.hero .btn-primary {
  background: var(--yellow);
  color: #1e3a8a;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-panel {
  border-radius: var(--radius-2xl);
  padding: 22px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(18px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05));
}

.hero-panel h2 {
  margin: 18px 0 6px;
  font-size: 1.45rem;
}

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

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

.hero-dot.is-active {
  background: var(--yellow);
}

.section {
  padding: 66px 0;
}

.section-tinted {
  background: linear-gradient(90deg, #fff7ed, #fee2e2);
}

.section-green {
  background: linear-gradient(90deg, #ecfdf5, #ccfbf1);
}

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

.eyebrow {
  display: inline-flex;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 4px 0 0;
  color: var(--gray-800);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.15;
}

.section-desc {
  max-width: 680px;
  color: var(--gray-600);
  margin: 8px 0 0;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: radial-gradient(circle at 30% 20%, #67e8f9, transparent 32%), linear-gradient(135deg, #1d4ed8, #06b6d4, #14b8a6);
}

.poster-frame.wide {
  aspect-ratio: 16 / 9;
}

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

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

.poster-frame img.image-missing,
.hero-panel img.image-missing {
  opacity: 0;
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  min-height: 46%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: scale(1);
}

.card-body {
  padding: 18px;
}

.card-badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.badge {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  color: var(--white);
  font-weight: 750;
}

.badge-blue {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.badge-green {
  background: linear-gradient(90deg, #059669, var(--green));
}

.badge-red {
  background: linear-gradient(90deg, #f97316, var(--red));
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card p {
  margin: 0;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.feature-card .poster-frame {
  aspect-ratio: 16 / 11;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--gray-700);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  transition: transform 0.2s ease, color 0.2s ease;
}

.category-chip:hover,
.category-chip.active {
  transform: translateY(-2px);
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

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

.rank-no {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

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

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.rank-item p {
  margin: 0;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  padding: 64px 0;
  color: var(--white);
  background: linear-gradient(120deg, var(--slate-900), #155e75, var(--teal));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.1;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
}

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

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 42px 0 0;
}

.pager a,
.pager span {
  min-width: 44px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

.pager a:hover {
  color: var(--white);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.2), rgba(15, 23, 42, 0.66)), linear-gradient(0deg, rgba(2, 6, 23, 0.75), rgba(2, 6, 23, 0.2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 2rem;
  box-shadow: 0 18px 45px rgba(6, 182, 212, 0.34);
}

.detail-card,
.side-card,
.content-card {
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-card {
  margin-top: 22px;
  padding: 26px;
}

.detail-card h1 {
  margin: 12px 0;
  color: var(--gray-900);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.detail-lead {
  color: var(--gray-600);
  font-size: 1.12rem;
  font-style: italic;
}

.detail-text {
  color: var(--gray-700);
  font-size: 1rem;
}

.tag-list {
  margin-top: 18px;
}

.tag-list span {
  color: var(--gray-700);
  background: var(--gray-100);
}

.review-card {
  margin-top: 22px;
  padding: 26px;
}

.review-card h2,
.side-card h2,
.content-card h2 {
  margin: 0 0 15px;
  color: var(--gray-900);
}

.side-card {
  padding: 20px;
  position: sticky;
  top: 90px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.compact-card:hover {
  background: var(--gray-100);
}

.compact-card .poster-frame {
  border-radius: 13px;
  aspect-ratio: 16 / 10;
}

.compact-card h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.compact-card p {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.86rem;
}

.content-card {
  padding: 26px;
}

.content-card p,
.content-card li {
  color: var(--gray-700);
}

.content-card + .content-card {
  margin-top: 22px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  margin-bottom: 30px;
}

.search-panel input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 13px 15px;
  outline: 0;
}

.search-panel button {
  border: 0;
}

.empty-state {
  padding: 42px;
  border-radius: 22px;
  text-align: center;
  color: var(--gray-600);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.site-footer {
  margin-top: 70px;
  padding: 48px 0 28px;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #67e8f9;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer a:hover {
  color: #67e8f9;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1024px) {
  .main-nav,
  .site-header > .container > .header-inner > .header-search {
    display: none;
  }

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

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

  .hero-panel {
    max-width: 360px;
  }

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 1.25rem;
  }

  .hero,
  .hero-slider,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding: 42px 0 70px;
  }

  .hero-panel {
    max-width: none;
  }

  .hero-actions,
  .section-head,
  .search-panel {
    display: block;
  }

  .hero-actions .btn,
  .search-panel .btn {
    width: 100%;
    margin-top: 10px;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 88px minmax(0, 1fr);
    gap: 10px;
  }

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

  .compact-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
