:root {
  color-scheme: light;
  --emerald: #047857;
  --emerald-dark: #064e3b;
  --emerald-soft: #d1fae5;
  --gold: #facc15;
  --gold-dark: #ca8a04;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.is-menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.96), rgba(4, 120, 87, 0.95));
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(6, 78, 59, 0.24);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.site-logo {
  font-size: clamp(18px, 2vw, 24px);
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-link {
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.88);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.13);
}

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

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-link {
  width: 100%;
  padding: 13px 16px;
  color: rgba(255, 255, 255, 0.92);
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.13);
}

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

.hero-shell {
  position: relative;
  min-height: min(720px, calc(100vh - 72px));
  margin: 26px 0 34px;
  overflow: hidden;
  border-radius: 34px;
  color: #ffffff;
  background: #052e2b;
  box-shadow: 0 32px 90px rgba(6, 78, 59, 0.28);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 0.7s ease, transform 1.1s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(250, 204, 21, 0.35), transparent 26%),
    linear-gradient(90deg, rgba(2, 44, 34, 0.96) 0%, rgba(6, 78, 59, 0.78) 45%, rgba(6, 78, 59, 0.24) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.45));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(680px, 88%);
  padding: clamp(34px, 7vw, 86px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--emerald);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content h1 {
  font-size: clamp(42px, 8vw, 82px);
  text-shadow: 0 16px 45px rgba(0, 0, 0, 0.3);
}

.hero-summary {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-meta,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span {
  padding: 7px 12px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-button,
.secondary-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: #064e3b;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  box-shadow: 0 14px 35px rgba(234, 179, 8, 0.35);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(234, 179, 8, 0.45);
}

.primary-button.small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.secondary-button {
  min-height: 48px;
  padding: 0 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.secondary-button.light,
.secondary-button.plain {
  color: var(--emerald-dark);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(4, 120, 87, 0.16);
}

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

.hero-controls {
  position: absolute;
  left: clamp(34px, 7vw, 86px);
  bottom: 34px;
  z-index: 5;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dot.is-active {
  width: 38px;
  background: var(--gold);
}

.home-search-wrap,
.filter-panel,
.page-hero,
.category-overview-card,
.rank-page-panel,
.story-card,
.player-card,
.detail-info,
.highlight-card,
.rank-panel {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  border: 1px solid rgba(4, 120, 87, 0.09);
}

.home-search-wrap {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  margin-bottom: 42px;
}

.home-search-wrap h2,
.section-heading h2,
.highlight-card h2,
.rank-panel h2,
.story-card h2,
.category-overview-head h2,
.rank-page-panel h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.home-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--ink);
  background: transparent;
}

.home-search input {
  padding: 0 14px;
}

.home-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #ffffff;
  font-weight: 900;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  cursor: pointer;
}

.section-block {
  margin: 54px 0;
}

.section-block.tight-top {
  margin-top: 26px;
}

.section-heading,
.category-overview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.text-link {
  color: var(--emerald);
  font-size: 15px;
}

.text-link:hover {
  color: var(--gold-dark);
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  background: var(--emerald-dark);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.76) 100%);
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-tile strong {
  bottom: 56px;
  font-size: 21px;
}

.category-tile em {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--emerald-dark);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.58) 100%);
}

.year-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #064e3b;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

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

.card-meta,
.card-desc,
.category-overview-head p,
.page-hero p,
.highlight-card p,
.story-card p,
.detail-one-line,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.card-meta {
  margin: 8px 0 8px;
  font-size: 13px;
}

.card-desc {
  margin: 0 0 12px;
  font-size: 14px;
}

.tag-row span {
  padding: 6px 9px;
  color: var(--emerald-dark);
  background: var(--emerald-soft);
}

.split-block {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  margin: 58px 0;
}

.highlight-card {
  padding: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 10%, rgba(250, 204, 21, 0.32), transparent 30%),
    linear-gradient(135deg, var(--emerald-dark), var(--emerald));
}

