:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --blue: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f3f4f6;
  --paper: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #f3f4f6 100%);
}

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

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

button,
input,
select {
  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.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--emerald), var(--blue));
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 12px 25px rgba(5, 150, 105, 0.28);
}

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

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

.desktop-nav a:hover,
.text-link:hover,
.section-more:hover {
  color: var(--emerald);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: #374151;
  border-radius: 3px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 18px;
  border-top: 1px solid #e5e7eb;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

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

.mobile-nav.is-open {
  display: block;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: #111827;
}

.hero-stage,
.hero-slide,
.hero-bg,
.hero-layer {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

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

.hero-bg {
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.42);
  transform: scale(1.1);
}

.hero-layer {
  background: linear-gradient(0deg, #111827 0%, rgba(17, 24, 39, 0.56) 52%, rgba(17, 24, 39, 0.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 760px;
}

.hero-labels,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-labels span,
.hero-labels a,
.detail-tags a,
.detail-tags span,
.pill,
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.hero-labels span,
.detail-tags a,
.pill,
.rank-badge {
  color: #ffffff;
  background: var(--emerald);
}

.hero-labels a,
.hero-labels em,
.detail-tags span {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.7;
}

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

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

.primary-btn {
  color: #ffffff;
  background: var(--emerald);
  box-shadow: 0 18px 35px rgba(5, 150, 105, 0.32);
}

.primary-btn:hover {
  background: var(--emerald-dark);
  transform: translateY(-2px);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.26);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-size: 30px;
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

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

.home-search {
  margin-top: -54px;
  position: relative;
  z-index: 8;
}

.search-card,
.filter-panel,
.content-card,
.side-card,
.player-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.search-card {
  padding: 28px;
}

.search-card h2,
.content-card h2,
.side-card h2 {
  margin: 0 0 10px;
}

.search-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(150px, 1fr));
  gap: 14px;
  padding: 16px;
  box-shadow: none;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.section-block {
  padding: 78px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.025em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more,
.text-link {
  color: var(--emerald);
  font-weight: 800;
}

.section-more span {
  font-size: 24px;
  vertical-align: -2px;
}

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

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #d1fae5, #dbeafe);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.wide-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.wide-card .poster-link {
  aspect-ratio: 4 / 5;
}

.poster-link img,
.rank-cover img,
.compact-item img,
.category-overview-cover img,
.detail-cover img,
.side-list img,
.category-card::before {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img {
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.compact-item:hover img,
.rank-row:hover .rank-cover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
}

.pill,
.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(5, 150, 105, 0.92);
  backdrop-filter: blur(12px);
}

.rank-badge {
  min-width: 36px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-card-body {
  padding-top: 14px;
}

.wide-card .movie-card-body {
  padding-top: 0;
  align-self: center;
}

.movie-card h3,
.rank-main h2,
.category-overview-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-main h2 a:hover,
.category-overview-card h2 a:hover {
  color: var(--emerald);
}

.movie-meta {
  margin: 7px 0;
  color: var(--muted);
  font-size: 14px;
}

.movie-brief {
  margin: 0;
  color: #4b5563;
  line-height: 1.65;
  font-size: 14px;
}

.feature-band {
  padding: 78px 0;
  margin-top: 78px;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

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

.category-card {
  min-height: 190px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 26px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.category-card span {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.category-card strong {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

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

.compact-item {
  display: grid;
  gap: 8px;
}

.compact-item img {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: #e5e7eb;
  transition: transform 0.3s ease;
}

.compact-item span {
  font-weight: 800;
  line-height: 1.35;
}

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

.page-hero {
  padding: 86px 0;
  color: #ffffff;
  background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.78), transparent 32%), linear-gradient(135deg, #111827, #0f766e 52%, #1d4ed8);
}

.page-hero-small {
  padding: 66px 0;
}

.page-hero p {
  margin: 0 0 12px;
  color: #bbf7d0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -0.035em;
}

.page-hero span {
  display: block;
  max-width: 760px;
  color: #e5e7eb;
  line-height: 1.8;
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-overview-cover {
  height: 190px;
  overflow: hidden;
  border-radius: 20px;
  background: #e5e7eb;
}

.category-overview-card p {
  color: #4b5563;
  line-height: 1.7;
}

.full-list {
  margin-top: 26px;
}

.rank-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.rank-row {
  display: grid;
  grid-template-columns: 96px 48px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.rank-cover {
  display: block;
  height: 124px;
  overflow: hidden;
  border-radius: 16px;
  background: #e5e7eb;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 14px;
  font-weight: 900;
}

.rank-main p {
  margin: 8px 0 0;
  color: #4b5563;
  line-height: 1.65;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

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

.detail-bg {
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.42);
  transform: scale(1.08);
}

.detail-layer {
  background: linear-gradient(90deg, #111827 0%, rgba(17, 24, 39, 0.78) 48%, rgba(17, 24, 39, 0.5) 100%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  min-height: 520px;
  padding: 70px 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  background: #1f2937;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: #d1d5db;
  font-weight: 700;
}

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

.breadcrumb em {
  font-style: normal;
  color: #ffffff;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 22px;
  font-size: 20px;
  line-height: 1.75;
  color: #e5e7eb;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.detail-main {
  display: grid;
  gap: 28px;
}

.player-card {
  padding: 14px;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #020617;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(5, 150, 105, 0.18), rgba(2, 6, 23, 0.78));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 18px 40px rgba(5, 150, 105, 0.42);
  font-size: 30px;
  padding-left: 5px;
}

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

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

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

.content-card p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 24px;
}

.side-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
}

.side-card dt {
  color: var(--muted);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: #111827;
}

.side-card dd a {
  color: var(--emerald);
  font-weight: 800;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-list a {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 12px;
  align-items: center;
}

.side-list img {
  grid-row: span 2;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: #e5e7eb;
}

.side-list span {
  font-weight: 800;
  line-height: 1.35;
}

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

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

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

.footer-brand {
  color: #ffffff;
}

.footer-inner p {
  color: #9ca3af;
  line-height: 1.8;
}

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

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: #6ee7b7;
}

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

.is-filter-hidden {
  display: none !important;
}

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

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

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: 620px;
  }

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

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

  .category-overview-card,
  .wide-card,
  .rank-row,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .rank-row {
    align-items: start;
  }

  .rank-cover {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-wrap {
    gap: 28px;
    padding: 48px 0;
  }

  .detail-cover {
    width: min(280px, 82vw);
  }

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

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

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 18px;
  }

  .hero-content {
    width: min(100% - 26px, 1180px);
  }

  .hero h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.02em;
  }

  .hero-controls {
    bottom: 20px;
  }

  .section-block {
    padding-top: 54px;
  }

  .section-heading {
    display: grid;
  }

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

  .rank-row {
    gap: 12px;
  }

  .content-card,
  .side-card,
  .search-card {
    padding: 20px;
  }
}
