:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --red: #dc2626;
  --red-dark: #991b1b;
  --yellow: #facc15;
  --slate: #0f172a;
  --soft-red: #fee2e2;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0, var(--bg) 440px, #ffffff 100%);
  line-height: 1.65;
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(248, 113, 113, 0.22);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.32);
  font-size: 15px;
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.main-nav a {
  font-weight: 700;
  color: #374151;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--red);
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 300px;
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 78px 0 18px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  outline: none;
  background: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus,
.hero-search input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.header-search button,
.hero-search button {
  position: absolute;
  right: 5px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--red);
  cursor: pointer;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--red-dark);
  cursor: pointer;
}

.hero-section {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: var(--slate);
  color: #ffffff;
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(75px);
  opacity: 0.34;
  pointer-events: none;
}

.hero-glow-red {
  top: 68px;
  right: 8%;
  background: #ef4444;
}

.hero-glow-yellow {
  bottom: 86px;
  left: 8%;
  background: #f59e0b;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

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

.hero-slide::after,
.detail-hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 28%, rgba(250, 204, 21, 0.18), transparent 32%), radial-gradient(circle at 22% 76%, rgba(220, 38, 38, 0.25), transparent 32%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 170px;
  max-width: 670px;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.9);
  color: #fde68a;
  box-shadow: 0 18px 35px rgba(127, 29, 29, 0.35);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-desc,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: #d1d5db;
  font-size: 19px;
  line-height: 1.85;
}

