:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #ffffff;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --accent: #f97316;
  --accent-2: #dc2626;
  --accent-soft: rgba(249, 115, 22, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.13), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::selection {
  background: rgba(249, 115, 22, 0.35);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
  transition: transform 0.25s ease;
}

.brand-mark span {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid white;
  transform: translateX(2px);
}

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

.brand-text,
.footer-brand {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  background: linear-gradient(90deg, #fb923c, #ef4444);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: #e2e8f0;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fed7aa;
  background: var(--accent-soft);
}

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

.header-search input,
.mobile-search input,
.wide-search input,
.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  outline: 0;
  color: white;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input,
.mobile-search input {
  min-width: 250px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.wide-search button {
  color: white;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 13px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.24);
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: rgba(249, 115, 22, 0.72);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
  background: rgba(15, 23, 42, 0.95);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #e2e8f0;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.82) 38%, rgba(15, 23, 42, 0.24) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.25) 38%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-copy {
  width: min(680px, 100%);
  padding-top: 58px;
}

.hero-badges,
.hero-tags,
.detail-tags,
.card-tags,
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-badges span,
.hero-tags span,
.detail-tags span,
.card-tags span,
.card-badges span,
.rank-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.17);
}

.hero-badges span:first-child,
.rank-badge {
  color: white;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 16px 0 16px;
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  text-shadow: 0 24px 50px rgba(0, 0, 0, 0.36);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

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

.btn-primary {
  color: white;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 15px 30px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(226, 232, 240, 0.16);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: white;
  font-size: 2.4rem;
  line-height: 1;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.home-search-panel {
  margin-top: -44px;
  position: relative;
  z-index: 5;
}

.search-card-large {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 480px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.88));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-card-large h2 {
  margin: 6px 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.search-card-large p {
  margin: 0;
  color: var(--subtle);
}

.wide-search input {
  min-height: 52px;
  padding: 0 16px;
}

.wide-search button {
  min-height: 52px;
  padding-inline: 26px;
}

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

.section-block.alt {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0.24));
}

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

.section-heading h2,
.rank-panel h2,
.detail-side h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.05em;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--subtle);
}

.section-kicker {
  color: #fb923c;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-more,
.panel-more {
  display: inline-flex;
  align-items: center;
  color: #fed7aa;
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 175px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 22px;
  background:
    linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88)),
    var(--tile-image) center / cover;
  border: 1px solid var(--line);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border 0.22s ease;
}

.category-tile:hover,
.overview-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
}

.category-tile span {
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile small {
  margin-top: 8px;
  color: #cbd5e1;
}

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

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

.movie-card {
  min-width: 0;
  transition: transform 0.22s ease;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #111827;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.22) 36%, rgba(0, 0, 0, 0.86));
}

.card-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  justify-content: flex-end;
}

.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.card-play span,
.play-circle {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  color: white;
  font-size: 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.33);
}

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

.card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
}

.card-caption h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-caption p {
  margin: 0 0 8px;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-caption small {
  color: #e2e8f0;
}

.card-tags {
  margin-top: 11px;
}

.card-tags span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 0.72rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.detail-side,
.detail-panel {
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.rank-panel-head {
  margin-bottom: 16px;
}

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

.compact-item {
  display: grid;
  grid-template-columns: auto 88px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: background 0.18s ease, transform 0.18s ease;
}

.compact-item:hover {
  background: rgba(51, 65, 85, 0.72);
  transform: translateX(3px);
}

.compact-item strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.compact-item img {
  width: 88px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-item span {
  min-width: 0;
}

.compact-item b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.compact-item em {
  display: block;
  margin-top: 5px;
  color: var(--subtle);
  font-size: 0.82rem;
  font-style: normal;
}

.panel-more {
  margin-top: 18px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.76)),
    var(--page-image) center / cover;
}

.page-hero.slim {
  background: linear-gradient(135deg, #172554, #0f172a 56%, #111827);
}

.page-hero.slim.warm {
  background: linear-gradient(135deg, #7c2d12, #111827 60%, #0f172a);
}

.page-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.2));
}

.page-hero-inner,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 760px;
  margin: 8px 0 12px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 1.08rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: #fed7aa;
}

.breadcrumbs a::after {
  content: "/";
  color: #64748b;
  margin-left: 8px;
}

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

.overview-card {
  overflow: hidden;
  min-height: 330px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
  transition: transform 0.22s ease, border 0.22s ease;
}

.overview-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.overview-card div {
  padding: 22px;
}

.overview-card span {
  color: #fb923c;
  font-size: 0.82rem;
  font-weight: 900;
}

.overview-card h2 {
  margin: 6px 0 8px;
  font-size: 1.55rem;
}

.overview-card p {
  margin: 0;
  color: var(--subtle);
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px 160px;
  gap: 12px;
  padding: 18px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

.filter-toolbar label span {
  display: block;
  margin-bottom: 8px;
  color: #fb923c;
  font-size: 0.82rem;
  font-weight: 900;
}

.filter-toolbar input,
.filter-toolbar select {
  min-height: 48px;
  padding: 0 14px;
}

.empty-state {
  display: none;
  padding: 52px 16px;
  color: var(--subtle);
  text-align: center;
  font-size: 1.05rem;
}

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

.detail-wrap {
  padding: 32px 0 76px;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  color: white;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.74));
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 3;
}

.player-cover strong {
  max-width: min(90%, 680px);
  font-size: clamp(1.25rem, 3vw, 2.2rem);
  line-height: 1.2;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  font-size: 2rem;
  transform: translateX(2px);
}

.detail-panel {
  margin-top: 22px;
  padding: 30px;
}

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

.detail-panel h1 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-meta {
  margin: 0 0 16px;
  color: #cbd5e1;
}

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

.detail-panel h2 {
  margin: 28px 0 10px;
  font-size: 1.35rem;
}

.detail-panel p {
  margin: 0 0 10px;
  color: #dbeafe;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.detail-side h2 {
  margin-bottom: 18px;
}

.related-block {
  margin-top: 48px;
}

.site-footer {
  padding: 58px 0 24px;
  color: var(--subtle);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), #020617);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 1rem;
}

.footer-grid p {
  max-width: 460px;
  margin: 14px 0 0;
}

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

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 40;
  width: 46px;
  height: 46px;
  color: white;
  font-size: 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.3);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: block;
  }

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

  .detail-side {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .header-inner {
    min-height: 62px;
  }

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

  .hero-carousel {
    min-height: 590px;
  }

  .hero-content {
    align-items: end;
    padding-bottom: 82px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .hero-arrow {
    display: none;
  }

  .home-search-panel {
    margin-top: 0;
    padding-top: 24px;
  }

  .search-card-large {
    padding: 20px;
  }

  .wide-search {
    display: grid;
  }

  .section-block {
    padding: 48px 0;
  }

  .section-heading,
  .detail-title-row,
  .footer-bottom {
    display: block;
  }

  .section-more {
    margin-top: 12px;
  }

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

  .filter-toolbar {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 64px 0 52px;
  }

  .detail-panel {
    padding: 22px;
  }

  .detail-title-row .btn {
    margin-top: 16px;
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .compact-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .card-caption h3 {
    font-size: 1.15rem;
  }

  .compact-item {
    grid-template-columns: 72px 1fr;
  }

  .compact-item strong {
    display: none;
  }

  .compact-item img {
    width: 72px;
    height: 50px;
  }
}
