:root {
  color-scheme: light;
  --red: #dc2626;
  --orange: #f97316;
  --yellow: #facc15;
  --pink: #ec4899;
  --rose: #f43f5e;
  --purple: #7c3aed;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --green: #16a34a;
  --emerald: #10b981;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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;
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.24);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
  background: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.brand__text strong,
.brand__text em {
  display: block;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 22px;
  letter-spacing: 0.08em;
}

.brand__text em {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.88;
  font-style: normal;
}

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

.main-nav a,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #7f1d1d;
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.mobile-nav__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  opacity: 0.95;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

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

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 35%, rgba(250, 204, 21, 0.24), transparent 30%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(127, 29, 29, 0.78) 48%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent 58%);
}

.hero-slide__content {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 54px;
  padding: 64px 0 86px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(14px);
}

.eyebrow--dark {
  color: #b91c1c;
  background: #fee2e2;
  backdrop-filter: none;
}

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

.hero-copy__line {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

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

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

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.28);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: #111827;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(220, 38, 38, 0.86);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.38);
}

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

.hero-controls button {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  opacity: 0.55;
}

.hero-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  opacity: 1;
  background: #fff;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.tag-row--hero span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.quick-search__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.quick-search h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
}

.quick-search__form,
.search-panel,
.filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
}

.search-panel,
.filter-bar {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.3fr) minmax(150px, 0.3fr) auto;
  margin-bottom: 16px;
}

.quick-search input,
.search-panel input,
.filter-bar input,
.search-panel select,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  background: #fff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.search-panel input:focus,
.filter-bar input:focus,
.search-panel select:focus,
.filter-bar select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.quick-search button,
.search-panel button,
.filter-bar button {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  font-weight: 900;
}

.stats-strip {
  padding: 44px 0 20px;
}

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

.stats-grid div {
  padding: 22px;
  border-radius: 22px;
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.stats-grid strong {
  display: block;
  color: var(--red);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: 72px 0;
}

.section--soft {
  background: #fff;
}

.section--dark {
  color: #fff;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #000);
}

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

.section-head--tight {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-head--on-dark h2 {
  color: #fff;
}

.section-more {
  color: var(--red);
  font-weight: 900;
}

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

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

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

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

.section--dark .movie-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.movie-card__poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.movie-card__poster img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 58%);
  opacity: 0.8;
}

.movie-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(220, 38, 38, 0.86);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  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__year {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.54);
  font-size: 12px;
  font-weight: 900;
}

.movie-card__body {
  padding: 18px;
}

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

.movie-card h3 a:hover {
  color: var(--red);
}

