@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700;800&display=swap");

:root {
  --red-950: #1f0505;
  --red-900: #4a0b0b;
  --red-800: #7f1d1d;
  --red-700: #991b1b;
  --red-600: #b91c1c;
  --amber-50: #fff8eb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --ink: #2b1515;
  --muted: #76645f;
  --paper: #fffaf0;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(74, 11, 11, 0.16);
  --shadow-strong: 0 30px 80px rgba(31, 5, 5, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--amber-50), #fff3dc 46%, #fef2d5);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 248, 235, 0.96), rgba(255, 241, 216, 0.96), rgba(255, 235, 218, 0.96));
  border-bottom: 2px solid rgba(127, 29, 29, 0.78);
  box-shadow: 0 12px 30px rgba(74, 11, 11, 0.16);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--amber-100);
  font-size: 25px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
  box-shadow: 0 15px 30px rgba(127, 29, 29, 0.28);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(6deg) scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  color: var(--red-900);
  font-size: 24px;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--red-700);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  color: var(--red-900);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.24s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--red-700);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(127, 29, 29, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--red-900);
  padding: 8px 4px 8px 12px;
}

.header-search button,
.inline-filter button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--white);
  font-weight: 700;
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
  box-shadow: 0 10px 20px rgba(127, 29, 29, 0.2);
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: rgba(127, 29, 29, 0.08);
  padding: 10px;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  border-radius: 999px;
  background: var(--red-900);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

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

.mobile-nav a {
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--red-900);
  font-weight: 700;
  background: rgba(254, 243, 199, 0.58);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--red-950);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 40%, rgba(245, 158, 11, 0.30), transparent 28%),
    linear-gradient(90deg, rgba(31, 5, 5, 0.80), rgba(31, 5, 5, 0.24) 54%, rgba(31, 5, 5, 0.78));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
  color: var(--white);
  padding: 68px 0 92px;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px auto 14px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.1;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.52);
}

.hero h2 {
  margin: 0 auto 16px;
  font-size: clamp(26px, 4vw, 45px);
  color: var(--amber-100);
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.48);
}

.hero p {
  width: min(760px, 100%);
  margin: 0 auto 22px;
  color: rgba(255, 248, 235, 0.92);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.8;
}

.hero-tags,
.card-tags,
.tag-cloud,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.hero-tags {
  justify-content: center;
  margin-bottom: 28px;
}

.hero-tags span,
.card-tags span,
.tag-cloud span,
.detail-meta span {
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--amber-100);
  font-size: 13px;
  font-weight: 700;
  background: rgba(127, 29, 29, 0.72);
  border: 1px solid rgba(254, 243, 199, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.primary-button,
.glass-button,
.wide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  padding: 12px 24px;
  font-weight: 800;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--red-600), var(--red-950));
  box-shadow: 0 18px 36px rgba(127, 29, 29, 0.35);
}

.glass-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.glass-button:hover,
.wide-link:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--amber-200);
}

.section {
  padding: 74px 0;
}

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

.section-heading.slim {
  margin-bottom: 20px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.content-card h2,
.ranking-panel-head h2 {
  margin: 8px 0 0;
  color: var(--red-900);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
}

.section-heading a {
  color: var(--red-700);
  font-weight: 800;
}

.section-heading.inverted h2,
.section-heading.inverted a {
  color: var(--amber-100);
}

.featured-grid,
.poster-grid,
.category-grid,
.category-overview-grid,
.detail-content-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow-strong);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 22%, rgba(245, 158, 11, 0.44), transparent 31%),
    linear-gradient(135deg, var(--red-900), #120303 72%);
}

.movie-card-featured .poster-frame,
.movie-card-standard .poster-frame,
.movie-card-strip .poster-frame {
  aspect-ratio: 16 / 10;
}

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

.poster-frame img.image-missing {
  opacity: 0;
}

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 17px;
}

.movie-card h3 {
  margin: 0;
  color: var(--red-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-tags span {
  padding: 4px 9px;
  color: var(--red-700);
  background: rgba(254, 243, 199, 0.88);
  border-color: rgba(127, 29, 29, 0.1);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: auto;
  color: #8a6760;
  font-size: 13px;
}

.movie-card-compact .movie-card-body {
  padding: 13px;
}

.movie-card-compact h3 {
  font-size: 15px;
}

.movie-card-compact p {
  display: none;
}

.dark-band {
  color: var(--amber-100);
  background: linear-gradient(90deg, var(--red-950), var(--red-800), var(--red-950));
}

.dark-band .movie-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.dark-band .movie-card h3,
.dark-band .movie-card p,
.dark-band .card-meta {
  color: var(--amber-100);
}

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

.category-tile,
.category-overview-card,
.content-card,
.ranking-panel,
.player-shell {
  border: 1px solid rgba(127, 29, 29, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.category-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.30), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(254, 243, 199, 0.84));
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile strong {
  color: var(--red-900);
  font-size: 23px;
}

.category-tile span {
  color: var(--muted);
  line-height: 1.65;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 110px;
  padding: 24px;
}

.ranking-panel-head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--amber-500);
  font-weight: 900;
  letter-spacing: 0.18em;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(254, 243, 199, 0.52);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
  background: rgba(253, 230, 138, 0.78);
  transform: translateX(4px);
}

