:root {
  --bg: #030712;
  --bg-soft: #111827;
  --panel: rgba(31, 41, 55, 0.58);
  --panel-strong: rgba(17, 24, 39, 0.92);
  --border: rgba(34, 211, 238, 0.24);
  --border-soft: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --cyan-dark: #06b6d4;
  --pink: #ec4899;
  --purple: #a855f7;
  --yellow: #facc15;
  --orange: #fb923c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 32rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.14), transparent 34rem),
    var(--bg);
}

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

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

button,
input {
  font: inherit;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #111827;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan-dark), var(--pink));
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.94);
  backdrop-filter: blur(14px);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--cyan-dark), var(--pink));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.35);
}

.brand-text,
.footer-logo {
  font-size: 24px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #d1d5db;
  font-weight: 600;
}

.desktop-nav a,
.mobile-panel a,
.footer-links a {
  transition: color 0.25s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
  color: var(--cyan);
}

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

.header-search input,
.mobile-search input,
.page-search input {
  width: 240px;
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  padding: 10px 16px;
  color: var(--text);
  background: rgba(31, 41, 55, 0.58);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.header-search button,
.mobile-search button,
.page-search button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: white;
  font-weight: 700;
  padding: 10px 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-search button,
.mobile-search button,
.page-search button,
.primary-btn {
  background: linear-gradient(90deg, var(--cyan-dark), var(--pink));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.2);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(17, 24, 39, 0.5);
}

.primary-btn:hover,
.ghost-btn:hover,
.header-search button:hover,
.mobile-search button:hover,
.page-search button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.42);
}

.primary-btn.full {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  margin-top: 18px;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

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

.mobile-panel.open {
  display: grid;
  gap: 14px;
}

.main-content {
  min-height: 100vh;
}

.home-main {
  padding-top: 64px;
}

.inner-main,
.detail-main {
  padding-top: 86px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #030712 0%, rgba(3, 7, 18, 0.82) 46%, rgba(3, 7, 18, 0.08) 100%);
}

.hero-content {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 18px;
  color: white;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan-dark), var(--pink));
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.hero-content h1,
.hero-content h2,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 0 34px rgba(34, 211, 238, 0.16);
}

.hero-content p,
.page-hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.8;
}

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

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 12px;
  color: #e5e7eb;
  background: rgba(17, 24, 39, 0.46);
}

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

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: white;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(6, 182, 212, 0.46);
  transform: translateY(-50%) scale(1.08);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: var(--cyan);
}

.hero-mini-list {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1280px) / 2));
  bottom: 82px;
  width: min(420px, 38vw);
  display: grid;
  gap: 12px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 8px;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.hero-mini:hover {
  border-color: var(--cyan);
  transform: translateX(-4px);
}

.hero-mini img {
  width: 76px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-mini span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #e5e7eb;
  font-weight: 700;
}

.content-shell,
.detail-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.content-shell {
  padding: 54px 0;
}

.content-section {
  margin-bottom: 70px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  color: white;
  font-size: clamp(26px, 3vw, 36px);
}

.section-icon {
  font-size: 20px;
}

.section-heading.cyan .section-icon {
  color: var(--cyan);
}

.section-heading.pink .section-icon {
  color: var(--pink);
}

.section-heading.yellow .section-icon {
  color: var(--yellow);
}

.section-heading.orange .section-icon {
  color: var(--orange);
}

.heading-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.55), transparent);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.54);
  transform: translateY(-5px);
  box-shadow: 0 24px 66px rgba(6, 182, 212, 0.18);
}

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

.movie-card-horizontal a {
  display: grid;
  grid-template-columns: 190px 1fr;
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.88);
}

.movie-card-horizontal .card-image {
  height: 100%;
  aspect-ratio: auto;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.movie-card:hover .card-image img {
  transform: scale(1.08);
  filter: saturate(1.16);
}

.year-badge,
.play-hover {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.year-badge {
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 700;
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(8px);
}

.play-hover {
  inset: 0;
  color: white;
  font-size: 28px;
  opacity: 0;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.78), rgba(3, 7, 18, 0.16));
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  min-height: 2.8em;
  margin: 0 0 10px;
  color: #f3f4f6;
  font-size: 17px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.25s ease;
}

.movie-card:hover h3 {
  color: var(--cyan);
}

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

.card-meta {
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 13px;
}

.card-meta span:last-child {
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
}

