:root {
  --alley-50: #faf9f7;
  --alley-100: #f5f3ef;
  --rain-100: #e9ecef;
  --rain-200: #dee2e6;
  --rain-300: #ced4da;
  --rain-500: #6c757d;
  --rain-600: #495057;
  --rain-700: #343a40;
  --rain-800: #212529;
  --rain-900: #121416;
  --mist-50: #f0f4f8;
  --mist-100: #d9e2ec;
  --mist-300: #9fb3c8;
  --mist-500: #627d98;
  --mist-600: #486581;
  --mist-700: #334e68;
  --mist-800: #243b53;
  --gold: #facc15;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(18, 20, 22, 0.12);
  --soft-shadow: 0 10px 30px rgba(18, 20, 22, 0.08);
  color-scheme: light;
}

* {
  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;
  background: var(--alley-50);
  color: var(--rain-800);
  line-height: 1.7;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--rain-200);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(18, 20, 22, 0.05);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mist-700), var(--rain-800));
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: var(--soft-shadow);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong,
.footer-brand strong {
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 22px;
  color: var(--rain-800);
}

.brand-text small {
  color: var(--rain-500);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--rain-700);
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--mist-600);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--mist-50);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--rain-700);
  margin: 4px auto;
  border-radius: 99px;
}

.hero-carousel {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  background: var(--rain-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 35%, rgba(72, 101, 129, 0.72), transparent 34%),
    linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 76vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 92px;
  max-width: 1180px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-content h1 {
  max-width: 780px;
  color: var(--white);
  font-size: clamp(38px, 7vw, 76px);
}

.hero-desc {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 2vw, 20px);
  margin: 22px 0 0;
}

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

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  background: var(--white);
  color: var(--rain-900);
  box-shadow: var(--soft-shadow);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

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

.hero-control {
  position: absolute;
  z-index: 3;
  bottom: 32px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: calc(50% - 92px);
}

.hero-next {
  right: calc(50% - 92px);
}

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

.hero-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.movie-section,
.quick-categories,
.split-section {
  padding: 72px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading > span {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mist-50);
  color: var(--mist-600);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--rain-800);
}

.section-heading p {
  margin: 2px 0 0;
  color: var(--rain-500);
}

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

.category-grid a,
.category-overview-card,
.side-card,
.text-panel,
.player-panel {
  background: var(--white);
  border: 1px solid var(--rain-200);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.category-grid a {
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-grid a:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-grid strong {
  font-size: 20px;
  color: var(--rain-800);
}

.category-grid span,
.category-overview-card p,
.card-body p {
  color: var(--rain-500);
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(222, 226, 230, 0.9);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster {
  position: relative;
  display: block;
  height: 268px;
  overflow: hidden;
  background: var(--rain-100);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.poster-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rain-900);
  transform: scale(0.2);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

.poster em,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  font-size: 12px;
  font-style: normal;
  backdrop-filter: blur(10px);
}

.poster em {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: rgba(250, 204, 21, 0.92);
  color: var(--rain-900);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--rain-800);
}

.card-body h3 a:hover {
  color: var(--mist-600);
}

.card-body p {
  min-height: 50px;
  margin: 0 0 12px;
  font-size: 14px;
}

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

.meta-line {
  color: var(--rain-600);
  font-size: 13px;
  margin-bottom: 12px;
}

.meta-line span + span::before {
  content: "•";
  margin-right: 8px;
  color: var(--rain-300);
}

.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--mist-50);
  color: var(--mist-700);
  font-size: 12px;
  font-weight: 700;
}

.wide-band {
  background: var(--white);
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 20px;
  scroll-snap-type: x proximity;
}

.rail-item {
  width: 290px;
  min-width: 290px;
  scroll-snap-align: start;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 34px;
}

.rank-panel {
  position: sticky;
  top: 96px;
  background: var(--rain-800);
  color: var(--rain-100);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.rank-head h2 {
  margin: 0;
  font-size: 24px;
}

.rank-head a {
  color: var(--mist-300);
  font-size: 13px;
  font-weight: 800;
}

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

.rank-panel li a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.rank-panel b {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--rain-900);
}

.rank-panel span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-panel em {
  grid-column: 2;
  color: var(--rain-300);
  font-size: 12px;
  font-style: normal;
}

.sub-page {
  padding-bottom: 70px;
}

.page-hero {
  padding: 70px 0 34px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  color: var(--rain-800);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--rain-600);
  font-size: 18px;
}

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

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

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.category-overview-head h2 {
  margin: 0;
  color: var(--rain-800);
}

.category-overview-head span {
  color: var(--mist-600);
  font-weight: 800;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.mini-links a {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--mist-50);
  color: var(--mist-700);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
  background: var(--white);
  border: 1px solid var(--rain-200);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--soft-shadow);
}

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

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--mist-500);
  box-shadow: 0 0 0 4px rgba(72, 101, 129, 0.12);
}

.detail-page {
  background: var(--alley-50);
  padding-bottom: 72px;
}

.detail-hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--rain-900);
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 32px 0 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  margin-bottom: 42px;
}

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

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

.detail-cover {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-cover img {
  height: 430px;
  object-fit: cover;
}

.detail-copy {
  color: var(--white);
  padding-bottom: 12px;
}

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 70px);
}

.lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.large-tags {
  margin: 0 0 24px;
}

.large-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: -40px;
  position: relative;
  z-index: 4;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-panel {
  padding: 16px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: var(--rain-900);
}

.player-video {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--rain-900);
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(72, 101, 129, 0.2), rgba(0, 0, 0, 0.62));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rain-900);
  font-size: 32px;
  box-shadow: var(--shadow);
}

.text-panel {
  padding: 28px;
}

.text-panel h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--rain-800);
  font-size: 24px;
}

.text-panel p {
  margin: 0;
  color: var(--rain-700);
}

.detail-side {
  position: relative;
}

.side-card {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.side-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.side-card div {
  display: grid;
  gap: 3px;
}

.side-card dt {
  color: var(--rain-500);
  font-size: 13px;
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: var(--rain-800);
  font-weight: 700;
}

.side-card a {
  color: var(--mist-600);
}

.site-footer {
  background: var(--rain-800);
  color: var(--rain-100);
  margin-top: 70px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  gap: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong {
  color: var(--white);
}

.footer-brand p,
.copyright {
  margin: 0;
  color: var(--rain-300);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--rain-300);
  font-weight: 700;
}

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

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

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

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

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

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

@media (max-width: 820px) {
  .header-inner {
    height: 68px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--rain-200);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

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

  .main-nav a:hover {
    background: var(--mist-50);
  }

  .hero-content {
    padding-bottom: 110px;
  }

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

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

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

  .detail-cover {
    width: min(260px, 78vw);
  }

  .detail-cover img {
    height: 360px;
  }
}

@media (max-width: 560px) {
  .brand-text small {
    display: none;
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 82vh;
    height: 82vh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .movie-section,
  .quick-categories,
  .split-section {
    padding: 48px 0;
  }

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

  .poster {
    height: 320px;
  }

  .rail-item {
    width: 260px;
    min-width: 260px;
  }

  .detail-hero {
    min-height: 720px;
  }

  .detail-meta span,
  .hero-meta span {
    font-size: 12px;
  }
}
