:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #132033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --amber-400: #fbbf24;
  --rose-500: #f43f5e;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.16);
  --shadow-card: 0 12px 36px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--slate-50) 0%, #ffffff 45%, var(--slate-100) 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #ffffff;
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--teal-400), #a7f3d0);
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.35);
}

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

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

.brand-text small {
  margin-top: 4px;
  color: var(--slate-300);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  white-space: nowrap;
}

.nav-link {
  font-size: 14px;
  font-weight: 650;
  color: var(--slate-200);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal-400);
  transform: translateY(-1px);
}

.nav-link.compact {
  color: var(--slate-300);
  font-size: 13px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(226, 232, 240, 0.16);
  background: var(--slate-800);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 20px 20px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--slate-200);
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.hero-copy {
  width: min(680px, 100%);
  padding-top: 20px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ccfbf1;
  background: rgba(20, 184, 166, 0.18);
  border: 1px solid rgba(45, 212, 191, 0.28);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--slate-200);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.hero-meta span,
.tag-row span,
.detail-tags span,
.info-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 12px;
  font-weight: 700;
}

.hero-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

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

.btn-primary {
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--teal-400), #a7f3d0);
  box-shadow: 0 18px 36px rgba(20, 184, 166, 0.28);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(620px, 100%);
  margin-top: 28px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.hero-search input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.hero-search input::placeholder {
  color: var(--slate-300);
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--teal-400);
}

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

.section.dark {
  width: min(1280px, calc(100% - 32px));
  margin: 56px auto;
  padding: 48px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

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

.section h2,
.section-title,
.detail-section h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section.dark h2,
.section.dark .section-title {
  color: #ffffff;
}

.section-desc {
  max-width: 740px;
  margin: 10px 0 0;
  color: var(--slate-600);
  line-height: 1.8;
}

.section.dark .section-desc {
  color: var(--slate-300);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

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

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

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--slate-950);
  background: var(--teal-400);
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.38);
}

.card-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--slate-950);
  background: var(--amber-400);
  font-style: normal;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-900);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.card-title:hover {
  color: var(--teal-600);
}

.card-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 12px;
}

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

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
  box-shadow: var(--shadow-card);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.18);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: var(--slate-300);
  line-height: 1.7;
}

.category-card .category-count {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--teal-400);
  font-weight: 900;
}

.sample-links {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.sample-links a {
  color: var(--slate-200);
  font-size: 13px;
}


.category-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 18px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--slate-950);
  background: var(--teal-400);
  font-weight: 900;
}

.section:not(.dark) .rank-item {
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.section:not(.dark) .rank-info strong {
  color: var(--slate-900);
}

.section:not(.dark) .rank-info small {
  color: var(--slate-500);
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 58px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.13);
}

.rank-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--slate-700);
}

.list-rank,
.list-dot {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--slate-950);
  background: var(--teal-400);
  font-weight: 900;
}

.list-dot {
  color: var(--teal-400);
  background: rgba(45, 212, 191, 0.12);
}

.rank-info strong {
  display: block;
  color: #ffffff;
  line-height: 1.4;
}

.rank-info small {
  display: block;
  margin-top: 4px;
  color: var(--slate-300);
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(130px, 180px));
  gap: 12px;
  margin: 0 0 28px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 12px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  padding: 76px 0 36px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.22), transparent 30%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--slate-300);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--teal-400);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--slate-300);
  font-size: 18px;
  line-height: 1.85;
}

.detail-hero {
  color: #ffffff;
  background: radial-gradient(circle at 25% 0%, rgba(45, 212, 191, 0.24), transparent 30%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.detail-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 58px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 40px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: var(--slate-900);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.detail-copy p {
  max-width: 820px;
  color: var(--slate-200);
  font-size: 18px;
  line-height: 1.85;
}

.detail-tags span,
.info-chip {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--teal-400), #a7f3d0);
  box-shadow: 0 24px 60px rgba(20, 184, 166, 0.34);
  font-size: 34px;
  transform: translateZ(0);
}

.content-panel {
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.content-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
  letter-spacing: -0.025em;
}

.content-panel p {
  margin: 0 0 18px;
  color: var(--slate-700);
  font-size: 16px;
  line-height: 1.9;
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 94px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
  box-shadow: var(--shadow-card);
}

.side-panel h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 24px;
}

.hidden-card {
  display: none !important;
}

.pagination-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.pagination-links a {
  flex: 1;
  padding: 16px;
  border-radius: 18px;
  color: var(--slate-700);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.pagination-links a:hover {
  color: var(--teal-600);
}

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

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
}

.footer-logo {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

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

@media (max-width: 1180px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

  .desktop-nav .compact {
    display: none;
  }
}

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

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

  .hero {
    min-height: 680px;
    height: auto;
  }

  .hero-content {
    min-height: 680px;
    padding: 70px 0 110px;
  }

  .hero-search,
  .filter-panel,
  .rank-layout,
  .detail-grid,
  .detail-columns,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .section.dark {
    padding: 28px;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 22px, 1280px);
    height: 62px;
  }

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

  .hero h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.035em;
  }

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

  .section {
    padding: 42px 0;
  }

  .section-head {
    display: block;
  }

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

  .category-grid,
  .hero-card-stack {
    grid-template-columns: 1fr;
  }

  .card-body {
    padding: 12px;
  }

  .card-body p {
    min-height: auto;
  }

  .detail-grid {
    gap: 22px;
  }

  .detail-poster {
    max-width: 260px;
  }

  .content-panel {
    padding: 22px;
  }

  .player-button {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
