:root {
  --bg: #f8fafc;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --white: #ffffff;
  --purple: #7c3aed;
  --pink: #db2777;
  --red: #dc2626;
  --amber: #f59e0b;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(219, 39, 119, 0.32);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.open {
  display: grid;
  gap: 10px;
}

.mobile-nav a {
  color: rgba(255, 255, 255, 0.86);
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mobile-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #8b5cf6 0, transparent 34%), linear-gradient(135deg, #1e1b4b, #581c87 52%, #831843);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.30;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(17, 24, 39, 0.62) 48%, rgba(88, 28, 135, 0.48)), linear-gradient(0deg, rgba(3, 7, 18, 0.72), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  height: 78vh;
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 50px;
  color: #ffffff;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.28);
}

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

.hero p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.5vw, 23px);
}

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

.hero-tags {
  margin: 26px 0 34px;
}

.hero-tags span,
.detail-meta span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.90);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 16px 34px rgba(219, 39, 119, 0.30);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(124, 58, 237, 0.28);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-plain {
  color: rgba(255, 255, 255, 0.84);
}

.btn-plain:hover {
  color: #ffffff;
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--purple);
  font-size: 22px;
}

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

.hero-controls > button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 24px;
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.active {
  width: 26px;
  background: #ffffff;
}

.quick-search {
  margin-top: -42px;
  position: relative;
  z-index: 3;
}

.quick-search-card,
.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search-card h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.04em;
}

.home-search,
.search-box {
  display: grid;
  gap: 8px;
  min-width: min(460px, 100%);
  color: var(--muted);
  font-weight: 700;
}

.home-search input,
.search-box input,
.select-field {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  padding: 0 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-search input:focus,
.search-box input:focus,
.select-field:focus {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.home-search-results {
  padding-top: 26px;
}

.content-section {
  padding: 76px 0;
  background: #ffffff;
}

.warm-bg {
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.soft-blue {
  background: linear-gradient(135deg, #eff6ff, #ecfeff, #f0fdfa);
}

.soft-rose {
  background: linear-gradient(135deg, #fff1f2, #fdf2f8, #f5f3ff);
}

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

.section-heading h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.section-heading p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
}

.section-more {
  color: var(--purple);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #581c87);
}

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

.poster-wrap img,
.wide-cover img,
.category-tile img,
.category-overview-card img,
.ranking-card img,
.rank-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.wide-card:hover .wide-cover img,
.category-tile:hover img,
.category-overview-card:hover img,
.ranking-card:hover img {
  transform: scale(1.08);
}

.card-badge,
.card-year {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  left: 12px;
  background: rgba(124, 58, 237, 0.92);
}

.card-year {
  right: 12px;
  background: rgba(15, 23, 42, 0.76);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-card-body h3,
.wide-body h3,
.ranking-card h2,
.rank-row strong {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
}

.movie-card-body p,
.wide-body p,
.ranking-card p {
  display: -webkit-box;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags span {
  background: #f3e8ff;
  color: #6d28d9;
}

.meta-line {
  margin-top: auto;
  color: #8a94a6;
  font-size: 13px;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.wide-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f2937, #581c87);
}

.wide-cover span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
}

.wide-body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 10px;
}

.wide-body div {
  color: #8a94a6;
  font-size: 13px;
}

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

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  background: #111827;
  box-shadow: var(--soft-shadow);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.86), rgba(3, 7, 18, 0.24));
}

.category-tile img {
  position: absolute;
  inset: 0;
}

.category-tile div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
}

.category-tile span,
.category-overview-body span {
  color: #f0abfc;
  font-size: 13px;
  font-weight: 800;
}

.category-tile h3,
.category-overview-body h2 {
  margin: 6px 0;
  font-size: 24px;
  line-height: 1.2;
}

.category-tile p,
.category-overview-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.rank-panel,
.side-card,
.article-card {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.rank-panel {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.rank-title span {
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

.rank-title h2 {
  margin: 4px 0 18px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: #f5f3ff;
}

.rank-num,
.ranking-index {
  color: var(--pink);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #111827;
}

.rank-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-more {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  padding: 12px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  font-weight: 800;
}

.page-hero {
  padding: 88px 0 64px;
  color: #ffffff;
  background: radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.70), transparent 32%), linear-gradient(135deg, #111827, #312e81 48%, #831843);
}

.page-hero h1 {
  max-width: 850px;
  margin: 16px 0 12px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.filter-panel {
  align-items: end;
  margin-bottom: 28px;
  background: #ffffff;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.select-field {
  min-width: 160px;
}

.empty-message {
  padding: 24px;
  border-radius: 20px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
}

.category-page-hero .category-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 36px;
  align-items: center;
}

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

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

.category-feature-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: end;
}

.category-feature-strip a {
  position: relative;
  display: block;
  min-height: 170px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.category-feature-strip a:nth-child(2n) {
  transform: translateY(20px);
}

.category-feature-strip img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.category-feature-strip span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.category-overview-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 170px;
  overflow: hidden;
  background: #111827;
}

.category-overview-body {
  padding: 20px;
}

.category-overview-body h2 {
  color: var(--text);
}

.category-overview-body p {
  display: -webkit-box;
  color: var(--muted);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.category-overview-body strong {
  display: inline-flex;
  margin-top: 16px;
  color: var(--purple);
}

.ranking-list-page {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 64px 126px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-card img {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: #111827;
}

.ranking-body {
  min-width: 0;
}

.ranking-body h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.ranking-body .card-tags {
  margin: 12px 0;
}

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

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

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: blur(1px);
}

.detail-overlay {
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.96), rgba(49, 46, 129, 0.74), rgba(131, 24, 67, 0.56));
}

.detail-top-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  min-height: 560px;
  padding: 64px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  margin: 18px 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.detail-info p {
  max-width: 820px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.detail-tags {
  margin: 16px 0 28px;
}

.player-section {
  padding: 56px 0;
  background: #070b16;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), rgba(0, 0, 0, 0.44));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  font-size: 34px;
  box-shadow: 0 18px 46px rgba(219, 39, 119, 0.35);
}

.player-frame.playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  background: #f8fafc;
}

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

.article-card,
.side-card {
  padding: 28px;
}

.article-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.article-card p {
  margin: 0 0 26px;
  color: #374151;
  font-size: 17px;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-nav a {
  color: var(--purple);
  font-weight: 800;
}

.detail-side {
  position: sticky;
  top: 94px;
}

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

.side-card div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.side-card dt {
  color: #8a94a6;
}

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

.related-section {
  background: #ffffff;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: #0f172a;
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  padding: 46px 0;
}

.footer-brand p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.64);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.56);
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
    padding: 40px 0 90px;
  }

  .hero-poster {
    width: min(260px, 72vw);
    transform: none;
  }

  .quick-search-card,
  .filter-panel,
  .section-heading,
  .footer-shell,
  .detail-top-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-row,
  .footer-links {
    justify-content: flex-start;
  }

  .home-search,
  .search-box {
    min-width: 100%;
  }

  .detail-top-inner {
    display: grid;
  }

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

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

  .brand {
    font-size: 17px;
  }

  .hero h1,
  .hero h2,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

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

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

  .movie-grid,
  .movie-grid.compact,
  .library-grid,
  .wide-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card-body p,
  .card-tags {
    display: none;
  }

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

  .ranking-card img {
    width: 100%;
  }

  .rank-row img {
    width: 84px;
  }

  .category-feature-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-feature-strip a:nth-child(2n) {
    transform: none;
  }

  .player-frame {
    border-radius: 18px;
  }

  .article-nav {
    flex-direction: column;
  }
}
