* {
  box-sizing: border-box;
}

:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --red: #ef4444;
  --orange: #f97316;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --green: #10b981;
  --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.14);
  --shadow-deep: 0 24px 80px rgba(2, 6, 23, 0.32);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: #f8fafc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--white);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.97));
  box-shadow: 0 8px 26px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon,
.footer-logo span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-2deg);
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fca5a5, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 auto;
}

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

.nav-link:hover,
.nav-link.active {
  color: #fb7185;
  transform: translateY(-1px);
}

.nav-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input {
  width: 260px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  outline: none;
  color: var(--white);
  background: rgba(51, 65, 85, 0.95);
  border-radius: 999px;
  padding: 10px 14px;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.nav-search button,
.mobile-search button {
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  background: rgba(51, 65, 85, 0.9);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.open {
  display: block;
}

.mobile-search {
  margin-bottom: 12px;
}

.mobile-search input {
  width: 100%;
}

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

.mobile-nav .nav-link {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.52);
}

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

.hero-carousel {
  position: relative;
  min-height: 670px;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, #020617, #0f172a 45%, #7f1d1d);
}

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

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.15) contrast(1.04);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(34, 211, 238, 0.28), transparent 28%),
    radial-gradient(circle at 80% 24%, rgba(239, 68, 68, 0.38), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.7) 48%, rgba(15, 23, 42, 0.92));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 670px;
  margin: 0 auto;
  padding: 80px 0 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fecaca;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffedd5;
  background: rgba(251, 146, 60, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.35);
  padding: 7px 12px;
}

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

.primary-button,
.ghost-button,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 46px rgba(239, 68, 68, 0.38);
}

.primary-button:hover,
.ghost-button:hover,
.panel-link:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  transform: rotate(1.5deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.025);
}

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

.hero-poster span,
.play-chip,
.detail-poster span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.28);
}

.hero-poster span {
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-control.prev {
  left: max(18px, calc((100% - 1180px) / 2 - 64px));
}

.hero-control.next {
  right: max(18px, calc((100% - 1180px) / 2 - 64px));
}

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

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.active {
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.hero-feature-strip {
  position: relative;
  z-index: 7;
  margin-top: -54px;
  padding-bottom: 24px;
}

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

.horizontal-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border-radius: 18px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-deep);
}

.horizontal-card img {
  width: 72px;
  height: 92px;
  border-radius: 13px;
  object-fit: cover;
}

.horizontal-card strong {
  display: block;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-card em {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-rank {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

.content-section {
  padding: 70px 0;
}

.alt-section {
  background: var(--white);
}

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

.section-heading h2,
.panel-title h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: #64748b;
}

.section-heading a {
  color: #ea580c;
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.22);
}

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.card-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.74));
}

.play-chip {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rating-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.rating-chip {
  right: 10px;
  top: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title:hover {
  color: #dc2626;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 7px 0;
  color: #64748b;
  font-size: 12px;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #cbd5e1;
}

.card-body p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #475569;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: #b91c1c;
  background: #fee2e2;
  padding: 5px 8px;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  color: var(--white);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.tile-shade {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.88));
}

.category-tile strong,
.category-tile em,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 23px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 4px;
  color: #fed7aa;
  font-style: normal;
  font-weight: 800;
}

.category-tile small {
  margin-top: 8px;
  color: #e2e8f0;
  line-height: 1.45;
}

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

.ranking-panel {
  position: sticky;
  top: 92px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #0f172a, #020617);
  box-shadow: var(--shadow-deep);
  padding: 24px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.panel-title h2 {
  color: var(--white);
  font-size: 26px;
}

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

.ranking-list .horizontal-card {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.panel-link {
  width: 100%;
  margin-top: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.28), transparent 26%),
    radial-gradient(circle at 82% 22%, rgba(239, 68, 68, 0.35), transparent 32%),
    linear-gradient(135deg, #020617, #111827 52%, #7f1d1d);
  padding: 86px 0;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.small-hero,
.category-hero,
.ranking-hero,
.search-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
}

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

.crumbs a:hover {
  color: #fb923c;
}

.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: #0f172a;
}

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

.overview-body {
  padding: 22px;
}

.overview-body span {
  display: inline-flex;
  border-radius: 999px;
  color: #b91c1c;
  background: #fee2e2;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
}

.overview-body h2 {
  margin: 14px 0 8px;
  color: #0f172a;
  font-size: 24px;
}

.overview-body p {
  margin: 0;
  color: #64748b;
}

.filter-panel {
  margin-bottom: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
}

.filter-row input,
.filter-row select {
  width: 100%;
  border: 1px solid #e2e8f0;
  outline: none;
  border-radius: 14px;
  color: #0f172a;
  background: #f8fafc;
  padding: 12px 14px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.filter-tags button {
  border: 0;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 750;
}

.filter-tags button.active,
.filter-tags button:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.result-count {
  margin-top: 14px;
  color: #64748b;
  font-size: 14px;
}

.result-count strong {
  color: #dc2626;
}

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

.movie-detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #020617;
  min-height: 630px;
  display: flex;
  align-items: center;
}

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

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(3px) saturate(1.2);
  transform: scale(1.04);
}

.detail-bg-shade {
  background:
    radial-gradient(circle at 22% 18%, rgba(239, 68, 68, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.76));
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 44px;
  padding: 72px 0;
}

.detail-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

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

.detail-poster span {
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.detail-copy h1 {
  margin-top: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 750;
}

.player-section {
  margin-top: -86px;
  position: relative;
  z-index: 5;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow-deep);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  z-index: 3;
}

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

.player-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 30px;
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.38);
}

.player-overlay strong {
  max-width: 88%;
  font-size: 24px;
  text-align: center;
}

.detail-content-section {
  padding-top: 58px;
}

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

.detail-article,
.detail-side {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 25px;
}

.detail-article h2 + p {
  margin-top: 0;
}

.detail-article p {
  color: #334155;
  font-size: 17px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.detail-side dt {
  color: #64748b;
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  color: #0f172a;
}

.detail-side a {
  color: #dc2626;
  font-weight: 800;
}

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

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 44px;
  padding: 48px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 21px;
  font-weight: 900;
}

.footer-brand p {
  max-width: 420px;
  margin: 16px 0 0;
  color: #94a3b8;
}

.footer-column {
  display: grid;
  gap: 9px;
  align-content: start;
}

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

.footer-column a {
  color: #cbd5e1;
}

.footer-column a:hover {
  color: #fb7185;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 18px 16px;
  text-align: center;
  color: #64748b;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 34px rgba(239, 68, 68, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 13px;
  }

  .nav-search input {
    width: 210px;
  }

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

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 58px 0 82px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .two-column-section,
  .detail-content-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: relative;
    top: auto;
  }

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

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

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

  .brand-text {
    font-size: 19px;
  }

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

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-one-line {
    font-size: 17px;
  }

  .hero-control {
    display: none;
  }

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

  .content-section {
    padding: 46px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-flex;
    margin-top: 12px;
  }

  .card-body {
    padding: 13px;
  }

  .card-title {
    font-size: 15px;
  }

  .detail-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .player-section {
    margin-top: -46px;
  }

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

  .player-overlay span {
    width: 66px;
    height: 66px;
  }

  .footer-shell {
    padding: 36px 0;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .compact-grid,
  .full-grid,
  .ranking-grid,
  .category-grid,
  .category-overview-grid,
  .strip-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .horizontal-card img {
    width: 64px;
    height: 84px;
  }
}
