* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 42%, #f9fafb 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #15803d 0%, #064e3b 100%);
  box-shadow: 0 18px 48px rgba(6, 78, 59, 0.24);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon {
  font-size: 28px;
  line-height: 1;
}

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

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

.nav-link {
  color: #dcfce7;
  font-weight: 600;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

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

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search input,
.mobile-search input {
  width: 230px;
  height: 38px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 78, 59, 0.78);
  padding: 0 44px 0 16px;
  box-shadow: inset 0 0 0 1px rgba(187, 247, 208, 0.18);
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: #bbf7d0;
}

.nav-search button {
  position: absolute;
  right: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #064e3b;
  background: #bbf7d0;
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(6, 78, 59, 0.7);
  width: 42px;
  height: 42px;
  font-size: 22px;
  cursor: pointer;
}

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

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  width: auto;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #166534;
  padding: 0 18px;
  font-weight: 800;
}

.mobile-link {
  display: block;
  padding: 12px 4px;
  color: #dcfce7;
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  background: #064e3b;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  background-position: center;
  background-size: cover;
  transition:
    opacity 0.7s ease,
    transform 1.1s ease;
  pointer-events: none;
}

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

.hero-content {
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  padding: 92px 0 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.eyebrow,
.page-hero-inner p,
.section-head p,
.cta-band p {
  margin: 0 0 12px;
  color: #bbf7d0;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.05em;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.hero-lead {
  max-width: 760px;
  margin: 0 0 24px;
  color: #ecfdf5;
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.75;
}

.hero-tags,
.tag-list,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-list span,
.meta-row span {
  border-radius: 999px;
  padding: 6px 12px;
  color: #065f46;
  background: rgba(220, 252, 231, 0.92);
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-btn {
  color: #065f46;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(6, 78, 59, 0.24);
}

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

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.ghost-btn.green {
  color: #047857;
  background: #ecfdf5;
  box-shadow: inset 0 0 0 1px #bbf7d0;
}

.full-btn {
  width: 100%;
}

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

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

.hero-dot.active {
  background: #ffffff;
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  transform: translateX(-50%);
  width: min(820px, calc(100% - 32px));
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(6, 78, 59, 0.3);
  backdrop-filter: blur(18px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  font-size: 16px;
  color: #111827;
  background: transparent;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  color: #ffffff;
  background: linear-gradient(90deg, #16a34a, #047857);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

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

.soft-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, #dcfce7, #f0fdf4);
}

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

.section-head h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-more {
  color: #059669;
  font-weight: 800;
}

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

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

.poster-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  transform: translateY(0);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.poster-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(6, 78, 59, 0.18);
}

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

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

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

.poster-wrap img.image-error,
.category-thumbs img.image-error,
.detail-poster.image-error,
.rank-row img.image-error {
  opacity: 0;
}

.score-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  background: #16a34a;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(6, 78, 59, 0.22);
}

.card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.62));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-link:hover .card-shine {
  opacity: 1;
}

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

.card-body strong {
  color: #1f2937;
  font-size: 18px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body em {
  min-height: 44px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row span {
  color: #4b5563;
  background: #f3f4f6;
  font-size: 12px;
  padding: 4px 8px;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(6, 78, 59, 0.16);
}

.tile-cover {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform 0.45s ease;
}

.category-tile:hover .tile-cover {
  transform: scale(1.08);
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-tile strong {
  font-size: 22px;
  margin-bottom: 8px;
}

.category-tile em {
  font-style: normal;
  color: #dcfce7;
  line-height: 1.55;
}

.category-card {
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

.category-card a {
  display: block;
  height: 100%;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  min-height: 160px;
  background: linear-gradient(135deg, #064e3b, #16a34a);
}

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

.category-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.category-copy strong {
  font-size: 24px;
  color: #1f2937;
}

.category-copy em {
  color: #64748b;
  font-style: normal;
  line-height: 1.65;
}

.category-copy span {
  color: #059669;
  font-weight: 900;
}

.cta-band {
  background: linear-gradient(90deg, #15803d, #064e3b);
  color: #ffffff;
  padding: 70px 16px;
  text-align: center;
}

.cta-band div {
  width: min(900px, 100%);
  margin: 0 auto;
}

.cta-band h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.18;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(90deg, #15803d, #064e3b);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.04em;
}

.page-hero span {
  color: #dcfce7;
  font-size: 18px;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #dcfce7;
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #475569;
  font-weight: 800;
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  border: 1px solid #d1d5db;
  outline: 0;
  border-radius: 12px;
  padding: 0 12px;
  color: #111827;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.empty-state {
  margin: 34px 0 0;
  border-radius: 18px;
  padding: 34px;
  color: #64748b;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 58px 86px 1fr 72px;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(6, 78, 59, 0.14);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a, #047857);
  font-weight: 900;
}

.rank-row img {
  width: 86px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #064e3b, #16a34a);
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info strong {
  color: #1f2937;
  font-size: 17px;
  margin-bottom: 5px;
}

.rank-info em {
  color: #64748b;
  font-style: normal;
  font-size: 14px;
}

.rank-score {
  color: #059669;
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}

.detail-top {
  color: #ffffff;
  background: linear-gradient(135deg, #052e2b, #064e3b 58%, #15803d);
}

.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-side,
.content-card,
.info-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.video-box video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: contain;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  color: #ffffff;
  background: radial-gradient(
    circle at center,
    rgba(22, 163, 74, 0.32),
    rgba(0, 0, 0, 0.58)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.play-layer span {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #065f46;
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.play-layer strong {
  font-size: 18px;
}

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

.detail-side {
  padding: 22px;
  color: #1f2937;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #064e3b, #16a34a);
  margin-bottom: 18px;
}

.detail-side h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.22;
}

.detail-side p {
  color: #64748b;
  line-height: 1.72;
  margin: 0 0 18px;
}

.detail-side .tag-list {
  margin-bottom: 22px;
}

.detail-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.content-card,
.info-card {
  padding: 28px;
}

.content-card h2,
.info-card h2 {
  margin: 0 0 16px;
  color: #1f2937;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
  font-size: 16px;
}

.info-card {
  position: sticky;
  top: 88px;
}

.info-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.info-card li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #e5e7eb;
}

.info-card li span {
  color: #64748b;
}

.info-card li strong {
  color: #111827;
  text-align: right;
}

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: linear-gradient(90deg, #111827, #1f2937);
}

.footer-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  max-width: 460px;
  color: #9ca3af;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: #4ade80;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  color: #9ca3af;
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

  .info-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .brand-text {
    font-size: 18px;
  }

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

  .hero-content {
    padding: 76px 0 170px;
  }

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

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search input,
  .hero-search button {
    min-height: 44px;
  }

  .hero-nav {
    bottom: 132px;
  }

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

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

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

  .rank-row {
    grid-template-columns: 46px 68px 1fr;
  }

  .rank-score {
    grid-column: 3;
    text-align: left;
    font-size: 18px;
  }

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

  .page-hero-inner,
  .home-section,
  .detail-wrap,
  .detail-content,
  .footer-wrap,
  .footer-bottom {
    width: min(100% - 28px, 1180px);
  }
}
