:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --accent-50: #fff7ed;
  --accent-100: #ffedd5;
  --accent-500: #f97316;
  --secondary-600: #4f46e5;
  --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;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  line-height: 1.5;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
}

.container.narrow {
  width: min(100% - 2rem, 56rem);
}

.site-header {
  position: relative;
  z-index: 50;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgb(255 255 255 / 0.95);
  border-bottom: 1px solid rgb(229 231 235 / 0.8);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.nav-inner {
  width: min(100% - 2rem, 80rem);
  height: 4rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  box-shadow: 0 12px 30px rgb(2 132 199 / 0.25);
}

.brand-text {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand:hover .brand-text,
.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--primary-700);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: var(--gray-700);
  font-weight: 600;
}

.nav-link {
  transition: color 0.2s ease;
}

.mobile-nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--gray-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-toggle span {
  width: 1.25rem;
  height: 2px;
  background: var(--gray-700);
  border-radius: 999px;
}

.mobile-nav-panel {
  width: 100%;
  padding: 0.75rem 1rem 1rem;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: var(--gray-700);
  font-weight: 600;
}

.site-main {
  padding-top: 4rem;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 32rem;
  overflow: hidden;
  background: var(--gray-900);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.78) 0%, rgb(0 0 0 / 0.52) 45%, rgb(0 0 0 / 0.08) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary-300);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.detail-hero h1 {
  max-width: 42rem;
  margin: 0 0 1rem;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-summary,
.detail-hero p {
  max-width: 42rem;
  margin: 0;
  color: rgb(255 255 255 / 0.86);
  font-size: 1.125rem;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.hero-tags span {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  border: 1px solid rgb(255 255 255 / 0.18);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.875rem;
}

.hero-tags span:first-child {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: 0.75rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: var(--primary-600);
  box-shadow: var(--shadow-lg);
}

.primary-button:hover {
  background: var(--primary-700);
  transform: scale(1.04);
}

.ghost-button {
  color: var(--white);
  background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.24);
  backdrop-filter: blur(6px);
}

.ghost-button:hover {
  background: rgb(255 255 255 / 0.28);
}

.hero-controls {
  position: absolute;
  right: max(1rem, calc((100vw - 80rem) / 2));
  bottom: 2rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-controls button {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgb(255 255 255 / 0.20);
  backdrop-filter: blur(6px);
  font-size: 2rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-controls button:hover {
  background: rgb(255 255 255 / 0.32);
}

.section-stack {
  padding: 4rem 0;
}

.section-stack > * + * {
  margin-top: 5rem;
}

.content-section {
  position: relative;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

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

.section-more:hover {
  color: var(--primary-700);
}

.movie-grid,
.overlay-grid,
.poster-grid,
.horizontal-grid,
.category-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

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

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

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

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

.movie-card {
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-2xl);
}

.movie-card > a {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-800), var(--primary-800));
}

.poster-wide {
  aspect-ratio: 16 / 9;
}

.poster-tall {
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover .poster img,
.category-entry:hover img {
  transform: scale(1.08);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgb(0 0 0 / 0.84) 100%);
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.type-badge {
  top: 0.75rem;
  right: 0.75rem;
  color: var(--white);
  background: rgb(0 0 0 / 0.72);
}

.rank-badge {
  top: 0.75rem;
  left: 0.75rem;
  color: var(--white);
  background: var(--primary-600);
}

.movie-copy {
  flex: 1;
  padding: 1.25rem;
}

.movie-copy h3,
.overlay-copy h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.movie-copy h3 {
  display: -webkit-box;
  min-height: 2.75rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card:hover h3,
.category-entry:hover h2,
.category-entry:hover h3 {
  color: var(--primary-600);
}

.movie-copy p {
  display: -webkit-box;
  min-height: 3rem;
  margin: 0.65rem 0 0.85rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.65;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  color: var(--gray-600);
  background: var(--gray-100);
  font-size: 0.75rem;
}

.genre-line {
  display: block;
  margin-top: 0.85rem;
  color: var(--gray-500);
  font-size: 0.82rem;
}

.movie-card-overlay {
  background: transparent;
  box-shadow: none;
}

.movie-card-overlay .poster {
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
}

.overlay-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1rem;
  color: var(--white);
}

.overlay-copy p {
  margin: 0.25rem 0 0;
  color: rgb(255 255 255 / 0.78);
  font-size: 0.8rem;
}

.movie-card-horizontal > a {
  flex-direction: row;
}

.movie-card-horizontal .poster {
  width: 12rem;
  flex: 0 0 auto;
  aspect-ratio: auto;
}

.movie-card-horizontal .movie-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.soft-panel {
  padding: 3rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

.dark-panel {
  padding: 3rem;
  border-radius: 1.5rem;
  color: var(--white);
  background: var(--gray-900);
}

.dark-panel .section-heading p,
.dark-panel .movie-copy p,
.dark-panel .movie-meta-line,
.dark-panel .genre-line {
  color: rgb(255 255 255 / 0.68);
}

.dark-panel .movie-card {
  background: rgb(255 255 255 / 0.06);
}

.dark-panel .movie-copy h3 {
  color: var(--white);
}

.dark-panel .movie-card:hover h3 {
  color: var(--primary-300);
}

.ranking-panel {
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: var(--gray-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-list a:hover {
  background: var(--primary-50);
  transform: translateX(0.2rem);
}

.rank-number {
  color: var(--primary-600);
  font-weight: 900;
}

.ranking-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list em {
  color: var(--gray-500);
  font-size: 0.85rem;
  font-style: normal;
}

.category-entry {
  position: relative;
  overflow: hidden;
  min-height: 14rem;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  border-radius: 1rem;
  color: var(--white);
  background: var(--gray-900);
  box-shadow: var(--shadow-lg);
}

.category-entry.large {
  min-height: 18rem;
}

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

.category-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgb(0 0 0 / 0.86) 100%);
}

.category-entry > div {
  position: relative;
  z-index: 2;
}

.category-entry h2,
.category-entry h3 {
  margin: 0 0 0.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.category-entry h2 {
  font-size: 2rem;
}

.category-entry h3 {
  font-size: 1.35rem;
}

.category-entry p {
  max-width: 30rem;
  margin: 0 0 0.75rem;
  color: rgb(255 255 255 / 0.78);
}

.category-entry span {
  display: inline-flex;
  color: var(--primary-100);
  font-weight: 800;
}

.page-banner {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  padding: 4rem 0;
}

.page-banner h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-banner p {
  margin: 0;
  max-width: 48rem;
  color: rgb(255 255 255 / 0.88);
  font-size: 1.15rem;
}

.banner-count {
  margin-top: 0.75rem !important;
  color: rgb(255 255 255 / 0.72) !important;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: rgb(255 255 255 / 0.78);
  font-weight: 700;
}

.back-link:hover {
  color: var(--white);
}

.filter-toolbar {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(10rem, 1fr));
  gap: 1rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 800;
}

.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 0 0.9rem;
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
}

.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgb(14 165 233 / 0.14);
}

.filter-count {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.empty-state {
  margin: 3rem 0;
  padding: 3rem;
  border-radius: 1rem;
  color: var(--gray-500);
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-main {
  background: var(--gray-50);
}

.detail-hero {
  position: relative;
  min-height: 30rem;
  display: flex;
  align-items: center;
  color: var(--white);
  background-image: var(--detail-bg);
  background-position: center;
  background-size: cover;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.82) 0%, rgb(0 0 0 / 0.58) 52%, rgb(0 0 0 / 0.18) 100%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: rgb(255 255 255 / 0.76);
  font-weight: 700;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.8fr);
  gap: 2rem;
  padding: 3rem 0 5rem;
}

.detail-content,
.detail-sidebar {
  min-width: 0;
}

.detail-content > * + *,
.detail-sidebar > * + * {
  margin-top: 2rem;
}

.player-card,
.white-card {
  overflow: hidden;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray-900);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: var(--gray-900);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: rgb(0 0 0 / 0.32);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary-600);
  box-shadow: 0 18px 50px rgb(2 132 199 / 0.40);
  font-size: 2rem;
}

