* {
  box-sizing: border-box;
}

:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111827;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --orange-500: #f97316;
  --amber-300: #fcd34d;
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(127, 29, 29, 0.96));
  color: var(--white);
  box-shadow: 0 10px 35px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand__icon,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--red-600);
  color: var(--white);
  box-shadow: 0 12px 22px rgba(220, 38, 38, 0.36);
}

.brand__text {
  font-size: 20px;
  background: linear-gradient(90deg, #f87171, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 10px;
  color: #d1d5db;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(220, 38, 38, 0.95);
  color: var(--white);
  transform: translateY(-1px);
}

.header-search {
  width: 220px;
}

.header-search input,
.mobile-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  outline: none;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.3), transparent 26%), linear-gradient(135deg, #020617 0%, #0f172a 48%, #7f1d1d 100%);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.28;
}

.hero__glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.45;
}

.hero__glow--one {
  top: 90px;
  right: 12%;
  background: var(--red-500);
}

.hero__glow--two {
  left: 6%;
  bottom: -70px;
  background: var(--orange-500);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 54px;
  align-items: center;
  padding: 86px 0 92px;
}

.hero__headline h1,
.page-hero h1,
.detail-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero__headline h1 span,
.page-hero h1 span,
.detail-hero h1 span {
  color: #f87171;
}

.hero__headline p,
.page-hero p,
.detail-hero__content p {
  max-width: 720px;
  margin: 0;
  color: #d1d5db;
  font-size: clamp(16px, 2vw, 20px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-search {
  margin-top: 28px;
  display: flex;
  max-width: 560px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 12px 14px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.hero-search button,
.btn,
.text-link,
.filter-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.btn-primary {
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--red-600), var(--orange-500));
  color: var(--white);
  box-shadow: 0 16px 32px rgba(220, 38, 38, 0.3);
}

.btn-ghost {
  padding: 12px 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.btn-small {
  width: fit-content;
  padding: 9px 14px;
  color: var(--white);
  background: var(--red-600);
}

.hero-search button:hover,
.btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 640px;
}

.hero-stats a {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 18px;
  color: var(--white);
}

.hero-stats span {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 13px;
}

.hero-carousel {
  position: relative;
  min-height: 480px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 26px;
  align-items: center;
  padding: 36px;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

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

.hero-slide__copy h2 {
  margin: 14px 0 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

.hero-slide__copy p {
  margin: 0;
  color: #d1d5db;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-slide__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.32), rgba(249, 115, 22, 0.18));
  box-shadow: 0 26px 48px rgba(2, 6, 23, 0.42);
}

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

.hero-slide__poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(220, 38, 38, 0.9);
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.hero-dots {
  position: absolute;
  left: 36px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: var(--red-500);
}

.feature-strip {
  width: min(1240px, calc(100% - 32px));
  margin: -46px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-strip__item {
  padding: 24px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.feature-strip__item strong,
.feature-strip__item span {
  display: block;
}

.feature-strip__item strong {
  color: var(--slate-900);
  font-size: 18px;
}

.feature-strip__item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 76px 0;
}

.section-light {
  background: var(--bg);
}

.section-dark {
  background: linear-gradient(135deg, #7f1d1d, #ea580c);
  color: var(--white);
}

.section__heading,
.section__heading--light {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section__heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.section__heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section__heading--light .eyebrow,
.section-dark .eyebrow {
  color: #fecaca;
}

.text-link {
  color: var(--red-600);
  font-weight: 800;
}

.text-link--light {
  color: var(--white);
}

.movie-grid,
.hot-grid,
.category-grid,
.overview-stack,
.ranking-list,
.detail-content {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

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

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

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

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.23), rgba(249, 115, 22, 0.2));
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, opacity 0.2s ease;
}

.poster-img.image-missing {
  opacity: 0;
}

.movie-card:hover .poster-img,
.compact-card:hover .poster-img,
.rank-item:hover .poster-img {
  transform: scale(1.06);
}

.movie-card__badge,
.movie-card__play {
  position: absolute;
  z-index: 2;
}

.movie-card__badge {
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(220, 38, 38, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.movie-card__play {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.62);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card__body {
  padding: 14px;
}

.movie-card__meta,
.rank-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.movie-card__title {
  margin: 8px 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card__title a:hover,
.rank-item h3 a:hover,
.category-overview h2 a:hover {
  color: var(--red-600);
}

.movie-card__desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.tag,
.detail-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 76px 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

.rank-item__poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.rank-item__number {
  font-size: 24px;
  font-weight: 900;
  color: #fecaca;
}

.rank-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.rank-item p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: #f8fafc;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.section-light .rank-item {
  background: var(--white);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.section-light .rank-item p {
  color: var(--muted);
}

.section-light .rank-item__number {
  color: var(--red-600);
}

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

.category-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-card__thumbs span {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.18), rgba(249, 115, 22, 0.15));
}

.category-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 74px;
  color: var(--white);
  background: radial-gradient(circle at 75% 25%, rgba(239, 68, 68, 0.36), transparent 28%), linear-gradient(135deg, #020617, #1e293b 58%, #7f1d1d);
}

.page-hero > * {
  width: min(1240px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.page-hero h1 {
  max-width: 880px;
}

.page-hero p {
  max-width: 820px;
}

.page-hero--compact {
  padding-bottom: 54px;
}

.page-hero--ranking {
  background: radial-gradient(circle at 70% 30%, rgba(249, 115, 22, 0.4), transparent 28%), linear-gradient(135deg, #020617, #7f1d1d 68%, #ea580c);
}

.overview-stack {
  display: grid;
  gap: 22px;
  padding: 48px 0 76px;
}

.category-overview {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-overview__text h2 {
  margin: 8px 0;
  font-size: 30px;
}

.category-overview__text p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--slate-100);
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: #fee2e2;
  transform: translateY(-2px);
}

.compact-card__poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.18), rgba(249, 115, 22, 0.15));
}

.compact-card__text strong,
.compact-card__text em {
  display: block;
}

.compact-card__text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card__text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.filter-panel {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-panel label,
.filter-panel span {
  display: block;
}

.filter-panel label > span {
  margin-bottom: 6px;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  outline: 0;
  background: #f8fafc;
  padding: 10px 12px;
  color: var(--text);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.filter-panel__selects {
  display: flex;
  gap: 12px;
}

.filter-panel__selects label {
  min-width: 150px;
}

.empty-state {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 26px;
  border-radius: 18px;
  background: var(--white);
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
  display: block;
}

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

.ranking-list .rank-item {
  grid-template-columns: 88px 58px 1fr;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.detail-hero__backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.12);
}

.detail-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 38px;
  align-items: center;
  min-height: 560px;
  padding: 74px 0;
}

.detail-hero__poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.22), rgba(249, 115, 22, 0.18));
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.5);
}