.highlight-card p {
  color: rgba(255, 255, 255, 0.82);
}

.quick-links a {
  padding: 8px 12px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.12);
}

.rank-panel,
.rank-page-panel {
  padding: 24px;
}

.rank-row {
  display: grid;
  grid-template-columns: 38px 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  transition: 0.25s ease;
}

.rank-row:hover {
  background: #f0fdf4;
}

.rank-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  color: #064e3b;
  background: var(--gold);
  font-weight: 900;
}

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

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  font-weight: 900;
}

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

.rank-score {
  color: var(--emerald);
  font-weight: 900;
}

.page-hero {
  margin: 28px 0 30px;
  padding: clamp(36px, 7vw, 76px);
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.34), transparent 28%),
    linear-gradient(135deg, var(--emerald-dark), var(--emerald));
}

.page-hero h1 {
  max-width: 780px;
  font-size: clamp(38px, 6vw, 66px);
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.soft-hero,
.search-hero,
.ranking-hero,
.category-hero {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.filter-panel {
  padding: 20px;
  margin: 22px 0;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
}

.filter-grid span {
  color: var(--emerald-dark);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 15px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.filter-empty {
  grid-column: 1 / -1;
  padding: 38px;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.overview-list {
  display: grid;
  gap: 24px;
  margin-bottom: 52px;
}

.category-overview-card {
  padding: 24px;
}

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

.compact-card .card-desc {
  display: none;
}

.detail-shell {
  margin-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--emerald);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
  gap: 24px;
}

.player-card,
.detail-info,
.story-card {
  padding: 18px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-element,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-element {
  z-index: 1;
  object-fit: contain;
  background: #020617;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #ffffff;
  background: #020617;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  object-fit: cover;
  filter: saturate(1.1);
}

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

.cover-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(250, 204, 21, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: var(--emerald-dark);
  background: linear-gradient(135deg, #fde047, #f59e0b);
  font-size: 34px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.detail-one-line {
  margin: 18px 0;
  font-size: 17px;
}

.detail-meta span {
  padding: 8px 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
}

.large-tags {
  margin: 18px 0 22px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 28px 0;
}

.story-card p {
  margin-bottom: 0;
  font-size: 16px;
}

.prev-next {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.prev-next a {
  padding: 18px;
  border-radius: 18px;
  color: var(--emerald-dark);
  font-weight: 800;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(4, 120, 87, 0.14);
}

.prev-next a:last-child {
  text-align: right;
}

.related-block {
  margin-bottom: 58px;
}

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

.site-footer {
  margin-top: 70px;
  color: rgba(255, 255, 255, 0.8);
  background: #052e2b;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 30px;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 18px;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 9px 0;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[hidden] {
  display: none !important;
}

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

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

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

  .menu-button {
    display: block;
  }

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

  .hero-shell {
    min-height: 620px;
    border-radius: 26px;
  }

  .hero-content {
    width: 100%;
    padding: 32px;
  }

  .home-search-wrap,
  .split-block,
  .detail-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .prev-next {
    grid-template-columns: 1fr;
  }

  .prev-next a:last-child {
    text-align: left;
  }
}

@media (max-width: 560px) {
  main,
  .header-inner,
  .mobile-nav,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .hero-shell {
    margin-top: 12px;
    min-height: 560px;
  }

  .hero-content {
    padding: 24px;
  }

  .hero-controls {
    left: 24px;
    bottom: 24px;
  }

  .home-search,
  .section-heading,
  .category-overview-head {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-grid,
  .category-grid,
  .movie-grid,
  .movie-grid.wide-grid,
  .compact-grid,
  .compact-related {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 34px 52px 1fr;
  }

  .rank-score {
    display: none;
  }

  .page-hero {
    padding: 34px 24px;
    border-radius: 22px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