.hero-meta,
.tag-row,
.movie-card-meta,
.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-meta span,
.tag-row span {
  padding: 7px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 700;
  font-size: 14px;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: var(--red);
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.32);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.hero-poster-card {
  position: absolute;
  z-index: 2;
  right: max(32px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: min(330px, 28vw);
  aspect-ratio: 2 / 3;
  transform: translateY(-50%);
  border-radius: 30px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster-card span {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  color: #111827;
  background: var(--yellow);
  font-weight: 900;
}

.hero-poster-card strong {
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.15;
}

.hero-bottom {
  position: relative;
  z-index: 5;
  padding: 0 0 34px;
  margin-top: 520px;
}

.hero-dots {
  display: flex;
  gap: 9px;
  margin-bottom: 16px;
}

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

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

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.hero-thumb span {
  width: 52px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.hero-thumb strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.hero-search {
  position: relative;
  max-width: 620px;
  margin-bottom: 16px;
}

.hero-search input {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0 136px 0 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  backdrop-filter: blur(14px);
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.hero-search button {
  height: 44px;
  right: 7px;
  padding: 0 22px;
}

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-categories a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

.section-heading h2,
.filter-panel h2,
.category-panel h2,
.content-card h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 900;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-poster {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #111827;
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  transform: translateZ(0);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-poster:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 50px rgba(127, 29, 29, 0.24);
}

.poster-region,
.poster-year,
.rank-badge {
  position: absolute;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-region {
  left: 10px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.92);
}

.poster-year {
  right: 10px;
  color: #111827;
  background: var(--yellow);
}

.rank-badge {
  z-index: 3;
  left: 10px;
  top: 44px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-poster:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-title,
.poster-genre {
  position: relative;
  z-index: 2;
  padding: 0 14px;
  color: #ffffff;
}

.poster-title {
  font-weight: 900;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-genre {
  padding-bottom: 14px;
  color: #d1d5db;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card-body {
  padding: 12px 4px 0;
}

.movie-card-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
}

.movie-card-body h3 a:hover {
  color: var(--red);
}

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

.movie-card-meta {
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
}

.movie-card-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f3f4f6;
}

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

.category-panel,
.content-card,
.filter-panel {
  border-radius: 28px;
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(248, 113, 113, 0.14);
}

.category-tile-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.category-tile {
  display: block;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #fee2e2);
  border: 1px solid rgba(248, 113, 113, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(220, 38, 38, 0.16);
}

.category-tile span {
  display: block;
  color: var(--red-dark);
  font-weight: 900;
  margin-bottom: 5px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 72px 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

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

.compact-ranking .ranking-link {
  display: none;
}

.ranking-cover {
  width: 72px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background-color: #111827;
  background-size: cover;
  background-position: center;
}

.compact-ranking .ranking-cover {
  width: 54px;
}

.ranking-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-weight: 900;
}

.ranking-content h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.ranking-content p {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.ranking-meta span {
  color: #6b7280;
  font-size: 12px;
}

.ranking-link {
  color: var(--red);
  font-weight: 900;
  white-space: nowrap;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #7f1d1d);
  background-size: cover;
  background-position: center;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding: 84px 0;
}

.slim-hero .container {
  padding: 70px 0;
}

.page-hero h1 {
  max-width: 840px;
}

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

.category-card-large {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 30px;
  padding: 28px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.category-card-large > a {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 620px;
}

.category-card-large h2 {
  margin: 0 0 12px;
  font-size: 36px;
  letter-spacing: -0.04em;
}

.category-card-large p {
  color: #e5e7eb;
  margin: 0;
}

.category-samples {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-samples a {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.filter-panel .eyebrow,
.content-card .eyebrow,
.category-panel .eyebrow,
.section-heading .eyebrow {
  color: var(--red);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 160px;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  outline: none;
}

.empty-result {
  display: none;
  color: var(--muted);
  font-weight: 700;
}

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

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 76px 0;
}

.detail-cover {
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-cover span {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: #e5e7eb;
  font-size: 14px;
}

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

.detail-meta span {
  background: rgba(255, 255, 255, 0.12);
}

.tag-row {
  margin-top: 20px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  background: #000000;
}

.player-cover {
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

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

.player-play {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  font-size: 30px;
}

.player-cover strong {
  font-size: clamp(22px, 4vw, 38px);
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.45);
}

.detail-main,
.detail-sidebar {
  display: grid;
  gap: 24px;
}

.content-card p {
  color: #475569;
}

.content-card > p:last-child {
  margin-bottom: 0;
}

.info-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 12px;
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  font-weight: 800;
}

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

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: linear-gradient(135deg, #0f172a, #111827 48%, #7f1d1d);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 30px;
  padding: 52px 0 36px;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.site-footer p,
.site-footer li {
  color: #cbd5e1;
  font-size: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px 16px;
  text-align: center;
  color: #cbd5e1;
  font-size: 14px;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .movie-grid,
  .movie-grid-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-poster-card {
    width: 250px;
  }

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

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

@media (max-width: 840px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    order: 3;
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
    border-top: 1px solid #fee2e2;
  }

  .main-nav.is-open {
    display: flex;
  }

  .header-search {
    order: 4;
    width: 100%;
    display: none;
  }

  .main-nav.is-open + .header-search,
  .header-search.is-open {
    display: flex;
  }

  .hero-section {
    min-height: 780px;
  }

  .hero-copy {
    padding: 54px 0 260px;
  }

  .hero-poster-card {
    top: auto;
    bottom: 230px;
    left: 32px;
    right: auto;
    width: 170px;
    transform: none;
  }

  .hero-poster-card strong {
    font-size: 18px;
  }

  .hero-bottom {
    margin-top: 560px;
  }

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

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

  .section-heading,
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

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

  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-cover {
    width: 54px;
  }

  .ranking-link {
    display: none;
  }

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

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

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-section {
    min-height: 820px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-desc,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-search input {
    padding-right: 118px;
  }

  .hero-search button {
    padding: 0 15px;
  }

  .movie-grid,
  .movie-grid-wide,
  .related-grid {
    gap: 14px;
  }

  .movie-card-body p {
    min-height: 46px;
    font-size: 12px;
  }

  .category-panel,
  .content-card,
  .filter-panel {
    padding: 20px;
    border-radius: 22px;
  }

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