:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --sky: #38bdf8;
  --sky-dark: #0284c7;
  --emerald: #34d399;
  --amber: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --soft-sky: #f0f9ff;
  --border: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.32), #ffffff 34%, rgba(240, 249, 255, 0.46));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

::selection {
  color: #ffffff;
  background: var(--pink);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(229, 231, 235, 0.78);
  backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--sky), var(--emerald));
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.24);
}

.logo-text,
.footer-logo span:last-child {
  font-size: 21px;
  background: linear-gradient(90deg, var(--pink), var(--sky), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 13px;
  color: #4b5563;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pink-dark);
  background: rgba(252, 231, 243, 0.85);
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 250px;
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
  border-color: rgba(236, 72, 153, 0.35);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search button {
  position: absolute;
  right: 4px;
  width: 36px;
  height: 36px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  border: 0;
  border-radius: 50%;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  padding: 8px 12px;
  color: var(--text);
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a {
  padding: 12px 14px;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

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

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.70), rgba(240, 249, 255, 0.74), rgba(209, 250, 229, 0.64));
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 12%, rgba(236, 72, 153, 0.18), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.20), transparent 26%),
    radial-gradient(circle at 68% 88%, rgba(52, 211, 153, 0.20), transparent 28%);
}

.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-floats span {
  position: absolute;
  font-size: clamp(24px, 4vw, 48px);
  opacity: 0.17;
  animation: float 13s ease-in-out infinite;
}

.hero-floats span:nth-child(1) { left: 8%; top: 18%; animation-delay: 0s; }
.hero-floats span:nth-child(2) { left: 22%; top: 72%; animation-delay: 1.1s; }
.hero-floats span:nth-child(3) { left: 76%; top: 16%; animation-delay: 2.2s; }
.hero-floats span:nth-child(4) { left: 88%; top: 70%; animation-delay: 3.4s; }
.hero-floats span:nth-child(5) { left: 52%; top: 82%; animation-delay: 4.6s; }
.hero-floats span:nth-child(6) { left: 42%; top: 12%; animation-delay: 5.2s; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: center;
  padding: 78px 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--pink-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  background: linear-gradient(90deg, var(--pink), var(--sky), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fade-in 0.8s ease both;
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 28px;
  color: #4b5563;
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-search,
.search-control,
.panel-search {
  display: flex;
  gap: 12px;
}

.hero-search {
  max-width: 620px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-search input,
.panel-search input,
.search-control input,
.search-control select,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search input {
  border: 0;
  background: transparent;
  padding-left: 18px;
}

.hero-search input:focus,
.panel-search input:focus,
.search-control input:focus,
.search-control select:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(236, 72, 153, 0.42);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.hero-search button {
  flex: 0 0 auto;
  padding: 13px 22px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.14);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--sky));
}

.btn-light {
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #4b5563;
}

.hero-stats span {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
}

.hero-stats strong {
  color: var(--pink-dark);
}

.hero-slider {
  position: relative;
  min-height: 460px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

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

.hero-slide-backdrop {
  position: absolute;
  inset: 22px 0 0 32px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(56, 189, 248, 0.20)), var(--hero-image) center / cover;
  border-radius: 34px;
  filter: blur(18px);
  opacity: 0.45;
}

.hero-slide-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  min-height: 420px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-cover,
.poster-wrap,
.horizontal-poster,
.ranking-cover,
.detail-poster {
  position: relative;
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(56, 189, 248, 0.18), rgba(52, 211, 153, 0.16));
}

.hero-cover {
  height: 100%;
  min-height: 320px;
  border-radius: 26px;
}

.hero-cover img,
.poster-wrap img,
.horizontal-poster img,
.ranking-cover img,
.detail-poster img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.fallback-title {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #ffffff;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--sky), var(--emerald));
}

.hero-slide-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slide-info h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.hero-slide-info p {
  margin: 0 0 18px;
  color: #4b5563;
}

.hero-meta,
.inline-meta,
.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span,
.inline-meta span,
.detail-meta-list span {
  padding: 6px 10px;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 999px;
  font-size: 13px;
}

.hero-slide-info .btn {
  align-self: flex-start;
  margin-top: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  cursor: pointer;
  background: rgba(156, 163, 175, 0.48);
  border: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--pink), var(--sky));
}

.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.soft-section {
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.50), rgba(240, 249, 255, 0.62), rgba(209, 250, 229, 0.42));
}

.warm-section {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.76), rgba(255, 247, 237, 0.72));
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
}

.section-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pink-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.32);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
  aspect-ratio: 2 / 3;
  border-radius: 20px 20px 0 0;
}

.movie-card:hover .poster-wrap img,
.horizontal-card:hover img,
.ranking-item:hover img {
  transform: scale(1.06);
}

.poster-badge,
.poster-duration {
  position: absolute;
  z-index: 3;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.70);
  backdrop-filter: blur(8px);
  border-radius: 999px;
}

.poster-badge {
  top: 10px;
  left: 10px;
  padding: 5px 9px;
}

.poster-duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.movie-card h3 a:hover,
.horizontal-card h3 a:hover,
.ranking-main h2 a:hover {
  color: var(--pink-dark);
}

.movie-desc,
.movie-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.movie-desc {
  min-height: 44px;
}

.movie-meta {
  margin-top: 9px;
}

.movie-tags,
.detail-tags,
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.movie-tags span,
.detail-tags a,
.quick-tags a {
  padding: 5px 9px;
  color: var(--pink-dark);
  background: #fce7f3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.movie-card-minimal .movie-card-body {
  padding: 12px;
}

.movie-card-minimal h3 {
  font-size: 15px;
}

.movie-card-minimal .movie-desc,
.movie-card-minimal .movie-tags {
  display: none;
}

