:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #172033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --orange-400: #fb923c;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.08);
  --shadow-md: 0 12px 28px rgb(15 23 42 / 0.10);
  --shadow-xl: 0 24px 60px rgb(15 23 42 / 0.18);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.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;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  width: min(100% - 32px, var(--container));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.site-logo__icon,
.footer-logo span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
  box-shadow: 0 8px 24px rgb(244 63 94 / 0.35);
}

.site-logo__text {
  display: flex;
  flex-direction: column;
}

.site-logo strong {
  line-height: 1;
  font-size: 20px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--rose-400), var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-logo small {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
}

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

.nav-link {
  color: #e2e8f0;
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose-400);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search {
  width: min(330px, 28vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgb(51 65 85 / 0.86);
  border: 1px solid rgb(148 163 184 / 0.16);
}

.header-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 7px 10px;
}

.header-search input::placeholder {
  color: #94a3b8;
}

.header-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-500);
  padding: 7px 14px;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.header-search button:hover,
.search-panel button:hover {
  background: var(--rose-600);
  transform: translateY(-1px);
}

.quick-categories {
  border-top: 1px solid rgb(148 163 184 / 0.12);
  background: rgb(15 23 42 / 0.74);
}

.quick-categories__inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.quick-categories__inner::-webkit-scrollbar,
.movie-strip::-webkit-scrollbar {
  display: none;
}

.quick-category {
  flex: 0 0 auto;
  color: #cbd5e1;
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  transition: color 180ms ease, background 180ms ease;
}

.quick-category:hover {
  color: var(--white);
  background: rgb(244 63 94 / 0.42);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
}

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

.mobile-nav__link {
  display: block;
  padding: 12px 0;
  color: #e2e8f0;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.mobile-nav__link.is-active,
.mobile-nav__link:hover {
  color: var(--rose-400);
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-700));
}

.hero__slides,
.hero-slide,
.hero-slide__image,
.hero-slide__overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}

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

.hero-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-slide__overlay {
  background:
    radial-gradient(circle at 74% 20%, rgb(251 113 133 / 0.26), transparent 30%),
    linear-gradient(0deg, rgb(0 0 0 / 0.88), rgb(0 0 0 / 0.35) 54%, rgb(15 23 42 / 0.24)),
    linear-gradient(90deg, rgb(2 6 23 / 0.94), rgb(15 23 42 / 0.58), transparent);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container);
}

.hero-slide__badge,
.detail-badge,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: var(--rose-500);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 6px 12px;
}

.section-kicker {
  margin-bottom: 10px;
  background: rgb(244 63 94 / 0.12);
  color: var(--rose-600);
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-slide__tags span,
.detail-tags span,
.genre-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.14);
  color: #f8fafc;
  font-size: 13px;
}

.hero-slide__actions,
.page-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.button--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  box-shadow: 0 16px 28px rgb(244 63 94 / 0.26);
}

.button--ghost {
  color: var(--white);
  background: rgb(255 255 255 / 0.13);
  border: 1px solid rgb(255 255 255 / 0.18);
}

.hero-slide__views {
  color: #cbd5e1;
  font-weight: 700;
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.56);
  transition: width 180ms ease, background 180ms ease;
}

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

.hero__thumbs {
  position: absolute;
  right: max(16px, calc((100vw - var(--container)) / 2));
  bottom: 92px;
  z-index: 4;
  width: 320px;
  display: grid;
  gap: 10px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  color: #e2e8f0;
  background: rgb(15 23 42 / 0.48);
  border: 1px solid rgb(255 255 255 / 0.10);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, background 180ms ease, border 180ms ease;
}

.hero-thumb:hover,
.hero-thumb.is-active {
  transform: translateX(-4px);
  background: rgb(244 63 94 / 0.28);
  border-color: rgb(251 113 133 / 0.48);
}

.hero-thumb img {
  width: 74px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-thumb span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 700;
}

.content-section {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 56px 0;
}

