:root {
  color-scheme: dark;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111827;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --white: #ffffff;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --blue-400: #60a5fa;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 18px;
  --radius-2xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-300);
  background: linear-gradient(180deg, var(--slate-950), var(--slate-900));
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(51, 65, 85, 0.75);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--white);
  background: var(--amber-500);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  color: var(--slate-300);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.search-form {
  position: relative;
  width: 270px;
}

.search-form input,
.mobile-search input,
.filter-panel input,
.filter-panel select,
.wide-search input {
  width: 100%;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 12px;
  outline: none;
  color: var(--white);
  background: rgba(30, 41, 59, 0.85);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input {
  padding: 11px 44px 11px 15px;
}

.search-form input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.wide-search input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.search-form button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  color: var(--slate-400);
  background: transparent;
  font-size: 22px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 28px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-search input {
  padding: 11px 14px;
}

.mobile-search button,
.wide-search button {
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: var(--white);
  background: var(--amber-500);
}

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

.mobile-panel nav a {
  padding: 10px 0;
  color: var(--slate-300);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #000;
}

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

.hero-slide.active {
  opacity: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--amber-500);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 20px 0 16px;
  color: var(--white);
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: var(--slate-300);
  font-size: 20px;
  line-height: 1.7;
}

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

.hero-meta {
  margin-bottom: 30px;
  color: var(--slate-300);
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.62);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: var(--amber-500);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--amber-600);
}

.ghost-button {
  color: var(--slate-300);
  background: rgba(30, 41, 59, 0.76);
}

.ghost-button:hover {
  color: var(--white);
  background: rgba(51, 65, 85, 0.95);
}

.ghost-button.small {
  padding: 10px 16px;
  font-size: 14px;
}

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

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

.hero-dot.active {
  width: 32px;
  background: var(--amber-500);
}

.section {
  padding: 74px 0 0;
}

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

.section-title h2,
.page-hero h1,
.related-panel h2,
.detail-content h1 {
  margin: 0;
  color: var(--white);
}

.section-title h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-title a {
  color: var(--amber-400);
  font-weight: 700;
}

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

.feature-card,
.poster-card,
.category-tile,
.category-overview-card,
.player-card,
.related-panel,
.ranking-panel,
.ranking-card,
.search-page-panel,
.glass-panel {
  border: 1px solid rgba(51, 65, 85, 0.56);
  background: rgba(30, 41, 59, 0.5);
  box-shadow: var(--shadow);
}

.feature-card,
.poster-card,
.category-tile,
.category-overview-card,
.player-card,
.related-panel,
.ranking-panel,
.ranking-card,
.search-page-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feature-card__link,
.poster-card__link {
  display: block;
  height: 100%;
}

.feature-card__link {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.feature-card img,
.poster-card img,
.compact-card img,
.related-item img,
.ranking-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover img,
.poster-card:hover img,
.compact-card:hover img,
.related-item:hover img,
.ranking-card:hover img {
  transform: scale(1.08);
}

.feature-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.12));
}

.feature-card__body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.feature-card__body h3,
.poster-card h3,
.compact-card h3,
.ranking-card h2 {
  margin: 0;
  color: var(--white);
}

.feature-card__body h3 {
  font-size: 22px;
}

.feature-card__body p,
.compact-card p,
.ranking-card p,
.category-tile p,
.page-hero p,
.category-overview-card p,
.detail-content p,
.site-footer p {
  color: var(--slate-300);
  line-height: 1.75;
}

.feature-card__body p,
.compact-card p,
.ranking-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
}

.meta-row {
  justify-content: space-between;
  margin-top: 12px;
  color: var(--slate-400);
  font-size: 14px;
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 270px;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0 18px;
}

.glass-panel {
  border-radius: var(--radius-2xl);
  padding: 34px;
}

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

.poster-card__media {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.6);
}

.poster-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.55);
  transition: opacity 0.25s ease;
}

.poster-card:hover .poster-card__media::after {
  opacity: 1;
}

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-card__body {
  padding: 13px;
}

.poster-card h3 {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.poster-card:hover h3,
.feature-card:hover h3,
.compact-card:hover h3,
.related-item:hover strong,
.ranking-card:hover h2 {
  color: var(--amber-400);
}

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

.category-tile a {
  display: grid;
  min-height: 220px;
  padding: 24px;
}

.category-tile h3,
.category-overview-card h2 {
  margin: 0 0 12px;
  color: var(--white);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.mini-links a {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--amber-400);
  background: rgba(245, 158, 11, 0.12);
  font-size: 13px;
}

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

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

.ranking-panel,
.related-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 40px 82px 1fr;
  gap: 12px;
  align-items: center;
}

