* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 22%, #f8fafc 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.topbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: #991b1b;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.24);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  color: #4b5563;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #dc2626;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.header-search input,
.mobile-nav input,
.search-band input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-nav input:focus,
.search-band input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.header-search button,
.mobile-nav button,
.search-band button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.menu-button {
  display: none;
  border: 0;
  background: #f3f4f6;
  color: #111827;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.quick-cats {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.quick-cats a {
  color: #991b1b;
  background: #fee2e2;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 18px;
  border-top: 1px solid #f3f4f6;
}

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

.hero {
  padding: 32px 24px 0;
}

.hero-shell {
  position: relative;
  max-width: 1280px;
  min-height: 610px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(127, 29, 29, 0.25);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 420px);
  gap: 36px;
  align-items: center;
  padding: 72px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.2);
  transform: scale(1.08);
}

.hero-backdrop::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(17, 24, 39, 0.96), rgba(127, 29, 29, 0.72), rgba(236, 72, 153, 0.2));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fecaca;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1,
.sub-hero h1,
.detail-info h1 {
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero p,
.detail-info p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-cloud span,
.movie-tags span {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 750;
}

.hero-tags span,
.tag-cloud span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  padding: 13px 22px;
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.28);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  justify-self: end;
  width: min(100%, 390px);
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.hero-poster img,
.detail-poster img,
.poster-wrap img,
.wide-poster img,
.category-card-large img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-controls button,
.hero-dots button {
  border: 0;
  cursor: pointer;
}

.hero-controls button {
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 28px;
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  left: 72px;
  bottom: 44px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 28px;
  background: #ffffff;
}

.search-band {
  max-width: 1180px;
  margin: -34px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(254, 202, 202, 0.8);
  box-shadow: 0 22px 55px rgba(127, 29, 29, 0.12);
  backdrop-filter: blur(16px);
}

.search-band strong {
  display: block;
  color: #991b1b;
  font-size: 20px;
}

.search-band span {
  color: #6b7280;
}

.search-band form {
  display: flex;
  gap: 10px;
}

.page-section,
.detail-content,
.seo-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
}

.soft-section {
  max-width: none;
  background: linear-gradient(135deg, #fff1f2, #ffffff 52%, #fff7ed);
}

.soft-section > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading h2,
.ranking-panel h2,
.detail-block h2,
.detail-side h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: #6b7280;
}

.section-link {
  color: #dc2626;
  font-weight: 850;
  white-space: nowrap;
}

.section-link span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.section-link:hover span {
  transform: translateX(4px);
}

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

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

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

.movie-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 36px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fecaca;
  box-shadow: 0 24px 60px rgba(127, 29, 29, 0.12);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5.45;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #f8fafc);
}

.poster-wrap img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.055);
  filter: saturate(1.08);
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.28);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border-radius: 12px;
}

.movie-info {
  padding: 18px;
}

.movie-tags span {
  color: #b91c1c;
  background: #fee2e2;
}

.movie-info h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-info h3 a:hover,
.wide-content h3 a:hover {
  color: #dc2626;
}

.movie-info p {
  min-height: 48px;
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span {
  border-radius: 999px;
  background: #f8fafc;
  padding: 5px 9px;
}

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

.category-tile,
.category-card-large {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 26px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #991b1b, #ef4444 52%, #ec4899);
  box-shadow: 0 18px 45px rgba(127, 29, 29, 0.15);
}

.category-tile img,
.category-card-large img {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  z-index: 0;
  transition: transform 0.35s ease;
}

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

.category-tile > *:not(img),
.category-card-large > *:not(img) {
  position: relative;
  z-index: 1;
}

.tile-mark,
.category-card-large span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: #991b1b;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  font-weight: 900;
}

