:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3e8d6;
  --brand: #d97706;
  --brand-dark: #b45309;
  --brand-hot: #f97316;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fffbeb 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  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: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.28);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 21px;
  line-height: 1;
  background: linear-gradient(90deg, #92400e, #ea580c);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  color: #4b5563;
  font-weight: 700;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  color: #4b5563;
  background: #ffedd5;
  width: 42px;
  height: 42px;
  font-size: 22px;
  cursor: pointer;
}

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

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #4b5563;
  background: rgba(255, 237, 213, 0.65);
  font-weight: 700;
}

.mobile-link.is-active,
.mobile-link:hover {
  color: var(--brand-dark);
  background: #fed7aa;
}

.hero {
  position: relative;
  height: 78vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: opacity 0.65s ease, transform 1.2s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 36%, rgba(251, 146, 60, 0.36), transparent 32%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.36) 48%, rgba(0, 0, 0, 0.24));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 84px;
  color: #ffffff;
}

.hero-badges,
.detail-badges,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-badges span,
.hero-meta span,
.detail-badges span {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-badges span:first-child,
.detail-badges span:first-child {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 16px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero p {
  max-width: 760px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.75;
}

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

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 15px 32px rgba(249, 115, 22, 0.28);
}

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

.detail-aside .btn.ghost,
.cover-card .btn.primary {
  width: 100%;
}

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

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

.hero-dot.is-active {
  width: 36px;
  background: #f59e0b;
}

.feature-band {
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-band a {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #92400e;
  font-weight: 900;
  box-shadow: var(--shadow);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

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

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

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2,
.panel-head h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(26px, 3vw, 38px);
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-action,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #ffedd5;
  font-weight: 800;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--radius);
  background: #111827;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover,
.top-rank-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 56px rgba(120, 53, 15, 0.2);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.45s ease;
}

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

.category-card::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.08));
}

.category-card div {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
}

.category-card h3,
.category-card p {
  margin: 0;
}

.category-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.category-card p {
  color: #f3f4f6;
  line-height: 1.6;
  font-size: 14px;
}

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

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

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

.movie-card {
  display: grid;
  gap: 12px;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
  box-shadow: var(--shadow);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

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

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

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

.poster-year {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #f59e0b;
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  display: grid;
  gap: 8px;
}

.movie-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-tags {
  min-height: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  color: #92400e;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #9ca3af;
  font-size: 12px;
}

.compact-card {
  grid-template-columns: 92px 1fr;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.compact-card .poster-frame {
  border-radius: 13px;
  box-shadow: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 72px 0;
}

.ranking-panel,
.detail-card,
.cover-card,
.related-card,
.search-panel,
.ranking-table,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px;
}

.panel-head span {
  color: var(--brand-dark);
  font-weight: 900;
  letter-spacing: 0.12em;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
}

.rank-row:hover {
  background: #ffedd5;
}

.rank-no {
  color: #f97316;
  font-weight: 900;
}

.rank-row img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #fed7aa;
}

.rank-title {
  font-weight: 850;
  line-height: 1.4;
}

.rank-type {
  grid-column: 3;
  color: var(--muted);
  font-size: 12px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
}

.slim-hero {
  min-height: 320px;
  background:
    radial-gradient(circle at 20% 30%, rgba(249, 115, 22, 0.18), transparent 28%),
    linear-gradient(135deg, #fff7ed, #ffffff 48%, #fffbeb);
}

.page-hero > div,
.page-hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 780px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.category-hero {
  color: #ffffff;
}

.category-hero p {
  color: #f3f4f6;
}

.page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28));
}

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

.category-overview-card {
  min-height: 260px;
}

.category-covers {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.category-info {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #ffffff;
}

.category-info span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  font-weight: 900;
}

.category-info h2,
.category-info p {
  margin: 0;
}

.category-info h2 {
  font-size: 22px;
  line-height: 1.4;
}

.category-info p {
  margin-top: 10px;
  color: #f3f4f6;
  font-weight: 800;
}

.top-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}

.top-rank-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--radius);
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-rank-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 58%);
}

.top-rank-card div,
.top-rank-no {
  position: absolute;
  z-index: 2;
}

.top-rank-no {
  top: 18px;
  left: 18px;
  border-radius: 999px;
  padding: 7px 12px;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  font-weight: 900;
}

.top-rank-card div {
  left: 20px;
  right: 20px;
  bottom: 20px;
}

.top-rank-card h2,
.top-rank-card p {
  margin: 0;
}

.top-rank-card h2 {
  font-size: 25px;
  margin-bottom: 10px;
}

.top-rank-card p {
  color: #e5e7eb;
  line-height: 1.65;
}

.ranking-table {
  overflow: hidden;
}

.ranking-table-row {
  display: grid;
  grid-template-columns: 72px 64px 1.3fr 0.8fr 1.2fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.ranking-table-row:last-child {
  border-bottom: 0;
}

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

.ranking-table-row span {
  color: #f97316;
  font-weight: 900;
}

.ranking-table-row img {
  width: 64px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: #fed7aa;
}

.ranking-table-row strong {
  font-size: 17px;
}

.ranking-table-row em {
  color: #92400e;
  font-style: normal;
  font-weight: 800;
}

.ranking-table-row small {
  color: var(--muted);
}

.search-section {
  padding-bottom: 72px;
}

.search-panel {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.search-panel label {
  display: grid;
  gap: 8px;
  color: #92400e;
  font-weight: 900;
  font-size: 13px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: #fffaf0;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.search-status {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 32px 0 72px;
}

.detail-main {
  min-width: 0;
  display: grid;
  gap: 22px;
}

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

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

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

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.48));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 48px rgba(249, 115, 22, 0.38);
  font-size: 38px;
  transform: scale(1);
  transition: transform 0.2s ease;
}

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

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

.detail-card,
.cover-card,
.related-card {
  padding: 24px;
}

.detail-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.detail-one-line {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.75;
}

.detail-meta-list {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: #fff7ed;
  margin-bottom: 24px;
}

.detail-meta-list p {
  margin: 0;
}

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

.detail-card h2,
.related-card h2,
.cover-card h2 {
  margin: 22px 0 12px;
  font-size: 24px;
}

.detail-card > p {
  color: #374151;
  line-height: 1.9;
}

.detail-aside {
  display: grid;
  gap: 22px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: #fed7aa;
}

.cover-card p {
  color: var(--muted);
  line-height: 1.7;
}

.related-grid {
  grid-template-columns: 1fr;
}

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

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding: 52px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 25px;
  font-weight: 900;
  margin-bottom: 14px;
}

.site-footer p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.8;
}

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

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

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

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

@media (max-width: 1080px) {
  .category-grid,
  .movie-grid,
  .large-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .detail-aside {
    position: static;
  }

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

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

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    height: 72vh;
    min-height: 520px;
  }

  .hero-content {
    padding-bottom: 78px;
  }

  .feature-band {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .ranking-table-row {
    grid-template-columns: 50px 54px 1fr;
  }

  .ranking-table-row em,
  .ranking-table-row small {
    grid-column: 3;
  }

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

@media (max-width: 520px) {
  .brand-text strong {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .feature-band,
  .category-grid,
  .movie-grid,
  .large-grid,
  .category-overview-grid,
  .top-rank-grid {
    grid-template-columns: 1fr;
  }

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

  .content-section,
  .split-section,
  .detail-layout {
    width: min(100% - 24px, 1180px);
  }
}
