/* msyrjx 同款布局 · 深红玫色系 · 对齐栅格对齐 */
:root {
  --sky: #be123c;
  --blue: #9f1239;
  --cyan: #e11d48;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #fff1f2;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  --soft-2: #ffe4e6;
  --soft-3: #fecdd3;
  --rank-a: #f97316;
  --rank-b: #eab308;
  --page: 80rem;
  --pad: 1.25rem;
  --radius: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f8fafc;
  color: var(--ink);
  line-height: 1.5;
  -webkit-tap-highlight-color: rgba(190, 18, 60, 0.12);
}

body.nav-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--sky);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.15s;
}

.skip-link:focus {
  transform: none;
  outline: 2px solid #fef08a;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

button,
input,
select {
  font: inherit;
  color: inherit;
  margin: 0;
}

ul,
ol,
h1,
h2,
h3,
p,
dl,
dd,
dt {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

.sky-app {
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--soft) 0, #fff 280px, #f8fafc 100%);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ===== 统一内容宽度 ===== */
.wrap,
.max-w-7xl,
.nav-inner,
.hero-content,
.footer-grid,
.footer-bottom,
.page-hero > div,
.detail-wrap,
.detail-layout {
  width: 100%;
  max-width: var(--page);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  box-sizing: border-box;
}

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

/* ===== Nav ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--sky), var(--blue), var(--cyan));
  box-shadow: 0 8px 24px rgba(190, 18, 60, 0.22);
  padding-top: env(safe-area-inset-top, 0);
}

.nav-inner {
  min-height: 4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.25rem;
}

.nav-links a,
.nav-dropdown > button {
  color: #fff;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 0.55rem;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: 0.15s;
}

.nav-links a:hover,
.nav-dropdown > button:hover {
  color: #fef08a;
}

.nav-links a[aria-current='page'],
.nav-links a.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fef9c3;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  width: 11.5rem;
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: var(--shadow);
  padding: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.15s;
  z-index: 60;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown-panel a {
  display: block;
  color: #334155;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  font-weight: 600;
}

.dropdown-panel a:hover {
  background: var(--soft-2);
  color: var(--blue);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.nav-search input {
  width: 15rem;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  outline: 0;
}

.nav-search button {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  color: #fff;
  font-size: 1.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

.mobile-panel {
  display: none;
  background: #fff;
  padding: 0.85rem var(--pad) calc(1rem + env(safe-area-inset-bottom));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.mobile-panel.open {
  display: grid;
  gap: 0.5rem;
}

.mobile-panel[hidden] {
  display: none !important;
}

.mobile-panel form {
  display: flex;
  gap: 0.45rem;
}

.mobile-panel input {
  flex: 1;
  border: 1px solid var(--soft-3);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  outline: 0;
}

.mobile-panel form button {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  background: var(--sky);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.mobile-panel a {
  color: #334155;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  font-weight: 600;
}

.mobile-panel a:hover,
.mobile-panel a.active {
  background: var(--soft);
  color: var(--blue);
}

/* ===== SEO title ===== */
.seo-hero-title {
  padding-top: 1.25rem;
  padding-bottom: 0.85rem;
}

.seo-hero-title h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 900;
  color: var(--blue);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.seo-hero-title p {
  margin-top: 0.4rem;
  max-width: 46rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Hero ===== */
.hero-shell {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: linear-gradient(100deg, #4c0519, var(--blue), var(--sky));
}

.hero-track {
  position: absolute;
  inset: 0;
}

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

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

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.05);
}

.hero-overlay {
  background:
    linear-gradient(105deg, rgba(15, 6, 12, 0.92) 0%, rgba(159, 18, 57, 0.72) 42%, rgba(190, 18, 60, 0.35) 70%, rgba(190, 18, 60, 0.18) 100%),
    linear-gradient(0deg, rgba(15, 6, 12, 0.35) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 2rem;
  color: #fff;
  padding-top: 1.75rem;
  padding-bottom: 3rem;
}

.hero-copy {
  max-width: 38rem;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fecdd3;
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
}

.hero-copy h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 0.7rem;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 36rem;
}

.hero-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.28rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.15s;
  border: 0;
  cursor: pointer;
}

.primary-btn {
  background: #fff;
  color: var(--blue);
  padding: 0.8rem 1.25rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
  transform: translateY(-1px);
  background: var(--soft-2);
}

.ghost-btn {
  color: #fff;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-card {
  display: flex;
  justify-content: center;
}

.hero-poster {
  position: relative;
  width: 220px;
  aspect-ratio: 3 / 4;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
  background: #4c0519;
}

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

.hero-poster span,
.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.45rem;
}