.ranking-number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
}

.ranking-title {
  color: var(--red-900);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-info {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wide-link {
  width: 100%;
  margin-top: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
}

.warm-band {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.62), rgba(255, 248, 235, 0.88));
}

.horizontal-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 22px;
  scroll-snap-type: x mandatory;
}

.horizontal-strip .movie-card {
  scroll-snap-align: start;
}

.page-hero,
.detail-hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-950), var(--red-800));
}

.page-hero {
  padding: 76px 0 82px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 28%, rgba(245, 158, 11, 0.28), transparent 26%),
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.12), transparent 24%);
}

.page-hero .shell,
.detail-hero .shell {
  position: relative;
  z-index: 1;
}

.page-hero h1,
.page-hero p {
  color: var(--white);
}

.page-hero p {
  width: min(760px, 100%);
  margin: 14px 0 0;
  color: rgba(255, 248, 235, 0.9);
  font-size: 19px;
  line-height: 1.8;
}

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

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

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

.category-overview-card {
  display: grid;
  gap: 22px;
  min-height: 250px;
  padding: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 32%),
    rgba(255, 255, 255, 0.82);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-overview-copy span {
  color: var(--amber-500);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.category-overview-copy h2 {
  margin: 8px 0 10px;
  color: var(--red-900);
  font-size: 28px;
}

.category-overview-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-preview-list {
  display: grid;
  gap: 8px;
}

.category-preview-list span {
  overflow: hidden;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--red-800);
  background: rgba(254, 243, 199, 0.72);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-filter,
.big-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, 100%);
  margin-top: 26px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.inline-filter input,
.big-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 14px;
  color: var(--red-900);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.ranking-filter {
  margin: 0 0 28px;
  background: rgba(127, 29, 29, 0.07);
  border-color: rgba(127, 29, 29, 0.12);
}

.full-ranking .ranking-row {
  grid-template-columns: 54px minmax(0, 1fr) minmax(220px, 0.6fr);
}

.full-ranking .ranking-info {
  grid-column: auto;
  text-align: right;
}

.detail-hero {
  padding: 64px 0;
  background-size: cover;
  background-position: center;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 28%, rgba(245, 158, 11, 0.30), transparent 26%),
    linear-gradient(90deg, rgba(31, 5, 5, 0.92), rgba(31, 5, 5, 0.56));
}

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

.detail-poster .poster-frame {
  border-radius: 26px;
  box-shadow: var(--shadow-strong);
}

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(34px, 6vw, 64px);
}

.detail-one-line {
  width: min(760px, 100%);
  margin: 20px 0 22px;
  color: rgba(255, 248, 235, 0.92);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  margin-bottom: 18px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  background: #090505;
  box-shadow: var(--shadow-strong);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(153, 27, 27, 0.12), rgba(0, 0, 0, 0.52));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-600), var(--red-950));
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

.play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid var(--white);
}

.play-layer strong {
  font-size: 22px;
  letter-spacing: 0.06em;
}

.detail-content-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
}

.content-card {
  padding: 30px;
}

.content-card h2 {
  font-size: 30px;
}

.content-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.accent-card {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.28), transparent 38%),
    rgba(255, 255, 255, 0.82);
}

.site-footer {
  color: var(--amber-100);
  background: linear-gradient(180deg, var(--red-950), #050101);
  border-top: 4px solid var(--red-800);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand strong {
  font-size: 24px;
}

.footer-brand p {
  margin: 6px 0 0;
  color: rgba(254, 243, 199, 0.76);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-links a {
  color: rgba(254, 243, 199, 0.86);
}

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

.search-results-section {
  min-height: 420px;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

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

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

  .two-column-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 780px) {
  .header-inner {
    min-height: 70px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    padding-top: 52px;
  }

  .featured-grid,
  .poster-grid,
  .wide-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .section {
    padding: 54px 0;
  }

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

  .movie-card-body {
    padding: 13px;
  }

  .movie-card p,
  .card-meta {
    font-size: 12px;
  }

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

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

  .inline-filter,
  .big-search {
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .full-ranking .ranking-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .full-ranking .ranking-info {
    grid-column: 2;
    text-align: left;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .shell,
  .header-inner,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

  .featured-grid,
  .poster-grid,
  .wide-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-featured .poster-frame,
  .movie-card-standard .poster-frame,
  .movie-card-strip .poster-frame {
    aspect-ratio: 16 / 11;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .play-icon {
    width: 70px;
    height: 70px;
  }
}
