:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --teal-50: #f0fdfa;
  --shadow-soft: 0 16px 45px rgba(15, 23, 42, 0.12);
  --shadow-deep: 0 24px 70px rgba(2, 6, 23, 0.28);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--slate-50);
  color: var(--slate-800);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

img,
video {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.86;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-500), #14b8a6);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.32);
  font-size: 15px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 24px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 5px;
  color: #cbd5e1;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #e2e8f0;
  font-weight: 600;
}

.nav-link {
  position: relative;
  padding: 26px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #6ee7b7;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 3px;
  border-radius: 999px;
  background: #6ee7b7;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 18% 24%, rgba(16, 185, 129, 0.36), transparent 28%), linear-gradient(135deg, var(--slate-800), var(--slate-700) 48%, #064e3b);
  color: #ffffff;
}

.hero-slider {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 112px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: -70px calc(50% - 50vw);
  z-index: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62), rgba(6, 78, 59, 0.76)), var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: saturate(1.1);
}

.hero-copy,
.hero-art,
.hero-controls {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #a7f3d0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero p,
.page-hero p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #047857;
  background: #d1fae5;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags .tag-pill {
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.28);
  border: 1px solid rgba(167, 243, 208, 0.24);
}

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

.button-primary,
.button-secondary,
.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary,
.search-button {
  color: #ffffff;
  background: var(--emerald-600);
  box-shadow: 0 16px 35px rgba(5, 150, 105, 0.3);
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.button-primary:hover,
.button-secondary:hover,
.search-button:hover {
  transform: translateY(-2px);
}

.hero-art {
  display: block;
  overflow: hidden;
  min-height: 520px;
  border-radius: 30px;
  box-shadow: var(--shadow-deep);
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(1.5deg);
}

.hero-poster,
.movie-poster,
.rank-cover,
.category-cover,
.detail-cover {
  background-image: var(--cover-image);
  background-position: center;
  background-size: cover;
  background-color: #0f172a;
}

.hero-poster {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  transition: transform 0.5s ease;
}

.hero-art:hover .hero-poster {
  transform: scale(1.05);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 134px;
  display: flex;
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 30px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-search-wrap {
  position: relative;
  z-index: 2;
  margin-top: -80px;
  padding-bottom: 42px;
}

.search-panel {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  width: min(760px, 100%);
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.search-label {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 700;
}

.search-label input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--slate-800);
  background: #ffffff;
  font-size: 15px;
  outline: none;
}

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

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-category-links a,
.filter-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: 999px;
  color: var(--emerald-700);
  background: rgba(236, 253, 245, 0.95);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

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

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

.section-heading h2 {
  margin: 0 0 8px;
  color: var(--slate-800);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.12;
}

.section-heading p {
  margin: 0;
  color: var(--slate-600);
}

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

.compact-heading {
  margin-bottom: 18px;
}

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

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

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

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

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

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

.movie-card-link {
  display: flex;
  overflow: hidden;
  height: 100%;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.movie-poster::before,
.rank-cover::before,
.category-cover::before,
.detail-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.68));
}

.movie-type {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.68);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--emerald-500);
  box-shadow: 0 16px 32px rgba(16, 185, 129, 0.36);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.movie-title {
  color: var(--slate-800);
  font-size: 18px;
  line-height: 1.25;
}

.movie-card-link:hover .movie-title {
  color: var(--emerald-600);
}

.movie-line {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  color: var(--slate-500);
  font-size: 13px;
}

.movie-card-large .movie-card-link {
  border-radius: var(--radius-xl);
}

.movie-card-large .movie-title {
  font-size: 22px;
}

.movie-card-compact .movie-info {
  padding: 12px;
}

.movie-card-compact .movie-title {
  font-size: 15px;
}

.movie-card-compact .movie-line {
  min-height: 38px;
  font-size: 12px;
}

.movie-card-compact .movie-tags {
  display: none;
}

