:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 70px rgba(15, 23, 42, 0.24);
  --radius-lg: 18px;
  --radius-xl: 26px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: var(--slate-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

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.94);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.25);
  transition: transform 0.25s ease;
}

.brand-mark span {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
  margin-left: 3px;
}

.brand:hover .brand-mark {
  transform: scale(1.06);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--emerald-600), var(--teal-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--slate-700);
  font-weight: 650;
  font-size: 15px;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--emerald-600);
}

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

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

.mobile-nav {
  display: none;
  border-top: 1px solid var(--slate-200);
  padding: 10px 18px 16px;
  background: #fff;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: var(--slate-700);
  font-weight: 650;
}

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

.hero {
  position: relative;
  height: 590px;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 46%, rgba(15, 23, 42, 0.14) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 56px;
  transform: translateX(-50%);
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: #fff;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-actions,
.hero-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.btn.primary {
  color: #fff;
  background: var(--emerald-500);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.28);
}

.btn.primary:hover {
  background: var(--emerald-600);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.btn.text {
  color: rgba(255, 255, 255, 0.92);
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 38px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--emerald-500);
}

.home-search-band {
  margin-top: -36px;
  position: relative;
  z-index: 5;
}

.search-band-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-xl);
}

.search-band-inner h2,
.section-head h2,
.page-hero h1,
.content-card h2 {
  margin: 0;
  color: var(--slate-900);
  line-height: 1.2;
}

.search-band-inner p,
.section-head p,
.page-hero p,
.content-card p {
  margin: 8px 0 0;
  color: var(--slate-500);
}

.quick-search,
.global-search-panel,
.list-tools {
  display: flex;
  gap: 10px;
}

.quick-search input,
.global-search-panel input,
.list-tools input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 0 15px;
  background: var(--slate-50);
  color: var(--slate-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.global-search-panel input:focus,
.list-tools input:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.quick-search button,
.global-search-panel button {
  min-width: 88px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  font-weight: 800;
  cursor: pointer;
}

.hero-chip-row {
  grid-column: 1 / -1;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--emerald-700, #047857);
  background: rgba(16, 185, 129, 0.1);
  font-weight: 700;
  font-size: 14px;
}

.section {
  padding: 54px 0;
}

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

.section-head > div {
  position: relative;
  padding-left: 54px;
}

.section-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.2);
  font-weight: 900;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-head > a {
  color: var(--emerald-600);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--slate-200);
}

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

.card-link:hover .poster-wrap img {
  transform: scale(1.1);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.62));
  opacity: 0.7;
}

.year-badge,
.rank-num,
.play-badge {
  position: absolute;
  z-index: 2;
}

.year-badge {
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.rank-num {
  left: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(16, 185, 129, 0.9);
  transform: translate(-50%, -50%) scale(0.75);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 13px 13px 15px;
}

.card-body h3 {
  margin: 0 0 6px;
  color: var(--slate-900);
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  min-height: 44px;
  margin: 0 0 10px;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.card-meta span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 700;
}

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

.tag-row span {
  color: var(--emerald-700, #047857);
  background: rgba(16, 185, 129, 0.1);
}

.tag-row.large span {
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

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

.category-panel a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-panel a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 144px;
  padding: 10px 10px 0;
}

.category-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.category-copy {
  padding: 18px;
}

.category-copy h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 22px;
}

.category-copy p {
  margin: 0 0 14px;
  color: var(--slate-500);
  font-size: 14px;
}

.category-copy span {
  color: var(--emerald-600);
  font-weight: 800;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 62px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.compact-card img {
  width: 62px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  color: var(--slate-900);
  line-height: 1.35;
}

.compact-card em {
  margin-top: 4px;
  color: var(--slate-500);
  font-style: normal;
  font-size: 13px;
}

.compact-rank {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  font-weight: 900;
}

.page-shell {
  min-height: 70vh;
}

.page-hero {
  padding: 56px 0 18px;
}

.page-hero.small {
  max-width: min(1180px, calc(100% - 32px));
}

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

.page-hero p {
  max-width: 760px;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--emerald-600);
}

.breadcrumb > * + *::before {
  content: "/";
  margin-right: 8px;
  color: var(--slate-300);
}

.list-tools,
.global-search-panel {
  max-width: 680px;
  margin-top: 24px;
}

.movie-card.is-hidden {
  display: none;
}

.movie-card.wide .card-link {
  display: grid;
  grid-template-columns: 140px 1fr;
}

.movie-card.wide .poster-wrap {
  aspect-ratio: auto;
  min-height: 210px;
}

.detail-hero {
  padding: 34px 0 48px;
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 36%), var(--slate-900);
  color: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 32px;
  align-items: center;
  margin-top: 24px;
}

.player-card,
.video-shell {
  position: relative;
}

.video-shell {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-xl);
}

.main-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.76));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.overlay-play {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--emerald-500);
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.36);
  font-size: 34px;
  padding-left: 5px;
}

.detail-copy h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-meta span {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.content-card {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.content-card p {
  color: var(--slate-600);
  font-size: 16px;
}

.site-footer {
  margin-top: 36px;
  color: var(--slate-300);
  background: var(--slate-900);
}

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

.footer-brand {
  color: #fff;
  font-size: 21px;
}

.footer-about p {
  max-width: 480px;
  margin: 16px 0 0;
  color: var(--slate-400);
}

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

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

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

.site-footer a:hover {
  color: var(--emerald-400);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px;
  text-align: center;
  color: var(--slate-400);
  font-size: 14px;
}

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

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

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

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

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

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

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

  .hero {
    height: 530px;
  }

  .hero-content {
    bottom: 58px;
  }

  .hero-dots {
    left: 12px;
    right: auto;
    bottom: 22px;
  }

  .search-band-inner {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .quick-search,
  .global-search-panel,
  .list-tools {
    flex-direction: column;
  }

  .quick-search button,
  .global-search-panel button {
    min-height: 46px;
  }

  .section {
    padding: 38px 0;
  }

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

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

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

  .category-images {
    height: 116px;
  }

  .compact-card {
    grid-template-columns: auto 56px 1fr;
  }

  .compact-card img {
    width: 56px;
    height: 74px;
  }

  .movie-card.wide .card-link {
    display: block;
  }

  .movie-card.wide .poster-wrap {
    aspect-ratio: 2 / 3;
  }

  .detail-hero {
    padding-bottom: 34px;
  }

  .overlay-play {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