.content-section--warm {
  width: 100%;
  max-width: none;
  padding: 56px max(16px, calc((100vw - var(--container)) / 2));
  background: linear-gradient(90deg, var(--rose-50), #fff7ed);
}

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

.section-heading h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-500);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--rose-600);
  font-weight: 800;
}

.section-link span {
  font-size: 24px;
  line-height: 1;
}

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

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

.movie-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 2px 0 16px;
  scrollbar-width: none;
}

.movie-strip .movie-card {
  flex: 0 0 300px;
}

.movie-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.movie-card__link {
  display: block;
  height: 100%;
}

.movie-card__poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 26%, rgb(251 113 133 / 0.25), transparent 32%),
    linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.movie-card:hover .movie-card__poster img {
  transform: scale(1.08);
}

.movie-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.68), transparent 54%);
  opacity: 0.72;
  transition: opacity 180ms ease;
}

.movie-card:hover .movie-card__shade {
  opacity: 0.92;
}

.movie-card__category,
.movie-card__duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.movie-card__category {
  top: 10px;
  left: 10px;
  background: var(--rose-500);
}

.movie-card__duration {
  right: 10px;
  bottom: 10px;
  background: rgb(0 0 0 / 0.72);
}

.rank-badge {
  right: 10px;
  top: 10px;
  background: var(--amber-500);
}

.movie-card__body {
  padding: 16px;
}

.movie-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.28;
  transition: color 180ms ease;
}

.movie-card:hover h3 {
  color: var(--rose-600);
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 45px;
  margin: 0 0 13px;
  color: var(--gray-500);
  font-size: 14px;
}

.movie-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
}

.movie-card--compact .movie-card__body {
  padding: 14px;
}

.movie-card--compact h3 {
  font-size: 16px;
}

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

.category-tile,
.category-panel__main {
  display: block;
  min-height: 210px;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 80% 0%, rgb(251 191 36 / 0.24), transparent 30%),
    linear-gradient(135deg, var(--slate-900), var(--slate-700));
  box-shadow: var(--shadow-md);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.category-tile__badge,
.category-panel__main span {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(244 63 94 / 0.78);
  font-size: 12px;
  font-weight: 800;
}

.category-tile h3,
.category-panel__main h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-tile p,
.category-panel__main p {
  min-height: 48px;
  margin: 0 0 16px;
  color: #cbd5e1;
}

.category-tile strong,
.category-panel__main strong {
  color: var(--amber-400);
}

.page-hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgb(251 113 133 / 0.23), transparent 28%),
    linear-gradient(90deg, var(--slate-900), var(--slate-700));
}

.page-hero > div {
  width: min(100% - 32px, var(--container));
  min-height: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero--compact > div {
  min-height: 270px;
}

.page-hero h1 {
  max-width: 900px;
  margin: 4px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e2e8f0;
  font-size: 18px;
}

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

.category-panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-panel__main {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.category-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 20px 24px 24px;
  list-style: none;
}

.category-panel li a {
  display: block;
  color: var(--gray-700);
  transition: color 180ms ease, transform 180ms ease;
}

.category-panel li a:hover {
  color: var(--rose-600);
  transform: translateX(4px);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
  gap: 14px;
  margin-bottom: 10px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select,
.search-panel input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  outline: 0;
  padding: 11px 14px;
  background: var(--gray-50);
  transition: border 180ms ease, box-shadow 180ms ease;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgb(251 113 133 / 0.14);
}

.filter-bar button {
  align-self: end;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--slate-800);
  padding: 11px 18px;
  font-weight: 800;
}

.filter-status,
.search-summary {
  min-height: 24px;
  margin: 0 0 20px;
  color: var(--gray-500);
  font-weight: 700;
}

.search-panel {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.search-panel input {
  flex: 1 1 auto;
}

.ranking-hero {
  width: min(100% - 32px, var(--container));
  margin: -80px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ranking-hero__item {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--slate-900);
  box-shadow: var(--shadow-xl);
}

.ranking-hero__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transition: transform 260ms ease;
}

