:root {
  --site-bg: #f8fffc;
  --site-card: #ffffff;
  --site-text: #0f172a;
  --site-muted: #64748b;
  --site-border: #d9f0e4;
  --site-primary: #059669;
  --site-primary-dark: #047857;
  --site-teal: #0d9488;
  --site-soft: #ecfdf5;
  --site-shadow: 0 18px 60px rgba(15, 118, 110, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--site-text);
  background:
    radial-gradient(circle at 0 0, rgba(16, 185, 129, 0.12), transparent 28rem),
    radial-gradient(circle at 100% 12rem, rgba(20, 184, 166, 0.10), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--site-bg) 46%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--site-border);
  box-shadow: 0 6px 24px rgba(15, 118, 110, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.04em;
  color: var(--site-primary-dark);
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-teal));
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.28);
  font-size: 14px;
}

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

.nav-link {
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--site-primary-dark);
  border-color: var(--site-primary);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--site-soft);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--site-primary-dark);
}

.mobile-nav {
  display: none;
  padding: 10px 24px 18px;
  border-top: 1px solid var(--site-border);
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #334155;
  background: #ffffff;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #d1fae5 0%, #f0fdfa 48%, #fffbeb 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 27, 18, 0.86), rgba(5, 46, 35, 0.55), rgba(2, 44, 34, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(6, 95, 70, 0.46));
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  min-height: 680px;
  margin: 0 auto;
  padding: 92px 24px 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 42px;
  color: #ffffff;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(209, 250, 229, 0.30);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-title span {
  color: #6ee7b7;
}

.hero-desc {
  margin: 24px 0 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.9;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-teal));
  box-shadow: 0 18px 36px rgba(5, 150, 105, 0.36);
}

.button-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

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

.hero-panel-body {
  padding: 20px;
}

.hero-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hero-panel p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

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

.hero-dot {
  width: 40px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.active {
  width: 66px;
  background: #6ee7b7;
}

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

.section-tight {
  padding-top: 44px;
}

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

.section-kicker {
  color: var(--site-primary-dark);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.section-desc {
  margin: 12px 0 0;
  color: var(--site-muted);
  line-height: 1.8;
  max-width: 700px;
}

.search-panel {
  margin: -44px auto 0;
  position: relative;
  z-index: 6;
  max-width: 1100px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--site-shadow);
  border: 1px solid var(--site-border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.search-panel input,
.filter-input {
  width: 100%;
  height: 52px;
  border: 1px solid #ccecdf;
  border-radius: 18px;
  padding: 0 18px;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  font-size: 16px;
}

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

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: 10px 14px;
  color: #334155;
  background: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.chip.active,
.chip:hover {
  color: #ffffff;
  background: var(--site-primary);
  border-color: var(--site-primary);
}

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

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

.movie-card {
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--site-card);
  border: 1px solid rgba(209, 250, 229, 0.86);
  box-shadow: 0 16px 42px rgba(15, 118, 110, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(16, 185, 129, 0.52);
  box-shadow: 0 24px 62px rgba(15, 118, 110, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #d1fae5, #ecfeff);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-badge,
.poster-type {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(4, 120, 87, 0.92);
  backdrop-filter: blur(10px);
}

.poster-badge {
  right: 12px;
}

.poster-type {
  left: 12px;
  background: rgba(15, 23, 42, 0.70);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-weight: 900;
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title:hover {
  color: var(--site-primary-dark);
}

.card-desc {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--site-muted);
  line-height: 1.65;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}

.tag-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--site-soft);
  color: #047857;
  font-size: 12px;
  font-weight: 700;
}

.horizontal-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 2px 22px;
  scroll-snap-type: x proximity;
}

.horizontal-scroller .movie-card {
  scroll-snap-align: start;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 46%),
    linear-gradient(135deg, var(--site-primary), var(--site-teal));
  box-shadow: 0 18px 50px rgba(5, 150, 105, 0.20);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.category-tile span {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 900;
}

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

.rank-line {
  display: grid;
  grid-template-columns: 46px 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(209, 250, 229, 0.86);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-line:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.13);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-teal));
  font-weight: 900;
}

.rank-line img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.rank-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-main em {
  color: var(--site-muted);
  font-style: normal;
  font-size: 13px;
}

.rank-region {
  color: var(--site-primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  padding: 70px 24px;
  background:
    radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.20), transparent 32rem),
    linear-gradient(135deg, #ecfdf5, #f0fdfa 60%, #ffffff);
  border-bottom: 1px solid var(--site-border);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumb {
  margin-bottom: 16px;
  color: #047857;
  font-weight: 800;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.page-desc {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--site-muted);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.detail-hero {
  padding: 44px 24px 30px;
  background:
    radial-gradient(circle at 0 0, rgba(16, 185, 129, 0.20), transparent 32rem),
    linear-gradient(135deg, #ecfdf5, #f8fffc);
}

.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

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

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

.detail-info h1 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-line {
  color: #334155;
  font-size: 18px;
  line-height: 1.85;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.meta-pills span {
  padding: 9px 12px;
  border-radius: 999px;
  color: #047857;
  background: #ffffff;
  border: 1px solid var(--site-border);
  font-weight: 800;
}

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

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(16, 185, 129, 0.18), rgba(2, 6, 23, 0.42)),
    rgba(2, 6, 23, 0.12);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-teal));
  font-size: 28px;
  box-shadow: 0 24px 60px rgba(5, 150, 105, 0.44);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(2, 6, 23, 0.66);
  font-size: 13px;
}

.content-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
}

.article-panel,
.side-panel {
  border: 1px solid var(--site-border);
  border-radius: 26px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 44px rgba(15, 118, 110, 0.07);
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.article-panel p {
  margin: 0 0 18px;
  color: #334155;
  line-height: 1.95;
  font-size: 17px;
}

.side-link {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e5f6ef;
}

.side-link:last-child {
  border-bottom: 0;
}

.side-link img {
  width: 70px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.side-link strong {
  display: block;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-link em {
  color: var(--site-muted);
  font-style: normal;
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 46px;
  text-align: center;
  border: 1px dashed #a7f3d0;
  border-radius: 24px;
  color: var(--site-muted);
  background: rgba(236, 253, 245, 0.62);
}

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

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--site-border);
  background: linear-gradient(180deg, #ecfdf5, #ffffff);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
}

.footer-brand p {
  margin: 16px 0 0;
  color: var(--site-muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-content: start;
}

.footer-links a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #047857;
  background: #ffffff;
  border: 1px solid var(--site-border);
  font-weight: 700;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 32px;
  color: var(--site-muted);
  font-size: 14px;
}

[data-card].hidden {
  display: none;
}

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

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

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

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

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

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

  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .brand {
    font-size: 21px;
  }

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

  .hero-content {
    padding: 74px 18px 72px;
  }

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

  .search-panel,
  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 52px 18px;
  }

  .rank-line {
    grid-template-columns: 42px 58px minmax(0, 1fr);
  }

  .rank-region {
    display: none;
  }

  .detail-hero,
  .player-section,
  .content-block {
    padding-left: 18px;
    padding-right: 18px;
  }

  .article-panel,
  .side-panel {
    padding: 22px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