.hero-dots button {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: 0.15s;
}

.hero-dots button.active {
  width: 1.7rem;
  background: #fff;
}

/* ===== Quick search ===== */
.quick-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: -1.4rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 5;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
  flex-wrap: nowrap;
}

.quick-search form {
  display: flex;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
}

.quick-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  outline: 0;
  background: #fff;
}

.quick-search button,
.quick-search > a {
  flex: 0 0 auto;
  border-radius: 999px;
  font-weight: 800;
  padding: 0.75rem 1.05rem;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quick-search button {
  background: var(--sky);
  color: #fff;
}

.quick-search > a {
  background: var(--soft-2);
  color: var(--blue);
}

.quick-search > a:hover {
  background: var(--soft-3);
}

/* ===== Sections ===== */
.page-main {
  min-height: 50vh;
}

.content-section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 900;
  color: #111827;
  line-height: 1.25;
}

.section-head p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-link {
  background: var(--soft-2);
  color: var(--blue);
  padding: 0.55rem 0.95rem;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.9rem;
}

.section-link:hover {
  background: var(--soft-3);
}

/* ===== Movie grid / cards ===== */
.movie-grid,
.compact-grid,
.side-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.movie-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.18s, box-shadow 0.18s;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--soft-2), var(--soft-3));
  overflow: hidden;
}

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

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

.play-float {
  opacity: 0;
  width: 2.9rem;
  height: 2.9rem;
  transition: 0.18s;
}

.movie-card:hover .play-float {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  background: linear-gradient(135deg, var(--rank-a), var(--rank-b));
  color: #fff;
  border-radius: 999px;
  min-width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.3);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.8rem 0.85rem 0.9rem;
  flex: 1 1 auto;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card-meta span {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
  color: #475569;
  font-weight: 600;
}

.card-body h3 {
  font-weight: 800;
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.card-desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  height: 2.46em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  margin-top: auto;
  padding-top: 0.5rem;
  min-height: 1.6rem;
  align-items: center;
}

.card-tags .tag-pill {
  background: var(--soft-2);
  color: var(--blue);
  border-color: transparent;
  font-size: 0.7rem;
  padding: 0.18rem 0.48rem;
}

/* ===== Hot panel ===== */
.hot-panel {
  background: linear-gradient(90deg, #fff7ed, #fefce8);
  border-radius: 1.35rem;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) auto auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid #fde68a;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.08);
  min-width: 0;
  transition: transform 0.15s;
}

.rank-row:hover {
  transform: translateX(3px);
}

.rank-num {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--rank-a);
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rank-title {
  font-weight: 800;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.rank-type,
.rank-heat {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* ===== Categories ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

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

.category-tile {
  display: flex;
  flex-direction: column;
  min-height: 8rem;
  border-radius: 1.1rem;
  padding: 1.05rem 1.1rem;
  background: linear-gradient(145deg, var(--soft-2), #fff 55%, var(--soft));
  border: 1px solid var(--soft-3);
  box-shadow: 0 10px 24px rgba(190, 18, 60, 0.07);
  transition: transform 0.15s, box-shadow 0.15s;
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(190, 18, 60, 0.12);
}

.category-tile span {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  color: #881337;
  margin-bottom: 0.4rem;
}

.category-tile p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-tile b {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--blue);
  font-size: 0.88rem;
}

.seo-intro {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem !important;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.07), rgba(225, 29, 72, 0.04));
  border: 1px solid rgba(190, 18, 60, 0.12);
}

.seo-intro h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue);
}

.seo-intro p {
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.8;
}

/* ===== Inner pages ===== */
.page-hero {
  background: linear-gradient(90deg, var(--sky), var(--blue), var(--cyan));
  color: #fff;
  padding: 2.75rem 0 2.4rem;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 44rem;
  margin-top: 0.65rem;
  font-size: 1rem;
  line-height: 1.7;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  margin-top: 0.85rem;
  color: #fecdd3;
}

.crumbs a {
  color: #fff;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.7rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-title {
  font-weight: 900;
  color: #881337;
  white-space: nowrap;
}

.filter-input,
.filter-panel select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  outline: 0;
  background: #fff;
}