.rank-number {
  color: var(--amber-400);
  font-size: 22px;
  font-weight: 900;
}

.rank-list img {
  width: 82px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  color: var(--white);
}

.rank-info em {
  margin-top: 4px;
  color: var(--slate-400);
  font-size: 12px;
  font-style: normal;
}

.page-main {
  min-height: 70vh;
  padding-bottom: 76px;
}

.page-hero {
  padding-top: 64px;
}

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

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

.page-hero p {
  max-width: 820px;
  margin: 16px 0 0;
  font-size: 18px;
}

.category-overview-list {
  display: grid;
  gap: 26px;
}

.category-overview-card {
  padding: 26px;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 190px 190px;
  gap: 14px;
  margin-bottom: 26px;
}

.filter-panel input,
.filter-panel select {
  padding: 13px 15px;
}

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

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

.ranking-grid {
  display: grid;
  gap: 18px;
}

.ranking-card a {
  display: grid;
  grid-template-columns: 72px 180px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
}

.ranking-index {
  color: var(--amber-400);
  font-size: 30px;
  font-weight: 900;
}

.ranking-card img {
  width: 180px;
  height: 112px;
  border-radius: 14px;
}

.ranking-card h2 {
  font-size: 23px;
  transition: color 0.2s ease;
}

.search-page-panel {
  padding: 24px;
  margin-bottom: 26px;
}

.wide-search {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 14px;
}

.wide-search input {
  padding: 15px 16px;
}

.search-results {
  display: grid;
  gap: 18px;
}

.search-empty {
  border-radius: var(--radius-xl);
  padding: 38px;
  text-align: center;
  background: rgba(30, 41, 59, 0.45);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 26px;
  color: var(--slate-400);
  font-size: 14px;
}

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

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

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

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

.center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.92);
  font-size: 34px;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.center-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.player-box.is-playing .center-play {
  opacity: 0;
  pointer-events: none;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  transition: opacity 0.2s ease;
}

.player-box:hover .player-controls,
.player-box:focus-within .player-controls {
  opacity: 1;
}

.player-controls button {
  border: 0;
  border-radius: 10px;
  padding: 10px 13px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.75);
}

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  font-size: clamp(30px, 4vw, 44px);
}

.detail-meta {
  margin: 16px 0 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.tag-pill {
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--slate-300);
  background: rgba(51, 65, 85, 0.62);
}

.detail-content section {
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  padding-top: 22px;
  margin-top: 22px;
}

.detail-content h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 22px;
}

.detail-content p {
  margin: 0;
  text-align: justify;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 10px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: rgba(30, 41, 59, 0.82);
}

.related-item img {
  width: 118px;
  height: 76px;
  border-radius: 10px;
}

.related-item strong,
.related-item em {
  display: block;
}

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--white);
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.related-item em {
  margin-top: 8px;
  color: var(--slate-400);
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.8);
  background: var(--slate-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(51, 65, 85, 0.65);
  padding: 18px;
  text-align: center;
  color: var(--slate-400);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .feature-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .ranking-panel,
  .related-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .main-nav,
  .search-form {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    justify-content: end;
    padding-bottom: 92px;
  }

  .hero p {
    font-size: 17px;
  }

  .section {
    padding-top: 52px;
  }

  .feature-grid,
  .category-grid,
  .footer-grid,
  .filter-panel,
  .ranking-card a {
    grid-template-columns: 1fr;
  }

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

  .category-overview-head,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-card img {
    width: 100%;
    height: 190px;
  }

  .wide-search {
    grid-template-columns: 1fr;
  }
}

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

  .logo {
    font-size: 18px;
  }

  .hero {
    height: 520px;
  }

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

  .hero-actions {
    width: 100%;
  }

  .primary-button,
  .ghost-button {
    flex: 1;
  }

  .horizontal-row {
    grid-auto-columns: 220px;
  }

  .glass-panel,
  .category-overview-card,
  .detail-content,
  .related-panel {
    padding: 20px;
  }

  .poster-grid,
  .mini-grid,
  .category-movie-grid,
  .compact-grid {
    gap: 12px;
  }

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