.video-play-overlay strong {
  font-size: 1.1rem;
}

.article-copy {
  padding: 2rem;
}

.article-copy section + section,
.article-copy h2 + p {
  margin-top: 1rem;
}

.article-copy h2 {
  margin: 0 0 0.85rem;
  font-size: 1.5rem;
  font-weight: 900;
}

.article-copy p {
  margin: 0 0 1.5rem;
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.9;
}

.poster-card {
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  background: var(--gray-900);
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.meta-card {
  padding: 1.5rem;
}

.meta-card h2,
.meta-card h3 {
  margin: 0 0 1rem;
  font-weight: 900;
}

.meta-card h3 {
  margin-top: 1.5rem;
}

.meta-card dl {
  margin: 0;
}

.meta-card dl > div {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.meta-card dt {
  color: var(--gray-500);
  font-weight: 800;
}

.meta-card dd {
  margin: 0;
  color: var(--gray-800);
}

.meta-card a {
  color: var(--primary-600);
  font-weight: 800;
}

.meta-tags {
  margin-top: 0;
}

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

.footer-inner {
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 1.25rem;
}

.footer-about p,
.site-footer a,
.footer-copy {
  color: var(--gray-400);
}

.site-footer h2 {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 1rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.55rem;
}

.site-footer a:hover {
  color: var(--primary-300);
}

.footer-copy {
  margin: 2rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .grid-four,
  .overlay-grid,
  .poster-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .detail-sidebar {
    display: grid;
    grid-template-columns: 18rem 1fr;
    gap: 1.5rem;
  }
}

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

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .hero-carousel {
    min-height: 34rem;
  }

  .hero-shade,
  .detail-hero-shade {
    background: linear-gradient(180deg, rgb(0 0 0 / 0.72) 0%, rgb(0 0 0 / 0.72) 100%);
  }

  .hero-content h1,
  .detail-hero h1 {
    font-size: 2.75rem;
  }

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

  .grid-three,
  .grid-four,
  .overlay-grid,
  .poster-grid,
  .horizontal-grid,
  .category-grid,
  .large-grid,
  .ranking-list,
  .footer-grid,
  .filter-toolbar,
  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal > a {
    flex-direction: column;
  }

  .movie-card-horizontal .poster {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .soft-panel,
  .dark-panel,
  .ranking-panel {
    padding: 1.25rem;
  }

  .page-banner {
    padding: 3rem 0;
  }
}

@media (max-width: 520px) {
  .container,
  .nav-inner,
  .footer-inner,
  .hero-content {
    width: min(100% - 1rem, 80rem);
  }

  .hero-actions {
    width: 100%;
  }

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

  .hero-controls {
    right: 0.75rem;
    bottom: 1rem;
  }

  .movie-copy,
  .article-copy,
  .meta-card {
    padding: 1rem;
  }
}
