
:root {
  --green-950: #052e16;
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(6, 78, 59, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--green-50) 0%, #ffffff 34%, #ffffff 100%);
  min-width: 320px;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(4, 120, 87, 0.28);
}

.site-nav {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
}

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

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.18);
}

.logo-text {
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-link,
.mobile-nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #ffffff;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.inline-search input {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  min-height: 42px;
  outline: none;
}

.nav-search input,
.mobile-search input {
  width: 230px;
  padding: 0 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.nav-search button,
.mobile-search button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.nav-search button,
.mobile-search button {
  padding: 10px 16px;
  background: #ffffff;
  color: var(--green-700);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px;
}

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

.mobile-menu {
  display: none;
  padding: 16px 24px 22px;
  background: var(--green-800);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu.is-open {
  display: grid;
  gap: 14px;
}

.hero-carousel {
  position: relative;
  height: min(720px, 72vh);
  min-height: 540px;
  overflow: hidden;
  background: var(--green-950);
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.detail-bg img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-shade,
.detail-bg div {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
}

.hero-labels,
.detail-tags,
.movie-tags,
.filter-chips,
.detail-labels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-labels span,
.detail-tags span,
.movie-tags span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.92);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: var(--green-600);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(5, 150, 105, 0.34);
}

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

.primary-button:hover {
  background: var(--green-700);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1280px;
  margin: -54px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 8;
}

.feature-item {
  min-height: 120px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.feature-item strong {
  display: block;
  color: var(--green-700);
  font-size: 22px;
  margin-bottom: 8px;
}

.feature-item span {
  color: var(--muted);
}

.content-section,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.green-section {
  max-width: none;
  margin-top: 18px;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: linear-gradient(90deg, rgba(209, 250, 229, 0.65), rgba(236, 253, 245, 0.2));
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 30px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading a {
  color: var(--green-700);
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--green-700);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(5, 150, 105, 0.18);
}

.movie-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
}

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

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

.poster-badge,
.poster-score {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(5, 150, 105, 0.92);
}

.poster-badge {
  left: 12px;
}

.poster-score {
  right: 12px;
  background: rgba(17, 24, 39, 0.72);
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 18px;
}

.movie-card-meta,
.rank-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3,
.rank-item h3,
.category-tile h3,
.category-overview-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card p,
.category-tile p,
.category-overview-card p,
.rank-item p,
.text-panel p,
.detail-one-line,
.page-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.movie-tags span {
  background: var(--green-50);
  color: var(--green-700);
  padding: 4px 9px;
  font-size: 12px;
}

.movie-card-wide .movie-card-link {
  flex-direction: row;
}

.movie-card-wide .movie-poster {
  width: 44%;
  min-width: 180px;
  aspect-ratio: auto;
}

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

.category-tile a,
.category-overview-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(5, 150, 105, 0.1);
}

.category-thumbs {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr;
  gap: 8px;
  height: 140px;
  overflow: hidden;
  border-radius: 20px;
}

.category-thumbs img {
  height: 100%;
  object-fit: cover;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-samples a {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-50);
  font-size: 13px;
  font-weight: 750;
}

.rank-section {
  background: linear-gradient(135deg, var(--green-950), var(--green-800));
  padding: 72px max(24px, calc((100vw - 1280px) / 2 + 24px));
}

.light-heading h2,
.light-heading .eyebrow,
.light-heading a {
  color: #ffffff;
}

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

.rank-list-home {
  max-width: 1280px;
  margin: 0 auto;
}

.rank-item a {
  display: grid;
  grid-template-columns: auto 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item a:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.15);
}

.rank-number {
  color: var(--green-700);
  font-size: 24px;
  font-weight: 950;
}

.rank-item img {
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.compact-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 72px max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.22), transparent 32%), linear-gradient(135deg, #ffffff, var(--green-50));
}

.compact-hero div {
  max-width: 820px;
}

.toolbar {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.08);
}

.toolbar-sticky {
  position: sticky;
  top: 84px;
  z-index: 20;
}

.inline-search {
  display: grid;
  gap: 8px;
  color: var(--green-800);
  font-weight: 800;
}

.inline-search input {
  width: 100%;
  padding: 0 18px;
  background: var(--green-50);
  border: 1px solid rgba(5, 150, 105, 0.18);
  color: var(--text);
}

.inline-search-large input {
  min-height: 52px;
  font-size: 18px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--green-700);
  background: var(--green-50);
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: var(--green-600);
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 24px;
  text-align: center;
  border-radius: 22px;
  color: var(--green-700);
  background: var(--green-50);
  font-weight: 800;
}

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

.detail-hero {
  min-height: 620px;
  color: #ffffff;
  background: var(--green-950);
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 70px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster img {
  height: 500px;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
}

.detail-one-line {
  max-width: 760px;
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

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

.player-card,
.text-panel,
.related-section {
  padding: 28px;
  margin-bottom: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.08);
}

.player-card h2,
.text-panel h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.74));
  cursor: pointer;
  text-align: center;
}

.player-shell.is-playing .player-cover {
  display: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green-600);
  box-shadow: 0 18px 38px rgba(16, 185, 129, 0.36);
  font-size: 30px;
  padding-left: 5px;
}

.player-cover strong {
  max-width: 80%;
  font-size: clamp(20px, 3vw, 34px);
}

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

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

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

@media (max-width: 860px) {
  .site-nav {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .mobile-search input {
    width: 100%;
  }

  .hero-carousel {
    min-height: 620px;
    height: 78vh;
  }

  .hero-content {
    padding-top: 44px;
  }

  .feature-band,
  .movie-grid-4,
  .movie-grid-3,
  .category-grid,
  .category-overview-grid,
  .rank-list,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .movie-card-wide .movie-card-link {
    flex-direction: column;
  }

  .movie-card-wide .movie-poster {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
  }

  .rank-item a {
    grid-template-columns: auto 78px 1fr;
  }

  .detail-poster img {
    height: auto;
    max-height: 520px;
  }

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

@media (max-width: 560px) {
  .site-nav {
    padding: 0 16px;
  }

  .logo-text {
    font-size: 19px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .content-section,
  .detail-main {
    padding: 48px 16px;
  }

  .feature-band {
    margin-top: -30px;
    padding: 0 16px;
  }

  .player-card,
  .text-panel,
  .related-section {
    padding: 20px;
  }

  .rank-item a {
    grid-template-columns: 1fr;
  }

  .rank-item img {
    width: 100%;
    height: 160px;
  }
}