.ranking-hero__item:hover img {
  transform: scale(1.08);
}

.ranking-hero__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.86), transparent 62%);
}

.ranking-hero__item span,
.ranking-hero__item h2,
.ranking-hero__item p {
  position: relative;
  z-index: 2;
}

.ranking-hero__item span {
  display: inline-flex;
  margin: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--amber-500);
  font-weight: 900;
}

.ranking-hero__item h2 {
  margin: 140px 20px 8px;
  font-size: 26px;
}

.ranking-hero__item p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0 20px 20px;
  color: #e5e7eb;
}

.breadcrumb {
  width: min(100% - 32px, var(--container));
  margin: 24px auto 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--rose-600);
}

.detail-hero {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.detail-hero__player,
.detail-hero__info,
.detail-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.detail-hero__player {
  overflow: hidden;
  background: var(--slate-950);
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-player video {
  width: 100%;
  height: 100%;
  background: #000;
}

.video-player__cover {
  position: absolute;
  inset: 0;
  border: 0;
  color: var(--white);
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}

.video-player__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
}

.video-player__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.20));
}

.video-player__play,
.video-player__cover strong {
  position: relative;
  z-index: 2;
}

.video-player__play {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 28px;
  background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
  box-shadow: 0 16px 42px rgb(244 63 94 / 0.42);
}

.video-player__cover strong {
  font-size: 18px;
}

.video-player.is-playing .video-player__cover {
  display: none;
}

.video-player__message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 5;
  margin: 0;
  color: var(--white);
  text-align: center;
  font-size: 14px;
  pointer-events: none;
}

.detail-hero__info {
  padding: 26px;
}

.detail-hero__info h1 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-hero__info p {
  margin: 0 0 20px;
  color: var(--gray-500);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.detail-meta-grid div {
  padding: 13px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
}

.detail-meta-grid span {
  display: block;
  color: var(--gray-500);
  font-size: 12px;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.detail-tags span,
.genre-tags span {
  color: var(--rose-600);
  background: var(--rose-50);
  border-color: var(--rose-100);
}

.detail-content {
  width: min(100% - 32px, var(--container));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.detail-card {
  padding: 24px;
}

.detail-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-card p {
  margin: 0;
  color: var(--gray-700);
}

.detail-card--meta dl {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.detail-card--meta dl div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
}

.detail-card--meta dt {
  color: var(--gray-500);
}

.detail-card--meta dd {
  margin: 0;
  font-weight: 700;
}

.detail-card--meta a {
  color: var(--rose-600);
}

.detail-related {
  padding-top: 40px;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800));
}

.site-footer__inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 20px;
  margin-bottom: 14px;
}

.site-footer p {
  margin: 0 0 10px;
}

.footer-note {
  color: var(--rose-400);
  font-weight: 700;
}

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

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

.site-footer a:hover {
  color: var(--rose-400);
}

.site-footer__bottom {
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding: 18px 16px;
  text-align: center;
  color: #94a3b8;
}

.site-footer__bottom p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-500);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

.empty-state {
  grid-column: 1 / -1;
  padding: 40px;
  border-radius: var(--radius-lg);
  color: var(--gray-500);
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1080px) {
  .site-nav,
  .header-search,
  .hero__thumbs {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

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

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

  .detail-hero,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header__inner {
    min-height: 64px;
  }

  .site-logo strong {
    font-size: 18px;
  }

  .hero,
  .hero-slide__content {
    min-height: 540px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-slide__actions,
  .page-hero__actions,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid--home,
  .category-grid,
  .category-panels,
  .ranking-hero {
    grid-template-columns: 1fr;
  }

  .movie-strip .movie-card {
    flex-basis: 280px;
  }

  .filter-bar,
  .search-panel,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .search-panel {
    display: grid;
  }

  .ranking-hero {
    margin-top: 24px;
  }

  .detail-card--meta dl div {
    grid-template-columns: 1fr;
  }
}
