:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --cyan-700: #0e7490;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-600: #2563eb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, var(--slate-50), #eff6ff 45%, #ecfeff);
}

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

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

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(100% - 32px, var(--container));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-name {
  font-size: 21px;
  line-height: 1;
  background: linear-gradient(90deg, var(--cyan-600), var(--blue-600));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.25);
}

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

.desktop-nav a {
  color: var(--slate-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--cyan-600);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.nav-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 8px 10px 8px 14px;
  color: var(--slate-700);
  background: transparent;
}

.nav-search button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button {
  padding: 8px 15px;
  color: var(--white);
  border-radius: 999px;
  background: var(--cyan-600);
}

.nav-search button:hover,
.button-primary:hover {
  background: var(--cyan-700);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--slate-100);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--slate-700);
}

.mobile-nav {
  display: none;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

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

.section-shell {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 500px;
  height: 70vh;
  max-height: 640px;
  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(to top, rgba(0, 0, 0, 0.9), rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.12));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: min(100% - 32px, var(--container));
  max-width: 680px;
  transform: translateX(-50%);
  color: var(--white);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span:first-child {
  color: var(--white);
  background: var(--cyan-600);
}

.hero-tags span:not(:first-child) {
  color: var(--white);
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 720px;
  margin: 18px 0 12px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: 18px;
}

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

.button {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button-primary {
  color: var(--white);
  background: var(--cyan-600);
  box-shadow: 0 15px 34px rgba(8, 145, 178, 0.28);
}

.button-secondary {
  color: var(--cyan-700);
  background: #cffafe;
}

.button-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-arrow--prev {
  left: 24px;
}

.hero-arrow--next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.content-section {
  padding: 56px 0;
}

.section-light {
  background: transparent;
}

.section-white {
  background: var(--white);
}

.section-gradient {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(219, 234, 254, 0.52), rgba(207, 250, 254, 0.46));
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

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

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

.section-link {
  color: var(--cyan-700);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.72), transparent 65%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  color: var(--white);
  opacity: 0;
  background: var(--cyan-600);
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.28);
}

.movie-info {
  padding: 15px;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-info h3 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--cyan-700);
}

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

.tag-row span {
  color: var(--slate-700);
  background: var(--slate-100);
}

.tag-row--large span {
  min-height: 32px;
  padding: 6px 13px;
}

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

.category-card,
.category-overview-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.category-card {
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon,
.category-overview-main span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  color: var(--white);
  border-radius: 16px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
}

.category-card h3,
.category-overview-main h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
}

.category-card p,
.category-overview-main p {
  margin: 0 0 12px;
  color: var(--slate-600);
}

.category-card strong,
.category-overview-main strong {
  color: var(--cyan-700);
}

.page-hero {
  padding: 72px 0;
  color: var(--white);
  background: radial-gradient(circle at 18% 15%, rgba(34, 211, 238, 0.38), transparent 32%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero--compact {
  padding: 64px 0;
}

.page-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--cyan-400) !important;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(260px, 2fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-search input,
.filter-controls select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  outline: 0;
  padding: 0 12px;
  color: var(--slate-800);
  background: var(--white);
}

.filter-search input:focus,
.filter-controls select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

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

.filter-count {
  margin: 0;
  color: var(--slate-600);
  font-weight: 700;
}

.filter-count strong {
  color: var(--cyan-700);
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-lg);
  color: var(--slate-600);
  text-align: center;
  background: var(--white);
}

.category-overview-card {
  overflow: hidden;
}

.category-overview-main {
  display: block;
  padding: 24px;
  background: linear-gradient(135deg, var(--white), #ecfeff);
}

.category-overview-card ul {
  margin: 0;
  padding: 18px 24px 22px;
  list-style: none;
  border-top: 1px solid var(--slate-200);
}

.category-overview-card li + li {
  margin-top: 8px;
}

.category-overview-card a:hover {
  color: var(--cyan-700);
}

.ranking-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.ranking-list-card,
.text-panel,
.side-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.ranking-list-card {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.ranking-list-card h2,
.text-panel h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--slate-100);
}

.ranking-row span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  border-radius: 11px;
  font-weight: 900;
  background: var(--cyan-600);
}

.ranking-row a {
  color: var(--slate-900);
  font-weight: 800;
}

.ranking-row em {
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
}

.seo-block {
  padding: 56px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.seo-block h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.seo-block p {
  max-width: 760px;
  color: #dbeafe;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  color: var(--white);
  background: var(--slate-950);
}

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

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: blur(2px);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--slate-950), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.38));
}

.detail-hero-shell {
  position: relative;
  z-index: 2;
  padding: 54px 0 64px;
}

.detail-intro {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
  background: var(--slate-900);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-copy p {
  max-width: 760px;
  margin: 0 0 26px;
  color: #e0f2fe;
  font-size: 18px;
}

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

.detail-main {
  min-width: 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
}

.player-card video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-card.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.player-play-icon {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  color: var(--white);
  font-size: 28px;
  background: var(--cyan-600);
  box-shadow: 0 20px 48px rgba(8, 145, 178, 0.38);
}

.player-overlay strong {
  font-size: 20px;
}

.player-overlay small {
  color: var(--slate-200);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 4;
  margin: 0;
  color: var(--white);
  font-size: 14px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.text-panel {
  margin-bottom: 20px;
  padding: 24px;
}

.text-panel p {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 22px;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--slate-100);
}

.detail-list span {
  color: var(--slate-500);
}

.detail-list strong {
  color: var(--slate-900);
  text-align: right;
}

.side-link {
  display: block;
  padding: 10px 0;
  color: var(--cyan-700);
  font-weight: 800;
}

.site-footer {
  margin-top: 0;
  color: var(--slate-300);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
}

.footer-shell {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
  padding: 48px 0;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p,
.site-footer li {
  color: var(--slate-400);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 17px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

  .nav-search {
    margin-left: auto;
  }

  .mobile-menu-button {
    display: block;
  }

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

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

  .ranking-list-card,
  .detail-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
  }

  .nav-search {
    order: 3;
    width: 100%;
  }

  .nav-search input {
    width: 100%;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    bottom: 66px;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

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

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

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

@media (max-width: 560px) {
  .section-shell,
  .nav-shell,
  .footer-shell {
    width: min(100% - 24px, var(--container));
  }

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

  .hero {
    min-height: 520px;
    height: 76vh;
  }

  .hero h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero p,
  .detail-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .content-section {
    padding: 42px 0;
  }

  .section-heading--split {
    display: block;
  }

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

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