.tinted-section {
  margin-top: 62px;
  padding: 36px;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, #ecfdf5, #f0fdfa);
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-list-page {
  gap: 14px;
}

.rank-row {
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-link {
  display: grid;
  grid-template-columns: 54px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.rank-number {
  color: var(--emerald-600);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  position: relative;
  display: block;
  overflow: hidden;
  width: 64px;
  height: 88px;
  border-radius: 12px;
}

.rank-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.rank-body strong {
  color: var(--slate-800);
  font-size: 16px;
}

.rank-body span,
.rank-meta {
  color: var(--slate-500);
  font-size: 13px;
}

.page-hero {
  padding: 84px 0;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.33), transparent 30%), linear-gradient(135deg, var(--slate-900), var(--slate-700) 52%, #065f46);
}

.page-hero h1 {
  max-width: 840px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #d1fae5;
  font-size: 14px;
  font-weight: 700;
}

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

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-cover {
  position: relative;
  display: flex;
  min-height: 210px;
  align-items: flex-end;
  padding: 20px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.category-cover span {
  position: relative;
  z-index: 1;
}

.category-card-body {
  padding: 20px;
}

.category-card-body h2 {
  margin: 0 0 10px;
  color: var(--slate-800);
  font-size: 22px;
}

.category-card-body p {
  margin: 0 0 16px;
  color: var(--slate-600);
  font-size: 14px;
}

.category-samples {
  display: grid;
  gap: 8px;
  color: var(--emerald-600);
  font-size: 13px;
  font-weight: 700;
}

.archive-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.archive-toolbar .search-panel {
  width: 100%;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 36px;
}

.filter-button.is-active {
  color: #ffffff;
  background: var(--emerald-600);
}

.detail-wrap {
  padding-top: 36px;
}

.detail-breadcrumb {
  margin-bottom: 22px;
  color: var(--slate-600);
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-deep);
  aspect-ratio: 16 / 9;
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--emerald-600);
  box-shadow: 0 22px 52px rgba(5, 150, 105, 0.4);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-start span {
  margin-left: 4px;
  font-size: 34px;
}

.player-start:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-card.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.detail-cover {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.detail-cover span {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.68);
  font-weight: 800;
}

.detail-content {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-content h1 {
  margin: 0 0 16px;
  color: var(--slate-800);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-100);
  font-size: 13px;
  font-weight: 700;
}

.lead-text {
  color: var(--slate-700);
  font-size: 19px;
  font-weight: 700;
}

.detail-content h2 {
  margin: 28px 0 10px;
  color: var(--slate-800);
  font-size: 24px;
}

.detail-content p {
  margin: 0 0 14px;
  color: var(--slate-700);
  font-size: 16px;
}

.site-footer {
  margin-top: 80px;
  color: #cbd5e1;
  background: var(--slate-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

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

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

.site-footer a {
  display: block;
  margin: 7px 0;
  color: #cbd5e1;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 20px;
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-art {
    display: none;
  }

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

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

  .two-column-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    min-height: 520px;
  }
}

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

  .header-inner {
    min-height: 68px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 18px;
    background: var(--slate-900);
    box-shadow: var(--shadow-deep);
  }

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

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

  .nav-link.is-active::after {
    display: none;
  }

  .nav-link.is-active {
    background: rgba(16, 185, 129, 0.14);
  }

  .hero-slider {
    min-height: 570px;
  }

  .hero-slide {
    padding: 58px 0 126px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-search-wrap {
    margin-top: -92px;
  }

  .search-panel {
    align-items: stretch;
    flex-direction: column;
    border-radius: 18px;
  }

  .search-button {
    width: 100%;
  }

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

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

  .tinted-section {
    padding: 22px;
  }

  .rank-link {
    grid-template-columns: 42px 56px minmax(0, 1fr);
  }

  .rank-meta {
    display: none;
  }

  .rank-number {
    font-size: 20px;
  }

  .rank-cover {
    width: 56px;
    height: 76px;
  }

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

  .page-hero {
    padding: 58px 0;
  }

  .player-start {
    width: 66px;
    height: 66px;
  }

  .player-start span {
    font-size: 26px;
  }

  .detail-content {
    padding: 22px;
  }

  .detail-cover {
    min-height: 420px;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid-featured,
  .movie-grid-small,
  .movie-grid-sidebar {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }
}