.ranking-grid,
.category-showcase,
.category-overview {
  display: grid;
  gap: 18px;
}

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

.ranking-item,
.ranking-row,
.category-card,
.category-panel a,
.side-card,
.poster-panel,
.filter-panel,
.detail-info,
.player-card {
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.ranking-item {
  display: grid;
  grid-template-columns: 42px 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.ranking-item:hover,
.ranking-row:hover,
.category-card:hover,
.category-panel a:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.ranking-number {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 900;
}

.ranking-item img,
.ranking-row img {
  width: 72px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.ranking-tag {
  color: var(--pink);
  font-size: 13px;
}

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

.category-card {
  padding: 22px;
  min-height: 150px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.category-card span,
.category-panel h2 {
  display: block;
  margin-bottom: 12px;
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.category-card p,
.category-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.96), rgba(17, 24, 39, 0.78)),
    radial-gradient(circle at 78% 20%, rgba(236, 72, 153, 0.22), transparent 28rem),
    radial-gradient(circle at 18% 30%, rgba(34, 211, 238, 0.18), transparent 26rem);
}

.compact-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  padding: 58px 0;
}

.compact-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

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

.category-panel a {
  display: block;
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
}

.filter-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 26px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-row span {
  color: var(--cyan);
  font-weight: 800;
}

.filter-row button {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 8px 14px;
  color: #d1d5db;
  background: rgba(17, 24, 39, 0.55);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-row button.active,
.filter-row button:hover {
  border-color: var(--cyan);
  color: white;
  background: rgba(6, 182, 212, 0.22);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 64px 150px 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.ranking-row img {
  width: 150px;
  height: 88px;
}

.ranking-row h2 {
  margin: 0 0 8px;
  color: white;
  font-size: 20px;
}

.ranking-row p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.ranking-row div span {
  color: var(--cyan);
  font-size: 14px;
}

.page-search {
  max-width: 580px;
  margin-top: 26px;
}

.page-search input {
  width: 100%;
  min-height: 48px;
}

.empty-state {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 20px;
  color: var(--muted);
  background: rgba(17, 24, 39, 0.5);
}

.detail-shell {
  padding: 28px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
}

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

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

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

.player-card {
  overflow: hidden;
  padding: 0;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: black;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.28));
  cursor: pointer;
}

.player-overlay[hidden] {
  display: none;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--cyan-dark), var(--pink));
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.44);
  font-size: 32px;
}

.player-overlay strong {
  font-size: 20px;
}

.detail-info {
  padding: 26px;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
}

.detail-info h2,
.side-card h2 {
  margin: 28px 0 12px;
  color: white;
  font-size: 24px;
}

.detail-info p {
  color: #d1d5db;
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-line;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.tag-list span {
  border: 1px solid rgba(236, 72, 153, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  color: #fbcfe8;
  background: rgba(236, 72, 153, 0.1);
}

.detail-side {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 22px;
}

.poster-panel,
.side-card {
  padding: 18px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  object-fit: cover;
}

.side-card h2 {
  margin-top: 0;
}

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

.side-links a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #d1d5db;
  background: rgba(15, 23, 42, 0.55);
  transition: color 0.2s ease, background 0.2s ease;
}

.side-links a:hover {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
}

.compact-card .card-body h3 {
  min-height: auto;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.8);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #d1d5db;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.3), 0 0 26px rgba(236, 72, 153, 0.18);
  }

  50% {
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.52), 0 0 38px rgba(236, 72, 153, 0.3);
  }
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-mini-list {
    display: none;
  }

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

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

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

  .detail-side {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 24px, 1280px);
  }

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

  .hero-slider {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    padding: 58px 0 100px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    bottom: 24px;
  }

  .grid-five,
  .grid-four,
  .grid-three,
  .category-showcase,
  .category-overview,
  .movie-list-two,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal a {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .card-image {
    aspect-ratio: 16 / 9;
  }

  .ranking-row,
  .ranking-item {
    grid-template-columns: 48px 92px 1fr;
  }

  .ranking-tag {
    display: none;
  }

  .ranking-row img {
    width: 92px;
    height: 58px;
  }

  .detail-side {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .mobile-search input {
    width: 100%;
  }

  .content-shell,
  .detail-shell,
  .compact-hero > div {
    width: min(100% - 22px, 1280px);
  }

  .hero-actions {
    display: grid;
  }

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