.movie-card-large .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

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

.category-card,
.overview-card a,
.tips-grid div,
.content-card,
.side-card,
.filter-panel {
  display: block;
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 231, 235, 0.75);
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.category-card,
.overview-card a {
  min-height: 210px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after,
.overview-card a::after {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(56, 189, 248, 0.18));
  border-radius: 50%;
}

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

.category-icon {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 36px;
}

.category-card strong,
.overview-card h2 {
  display: block;
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card em,
.overview-meta span {
  display: inline-flex;
  padding: 5px 10px;
  margin: 0 0 10px;
  color: var(--sky-dark);
  background: #e0f2fe;
  border-radius: 999px;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.category-card small,
.overview-card small {
  display: block;
  color: var(--muted);
}

.category-sample {
  display: block;
  margin-top: 14px;
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 700;
}

.latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.latest-list,
.side-related {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.horizontal-poster {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

.horizontal-card h3,
.ranking-main h2 {
  margin: 0 0 6px;
  line-height: 1.25;
}

.horizontal-card p,
.ranking-main p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

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

.rank-list,
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.rank-no {
  color: var(--pink-dark);
  font-size: 20px;
  font-weight: 900;
}

.rank-title {
  font-weight: 800;
}

.rank-meta,
.rank-views {
  color: var(--muted);
  font-size: 13px;
}

.filter-panel h2 {
  margin-top: 0;
}

.panel-search {
  margin: 18px 0;
  flex-direction: column;
}

.quick-tags.vertical {
  flex-direction: column;
}

.page-hero {
  padding: 78px 0;
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.72), rgba(240, 249, 255, 0.84), rgba(209, 250, 229, 0.58));
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #4b5563;
  font-size: 18px;
}

.overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.filter-bar,
.search-control {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  margin-bottom: 14px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.80);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.search-control {
  grid-template-columns: minmax(0, 1fr) 180px auto;
}

.filter-bar.compact {
  grid-template-columns: minmax(0, 1fr) auto;
}

.filter-bar label,
.search-control label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.filter-count {
  margin: 0 0 22px;
  color: var(--muted);
}

.ranking-item {
  display: grid;
  grid-template-columns: 72px 120px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.ranking-number {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-dark);
  background: #fce7f3;
  border-radius: 18px;
  font-weight: 900;
}

.rank-gold { color: #92400e; background: #fef3c7; }
.rank-silver { color: #374151; background: #e5e7eb; }
.rank-bronze { color: #9a3412; background: #ffedd5; }

.ranking-cover {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

.ranking-score {
  text-align: right;
}

.ranking-score strong {
  display: block;
  color: var(--pink-dark);
  font-size: 18px;
}

.ranking-score span {
  color: var(--muted);
  font-size: 13px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.92)), var(--detail-image) center / cover;
  filter: saturate(1.08);
}

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

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

.breadcrumb a:hover {
  color: #ffffff;
}

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

.detail-poster {
  aspect-ratio: 2 / 3;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-info .eyebrow {
  color: #f9a8d4;
}

.detail-tags a {
  color: #ffffff;
  background: rgba(236, 72, 153, 0.42);
}

.detail-info .btn {
  margin-top: 22px;
}

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

.detail-main,
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.video-player,
.content-card,
.side-card {
  background: #ffffff;
}

.video-player {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.32), rgba(2, 6, 23, 0.52));
  border: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  border-radius: 50%;
  box-shadow: 0 20px 45px rgba(236, 72, 153, 0.38);
  font-size: 32px;
}

.video-player.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
}

.player-message {
  margin: 0;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 12px;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.detail-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.detail-table div {
  padding: 12px;
  background: #f9fafb;
  border-radius: 14px;
}

.detail-table dt {
  color: var(--muted);
  font-size: 13px;
}

.detail-table dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-table a {
  color: var(--pink-dark);
}

.side-card {
  position: sticky;
  top: 92px;
}

.side-card + .side-card {
  position: static;
}

.search-page .movie-grid:empty::before {
  content: "输入关键词或直接点击搜索按钮后，这里会显示影片结果。";
  display: block;
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px dashed var(--border);
  border-radius: 22px;
}

.site-footer {
  color: #4b5563;
  background: #ffffff;
  border-top: 1px solid rgba(229, 231, 235, 0.80);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 28px;
  padding: 46px 0;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--text);
}

.footer-grid p {
  margin: 12px 0 0;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-grid a:hover {
  color: var(--pink-dark);
}

.footer-bottom {
  padding: 16px;
  text-align: center;
  border-top: 1px solid rgba(229, 231, 235, 0.75);
}

.hidden-by-filter {
  display: none !important;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-18px) rotate(5deg); }
  50% { transform: translateY(-9px) rotate(-4deg); }
  75% { transform: translateY(-14px) rotate(3deg); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desktop-nav { gap: 2px; }
  .header-search { width: 210px; }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

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

  .hero-inner {
    gap: 34px;
  }

  .hero-slider {
    min-height: 440px;
  }

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

  .filter-bar,
  .search-control,
  .filter-bar.compact {
    grid-template-columns: 1fr 1fr;
  }

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

  .side-card {
    position: static;
  }
}

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

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 54px 0;
  }

  .hero-search,
  .hero-actions,
  .panel-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-slide-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-cover {
    min-height: 260px;
  }

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

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

  .horizontal-card,
  .ranking-item,
  .detail-grid,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .horizontal-poster,
  .ranking-cover {
    aspect-ratio: 16 / 9;
  }

  .ranking-score {
    text-align: left;
  }

  .filter-bar,
  .search-control,
  .filter-bar.compact {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: 190px;
  }

  .detail-table {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 52px 0;
  }
}