.movie-card p {
  min-height: 52px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.movie-card__meta {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.movie-card--compact {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 0;
}

.movie-card--compact .movie-card__poster img {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card--compact p {
  min-height: auto;
}

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

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

.category-tile {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 20px;
  border-radius: 26px;
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile img,
.category-tile__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.4s ease;
}

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

.category-tile__overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
}

.category-tile strong,
.category-tile em,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile strong {
  font-size: 24px;
  line-height: 1.1;
}

.category-tile em {
  margin: 5px 0 8px;
  font-style: normal;
  font-weight: 900;
  color: #fde68a;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

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

.rank-panel {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-panel--side {
  border-radius: 18px;
  box-shadow: none;
  border: 1px solid var(--line);
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.rank-item:hover {
  background: #fff7ed;
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item__num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 950;
}

.rank-item__title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 850;
}

.rank-item__meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  padding: 82px 0;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.38), transparent 30%),
    linear-gradient(135deg, #991b1b, #f97316 55%, #facc15);
}

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

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-hero__meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 850;
}

.page-hero--blue,
.category-tile--blue {
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.page-hero--green,
.category-tile--green,
.page-hero--emerald,
.category-tile--emerald {
  background: linear-gradient(135deg, #047857, #10b981);
}

.page-hero--purple,
.category-tile--purple {
  background: linear-gradient(135deg, #581c87, #a855f7);
}

.page-hero--pink,
.category-tile--pink,
.page-hero--rose,
.category-tile--rose {
  background: linear-gradient(135deg, #be123c, #ec4899);
}

.page-hero--cyan,
.category-tile--cyan {
  background: linear-gradient(135deg, #0e7490, #22d3ee);
}

.page-hero--yellow,
.category-tile--yellow,
.page-hero--orange,
.category-tile--orange {
  background: linear-gradient(135deg, #c2410c, #f59e0b);
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.category-overview__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
}

.category-overview__head span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #b91c1c;
  background: #fee2e2;
  font-weight: 900;
  font-size: 13px;
}

.category-overview h2 {
  margin: 10px 0 8px;
  font-size: 30px;
  line-height: 1.1;
}

.category-overview p {
  margin: 0;
  color: var(--muted);
}

.mini-poster-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  background: var(--line);
}

.mini-poster-row a {
  position: relative;
  overflow: hidden;
  min-height: 110px;
  color: #fff;
}

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

.mini-poster-row span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 10px 9px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-result {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.ranking-table {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.ranking-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 140px 90px 120px;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.ranking-row:hover {
  background: #fff7ed;
}

.ranking-row--head {
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  font-weight: 950;
}

.ranking-row__num {
  color: var(--red);
  font-weight: 950;
}

.ranking-row__title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 900;
}

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

.detail-hero__bg,
.detail-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-hero__bg {
  object-fit: cover;
  filter: blur(2px) saturate(1.08);
  transform: scale(1.04);
}

.detail-hero__shade {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(127, 29, 29, 0.76), rgba(0, 0, 0, 0.42)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 64%);
}

.detail-hero__content {
  position: relative;
  padding: 42px 0 62px;
}

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

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

.detail-hero__grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-intro p {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.detail-badges span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 850;
}

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

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22));
  transition: opacity 0.2s ease;
}

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

.player-overlay span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 22px 42px rgba(220, 38, 38, 0.38);
  font-size: 30px;
}

.player-overlay strong {
  margin-top: 6px;
  font-size: 22px;
}

.player-overlay em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  margin: 0;
  color: #fecaca;
  font-size: 14px;
  text-align: center;
}

.detail-card,
.side-card {
  margin-top: 22px;
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
}

.detail-card p,
.side-card p {
  margin: 0;
  color: #374151;
}

.movie-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

.movie-facts div {
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

.movie-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.movie-facts dd {
  margin: 4px 0 0;
  font-weight: 850;
}

.movie-facts a {
  color: var(--red);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-aside {
  position: sticky;
  top: 98px;
}

.side-card:first-child {
  margin-top: 0;
}

.side-more {
  display: inline-flex;
  margin-top: 14px;
  color: var(--red);
  font-weight: 900;
}

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

.sitemap-block {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.sitemap-block h2 {
  margin: 0 0 14px;
  color: var(--red);
}

.sitemap-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
}

.sitemap-links a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f9fafb;
  font-size: 14px;
  font-weight: 800;
}

.sitemap-links a:hover {
  color: var(--red);
  background: #fff7ed;
}

.sitemap-links span {
  color: var(--muted);
  flex: 0 0 auto;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-links a:hover {
  color: #fed7aa;
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #9ca3af;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: none;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: var(--shadow-soft);
  font-size: 22px;
  font-weight: 950;
}

.back-to-top.is-visible {
  display: block;
}

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

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-slide__content,
  .quick-search__inner,
  .two-column,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 520px;
    transform: none;
  }

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

  .detail-aside {
    position: static;
  }
}

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

  .brand {
    min-width: 0;
  }

  .brand__text em {
    display: none;
  }

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

  .hero-slide__content {
    padding-top: 38px;
  }

  .quick-search {
    margin-top: 0;
  }

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

  .stats-grid,
  .movie-grid,
  .movie-grid--featured,
  .movie-grid--related,
  .category-grid,
  .mini-poster-row,
  .sitemap-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 52px 0;
  }

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

  .movie-card--compact {
    grid-template-columns: 136px 1fr;
  }

  .ranking-row {
    grid-template-columns: 64px minmax(0, 1fr) 76px;
  }

  .ranking-row span:nth-child(3),
  .ranking-row span:nth-child(5) {
    display: none;
  }

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

  .detail-poster {
    max-width: 420px;
  }

  .movie-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .stats-grid,
  .movie-grid,
  .movie-grid--featured,
  .movie-grid--related,
  .category-grid,
  .mini-poster-row,
  .sitemap-links {
    grid-template-columns: 1fr;
  }

  .movie-card--compact {
    grid-template-columns: 1fr;
  }

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