:root {
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 38px rgba(15, 23, 42, 0.2);
  --radius: 18px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.26);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

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

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

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

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-900), #3b0a0a 45%, var(--gray-900));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(220, 38, 38, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72) 46%, rgba(17, 24, 39, 0.1));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  max-width: var(--container);
}

.hero-kicker,
.page-hero span,
.category-large-content span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  color: #fff;
  background: rgba(220, 38, 38, 0.95);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 23px);
}

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

.hero-tags span,
.tag-list span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

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

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

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

.btn-primary {
  color: #fff;
  background: var(--red-600);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.32);
}

.btn-primary:hover {
  background: var(--red-700);
}

.btn-light {
  color: var(--gray-900);
  background: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.42);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

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

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

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

.search-panel,
.content-section {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.search-panel {
  position: relative;
  z-index: 4;
  margin-top: -42px;
}

.search-panel-inner,
.detail-info-card,
.side-card,
.category-large-card,
.rank-row,
.search-box {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.search-panel-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.search-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.search-panel p {
  margin: 0;
  color: var(--gray-600);
}

.home-search,
.search-box {
  display: flex;
  overflow: hidden;
}

.home-search input,
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--gray-900);
  background: var(--gray-50);
}

.home-search button,
.search-box button {
  border: 0;
  color: #fff;
  background: var(--red-600);
  padding: 0 24px;
  font-weight: 800;
  cursor: pointer;
}

.home-search {
  min-height: 54px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
}

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

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

.section-head h2,
.more-like-section h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--gray-600);
}

.section-more {
  color: var(--red-600);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: var(--gray-200);
  box-shadow: var(--shadow-md);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12), transparent);
  transition: opacity 0.25s ease;
}

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

.poster-badge,
.poster-rating,
.poster-play {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
}

.poster-badge {
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 9px;
  background: var(--red-600);
  font-size: 12px;
}

.poster-rating {
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
}

.poster-play {
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(12px);
}

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

.movie-card-title {
  margin: 12px 0 4px;
  color: var(--gray-900);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card-title {
  color: var(--red-600);
}

.movie-card-meta,
.movie-card-desc {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.movie-card-meta {
  -webkit-line-clamp: 1;
}

.movie-card-desc {
  margin-top: 7px;
  -webkit-line-clamp: 2;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.category-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.3s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.92), rgba(153, 27, 27, 0.42));
}

.category-card div {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 2;
}

.category-card span {
  color: var(--red-100);
  font-size: 13px;
  font-weight: 800;
}

.category-card h3 {
  margin: 6px 0;
  font-size: 25px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.38), transparent 34%),
    linear-gradient(135deg, var(--gray-900), #430c0c 52%, var(--gray-900));
}

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

.compact-hero > div {
  padding: 64px 0;
}

.page-hero h1 {
  max-width: 900px;
  margin: 18px 0 12px;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1;
  letter-spacing: -0.06em;
}

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

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

.category-large-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 230px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-large-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  height: 100%;
  background: var(--gray-200);
}

.category-thumbs img {
  height: 100%;
  object-fit: cover;
}

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

.category-large-content h2 {
  margin: 16px 0 8px;
  font-size: 28px;
}

.category-large-content p {
  margin: 0;
  color: var(--gray-600);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 84px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.rank-number {
  color: var(--red-600);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  height: 118px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--gray-600);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-meta span,
.rank-score {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 700;
}

.rank-score {
  color: var(--red-600);
  background: var(--red-50);
}

.search-page-section {
  min-height: 520px;
}

.search-box {
  height: 58px;
  max-width: 820px;
  margin-bottom: 24px;
  overflow: hidden;
}

.search-summary {
  margin: 0 0 20px;
  color: var(--gray-600);
  font-weight: 700;
}

.detail-main {
  color: #fff;
  background: var(--gray-900);
}

.detail-shell {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 28px 0 76px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.detail-primary {
  display: grid;
  gap: 18px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.play-mask img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.play-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.24), rgba(0, 0, 0, 0.56));
}

.play-mask.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(220, 38, 38, 0.88);
  font-size: 32px;
  box-shadow: 0 18px 45px rgba(220, 38, 38, 0.35);
}

.detail-info-card,
.side-card {
  color: #fff;
  background: var(--gray-800);
  border-color: rgba(255, 255, 255, 0.08);
}

.detail-info-card {
  padding: 28px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.detail-title-row h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-title-row p,
.detail-text p {
  margin: 0;
  color: var(--gray-300);
}

.detail-rating {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: #fff;
  background: var(--red-600);
  border-radius: 999px;
  font-weight: 900;
}

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

.tag-list {
  margin-bottom: 26px;
}

.tag-list span,
.detail-tags span {
  background: rgba(255, 255, 255, 0.08);
}

.detail-text h2 {
  margin: 22px 0 10px;
  font-size: 22px;
}

.next-prev {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.next-prev a {
  padding: 14px;
  border-radius: 12px;
  color: var(--gray-200);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-prev a:hover {
  color: #fff;
  background: rgba(220, 38, 38, 0.55);
}

.detail-sidebar {
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

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

.side-related {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.side-related img {
  height: 104px;
  object-fit: cover;
  border-radius: 10px;
}

.side-related strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-related em {
  display: block;
  margin-top: 6px;
  color: var(--gray-400);
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-meta p {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-meta strong {
  color: var(--gray-400);
  font-weight: 700;
}

.side-meta span {
  text-align: right;
}

.more-like-section {
  margin-top: 48px;
}

.more-like-section h2 {
  color: #fff;
  margin-bottom: 24px;
}

.card-title-dark {
  color: #fff;
}

.card-meta-dark {
  color: var(--gray-400);
}

.site-footer {
  color: var(--gray-300);
  background: var(--gray-900);
}

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

.footer-logo {
  color: #fff;
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
  color: var(--gray-400);
}

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

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

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

.footer-bottom {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-500);
  font-size: 14px;
}

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

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

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

  .category-grid,
  .category-large-grid,
  .detail-layout,
  .search-panel-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-large-card {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    height: 620px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 80px;
  }

  .hero-arrow {
    display: none;
  }

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

  .search-panel-inner,
  .detail-info-card,
  .side-card,
  .category-large-content {
    padding: 20px;
  }

  .home-search,
  .search-box {
    flex-direction: column;
    height: auto;
  }

  .home-search input,
  .search-box input {
    min-height: 52px;
  }

  .home-search button,
  .search-box button {
    min-height: 48px;
  }

  .section-head,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .category-large-card {
    grid-template-columns: 1fr;
  }

  .category-thumbs {
    height: 180px;
  }

  .rank-row {
    grid-template-columns: 44px 76px 1fr;
    gap: 12px;
  }

  .rank-score {
    grid-column: 3;
    width: max-content;
  }

  .rank-info h2 {
    font-size: 17px;
  }

  .rank-info p {
    -webkit-line-clamp: 1;
  }

  .next-prev {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .header-inner,
  .search-panel,
  .content-section,
  .detail-shell,
  .footer-grid,
  .footer-bottom,
  .page-hero > div,
  .hero-content {
    width: min(100% - 22px, var(--container));
  }

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

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