:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #ea580c;
  --amber: #f59e0b;
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(220, 38, 38, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-900);
  background: #f9fafb;
  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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.top-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark,
.footer-logo span {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 3px;
  color: var(--gray-500);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--red), var(--orange));
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--gray-100);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--gray-700);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  color: var(--gray-700);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--red);
  background: #fff1f2;
}

main {
  display: block;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 118px 0 68px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 16%, rgba(248, 113, 113, 0.22), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(251, 146, 60, 0.24), transparent 30%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 45%, #f9fafb 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 92px 0 auto;
  height: 480px;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.08), rgba(234, 88, 12, 0.08));
  transform: skewY(-5deg);
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero-eyebrow,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  max-width: 780px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 680px;
  color: var(--gray-700);
  font-size: clamp(18px, 2.1vw, 24px);
  margin: 0 0 28px;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary,
.btn-light,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.24);
}

.btn-primary:hover,
.btn-light:hover,
.btn-outline:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.btn-light {
  color: var(--red-dark);
  background: var(--white);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.btn-outline {
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(220, 38, 38, 0.22);
}

.btn-ghost {
  color: var(--gray-800);
  background: #fff7ed;
}

.hero-slider {
  position: relative;
  z-index: 2;
  min-height: 560px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(15, 23, 42, 0.22);
  background: var(--gray-950);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.08) 0%, rgba(3, 7, 18, 0.28) 40%, rgba(3, 7, 18, 0.86) 100%);
}

.hero-slide-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  color: var(--white);
}

.hero-slide-content h2 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.hero-slide-content p {
  max-width: 620px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
}

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

.hero-tags span,
.tag-row span,
.meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #fff7ed;
  background: rgba(248, 113, 113, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-controls {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-control {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  left: 28px;
  top: 28px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--white);
}

.hero-panel {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero-mini-card {
  min-height: 130px;
  border-radius: 22px;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  box-shadow: 0 18px 34px rgba(6, 78, 59, 0.16);
  transition: transform 0.2s ease;
}

.hero-mini-card:hover {
  transform: translateY(-4px);
}

.hero-mini-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 18px;
  line-height: 1.25;
}

.hero-mini-card span {
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 800;
}

.hero-mini-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.section,
.page-section {
  padding: 70px 0;
}

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

.section-inner,
.page-inner,
.footer-grid,
.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin: 0 auto 34px;
  max-width: 760px;
}

.section-heading h2,
.page-hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: var(--gray-900);
}

.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
}

.search-band {
  width: min(980px, calc(100% - 32px));
  margin: -18px auto 0;
  position: relative;
  z-index: 5;
  padding: 16px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-input,
.filter-input {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  outline: none;
  padding: 0 20px;
  color: var(--gray-900);
  background: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.filter-input:focus {
  border-color: rgba(220, 38, 38, 0.48);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

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

.category-tile {
  min-height: 180px;
  border-radius: 26px;
  padding: 24px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(234, 88, 12, 0.2));
}

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

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: var(--gray-900);
}

.category-tile p {
  margin: 0;
  position: relative;
  z-index: 2;
  color: var(--gray-600);
}

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

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

.movie-card > a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card > a:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.16);
}

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

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

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

.type-badge,
.rank-badge,
.play-pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.type-badge {
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  background: rgba(220, 38, 38, 0.92);
}

.rank-badge {
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--red));
}

.play-pill {
  left: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.card-content {
  padding: 14px;
}

.card-content h3 {
  min-height: 44px;
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content p {
  min-height: 42px;
  margin: 0 0 10px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tag-row span {
  color: var(--red-dark);
  background: #fff1f2;
  border: 1px solid #ffe4e6;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 46px 68px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
}

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

.rank-row img {
  width: 68px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  background: #fee2e2;
}

.rank-info strong {
  display: block;
  color: var(--gray-900);
  line-height: 1.35;
}

.rank-info em {
  display: block;
  margin-top: 6px;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.feature-card {
  min-height: 100%;
  border-radius: 32px;
  padding: 30px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.86), rgba(234, 88, 12, 0.78)),
    var(--gray-900);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.1;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.86);
}

.page-hero {
  padding: 126px 0 54px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(248, 113, 113, 0.22), transparent 28%),
    linear-gradient(180deg, #fff7ed, #f9fafb);
}

.page-toolbar {
  width: min(760px, calc(100% - 32px));
  margin: 24px auto 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: var(--red);
}

.category-block {
  margin-bottom: 54px;
}

.category-block-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}

.category-block-header h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.detail-hero {
  padding: 112px 0 44px;
  background:
    radial-gradient(circle at 10% 10%, rgba(248, 113, 113, 0.18), transparent 28%),
    linear-gradient(180deg, #fff7ed 0%, #f9fafb 100%);
}

.detail-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  border-radius: 30px;
  background: var(--gray-950);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray-950);
}

.player-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--gray-950);
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--white);
  background-position: center;
  background-size: cover;
}

.player-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.14), rgba(3, 7, 18, 0.76));
}

.player-overlay.is-hidden {
  display: none;
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 30px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 22px 44px rgba(220, 38, 38, 0.32);
}

.player-title {
  padding: 18px 20px;
  color: var(--white);
  background: linear-gradient(90deg, var(--green-900), var(--green-800));
}

.player-title h2 {
  margin: 0;
  font-size: 20px;
}

.detail-copy {
  min-width: 0;
}

.detail-copy h1 {
  margin: 10px 0 16px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-copy .lead {
  margin: 0 0 22px;
  color: var(--gray-700);
  font-size: 18px;
}

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.meta-grid .meta-chip {
  color: var(--red-dark);
  background: var(--white);
  border: 1px solid #fee2e2;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.detail-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.content-panel,
.side-panel {
  border-radius: 28px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.content-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.content-panel p {
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 16px;
}

.detail-poster {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #fee2e2;
}

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

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

.search-results {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  min-height: 280px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  border-radius: 24px;
  text-align: center;
  background: var(--white);
  color: var(--gray-600);
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 38px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo strong {
  font-size: 24px;
  color: #fecaca;
}

.footer-brand p,
.site-footer li,
.footer-bottom {
  color: #d1fae5;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fecaca;
}

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

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(209, 250, 229, 0.18);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .hero-inner,
  .detail-grid,
  .detail-content,
  .rank-layout {
    grid-template-columns: 1fr;
  }

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

  .category-grid,
  .hero-panel,
  .search-results,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-panel {
    order: -1;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 98px;
  }

  .hero-inner {
    gap: 24px;
  }

  .hero-slider {
    min-height: 420px;
    border-radius: 26px;
  }

  .hero-slide img {
    min-height: 420px;
  }

  .hero-panel,
  .category-grid,
  .movie-grid,
  .search-results,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .category-block-header {
    align-items: start;
    flex-direction: column;
  }

  .detail-hero,
  .page-hero {
    padding-top: 104px;
  }

  .content-panel,
  .side-panel {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .top-nav {
    width: min(100% - 22px, 1180px);
  }

  .hero-inner,
  .section-inner,
  .page-inner,
  .detail-grid,
  .detail-content,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .hero-panel,
  .category-grid,
  .movie-grid,
  .search-results,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-slide-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .rank-row {
    grid-template-columns: 42px 58px 1fr;
  }

  .rank-row img {
    width: 58px;
    height: 82px;
  }
}
