:root {
  --color-primary: #dc2626;
  --color-primary-dark: #991b1b;
  --color-primary-soft: #fee2e2;
  --color-accent: #f97316;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-bg: #f9fafb;
  --color-card: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 4px solid var(--color-primary);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--container), calc(100% - 32px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.32);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  color: #374151;
}

.desktop-nav > a,
.nav-dropdown > a {
  position: relative;
  padding: 28px 0;
}

.desktop-nav > a::after,
.nav-dropdown > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 22px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  transition: width 0.25s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > a:hover {
  color: var(--color-primary);
}

.desktop-nav > a:hover::after,
.nav-dropdown > a:hover::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 74px;
  left: -24px;
  width: 210px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.25s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 12px;
  color: #4b5563;
  font-size: 14px;
}

.dropdown-panel a:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

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

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  outline: none;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 22px;
}

.mobile-nav {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--color-line);
}

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

.mobile-nav a {
  padding: 10px 4px;
  color: #374151;
  font-weight: 700;
}

.mobile-search input {
  flex: 1;
  padding: 10px 14px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #7f1d1d, #dc2626 45%, #991b1b);
}

.hero-backgrounds,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 5s ease;
}

.hero-bg.is-active {
  opacity: 0.28;
  transform: scale(1.12);
}

.hero-shade {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 30%), linear-gradient(90deg, rgba(127, 29, 29, 0.95), rgba(220, 38, 38, 0.75), rgba(17, 24, 39, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
  padding: 64px 0;
}

.hero-title-block {
  max-width: 560px;
}

.hero-label,
.eyebrow,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  padding: 7px 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-title-block h1 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-title-block p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.hero-main-actions,
.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn-light {
  color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(255, 255, 255, 0.18);
}

.btn-outline,
.btn-ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.26);
}

.btn.full {
  width: 100%;
}

.hero-stage {
  position: relative;
  min-height: 460px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 26px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateX(28px) scale(0.98);
  pointer-events: none;
  transition: 0.5s ease;
}

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

.hero-copy h2 {
  margin: 16px 0 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

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

.hero-tags span,
.detail-tags a,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags {
  margin: 18px 0 24px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border-radius: 26px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.3);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.9);
  padding: 10px 16px;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 30px;
  bottom: -42px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.soft-section {
  width: 100%;
  max-width: none;
  padding: 68px max(16px, calc((100% - var(--container)) / 2));
  background: linear-gradient(135deg, #fff7ed, #fee2e2 55%, #fff1f2);
}

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

.section-heading span {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 12px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.section-heading a {
  color: var(--color-primary);
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: var(--shadow-card);
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #f97316, #be123c);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #ef4444, #7f1d1d);
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 900;
}

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

.category-tile i {
  position: absolute;
  right: 20px;
  bottom: 12px;
  font-size: 34px;
  font-style: normal;
  transition: transform 0.2s ease;
}

.category-tile:hover i {
  transform: translateX(5px);
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.compact .poster-wrap {
  aspect-ratio: 1 / 1;
}

.poster-wrap img,
.rank-cover img,
.poster-card img,
.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-wrap img {
  transition: transform 0.5s ease;
}

.movie-card-link:hover .poster-wrap img {
  transform: scale(1.1);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card-link:hover .poster-wrap::after {
  opacity: 1;
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent), #ec4899);
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  left: auto;
  right: 12px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.play-bubble {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.compact .card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact .card-body h3 {
  font-size: 15px;
  -webkit-line-clamp: 1;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact .card-body p {
  display: none;
}

.tag-row {
  min-height: 28px;
  margin-bottom: 12px;
}

.tag-row span {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-size: 12px;
}

.card-meta,
.rank-meta {
  justify-content: space-between;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

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

.rank-list {
  grid-template-columns: 1fr;
}

.rank-link {
  display: grid;
  grid-template-columns: 80px 120px 1fr;
  min-height: 110px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  font-size: 28px;
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
}

.rank-info {
  min-width: 0;
  padding: 16px;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.page-hero > div {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.1;
}

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

.category-hero,
.library-hero,
.ranking-hero {
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 30%), linear-gradient(135deg, #7f1d1d, #dc2626 55%, #111827);
}

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

.category-card-large a {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  min-height: 240px;
  background: var(--color-primary-soft);
}

.category-large-body {
  padding: 28px;
}

.category-large-body h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.category-large-body p {
  margin: 0 0 24px;
  color: var(--color-muted);
}

.category-large-body span {
  color: var(--color-primary);
  font-weight: 900;
}

.filter-bar {
  position: sticky;
  top: 96px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.wide-filter {
  grid-template-columns: 1fr 180px 150px 170px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 30px;
  border-radius: 20px;
  color: var(--color-muted);
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.detail-wrap {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--color-muted);
  font-size: 14px;
}

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

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

.detail-main,
.detail-aside {
  min-width: 0;
}

.player-card,
.detail-content-card,
.info-card,
.poster-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.player-card {
  background: #111827;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.16));
}

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

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

.player-button {
  position: absolute;
  z-index: 3;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent), #ec4899);
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.34);
  font-size: 34px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.player-button:hover {
  transform: scale(1.08);
}

.detail-content-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-content-card h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
}

.one-line {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 18px;
}

.detail-tags {
  margin-bottom: 26px;
}

.detail-tags a {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.detail-content-card h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.detail-content-card p {
  color: #374151;
  font-size: 17px;
}

.detail-aside {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 20px;
}

.poster-card {
  aspect-ratio: 4 / 5;
  background: var(--color-primary-soft);
}

.info-card {
  padding: 22px;
}

.info-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.info-card dl {
  margin: 0 0 20px;
}

.info-card div,
.info-card dl {
  display: grid;
  gap: 0;
}

.info-card dt,
.info-card dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
}

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

.info-card dd {
  text-align: right;
  color: #111827;
  font-weight: 800;
}

.related-section {
  padding-top: 56px;
}

.site-footer {
  margin-top: 80px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 32px;
}

.brand-footer .brand-text strong {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

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

.footer-links h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-bottom {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

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

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

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

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

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

  .detail-aside {
    position: static;
    grid-template-columns: 260px 1fr;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-inner {
    padding: 46px 0 84px;
  }

  .hero-slide {
    position: relative;
    display: none;
    grid-template-columns: 1fr;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-dots {
    left: 0;
    bottom: -44px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .rank-grid,
  .category-large-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card-large a,
  .detail-aside {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .wide-filter {
    position: static;
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 70px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .hero-carousel,
  .hero-inner {
    min-height: auto;
  }

  .hero-title-block h1 {
    font-size: 38px;
  }

  .hero-slide {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 280px;
  }

  .section,
  .soft-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .rank-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

  .rank-link {
    grid-template-columns: 58px 92px 1fr;
  }

  .rank-number {
    font-size: 20px;
  }

  .rank-info h3 {
    font-size: 16px;
  }

  .detail-content-card,
  .info-card {
    padding: 20px;
  }

  .player-button {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
