* {
  box-sizing: border-box;
}

:root {
  --rose: #f43f5e;
  --pink: #db2777;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --green: #16a34a;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.28);
}

.brand-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav a,
.mobile-panel a {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover {
  color: var(--rose);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-search input,
.filter-selects select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 15px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search input:focus,
.filter-selects select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: #fff1f2;
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--rose);
  margin: 5px 0;
}

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

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

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

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

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

.hero-carousel {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.24), transparent 34%), #0f172a;
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 110px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 13px;
  color: #fecdd3;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.hero-copy h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p,
.detail-copy p {
  width: min(660px, 100%);
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 5px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.32);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

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

.primary-button.small,
.ghost-button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.hero-art,
.detail-cover {
  min-height: 520px;
  border-radius: 34px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.76)), var(--cover-url), linear-gradient(135deg, #fb7185, #7c3aed);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  color: #ffffff;
  font-size: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.section-block {
  padding: 54px 0;
}

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

.section-heading span,
.page-hero span {
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.section-heading h2,
.page-hero h1,
.detail-section h2,
.info-card h2,
.side-rank h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--rose);
  font-weight: 900;
}

.quick-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: -38px;
  position: relative;
  z-index: 3;
}

.quick-card {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.quick-card > span {
  color: var(--rose);
  font-weight: 900;
}

.quick-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.quick-card a,
.tag-row span,
.page-index a,
.pager-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 5px 12px;
  color: #4b5563;
  background: #f3f4f6;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.quick-card a:hover,
.page-index a:hover,
.page-index a.active,
.pager-actions a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  transform: translateY(-1px);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.34);
  box-shadow: var(--shadow);
}

.movie-poster,
.detail-cover,
.player-cover {
  --cover-url: none;
}

.movie-poster {
  position: relative;
  min-height: 276px;
  display: block;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.78)), var(--cover-url), linear-gradient(135deg, #fb7185, #6366f1);
  background-size: cover;
  background-position: center;
}

.poster-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.86));
}

.movie-year,
.movie-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 11px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.72);
}

.movie-year {
  top: 12px;
  left: 12px;
}

.movie-play {
  right: 12px;
  bottom: 12px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 9px 0 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.28;
}

.movie-card p {
  min-height: 54px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  min-height: 28px;
  color: #64748b;
  background: #f8fafc;
  font-size: 12px;
}

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

.movie-card.compact .movie-poster {
  min-height: 210px;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.movie-card.horizontal .movie-poster {
  min-height: 100%;
}

.feature-band {
  padding: 58px 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.feature-band .section-heading h2,
.feature-band .section-heading p,
.feature-band .section-heading span {
  color: #ffffff;
}

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

.movie-list-horizontal {
  display: grid;
  gap: 18px;
}

.side-rank,
.info-card,
.detail-section,
.filter-panel,
.category-tile {
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.side-rank,
.info-card,
.detail-section {
  padding: 24px;
}

.compact-list,
.rank-list,
.related-list {
  display: grid;
  gap: 10px;
}

.compact-movie {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.compact-movie:hover {
  transform: translateX(4px);
  border-color: rgba(244, 63, 94, 0.32);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.compact-rank,
.compact-dot {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.compact-dot {
  width: 10px;
  height: 10px;
  background: var(--rose);
}

.compact-title {
  overflow: hidden;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-info,
.compact-hot {
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  padding: 76px 0;
  background: linear-gradient(135deg, #fff1f2, #eff6ff);
}

.rank-hero {
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(251, 113, 133, 0.52), transparent 28%), linear-gradient(135deg, #111827, #4c1d95);
}

.rank-hero h1,
.rank-hero p {
  color: #ffffff;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  margin-bottom: 24px;
}

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

.filter-selects {
  display: flex;
  gap: 10px;
}

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.page-index,
.pager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.no-result {
  border-radius: 18px;
  padding: 24px;
  color: var(--muted);
  background: #f8fafc;
}

.rank-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

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

.category-tile {
  display: grid;
  gap: 8px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span {
  color: var(--rose);
  font-weight: 900;
}

.category-tile strong {
  color: var(--ink);
  font-size: 22px;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
}

.detail-hero {
  min-height: 560px;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.52)), var(--cover-url), linear-gradient(135deg, #111827, #be123c);
  background-size: cover;
  background-position: center;
}

.detail-hero-overlay {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: center;
}

.detail-copy {
  color: #ffffff;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-cover {
  min-height: 440px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 26px;
  padding: 54px 0;
}

.player-column {
  display: grid;
  gap: 22px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.88)), var(--cover-url), linear-gradient(135deg, #fb7185, #312e81);
  background-size: cover;
  background-position: center;
}

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

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding-left: 5px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.42);
}

.detail-section p {
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 17px;
}

.detail-aside {
  display: grid;
  align-content: start;
  gap: 18px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 16px 0 0;
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  color: #cbd5e1;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 30px;
}

.footer-logo .brand-text {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  color: #94a3b8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px;
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-art,
  .detail-cover {
    min-height: 360px;
  }

  .three-cols,
  .four-cols,
  .rank-showcase,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-track {
    min-height: 740px;
  }

  .hero-slide {
    padding-top: 54px;
  }

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

  .quick-entry,
  .three-cols,
  .four-cols,
  .rank-showcase,
  .category-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal .movie-poster {
    min-height: 240px;
  }

  .filter-selects {
    flex-direction: column;
  }

  .compact-movie {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .compact-info,
  .compact-hot {
    grid-column: 2;
  }
}