.category-tile strong,
.category-card-large h2 {
  display: block;
  margin: 20px 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile small,
.category-card-large p {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

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

.ranking-panel {
  position: sticky;
  top: 126px;
  border-radius: 28px;
  background: #111827;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.ranking-panel h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

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

.wide-card {
  display: grid;
  grid-template-columns: auto 82px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 20px;
  background: #ffffff;
  padding: 12px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.ranking-panel .wide-card {
  grid-template-columns: auto 70px minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.ranking-panel .text-button {
  display: none;
}

.wide-rank {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  border-radius: 12px;
  font-weight: 900;
}

.wide-poster {
  width: 82px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: #fee2e2;
}

.ranking-panel .wide-poster {
  width: 70px;
}

.wide-content h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 850;
}

.ranking-panel .wide-content h3,
.ranking-panel .wide-content p,
.ranking-panel .movie-meta {
  color: #ffffff;
}

.wide-content p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
  font-size: 14px;
}

.ranking-panel .wide-content p {
  display: none;
}

.text-button {
  color: #dc2626;
  background: #fee2e2;
  padding: 10px 14px;
  white-space: nowrap;
}

.seo-section {
  padding-top: 20px;
}

.seo-section h2 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 900;
}

.seo-section p {
  color: #64748b;
  line-height: 1.9;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  margin: 32px auto 0;
  max-width: 1280px;
  border-radius: 32px;
  padding: 78px 64px;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.52), transparent 36%), linear-gradient(135deg, #111827, #7f1d1d 58%, #dc2626);
  box-shadow: 0 25px 70px rgba(127, 29, 29, 0.2);
}

.sub-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.wide-filter {
  grid-template-columns: minmax(240px, 1fr) 190px 190px;
}

.empty-result {
  display: none;
  margin: 30px 0 0;
  color: #991b1b;
  background: #fee2e2;
  border-radius: 18px;
  padding: 18px;
  font-weight: 800;
}

.empty-result.show {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.36;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.12);
  transform: scale(1.08);
}

.detail-shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 34px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.detail-info h1 {
  margin-top: 20px;
}

.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.tag-cloud {
  margin: 22px 0 28px;
}

.player-section {
  max-width: 1280px;
  margin: -46px auto 0;
  position: relative;
  z-index: 3;
  padding: 0 24px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.22), rgba(2, 6, 23, 0.56));
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.35);
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.detail-block,
.detail-side {
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.detail-block p {
  color: #475569;
  line-height: 2;
  font-size: 17px;
}

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

.detail-side .movie-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  border-radius: 18px;
}

.detail-side .poster-wrap {
  height: 100%;
  aspect-ratio: auto;
}

.detail-side .movie-info {
  padding: 13px;
}

.detail-side .movie-info p,
.detail-side .play-dot {
  display: none;
}

.site-footer {
  color: #cbd5e1;
  background: #111827;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding: 54px 24px 34px;
}

.footer-brand {
  color: #ffffff;
}

.site-footer p {
  max-width: 420px;
  color: #94a3b8;
  line-height: 1.8;
}

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

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

.footer-links a {
  color: #94a3b8;
}

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

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr);
    padding: 50px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

@media (max-width: 780px) {
  .topbar,
  .quick-cats,
  .hero,
  .page-section,
  .detail-content,
  .seo-section,
  .detail-shell,
  .player-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .quick-cats {
    padding-bottom: 10px;
  }

  .hero-shell {
    min-height: 580px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 34px 24px 76px;
  }

  .hero h1,
  .sub-hero h1,
  .detail-info h1 {
    font-size: 40px;
  }

  .hero p,
  .sub-hero p,
  .detail-info p {
    font-size: 16px;
  }

  .hero-dots {
    left: 24px;
    bottom: 32px;
  }

  .hero-controls {
    right: 24px;
    bottom: 22px;
  }

  .search-band {
    margin: 18px 16px 0;
    grid-template-columns: 1fr;
  }

  .search-band form,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .search-grid,
  .category-grid,
  .category-large-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 14px;
  }

  .movie-info p {
    min-height: auto;
  }

  .sub-hero {
    margin: 20px 16px 0;
    padding: 48px 24px;
    border-radius: 24px;
  }

  .filter-bar,
  .wide-filter {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-template-columns: auto 74px minmax(0, 1fr);
  }

  .wide-card .text-button {
    grid-column: 2 / -1;
  }

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

  .detail-poster {
    max-width: 260px;
  }

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

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

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

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .search-grid,
  .category-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: 620px;
  }

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

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .wide-card,
  .detail-side .movie-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .wide-rank {
    display: none;
  }
}
