:root {
  --bg: #f7fbf9;
  --panel: #ffffff;
  --panel-soft: #ecfdf5;
  --text: #10201a;
  --muted: #60726c;
  --line: #dcebe4;
  --brand: #059669;
  --brand-dark: #047857;
  --brand-soft: #d1fae5;
  --teal: #0d9488;
  --cyan: #0891b2;
  --yellow: #f59e0b;
  --shadow: 0 18px 50px rgba(15, 118, 110, 0.14);
  --shadow-soft: 0 10px 30px rgba(15, 118, 110, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f7fbf9 0%, #ffffff 45%, #f0fdfa 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #d1fae5, #cffafe);
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(220, 235, 228, 0.9);
  backdrop-filter: blur(18px);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  color: #064e3b;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 24px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  border-radius: 14px;
  box-shadow: 0 12px 25px rgba(5, 150, 105, 0.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}

.main-nav a,
.mobile-panel a {
  padding: 10px 14px;
  color: #31443e;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  width: min(330px, 32vw);
  padding: 6px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 999px;
}

.header-search input,
.large-search input,
.page-search input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search input {
  padding: 8px 8px 8px 14px;
}

.header-search button,
.large-search button {
  flex-shrink: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.22);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--brand-dark);
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

.hero-slider {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #052e2b;
}

.hero-track,
.hero-slide {
  min-height: 720px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.38;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 45%, rgba(20, 184, 166, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(2, 44, 34, 0.98) 0%, rgba(6, 95, 70, 0.84) 45%, rgba(8, 145, 178, 0.5) 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px);
  gap: 56px;
  align-items: center;
  padding: 112px 0 88px;
}

.hero-copy {
  color: #ffffff;
}

.hero-eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.hero-eyebrow {
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 20px 0 0;
  line-height: 1.04;
  letter-spacing: -0.07em;
}

.hero-copy h1 {
  max-width: 850px;
  font-size: clamp(44px, 7vw, 76px);
}

.hero-copy h2 {
  max-width: 760px;
  font-size: clamp(32px, 5vw, 56px);
}

.hero-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #dffaf0;
  font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-meta,
.hot-chips,
.catalog-links,
.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.hot-chips a,
.catalog-links a,
.sample-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  color: #075943;
  background: #ecfdf5;
  border: 1px solid #c7f4de;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
}

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

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

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

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

.btn-ghost {
  color: #064e3b;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.detail-actions .btn-ghost {
  background: #ffffff;
  border-color: var(--line);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  border-radius: 50%;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.section {
  padding: 76px 0;
}

.section-soft {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.section-split {
  background: #f7fbf9;
}

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

.section-head h2,
.side-panel h2,
.rank-list-wrap h2,
.prose-card h2,
.info-card h2,
.faq-item h2,
.category-overview-card h2 {
  margin: 12px 0 8px;
  color: #082f28;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.section-head p,
.side-panel p,
.info-card p,
.faq-item p,
.category-overview-card p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

.section-link {
  flex-shrink: 0;
  color: var(--brand-dark);
  font-weight: 900;
}

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

.category-card,
.info-card,
.faq-item,
.prose-card,
.side-panel,
.rank-list-wrap,
.category-overview-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.category-card {
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
  border-color: #a7f3d0;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.category-card span {
  display: block;
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #d1fae5;
}

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

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

.quality-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 28px;
  padding: 5px 9px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.quality-badge {
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--brand), var(--teal));
}

.rank-badge {
  left: 12px;
  top: 12px;
  background: linear-gradient(135deg, var(--yellow), #f97316);
}

.movie-content {
  padding: 16px;
}

.movie-content h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.movie-content h2 a:hover {
  color: var(--brand-dark);
}

.movie-meta,
.movie-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-line {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 12px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 100px;
  padding: 28px;
}

.large-search {
  display: flex;
  gap: 8px;
  margin: 22px 0;
  padding: 8px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 18px;
}

.large-search input {
  padding: 10px 12px;
}

.catalog-links {
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.catalog-links a {
  color: var(--brand-dark);
}

.page-hero,
.detail-hero {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(20, 184, 166, 0.16), transparent 30%),
    linear-gradient(135deg, #ecfdf5 0%, #ffffff 48%, #cffafe 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.detail-info h1 {
  max-width: 900px;
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.07em;
}

.page-hero p,
.detail-line {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

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

.page-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 680px);
  margin-top: 28px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.page-search span {
  flex-shrink: 0;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 900;
}

.hot-chips {
  margin-top: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover {
  overflow: hidden;
  border-radius: 18px;
}

.category-cover img {
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.sample-links {
  margin-top: 14px;
}

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

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

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

.detail-meta {
  margin-top: 20px;
}

.detail-tags {
  margin-top: 16px;
}

.player-section {
  padding-top: 56px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #031f1b;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(3, 31, 27, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(3, 31, 27, 0.18), rgba(3, 31, 27, 0.68));
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(5, 150, 105, 0.35);
  font-size: 34px;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  color: #ffffff;
  font-size: 14px;
}

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

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

.prose-card,
.info-card,
.faq-item {
  padding: 28px;
}

.prose-card p {
  margin: 18px 0 0;
  color: #31443e;
  font-size: 16px;
}

.rank-list-wrap {
  margin-top: 34px;
  padding: 26px;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f8fffc;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.rank-list span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  border-radius: 12px;
  font-weight: 900;
}

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

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.top-pagination {
  margin-top: 0;
  margin-bottom: 28px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--brand-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 900;
}

.pagination a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  border-color: transparent;
}

.pagination span {
  color: #9aa9a3;
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 34px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

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

.faq-list {
  display: grid;
  gap: 18px;
}

.site-footer {
  color: #dffaf0;
  background: linear-gradient(135deg, #052e2b 0%, #064e3b 55%, #0f766e 100%);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

.brand-footer {
  color: #ffffff;
}

.footer-brand p,
.site-footer a,
.footer-bottom {
  color: #c8f7e7;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
}

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

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

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

  .split-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: relative;
    top: auto;
  }
}

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

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

  .mobile-panel.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-slider,
  .hero-track,
  .hero-slide {
    min-height: 780px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 88px;
  }

  .hero-poster {
    width: min(310px, 80vw);
    margin: 0 auto;
  }

  .hero-arrow {
    display: none;
  }

  .section-head,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .category-overview-grid,
  .detail-body-grid,
  .info-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .category-overview-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }

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

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

  .hero-slider,
  .hero-track,
  .hero-slide {
    min-height: 820px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.05em;
  }

  .section {
    padding: 52px 0;
  }

  .movie-grid,
  .movie-grid-compact,
  .movie-grid-small,
  .ranking-grid {
    gap: 14px;
  }

  .movie-content {
    padding: 12px;
  }

  .movie-content h2 {
    font-size: 15px;
  }

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

  .detail-cover {
    width: min(280px, 100%);
  }

  .player-shell {
    border-radius: 18px;
  }

  .play-circle {
    width: 70px;
    height: 70px;
    font-size: 26px;
  }

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