* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 48%, #f8fafc 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px min(36px, 5vw);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(18px);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981, #34d399 45%, #a7f3d0);
  color: #052e16;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.35);
}

.brand-text strong,
.brand-text em {
  display: block;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.brand-text em {
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 12px;
  font-style: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  color: #dbeafe;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #34d399;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 11px;
}

.hero {
  position: relative;
  min-height: 690px;
  background: #020617;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  min-height: 690px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 96px min(7vw, 96px) 160px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-content {
  max-width: 720px;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p,
.detail-copy .lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #052e16;
  box-shadow: 0 16px 35px rgba(16, 185, 129, 0.28);
}

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

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.primary-btn.full {
  width: 100%;
}

.hero-panel {
  position: absolute;
  left: min(7vw, 96px);
  right: min(7vw, 96px);
  bottom: 34px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 18px;
  align-items: stretch;
}

.hero-search,
.hero-dots {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.28);
}

.hero-search label {
  display: block;
  margin: 0 0 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

.search-input,
.type-filter {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 15px;
  padding: 13px 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.search-input:focus,
.type-filter:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.hero-dots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hero-dot {
  overflow: hidden;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 8px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
}

.hero-dot.active,
.hero-dot:hover {
  border-color: rgba(52, 211, 153, 0.75);
  background: rgba(16, 185, 129, 0.18);
}

.hero-dot img {
  width: 56px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-dot span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 800;
}

main,
.page-main,
.detail-main {
  position: relative;
}

section.container {
  padding: 64px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-head a {
  color: #059669;
  font-weight: 900;
}

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

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

.category-tile {
  min-height: 210px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.14);
}

.category-tile span {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.category-tile strong {
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.tile-images {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.tile-images img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
}

.aside-card {
  position: sticky;
  top: 92px;
  border-radius: 28px;
  padding: 24px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22);
}

.aside-card h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.aside-card p {
  color: #cbd5e1;
  line-height: 1.7;
}

.aside-card ol {
  list-style: none;
  padding: 0;
  margin: 20px 0 22px;
}

.aside-card li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.aside-card li a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  color: #e2e8f0;
}

.aside-card li span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.aside-card li em {
  color: #34d399;
  font-style: normal;
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.15);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: #e2e8f0;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #052e16;
  background: linear-gradient(135deg, #fef08a, #34d399);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.22);
}

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

.movie-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-card h2 {
  margin: 9px 0 8px;
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.movie-card h2 a:hover {
  color: #059669;
}

.movie-card p {
  min-height: 63px;
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.movie-card.compact .movie-card-body {
  padding: 14px;
}

.movie-card.compact h2 {
  font-size: 16px;
}

.movie-card.compact p {
  min-height: 58px;
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #047857;
  background: #d1fae5;
  font-size: 12px;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin: 0 0 24px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.page-hero {
  margin-top: 34px;
  border-radius: 34px;
  padding: 72px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(52, 211, 153, 0.45), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b 60%, #065f46);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.small-hero {
  min-height: 270px;
}

.ranking-hero {
  min-height: 320px;
  background: radial-gradient(circle at 70% 10%, rgba(250, 204, 21, 0.35), transparent 28%), linear-gradient(135deg, #020617, #134e4a 60%, #047857);
}

.detail-hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 46px;
  align-items: center;
  padding: 86px 0;
}

.detail-poster img {
  width: 300px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-weight: 800;
}

.breadcrumbs a:hover {
  color: #34d399;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.12);
}

.detail-tags {
  margin: 0 0 28px;
}

.player-section {
  padding-top: 46px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.play-trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.05), rgba(2, 6, 23, 0.35));
  cursor: pointer;
}

.play-trigger span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: #052e16;
  background: linear-gradient(135deg, #ffffff, #34d399);
  font-size: 36px;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.32);
}

.play-trigger.is-hidden {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.detail-article,
.detail-side {
  border-radius: 28px;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.detail-article p {
  margin: 0 0 26px;
  color: #334155;
  font-size: 17px;
  line-height: 1.95;
}

.detail-side dl {
  margin: 0;
}

.detail-side dt {
  margin-top: 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.detail-side dd {
  margin: 5px 0 0;
  color: #0f172a;
  font-weight: 800;
}

.detail-side a {
  color: #059669;
}

.site-footer {
  margin-top: 80px;
  padding: 48px min(36px, 5vw) 26px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.site-footer a {
  margin-right: 16px;
  color: #34d399;
  font-weight: 800;
}

.copyright {
  width: min(1180px, 100%);
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 13px;
}

.is-filtered-out {
  display: none;
}

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

  .spotlight-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .aside-card {
    position: static;
  }

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

  .hero-dots {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

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

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0 4px;
  }

  .site-nav.open {
    display: flex;
  }

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

  .hero-slide {
    padding: 78px 24px 260px;
  }

  .hero-panel {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }

  .movie-grid,
  .movie-grid.three,
  .movie-grid.all-list,
  .category-grid,
  .category-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster img {
    width: min(270px, 80vw);
  }

  .page-hero {
    padding: 38px 24px;
  }
}

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

  .brand-text em {
    display: none;
  }

  .movie-grid,
  .movie-grid.three,
  .movie-grid.all-list,
  .category-grid,
  .category-grid.wide {
    grid-template-columns: 1fr;
  }

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

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

  .hero-dot {
    min-width: 210px;
  }

  .detail-article,
  .detail-side {
    padding: 22px;
  }
}