.filter-panel .primary-btn {
  box-shadow: none;
  background: var(--sky);
  color: #fff;
  padding: 0.7rem 1.1rem;
}

.filter-panel .ghost-btn {
  background: var(--soft-2);
  color: var(--blue);
  border: 0;
  padding: 0.7rem 1.1rem;
}

.empty-state {
  display: none;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  color: var(--muted);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  margin-bottom: 1rem;
}

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

.rankings-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.15rem;
}

.rank-list-card,
.rank-side {
  background: #fff;
  border-radius: 1.15rem;
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.rank-list-card h2,
.rank-side h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 0.9rem;
}

.rank-list-card .rank-row {
  margin-bottom: 0.55rem;
}

.rank-list-card .rank-row:last-child {
  margin-bottom: 0;
}

/* ===== Detail / Play ===== */
.detail-hero {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  color: #fff;
}

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

.detail-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(6px) saturate(1.15);
  transform: scale(1.04);
}

.detail-layer {
  background:
    linear-gradient(100deg, rgba(15, 6, 12, 0.92), rgba(190, 18, 60, 0.45) 55%, rgba(190, 18, 60, 0.2)),
    linear-gradient(0deg, rgba(248, 250, 252, 0.95), transparent 30%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  padding-top: 2.75rem;
  padding-bottom: 3.25rem;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1.1rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
  background: #1f2937;
}

.detail-copy h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 900;
  margin: 0.55rem 0 0.75rem;
  line-height: 1.2;
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 40rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.85rem 0;
}

.detail-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.28rem 0.65rem;
  color: #fecdd3;
  font-weight: 700;
  font-size: 0.82rem;
}

.player-section {
  padding-top: 1.5rem;
}

.player-section h2,
.detail-article h2,
.detail-side h2 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 0.85rem;
  color: #111827;
}

.video-box {
  background: #020617;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.22);
  aspect-ratio: 16 / 9;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.15rem;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.detail-article,
.detail-side {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.detail-article p {
  font-size: 0.98rem;
  line-height: 1.9;
  color: #334155;
  margin-bottom: 1.15rem;
}

.detail-article dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.detail-article dl div {
  background: #f8fafc;
  border-radius: 0.85rem;
  padding: 0.75rem 0.85rem;
}

.detail-article dt {
  font-weight: 800;
  color: var(--muted);
  font-size: 0.8rem;
}

.detail-article dd {
  color: #0f172a;
  margin-top: 0.2rem;
  font-weight: 600;
}

.detail-article dd a {
  color: var(--blue);
  font-weight: 800;
}

.side-list {
  display: grid;
  gap: 0.55rem;
}

.side-list a {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.side-list a:hover {
  background: var(--soft-2);
  border-color: var(--soft-3);
}

.side-list span {
  display: block;
  font-weight: 800;
  color: #111827;
}

.side-list small {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, #1f2937, #111827);
  color: #fff;
  margin-top: 2rem;
}

.footer-grid {
  padding-top: 2.4rem;
  padding-bottom: 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.75rem;
}

.footer-grid h3 {
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 0.85rem;
}

.footer-grid p {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  color: #94a3b8;
  text-align: center;
  font-size: 0.88rem;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .movie-grid,
  .compact-grid,
  .side-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .hero-poster {
    width: 190px;
  }

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

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

  .filter-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-shell {
    height: auto;
    min-height: 380px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
    padding-bottom: 2.75rem;
  }

  .hero-card {
    display: none;
  }

  .quick-search {
    margin-top: 0.85rem;
    flex-wrap: wrap;
  }

  .quick-search form {
    width: 100%;
  }

  .quick-search > a {
    flex: 1 1 auto;
  }

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

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-row {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .rank-type,
  .rank-heat {
    display: none;
  }

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

  .detail-wrap {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .detail-poster {
    width: 180px;
  }

  .footer-grid,
  .detail-article dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --pad: 1rem;
  }

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

  .quick-search form {
    flex-direction: column;
  }

  .hero-copy h2 {
    font-size: 1.7rem;
  }

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

  .filter-panel .primary-btn {
    width: 100%;
  }
}

/* 视频播放器跨端 */
.video-box video {
  width: 100%;
  height: auto;
  max-height: min(70vh, 720px);
  background: #000;
  object-fit: contain;
  touch-action: manipulation;
}

button,
a,
.primary-btn,
.ghost-btn {
  touch-action: manipulation;
}
