:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0d9488;
  --mint: #ecfdf5;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #d9f4ea;
  --card: #ffffff;
  --soft: #f8fffc;
  --shadow: 0 24px 70px rgba(15, 118, 110, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(16, 185, 129, 0.16), transparent 28rem),
    linear-gradient(180deg, #f8fffc 0%, #ffffff 28rem, #f7fbf9 100%);
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(5, 150, 105, 0.12);
  backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--emerald), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.26);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #334155;
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  padding: 9px 0;
}

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

.desktop-nav a:hover {
  color: var(--emerald);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--mint);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--emerald);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: var(--mint);
  color: var(--emerald);
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(125deg, rgba(236, 253, 245, 0.98), rgba(240, 253, 250, 0.92)),
    radial-gradient(circle at top right, rgba(13, 148, 136, 0.25), transparent 36rem);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.44;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(5, 150, 105, 0.22) 1px, transparent 0),
    linear-gradient(135deg, rgba(5, 150, 105, 0.07), transparent 48%);
  background-size: 28px 28px, auto;
}

.hero-stage {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 58px;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
}

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

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.065em;
  background: linear-gradient(120deg, #064e3b, var(--teal), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 620px;
  margin: 26px 0 0;
  color: #334155;
  font-size: 19px;
  line-height: 1.85;
}

.hero-tags,
.detail-tags,
.tag-row,
.movie-meta,
.filter-row,
.page-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}

.hero-actions {
  margin-top: 30px;
}

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 16px 34px rgba(5, 150, 105, 0.24);
}

.ghost-btn {
  color: var(--emerald-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(5, 150, 105, 0.16);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(5, 150, 105, 0.18);
}

.hero-image {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #ccfbf1, #ecfdf5);
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 120, 87, 0.34));
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(5, 150, 105, 0.15);
  box-shadow: 0 16px 42px rgba(15, 118, 110, 0.12);
  backdrop-filter: blur(16px);
}

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

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--emerald);
  background: #ffffff;
  font-size: 28px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.22);
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

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

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.page-hero h1,
.detail-article h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.split-copy p,
.category-card-large p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.search-panel {
  margin: 0 auto 32px;
  padding: 18px;
  border: 1px solid rgba(5, 150, 105, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(15, 118, 110, 0.09);
}

.search-box input {
  width: 100%;
  height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(5, 150, 105, 0.15);
  border-radius: 18px;
  outline: none;
  color: var(--ink);
  background: #ffffff;
}

.search-box input:focus {
  border-color: rgba(5, 150, 105, 0.55);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.filter-row {
  margin-top: 14px;
}

.filter-pill {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #047857;
  background: rgba(5, 150, 105, 0.09);
  cursor: pointer;
  font-weight: 800;
}

.filter-pill.is-active,
.filter-pill:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.empty-state {
  display: none;
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(5, 150, 105, 0.11);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 118, 110, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(15, 118, 110, 0.16);
}

.movie-card.is-hidden {
  display: none;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ccfbf1, #ecfdf5);
}

.movie-poster img,
.rank-poster img,
.side-poster img,
.category-panel img,
.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster img,
.movie-card:hover .rank-poster img,
.category-panel:hover img,
.category-card-large:hover img {
  transform: scale(1.08);
}

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.movie-info {
  padding: 18px;
}

.movie-meta {
  gap: 7px;
  margin-bottom: 10px;
}

.movie-info h3,
.rank-copy h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-info h3 a:hover,
.rank-copy h3 a:hover,
.category-card-large h2 a:hover {
  color: var(--emerald);
}

.movie-info p,
.rank-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tag-row {
  margin-top: 14px;
  gap: 7px;
}

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

.category-panel {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: 28px;
  color: #ffffff;
  isolation: isolate;
  box-shadow: var(--shadow);
}

.category-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(4, 120, 87, 0.82));
}

.category-panel img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.category-panel span {
  font-size: 24px;
  font-weight: 950;
}

.category-panel p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 44px;
}

.split-copy {
  position: sticky;
  top: 110px;
  padding: 32px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.94));
  box-shadow: var(--shadow);
}

.split-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px 48px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.full-ranking .ranking-item {
  grid-template-columns: 108px 58px 1fr;
}

.rank-poster {
  overflow: hidden;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: linear-gradient(135deg, #ccfbf1, #ecfdf5);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.24);
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 44px auto 0;
  padding: 62px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at right, rgba(20, 184, 166, 0.24), transparent 32rem);
  box-shadow: var(--shadow);
}

.slim-hero {
  text-align: center;
}

.page-actions {
  margin-top: 26px;
}

.category-list-large {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(5, 150, 105, 0.12);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 118, 110, 0.08);
}

.category-card-image {
  overflow: hidden;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  background: linear-gradient(135deg, #ccfbf1, #ecfdf5);
}

.category-card-large h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 950;
}

.text-link {
  min-height: auto;
  margin-top: 6px;
  padding: 0;
  color: var(--emerald);
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

.detail-main,
.detail-side {
  min-width: 0;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.42));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 22px 50px rgba(5, 150, 105, 0.35);
  font-size: 34px;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: none;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 14px;
}

.player-message.is-visible {
  display: block;
}

.detail-article {
  margin-top: 26px;
  padding: 32px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 118, 110, 0.08);
}

.detail-article .lead {
  margin: 18px 0 0;
  color: #334155;
  font-size: 20px;
  line-height: 1.85;
}

.detail-tags {
  margin: 22px 0 24px;
}

.detail-article h2 {
  margin: 30px 0 12px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.detail-article p {
  color: #475569;
  line-height: 1.95;
}

.detail-side {
  position: sticky;
  top: 110px;
  padding: 18px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.side-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #ccfbf1, #ecfdf5);
}

.movie-data {
  margin: 18px 0;
}

.movie-data div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

.movie-data dt {
  color: var(--muted);
  font-weight: 800;
}

.movie-data dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.wide-btn {
  width: 100%;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #ecfdf5, #ffffff);
  border-top: 1px solid rgba(5, 150, 105, 0.12);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  color: #334155;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--emerald);
}

.copyright {
  margin: 0;
  font-size: 14px;
}

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

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

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

  .desktop-nav {
    gap: 18px;
    font-size: 14px;
  }
}

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

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

  .hero {
    min-height: auto;
    padding: 42px 0 96px;
  }

  .hero-stage {
    min-height: 780px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-image {
    order: -1;
    max-height: 420px;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .section {
    padding: 56px 0;
  }

  .movie-grid,
  .category-movie-grid,
  .related-grid,
  .category-grid,
  .category-list-large,
  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .split-copy,
  .detail-side {
    position: static;
  }

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

  .category-card-large {
    grid-template-columns: 120px 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 66px;
  }

  .logo,
  .footer-logo {
    font-size: 20px;
  }

  .hero-stage {
    min-height: 720px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-actions,
  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

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

  .movie-info {
    padding: 14px;
  }

  .movie-info h3,
  .rank-copy h3 {
    font-size: 16px;
  }

  .category-card-large {
    grid-template-columns: 1fr;
  }

  .ranking-item,
  .full-ranking .ranking-item {
    grid-template-columns: 74px 36px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .rank-number {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .rank-copy p {
    display: none;
  }

  .detail-article {
    padding: 22px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
