:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-soft: 0 20px 45px rgba(124, 45, 18, 0.14);
  --shadow-card: 0 12px 28px rgba(17, 24, 39, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--amber-50), #fff7ed 45%, #fff1f2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 28px rgba(251, 146, 60, 0.10);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #d97706, var(--orange-600));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-copy em {
  color: var(--gray-600);
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-600);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--gray-700);
}

.mobile-nav {
  display: none;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
  border-top: 1px solid rgba(251, 191, 36, 0.28);
}

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

.mobile-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-sub-link {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--gray-700);
  font-size: 13px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--amber-400), var(--orange-400), var(--rose-400));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.52), rgba(17, 24, 39, 0.88)),
    var(--hero-bg) center / cover no-repeat;
  filter: saturate(1.08);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 48px;
  color: #fff;
}

.hero-copy {
  max-width: 680px;
  padding: 92px 0 78px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--orange-600);
  background: rgba(255, 247, 237, 0.95);
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.panel-link,
.search-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-card button {
  color: #fff;
  background: linear-gradient(90deg, var(--orange-500), var(--rose-500));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.22);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  position: relative;
  z-index: 3;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

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

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

.hero-rank-panel {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100vw - var(--max-width)) / 2));
  bottom: 36px;
  width: min(390px, calc(100% - 32px));
  padding: 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.48);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-rank-panel h2,
.hero-rank-panel p {
  margin: 0;
}

.hero-rank-panel p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.hero-rank-panel ol {
  list-style: none;
  margin: 16px 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hero-rank-panel li a {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-rank-panel li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-400), var(--rose-500));
  font-size: 12px;
  font-weight: 900;
}

.hero-rank-panel li em {
  color: #fde68a;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.panel-link {
  width: 100%;
  color: var(--gray-900);
  background: #fff;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: #fff;
}

.quick-section,
.section-block {
  padding: 68px 0 0;
}

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

.section-heading.centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

.section-heading h2,
.page-title h1 {
  margin: 10px 0 0;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.75;
}

.section-heading a {
  color: var(--orange-600);
  font-weight: 900;
}

.section-heading.light h2,
.section-heading.light a {
  color: #fff;
}

.section-heading.light .eyebrow {
  background: rgba(255, 255, 255, 0.88);
}

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

.category-chip {
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.category-chip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.category-chip span {
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(17, 24, 39, 0.86));
}

.rating,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 9px;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.rating {
  right: 12px;
  background: linear-gradient(90deg, var(--orange-500), var(--rose-500));
}

.rank-badge {
  left: 12px;
  background: rgba(0, 0, 0, 0.62);
}

.play-dot {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  opacity: 0;
  backdrop-filter: blur(12px);
  transform: translate(-50%, -42%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--gray-500);
  font-size: 12px;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  color: var(--orange-600);
  border-color: rgba(251, 146, 60, 0.22);
  background: #fff7ed;
  backdrop-filter: none;
}

.wide-gradient-section {
  margin-top: 72px;
  padding: 70px 0;
  background: linear-gradient(90deg, var(--amber-400), var(--orange-400), var(--rose-400));
}

.rank-hero-section {
  margin-top: 34px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.7fr);
  gap: 26px;
  align-items: start;
}

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

.media-list-item {
  display: grid;
  grid-template-columns: auto 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, background 0.2s ease;
}

.media-list-item:hover {
  background: #fff;
  transform: translateX(4px);
}

.media-list-item img {
  width: 78px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.list-rank {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500));
  font-weight: 900;
}

.media-list-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.media-list-copy strong,
.media-list-copy em {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.media-list-copy strong {
  font-size: 17px;
}

.media-list-copy em {
  color: var(--gray-600);
  font-style: normal;
}

.media-list-copy small {
  color: var(--gray-500);
}

.search-card,
.content-card {
  padding: 26px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.search-card h2 {
  margin: 0;
  font-size: 28px;
}

.search-card p {
  color: var(--gray-600);
  line-height: 1.75;
}

.search-card form {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.search-card input,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: 0;
  padding: 0 14px;
  color: var(--gray-900);
  background: #fff;
}

.search-card input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--orange-400);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14);
}

.page-title {
  padding: 70px 0 10px;
}

.page-title h1 {
  font-size: clamp(40px, 7vw, 72px);
}

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

.category-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card a {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 260px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: var(--gray-900);
}

.category-covers img {
  width: 100%;
  height: 100%;
  min-height: 128px;
  object-fit: cover;
}

.category-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px;
}

.category-card-body h2 {
  margin: 0;
  font-size: 30px;
}

.category-card-body p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.category-card-body strong {
  color: var(--orange-600);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(160px, 0.6fr) minmax(160px, 0.6fr);
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.08);
}

.search-panel label {
  display: grid;
  gap: 7px;
}

.search-panel span {
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--gray-600);
  border-radius: 18px;
  background: #fff;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--gray-900);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--detail-bg) center / cover no-repeat;
  filter: blur(12px) saturate(1.1);
  transform: scale(1.08);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.93), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.9));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 54px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
  align-items: center;
  margin-top: 34px;
}

.detail-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags {
  margin-top: 22px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
}

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 26px 56px rgba(17, 24, 39, 0.26);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.56));
  cursor: pointer;
}

.play-cover span {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500));
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.34);
  font-size: 34px;
  transform: translateX(3px);
}

.play-cover.is-hidden {
  display: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 26px;
  margin-top: 30px;
}

.article-card h2,
.side-info-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-card p {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.side-info-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 14px;
  margin: 0 0 22px;
}

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

.side-info-card dd {
  margin: 0;
  color: var(--gray-900);
}

.primary-button.full {
  width: 100%;
}

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

.movie-card.compact .card-body p {
  font-size: 12px;
}

.site-footer {
  margin-top: 82px;
  border-top: 1px solid rgba(251, 191, 36, 0.38);
  background: linear-gradient(180deg, var(--amber-100), #ffedd5);
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 30px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer p,
.site-footer a {
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.75;
}

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

.site-footer a:hover {
  color: var(--orange-600);
}

.footer-bottom {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(251, 146, 60, 0.28);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom button {
  border: 1px solid rgba(251, 146, 60, 0.32);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--gray-700);
  background: #fff;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .movie-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .hero-content {
    grid-template-columns: 1fr 260px;
  }

  .hero-rank-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(var(--max-width), calc(100% - 32px));
    margin: -116px auto 78px;
  }
}

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

  .menu-button {
    display: block;
  }

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

  .hero-content,
  .detail-layout,
  .detail-content-grid,
  .two-column-section,
  .footer-inner,
  .category-card a {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 260px;
  }

  .hero-rank-panel {
    margin-top: -70px;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-inner,
  .footer-bottom,
  .hero-content {
    width: min(100% - 22px, var(--max-width));
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy em {
    display: none;
  }

  .hero-copy {
    padding-top: 62px;
  }

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

  .hero-actions {
    display: grid;
  }

  .category-chip-grid,
  .movie-grid,
  .catalog-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .media-list-item {
    grid-template-columns: 42px 64px minmax(0, 1fr);
    padding: 10px;
  }

  .media-list-item img {
    width: 64px;
  }

  .page-title {
    padding-top: 44px;
  }
}