.detail-hero__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fca5a5;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.player-section {
  padding-top: 62px;
}

.player-shell {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.45);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.35), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red-600);
  box-shadow: 0 20px 42px rgba(220, 38, 38, 0.42);
  font-size: 28px;
}

.player-overlay strong {
  font-size: 18px;
}

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

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  color: #fecaca;
  text-align: center;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.detail-content__main {
  display: grid;
  gap: 20px;
}

.prose-card,
.info-card {
  padding: 28px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.prose-card h2,
.info-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.prose-card p {
  margin: 0;
  color: #334155;
  font-size: 16px;
}

.info-card dl {
  margin: 0;
}

.info-card div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.info-card div:last-child {
  border-bottom: 0;
}

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

.info-card dd {
  margin: 0;
}

.related-section {
  padding-top: 0;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--red-600);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.35);
  cursor: pointer;
}

.back-top.is-visible {
  display: grid;
  place-items: center;
}

.site-footer {
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #cbd5e1;
}

.site-footer__grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 36px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer p {
  margin: 12px 0 0;
  color: #94a3b8;
}

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

.site-footer a:hover {
  color: #f87171;
}

.site-footer__bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .movie-grid,
  .movie-grid--archive,
  .movie-grid--related {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 70px;
  }

  .hero-carousel {
    min-height: 520px;
  }

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

  .category-overview,
  .detail-content,
  .detail-hero__inner {
    grid-template-columns: 1fr;
  }

  .detail-hero__poster {
    width: min(280px, 100%);
  }

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

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

  .filter-panel__selects {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    width: min(100% - 24px, 1240px);
  }

  .brand__text {
    font-size: 18px;
  }

  .hero {
    min-height: 0;
  }

  .hero__inner {
    width: min(100% - 24px, 1240px);
    gap: 28px;
    padding: 54px 0 72px;
  }

  .hero-search {
    display: grid;
  }

  .hero-stats,
  .feature-strip,
  .category-overview__list {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 610px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 24px;
  }

  .hero-slide__poster {
    width: min(230px, 100%);
    margin: 0 auto;
  }

  .hero-dots {
    left: 24px;
  }

  .movie-grid,
  .movie-grid--home,
  .movie-grid--archive,
  .movie-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .rank-item,
  .ranking-list .rank-item {
    grid-template-columns: 68px 42px 1fr;
    gap: 10px;
  }

  .rank-item p {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

  .section__heading {
    display: grid;
    align-items: start;
  }

  .page-hero {
    padding: 62px 0 54px;
  }

  .detail-hero__inner {
    min-height: 0;
    padding: 48px 0;
  }

  .detail-hero h1 {
    font-size: 40px;
  }

  .prose-card,
  .info-card {
    padding: 22px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .movie-grid--home,
  .movie-grid--archive,
  .movie-grid--related {
    grid-template-columns: 1fr;
  }
}
