:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.16);
  --shadow-md: 0 14px 30px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button, input, select {
  font: inherit;
}

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

.navbar {
  max-width: 1280px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--emerald-400), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--emerald-400), var(--cyan-400));
  font-size: 14px;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
  font-size: 14px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(16, 185, 129, 0.2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: center;
  color: var(--white);
}

.hero-copy h1 {
  margin: 0 0 20px;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.hero-copy h1 span {
  color: var(--emerald-400);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-list,
.detail-tags,
.hero-actions,
.card-meta,
.info-list,
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

.hero-tags span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.13);
  color: var(--emerald-700);
  font-weight: 700;
  font-size: 13px;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.button-primary,
.button-secondary,
.section-link,
.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.button-primary {
  color: var(--white);
  background: var(--emerald-500);
  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.32);
}

.button-primary:hover,
.section-link:hover,
.pager-link:hover {
  transform: translateY(-2px);
  background: var(--emerald-600);
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.button-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-panel {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 18px;
}

.hero-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.hero-panel p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.8);
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: background 0.25s ease, width 0.25s ease;
}

.hero-dot.is-active {
  width: 52px;
  background: var(--emerald-400);
}

.page-section,
.page-hero,
.detail-wrapper {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.page-section {
  padding: 72px 0 0;
}

.page-hero {
  padding: 72px 0 32px;
}

.page-hero h1 {
  margin: 0 0 12px;
  max-width: 880px;
  color: var(--gray-900);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.page-hero p {
  max-width: 850px;
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.section-link,
.pager-link {
  color: var(--white);
  background: var(--emerald-500);
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), var(--emerald-700));
}

.card-featured .card-cover {
  aspect-ratio: 16 / 9;
}

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

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

.play-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
  font-size: 28px;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.28);
  color: var(--white);
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  font-weight: 800;
  font-size: 12px;
}

.rank-badge {
  right: auto;
  left: 12px;
  background: linear-gradient(135deg, var(--emerald-500), var(--cyan-500));
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  min-height: 52px;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.45;
}

.card-body h2 a:hover {
  color: var(--emerald-600);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  justify-content: space-between;
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta span:first-child {
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--emerald-700);
  background: #ecfdf5;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 750;
}

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

.category-tile {
  min-height: 170px;
  padding: 22px;
  border-radius: var(--radius-md);
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-800), var(--emerald-700));
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.category-samples {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-samples a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.category-samples a:hover {
  color: var(--white);
}

.highlight-section {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ecfdf5, #ecfeff);
  box-shadow: var(--shadow-md);
}

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

.compact-link {
  display: grid;
  grid-template-columns: 40px 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.compact-link img {
  width: 88px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.compact-rank {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-500), var(--cyan-500));
  font-weight: 900;
}

.compact-link strong,
.compact-link small {
  display: block;
}

.compact-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-link small {
  color: var(--gray-500);
}

.filter-panel {
  margin: 26px 0 28px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.filter-search input,
.filter-selects select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--gray-800);
  background: var(--gray-50);
  outline: none;
}

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

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

.filter-empty {
  padding: 18px;
  border-radius: 16px;
  color: var(--gray-600);
  background: var(--white);
  text-align: center;
}

.breadcrumbs {
  margin-bottom: 22px;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--emerald-700);
  font-weight: 700;
}

.detail-wrapper {
  padding: 34px 0 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 30px;
  align-items: start;
}

.player-shell,
.detail-card,
.side-card {
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.player-shell {
  overflow: hidden;
  background: var(--slate-950);
}

.movie-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  color: var(--white);
  background: #000;
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

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

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08));
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
  background: rgba(255, 255, 255, 0.92);
  font-size: 32px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.player-cover:hover .play-circle {
  transform: translate(-50%, -50%) scale(1.08);
  color: var(--white);
  background: var(--emerald-500);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.8);
  text-align: center;
}

.player-message.is-visible {
  display: block;
}

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.info-list {
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.info-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--gray-50);
}

.detail-block {
  margin-top: 28px;
}

.detail-block h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.detail-block p {
  margin: 0;
  color: var(--gray-700);
}

.quote-line {
  padding: 16px 18px;
  border-left: 5px solid var(--emerald-500);
  border-radius: 14px;
  background: #ecfdf5;
  font-size: 18px;
  font-style: italic;
}

.review-box {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ecfdf5, #ecfeff);
}

.side-card {
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.side-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.side-card-content h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.related-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pager-row {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.site-footer {
  margin-top: 84px;
  color: var(--gray-300);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

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

.footer-inner p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--gray-300);
}

.footer-inner h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-category-links {
  columns: 2;
  display: block;
}

.footer-links a {
  display: block;
  color: var(--gray-300);
}

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

.footer-bottom {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-400);
  text-align: center;
}

@media (max-width: 1100px) {
  .hero-content,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .side-card {
    position: static;
  }

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

@media (max-width: 820px) {
  .navbar {
    flex-wrap: wrap;
  }

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

  .nav-links {
    display: none;
    width: 100%;
    padding-bottom: 14px;
    justify-content: flex-start;
  }

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

  .hero-content {
    width: min(100% - 32px, 1280px);
    padding: 52px 0 72px;
  }

  .hero-panel {
    display: none;
  }

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

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

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

  .page-section,
  .page-hero,
  .detail-wrapper,
  .footer-inner {
    width: min(100% - 32px, 1280px);
  }
}

@media (max-width: 560px) {
  .movie-grid,
  .movie-grid.featured-grid,
  .category-strip,
  .ranking-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

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

  .compact-link {
    grid-template-columns: 38px 76px minmax(0, 1fr);
  }

  .compact-link img {
    width: 76px;
  }
}
