* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #f9fafb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.08);
}

.navbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0d9488);
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-weight: 650;
  color: #374151;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #059669;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #111827;
}

.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #059669, #0d9488, #0891b2);
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: overlay;
  opacity: 0.72;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.25));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

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

.hero-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
}

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

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

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

.btn-light {
  color: #047857;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0d9488);
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.22);
}

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

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

.section {
  padding: 72px 0;
}

.soft-section {
  padding: 72px 0;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.section-title {
  margin-bottom: 32px;
}

.section-title.center {
  text-align: center;
}

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

.section-title h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 900;
  color: #111827;
}

.section-title p {
  margin: 0;
  color: #6b7280;
}

.text-link {
  color: #059669;
  font-weight: 800;
}

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

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

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

.movie-grid.small {
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.14);
}

.movie-cover {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, #047857, #0e7490);
}

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

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.play-badge.large {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

.movie-card:hover .play-badge,
.wide-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cover-label {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #047857;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 18px;
}

.movie-title {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card:hover .movie-title,
.list-card:hover .list-top a,
.wide-card:hover h3 a {
  color: #059669;
}

.movie-info p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #d1d5db;
}

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

.tag-row span {
  padding: 4px 8px;
  border-radius: 7px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
}

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

.category-card {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 128px;
  padding: 18px;
  border: 2px solid transparent;
  border-radius: 16px;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: #a7f3d0;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.1);
}

.category-icon {
  color: #059669;
  font-size: 24px;
}

.category-card strong {
  font-size: 17px;
}

.category-card em {
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

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

.list-card {
  display: flex;
  gap: 16px;
  padding: 14px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.list-card:hover {
  background: #fbfffd;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.1);
}

.list-cover {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #047857, #0e7490);
}

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

.list-body {
  min-width: 0;
  flex: 1;
}

.list-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}

.list-top a {
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
}

.rank-number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0d9488);
  font-weight: 900;
  font-size: 13px;
}

.list-card p {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 14px;
}

.wide-stack {
  display: grid;
  gap: 24px;
}

.wide-card {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) 3fr;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.09);
}

.wide-image {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, #047857, #0e7490);
}

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

.wide-card:hover .wide-image img {
  transform: scale(1.05);
}

.wide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.wide-body span {
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #047857;
  background: #ecfdf5;
  font-size: 14px;
  font-weight: 800;
}

.wide-body h3 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.2;
}

.wide-body p {
  margin: 0 0 18px;
  color: #4b5563;
}

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

.page-hero {
  padding: 72px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0d9488);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.18;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #ecfeff;
  font-size: 18px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.crumb.dark {
  margin: 0 0 24px;
  color: #6b7280;
}

.crumb a:hover {
  color: #059669;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 9px 15px;
  border-radius: 999px;
  color: #374151;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
  font-weight: 750;
}

.pill.is-active {
  color: #ffffff;
  background: #059669;
}

.pill span {
  opacity: 0.72;
  font-size: 12px;
}

.filter-box,
.search-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
}

.filter-box input,
.search-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  color: #111827;
  background: #f9fafb;
}

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

.search-count,
[data-filter-count] {
  display: block;
  margin-top: 10px;
  color: #6b7280;
  font-size: 14px;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.preset-row button {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: #047857;
  background: #ecfdf5;
  font-weight: 750;
  cursor: pointer;
}

.category-overview {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.category-overview-head h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.category-overview-head p {
  margin: 0;
  color: #6b7280;
}

.detail-main {
  padding: 34px 0 72px;
  background: #f9fafb;
}

.detail-wrap {
  max-width: 1060px;
}

.detail-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.11);
}

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

.video-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000000;
  cursor: pointer;
  overflow: hidden;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.player-cover img {
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #047857;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  font-size: 30px;
  transform: translate(-50%, -50%);
}

.detail-body {
  padding: 34px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}

.detail-tags a,
.detail-tags span {
  padding: 5px 11px;
  border-radius: 999px;
  color: #047857;
  background: #ecfdf5;
  font-size: 13px;
  font-weight: 800;
}

.detail-body h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
  font-weight: 900;
}

.lead {
  margin: 0 0 30px;
  padding-left: 18px;
  border-left: 4px solid #10b981;
  color: #374151;
  font-size: 19px;
  font-style: italic;
}

.detail-body section {
  margin-top: 26px;
}

.detail-body h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.detail-body p {
  margin: 0;
  color: #374151;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  color: #374151;
}

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

.related-section {
  margin-top: 34px;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.site-footer {
  margin-top: 0;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-about p {
  max-width: 580px;
  margin: 0;
  color: #d1d5db;
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-copy {
  padding: 20px 16px;
  border-top: 1px solid #1f2937;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 46px rgba(17, 24, 39, 0.18);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: #f3f4f6;
  }

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

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

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 24px, 1280px);
  }

  .hero {
    height: 560px;
  }

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

  .section,
  .soft-section {
    padding: 48px 0;
  }

  .section-title.between,
  .category-overview-head {
    display: block;
  }

  .section-title.between .text-link,
  .category-overview-head .btn {
    margin-top: 14px;
  }

  .movie-grid.three,
  .movie-grid.four,
  .category-grid,
  .ranking-list,
  .list-grid,
  .footer-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .list-card {
    gap: 12px;
  }

  .list-cover {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }

  .detail-body,
  .related-section {
    padding: 22px;
  }

  .player-button {
    width: 62px;
    height: 62px;
    font-size: 24px;
  }
}
