:root {
  --alley-50: #faf9f7;
  --alley-100: #f2efe8;
  --rain-50: #f8f9fa;
  --rain-100: #e9ecef;
  --rain-200: #dee2e6;
  --rain-300: #ced4da;
  --rain-400: #adb5bd;
  --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-sm: 0 4px 14px rgba(18, 20, 22, 0.08);
  --shadow-md: 0 10px 30px rgba(18, 20, 22, 0.12);
  --shadow-lg: 0 20px 50px rgba(18, 20, 22, 0.18);
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--alley-50);
  color: var(--rain-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", "Noto Serif SC", serif;
  line-height: 1.2;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--rain-200);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mist-600);
  color: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

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

.brand-title {
  color: var(--rain-800);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 800;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link,
.mobile-link {
  color: var(--rain-700);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--mist-700);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--rain-100);
  color: var(--rain-700);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--rain-200);
  padding: 16px 24px;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

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

.hero-overlay,
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  right: 24px;
  bottom: 110px;
  max-width: 760px;
  color: var(--white);
}

.hero-kicker,
.eyebrow,
.section-heading span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-content h1 {
  margin-top: 14px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 74px);
  color: var(--white);
}

.hero-content p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 20px);
}

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

.hero-meta span,
.detail-meta-inline span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  padding: 13px 30px;
  background: var(--white);
  color: var(--rain-900);
  box-shadow: var(--shadow-md);
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.secondary-button {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.text-button {
  margin-top: 18px;
  color: var(--mist-700);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-controls button {
  border: 0;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

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

.section {
  padding: 72px 24px;
}

.section-wide {
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-mist {
  background: var(--mist-50);
}

.section-inner-narrow {
  max-width: 980px;
  margin: 0 auto;
}

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

.section-heading h2 {
  margin-top: 8px;
  color: var(--rain-800);
  font-size: clamp(28px, 3vw, 40px);
}

.section-heading p {
  max-width: 760px;
  margin-top: 10px;
  color: var(--rain-600);
}

.compact-heading {
  margin-bottom: 20px;
}

.compact-heading h2 {
  font-size: 24px;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

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

.movie-card-large .poster-wrap {
  height: 340px;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.16), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.poster-type {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  font-size: 12px;
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rain-900);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.25s ease;
}

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

.poster-summary {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: -webkit-box;
  overflow: hidden;
  color: var(--white);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  padding: 16px;
}

.movie-card-body h3 {
  margin-bottom: 10px;
  overflow: hidden;
  color: var(--rain-800);
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--rain-500);
  font-size: 13px;
}

.movie-meta span:first-child {
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--mist-50);
  color: var(--mist-700);
  font-weight: 700;
}

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

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

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.28));
}

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

.category-card span {
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

.category-card h3 {
  font-size: 25px;
}

.category-card p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--rain-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 16px;
}

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

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--rain-600);
  font-size: 13px;
  font-weight: 700;
}

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

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

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
}

.ranking-panel,
.sticky-card,
.detail-card,
.player-card {
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.ranking-panel {
  padding: 24px;
  align-self: start;
}

.compact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compact-row {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.compact-poster {
  width: 116px;
  height: 78px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: var(--rain-100);
}

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

.compact-content {
  min-width: 0;
  flex: 1;
}

.compact-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.compact-title-line h3 {
  overflow: hidden;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-content p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--rain-600);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  color: var(--rain-500);
  font-size: 12px;
}

.rank-number {
  min-width: 34px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--mist-600);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.page-hero {
  padding: 88px 24px;
  background: linear-gradient(135deg, var(--mist-800), var(--mist-600));
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  margin: 10px auto 16px;
  font-size: clamp(38px, 5vw, 62px);
}

.page-hero p {
  max-width: 780px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.category-overview-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: center;
}

.category-stack {
  height: 160px;
  position: relative;
}

.category-stack img {
  position: absolute;
  width: 116px;
  height: 150px;
  object-fit: cover;
  border: 4px solid var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.category-stack img:nth-child(1) {
  left: 0;
  top: 8px;
  transform: rotate(-6deg);
}

.category-stack img:nth-child(2) {
  left: 42px;
  top: 0;
  z-index: 2;
}

.category-stack img:nth-child(3) {
  left: 84px;
  top: 8px;
  transform: rotate(6deg);
}

.category-overview-card h2 {
  margin: 8px 0;
  color: var(--rain-800);
  font-size: 28px;
}

.category-overview-card p {
  color: var(--rain-600);
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 22px;
  border-radius: 16px;
  background: var(--white);
  color: var(--rain-600);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.empty-state.show {
  display: block;
}

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

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 24px 76px;
  color: var(--white);
}

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

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

.detail-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 64px);
}

.detail-hero-content p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.detail-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.player-card {
  padding: 16px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18));
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.video-player.is-playing .player-overlay {
  display: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: 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-md);
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  font-size: 13px;
}

.player-message.show {
  display: block;
}

.detail-card {
  padding: 28px;
}

.detail-card h2 {
  margin-bottom: 20px;
  color: var(--rain-800);
  font-size: 32px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.info-grid div {
  padding: 14px;
  border-radius: 14px;
  background: var(--mist-50);
}

.info-grid span {
  display: block;
  color: var(--rain-500);
  font-size: 12px;
}

.info-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--rain-800);
}

.detail-section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--rain-200);
}

.detail-section h3 {
  margin-bottom: 12px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 900;
}

.detail-section p {
  color: var(--rain-700);
  text-align: justify;
}

.lead-text {
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--rain-100);
  color: var(--rain-700);
  font-size: 14px;
}

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

.sticky-card {
  position: sticky;
  top: 100px;
  padding: 22px;
}

.sidebar-list .compact-row {
  box-shadow: none;
  border: 1px solid var(--rain-200);
}

.site-footer {
  background: var(--rain-800);
  color: var(--rain-300);
  padding: 54px 24px 28px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: var(--white);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 900;
}

.footer-desc {
  max-width: 420px;
  margin-top: 12px;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
}

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

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

.footer-bottom {
  max-width: 1280px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--rain-700);
  color: var(--rain-400);
  font-size: 13px;
}

[hidden-by-filter="true"] {
  display: none !important;
}

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

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

  .detail-sidebar {
    order: 2;
  }

  .sticky-card {
    position: static;
  }
}

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

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

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    left: 20px;
    bottom: 100px;
  }

  .section {
    padding: 54px 18px;
  }

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

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

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

  .info-grid,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 66px;
    padding: 0 16px;
  }

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

  .brand-subtitle {
    display: none;
  }

  .hero-content h1,
  .detail-hero h1 {
    font-size: 36px;
  }

  .hero-content p,
  .detail-hero-content p {
    font-size: 15px;
  }

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

  .poster-wrap,
  .movie-card-large .poster-wrap {
    height: 330px;
  }

  .compact-row {
    align-items: flex-start;
  }

  .compact-poster {
    width: 96px;
    height: 70px;
  }

  .info-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-card,
  .ranking-panel,
  .sticky-card {
    padding: 20px;
  }
}
