:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #10b981;
  --brand-dark: #047857;
  --brand-soft: #d1fae5;
  --teal: #0f766e;
  --cyan: #0891b2;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #059669 0%, #0d9488 55%, #0891b2 100%);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.26);
}

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

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

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #064e3b;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 25px;
  letter-spacing: 0.04em;
}

.logo-text small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  border-radius: 999px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

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

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

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(16, 185, 129, 0.35), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  height: 100%;
  gap: 48px;
  color: #ffffff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 14px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

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

.hero-meta span,
.hero-tags span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  padding: 6px 12px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--teal));
  box-shadow: 0 16px 30px rgba(16, 185, 129, 0.3);
}

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

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

.ghost-btn.dark {
  border-color: var(--line);
  color: var(--ink);
  background: #ffffff;
}

.small-btn {
  min-height: 44px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span,
.card-play {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.9);
}

.hero-poster span {
  inset: 50% auto auto 50%;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
  font-size: 28px;
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  padding: 0;
}

.hero-dot.active {
  width: 34px;
  background: var(--brand);
}

.feature-strip {
  position: relative;
  z-index: 3;
  margin-top: -28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-grid div,
.search-panel,
.story-card,
.rank-panel,
.category-overview-card {
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.feature-grid div {
  padding: 24px;
  text-align: center;
}

.feature-grid strong {
  display: block;
  color: var(--brand-dark);
  font-size: 34px;
}

.feature-grid span {
  color: var(--muted);
  font-weight: 700;
}

.section-block,
.search-panel,
.category-overview-grid,
.content-section {
  padding: 72px 0;
}

.search-panel {
  margin-top: 64px;
  padding: 42px;
}

.section-title {
  margin-bottom: 30px;
}

.section-title.centered {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-title span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.section-title.light,
.section-title.light span,
.section-title.light p {
  color: #ffffff;
}

.search-box {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.search-box input,
.filter-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  min-height: 48px;
  color: var(--ink);
  background: #ffffff;
  outline: 0;
}

.search-box input:focus,
.filter-panel input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.global-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.search-result-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.search-result-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.search-result-card div {
  padding: 14px;
}

.search-result-card strong {
  display: block;
  margin-bottom: 4px;
}

.search-result-card span {
  color: var(--muted);
  font-size: 13px;
}

.movie-grid,
.category-grid,
.category-overview-grid,
.rank-movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.15);
  transform: translateY(-7px);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e2e8f0;
}

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

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

.card-play {
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-type {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 14px;
}

.card-body h2,
.card-body h3 {
  min-height: 46px;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.42;
}

.card-body h2 a:hover,
.card-body h3 a:hover {
  color: var(--brand-dark);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.card-body p {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.tag-row span {
  color: var(--brand-dark);
  background: var(--brand-soft);
  backdrop-filter: none;
}

.category-band {
  padding: 72px 0;
  background: linear-gradient(120deg, #064e3b 0%, #0f766e 55%, #155e75 100%);
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.category-tile {
  min-height: 240px;
  padding: 26px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  transition: transform 0.24s ease, background 0.24s ease;
}

.category-tile:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px);
}

.category-icon {
  display: block;
  font-size: 34px;
}

.category-tile strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
}

.category-tile em {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 14px;
}

.tile-thumbs {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
}

.tile-thumbs img {
  width: 46px;
  height: 62px;
  margin-left: -12px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  object-fit: cover;
}

.two-column-layout,
.rank-page-layout,
.movie-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

.rank-panel {
  padding: 26px;
}

.compact-title {
  margin-bottom: 16px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 10px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: var(--brand-soft);
  transform: translateX(3px);
}

.rank-no {
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 900;
}

.rank-item img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-text {
  min-width: 0;
}

.rank-text strong,
.rank-text em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.rank-score {
  color: #f59e0b;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 118, 110, 0.72)),
    linear-gradient(120deg, #064e3b, #155e75);
}

.category-hero {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 118, 110, 0.62)),
    var(--hero-cover) center / cover;
}

.rank-hero {
  background:
    radial-gradient(circle at 70% 20%, rgba(16, 185, 129, 0.35), transparent 28%),
    linear-gradient(120deg, #020617 0%, #064e3b 55%, #155e75 100%);
}

.small-hero {
  padding: 90px 0;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.category-cover-set {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-set img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.large-icon {
  font-size: 38px;
}

.category-overview-card h2 {
  margin: 8px 0;
  font-size: 27px;
}

.category-overview-card p {
  color: var(--muted);
}

.text-link {
  min-height: 40px;
  padding: 0 0;
  color: var(--brand-dark);
  background: transparent;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  background: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.card-wide {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
}

.card-wide .card-cover {
  aspect-ratio: auto;
  min-height: 200px;
}

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

.sticky-panel {
  position: sticky;
  top: 98px;
  align-self: start;
}

.detail-shell {
  position: relative;
  overflow: hidden;
  padding: 34px 0 58px;
  color: #ffffff;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(28px);
  opacity: 0.28;
  transform: scale(1.08);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.96));
}

.detail-layout {
  position: relative;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.player-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  box-shadow: 0 20px 40px rgba(8, 145, 178, 0.34);
  font-size: 34px;
}

.play-overlay strong {
  font-size: 18px;
}

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

.movie-detail-grid {
  align-items: start;
  margin-top: 34px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.28);
}

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

.detail-copy {
  color: #ffffff;
}

.lead-text {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

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

.detail-meta div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-meta dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 800;
}

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

.story-card {
  padding: 32px;
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.story-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

.site-footer {
  padding-top: 58px;
  color: #cbd5e1;
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
}

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

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

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

.site-footer a:hover {
  color: #6ee7b7;
}

.footer-bottom {
  margin-top: 38px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 20px;
  text-align: center;
  color: #64748b;
}

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

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

  .two-column-layout,
  .rank-page-layout,
  .movie-detail-grid {
    grid-template-columns: 1fr;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    min-height: 64px;
  }

  .logo-text strong {
    font-size: 20px;
  }

  .hero {
    height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

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

  .hero p,
  .page-hero p,
  .lead-text {
    font-size: 17px;
  }

  .hero-poster {
    max-width: 220px;
    transform: none;
  }

  .feature-grid,
  .movie-grid,
  .compact-grid,
  .catalog-grid,
  .category-grid,
  .category-overview-grid,
  .rank-movie-grid,
  .global-results,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-panel {
    padding: 26px;
  }

  .search-box {
    flex-direction: column;
  }

  .category-overview-card,
  .card-wide {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 20px;
  }
}

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

  .hero {
    height: 760px;
  }

  .feature-grid,
  .movie-grid,
  .compact-grid,
  .catalog-grid,
  .category-grid,
  .category-overview-grid,
  .rank-movie-grid,
  .global-results,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-wide .card-cover {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

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

  .rank-score {
    display: none;
  }

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