:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-cyan: #06b6d4;
  --color-teal: #0d9488;
  --color-red: #ef4444;
  --color-gold: #f59e0b;
  --color-dark: #0f172a;
  --color-body: #111827;
  --color-muted: #64748b;
  --color-soft: #f8fafc;
  --color-line: #e2e8f0;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.09);
  --shadow-hover: 0 28px 60px rgba(15, 23, 42, 0.16);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-body);
  background: #f9fafb;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

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

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

.brand-name {
  font-size: 21px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  font-size: 16px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #334155;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: #eef2ff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #1e293b;
  border-radius: 99px;
}

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

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.22), transparent 26%), radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.12), transparent 26%), radial-gradient(circle at 50% 100%, rgba(15, 23, 42, 0.24), transparent 46%);
}

.hero::after {
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
}

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

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 64px;
  min-height: 620px;
  padding: 80px 0 92px;
}

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

.hero-kicker,
.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.section-kicker,
.eyebrow {
  color: var(--color-primary);
  background: #eff6ff;
  border-color: #dbeafe;
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: #bff4ff;
}

.hero p {
  max-width: 610px;
  margin: 0;
  color: #e0f2fe;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-tags,
.detail-tags,
.tag-row,
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags a,
.detail-tags span,
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags a {
  padding: 8px 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

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

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

.btn-light {
  color: var(--color-primary);
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
}

.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.24);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 34px;
}

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

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

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

.hero-poster {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 420px;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.36);
  box-shadow: 0 36px 86px rgba(15, 23, 42, 0.34);
  transform: perspective(900px) rotateY(-4deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: perspective(900px) rotateY(0) scale(1.02);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.4);
}

.hero-poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.82));
}

.hero-poster-info {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  display: grid;
  gap: 8px;
}

.hero-poster-info em {
  width: max-content;
  padding: 6px 10px;
  color: #fff;
  background: var(--color-red);
  border-radius: 8px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.hero-poster-info strong {
  color: #fff;
  font-size: 23px;
  line-height: 1.25;
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.hero-dot.is-active {
  width: 30px;
  background: #fff;
}

.section {
  padding: 68px 0;
}

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

.section-heading h2,
.page-title h1,
.detail-title {
  margin: 10px 0 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-action {
  color: var(--color-primary);
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(37, 99, 235, 0.26);
  box-shadow: var(--shadow-hover);
  transform: translateY(-7px);
}

.movie-card-link,
.card-body {
  display: grid;
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dbeafe;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.68));
  transition: opacity 0.2s ease;
}

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

.poster-badge,
.poster-time,
.poster-play {
  position: absolute;
  z-index: 1;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: #fff;
  background: var(--color-red);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.poster-time {
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.poster-play {
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

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

.card-title {
  color: #0f172a;
  font-size: 17px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title {
  color: var(--color-primary);
}

.card-desc {
  color: var(--color-muted);
  font-size: 14px;
}

.chip {
  padding: 5px 9px;
  color: #475569;
  background: #f1f5f9;
}

.line-1,
.line-2,
.line-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.line-1 {
  -webkit-line-clamp: 1;
}

.line-2 {
  -webkit-line-clamp: 2;
}

.line-3 {
  -webkit-line-clamp: 3;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 28px;
  color: #fff;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  box-shadow: var(--shadow-card);
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.category-card:nth-child(3n + 3) {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -50px;
  bottom: -50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 25px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  font-weight: 900;
}

.rank-item img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  background: #dbeafe;
}

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

.rank-copy strong {
  overflow: hidden;
  color: #0f172a;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em,
.rank-views {
  color: var(--color-muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero,
.detail-top {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0891b2 55%, #0d9488);
}

.page-hero .container {
  padding: 70px 0;
}

.page-title {
  max-width: 820px;
}

.page-title h1 {
  color: #fff;
}

.page-title p {
  margin: 16px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #bfdbfe;
  font-size: 14px;
}

.breadcrumb a {
  color: #fff;
  font-weight: 700;
}

.detail-top .container {
  padding: 54px 0 60px;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.32);
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.32);
}

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

.detail-title {
  color: #fff;
}

.detail-lead {
  margin: 18px 0 20px;
  max-width: 760px;
  color: #dbeafe;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
}

.detail-meta span,
.detail-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.panel {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.panel-body {
  padding: 28px;
}

.panel h2,
.panel h3 {
  margin: 0 0 16px;
  color: #0f172a;
}

.article-copy p {
  margin: 0 0 16px;
  color: #334155;
  font-size: 16px;
}

.player-section {
  padding: 52px 0 22px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.28);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 4px;
  color: var(--color-primary);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.34);
  font-size: 30px;
}

.player-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: grid;
  gap: 6px;
  text-align: left;
}

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

.player-caption span {
  color: #dbeafe;
}

.search-panel {
  margin-top: -34px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 160px 130px;
  gap: 14px;
}

.search-form input,
.search-form select {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
}

.search-form input:focus,
.search-form select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-summary {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--color-muted);
}

.compact-list {
  column-width: 250px;
  column-gap: 24px;
}

.compact-list a {
  display: block;
  break-inside: avoid;
  margin: 0 0 10px;
  padding: 11px 13px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-weight: 650;
}

.compact-list a:hover {
  color: var(--color-primary);
  border-color: #bfdbfe;
}

.side-card {
  position: sticky;
  top: 96px;
}

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

.side-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.side-links a:hover {
  color: var(--color-primary);
  background: #eff6ff;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 54px 0 42px;
}

.footer-brand {
  color: #fff;
  font-size: 19px;
}

.site-footer p {
  margin: 16px 0 0;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 17px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 18px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero-grid,
  .detail-grid,
  .content-layout,
  .rank-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 36px;
    min-height: auto;
    padding: 58px 0 92px;
  }

  .hero-poster {
    min-height: 360px;
    transform: none;
  }

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

  .side-card {
    position: static;
  }

  .search-form {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-card);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 46px;
    padding: 0 12px;
    border-radius: 12px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: #eff6ff;
  }

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

  .hero h1 {
    letter-spacing: -0.045em;
  }

  .hero-stats {
    gap: 20px;
  }

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

  .section {
    padding: 48px 0;
  }

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

  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 16px;
  }

  .card-body {
    padding: 14px;
  }

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

  .rank-views {
    display: none;
  }

  .rank-num {
    width: 38px;
    height: 38px;
  }

  .rank-item img {
    width: 70px;
    height: 48px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .panel-body {
    padding: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}
