* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --emerald: #059669;
  --teal: #0f766e;
  --green-soft: #ecfdf5;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --bg: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #0f766e);
  box-shadow: 0 14px 28px rgba(5, 150, 105, 0.26);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(135deg, #059669, #0f766e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.mobile-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  display: none;
  background: #f1f5f9;
  cursor: pointer;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  background: #334155;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
  background: #f8fafc;
}

.mobile-nav-link.active {
  color: var(--emerald);
  background: var(--green-soft);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58), rgba(15, 118, 110, 0.18)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 30%, rgba(16, 185, 129, 0.30), transparent 34%), linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 48px));
  min-height: 680px;
  margin: 0 auto;
  max-width: 1280px;
  padding: 118px 24px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(6, 95, 70, 0.42);
  border: 1px solid rgba(167, 243, 208, 0.24);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.85;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span,
.detail-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #065f46;
  background: #d1fae5;
  font-size: 14px;
  font-weight: 800;
}

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

.primary-button,
.secondary-button,
.text-link,
.rank-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #0f766e);
  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.32);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.primary-button:hover,
.secondary-button:hover,
.text-link:hover,
.rank-watch:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.active {
  background: #34d399;
}

.section-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.feature-block {
  margin-top: -72px;
  position: relative;
  z-index: 8;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--emerald);
  font-weight: 900;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.text-link {
  color: var(--emerald);
  background: #ecfdf5;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #0f172a);
}

.movie-card.compact .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 48%);
}

.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(5, 150, 105, 0.92);
}

.poster-year {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  font-size: 13px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.card-body {
  padding: 16px;
}

.card-meta,
.large-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-meta a,
.card-meta span,
.large-meta a,
.large-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.card-meta a,
.large-meta a {
  color: var(--emerald);
  background: var(--green-soft);
}

.movie-card h3,
.rank-info h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

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

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

.tag-line {
  margin-top: 12px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}

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

.category-tile {
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.category-tile > a {
  min-height: 176px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.62), transparent 40%), linear-gradient(135deg, #064e3b, #0f766e 56%, #0f172a);
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  margin: 10px 0 0;
  color: #d1fae5;
  line-height: 1.65;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 18px 22px 22px;
}

.category-samples a {
  color: #334155;
  font-weight: 700;
}

.category-samples a:hover {
  color: var(--emerald);
}

.search-panel {
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-box input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #f8fafc;
}

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

.search-box button,
.filter-chip {
  height: 50px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: #0f766e;
  background: #ecfdf5;
  cursor: pointer;
  font-weight: 900;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #0f766e);
}

.empty-state {
  display: none;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  border-radius: 22px;
  background: #ffffff;
}

.empty-state.show {
  display: block;
}

.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 118, 110, 0.62)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.compact-hero {
  min-height: 340px;
  background: radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.36), transparent 30%), linear-gradient(135deg, #020617, #064e3b 58%, #0f766e);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), transparent 55%);
}

.page-hero-content,
.compact-hero > div {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 70px 24px;
}

.page-hero h1,
.compact-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.05em;
}

.page-hero p,
.compact-hero p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #d1fae5;
  line-height: 1.85;
  font-size: 18px;
}

.category-overview {
  padding-top: 42px;
  padding-bottom: 42px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #0f766e);
  font-weight: 900;
}

.rank-poster {
  width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

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

.rank-watch {
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #0f766e);
}

.detail-main {
  background: #f8fafc;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

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

.watch-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 34px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
}

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

.watch-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.watch-overlay.hidden {
  display: none;
}

.play-mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #064e3b;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 26px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.detail-info {
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-info h1 {
  margin: 10px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.lead-text {
  color: #0f766e;
  font-size: 20px;
  line-height: 1.8;
  font-weight: 800;
}

.detail-info h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.detail-info p {
  color: #334155;
  line-height: 1.95;
  font-size: 17px;
}

.related-block {
  padding-top: 36px;
}

.site-footer {
  margin-top: 52px;
  color: #d1d5db;
  background: linear-gradient(135deg, #020617, #111827 52%, #064e3b);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #34d399;
  font-size: 20px;
}

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

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a:hover {
  color: #34d399;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
}

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-slider,
  .hero-content {
    min-height: 590px;
  }

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

  .section-heading.with-link,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .detail-layout {
    gap: 22px;
  }

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

  .rank-row {
    grid-template-columns: 48px 74px 1fr;
  }

  .rank-watch {
    grid-column: 3;
    width: fit-content;
  }
}

@media (max-width: 620px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

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

  .hero-content {
    width: 100%;
    padding: 92px 18px 90px;
  }

  .section-block,
  .page-hero-content,
  .compact-hero > div,
  .watch-section,
  .detail-layout,
  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .featured-grid,
  .rank-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-info {
    padding: 24px;
  }

  .rank-row {
    grid-template-columns: 42px 64px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-poster {
    width: 64px;
  }
}
