:root {
  color-scheme: light;
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f1f5f9;
  --panel: #ffffff;
  --dark: #020617;
  --slate: #0f172a;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --orange: #f97316;
  --red: #ef4444;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.14), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.13), transparent 36rem),
    linear-gradient(180deg, #f8fafc 0%, #eef5ff 48%, #f8fafc 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #020617, #0f172a 45%, #111827);
  color: #fff;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.3);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.35);
}

.logo-text {
  font-size: 1.2rem;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(148, 163, 184, 0.18);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

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

.hero-shell {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--dark);
}

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

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

.hero-bg {
  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.95) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.34) 100%),
    radial-gradient(circle at 80% 18%, rgba(6, 182, 212, 0.28), transparent 30rem);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 48px;
  color: #fff;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #67e8f9;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 16px 0 0;
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1.12;
  color: #e0f2fe;
}

.hero-copy p,
.page-hero p {
  margin: 18px 0 0;
  max-width: 720px;
  color: #dbeafe;
  font-size: 1.08rem;
  line-height: 1.9;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.13);
  color: #0891b2;
}

.hero-tags span {
  color: #cffafe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.primary-btn,
.ghost-btn,
.inline-search button,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.primary-btn,
.inline-search button,
.rank-action {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 15px 30px rgba(249, 115, 22, 0.26);
}

.primary-btn:hover,
.inline-search button:hover,
.rank-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(239, 68, 68, 0.32);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
  position: relative;
  align-self: center;
  justify-self: end;
  width: min(360px, 100%);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5);
  transform: perspective(1200px) rotateY(-8deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.94), rgba(239, 68, 68, 0.94));
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 2rem;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 32px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 54px;
  background: #67e8f9;
}

.search-band,
.section-wrap,
.category-overview,
.detail-layout,
.breadcrumb,
.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.search-band {
  margin-top: -44px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.72fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-band h2,
.section-head h2,
.detail-article h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.search-band p,
.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.inline-search,
.filter-panel {
  display: flex;
  gap: 12px;
}

.inline-search input,
.filter-panel input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 16px;
  outline: none;
  background: #fff;
}

.inline-search input:focus,
.filter-panel input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.section-wrap {
  padding: 76px 0;
}

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

.section-head > div > span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-head > a {
  color: var(--blue);
  font-weight: 900;
}

.section-head.light h2,
.section-head.light > a {
  color: #fff;
}

.section-head.light > div > span {
  color: #67e8f9;
}

.centered {
  align-items: center;
}

.soft-bg {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.92), rgba(219, 234, 254, 0.78));
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.76));
  opacity: 0.86;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.92), rgba(37, 99, 235, 0.92));
  opacity: 0;
  transition: 0.28s ease;
}

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

.movie-info {
  padding: 17px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.movie-meta span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 999px;
  background: #cbd5e1;
}

.movie-info h2 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-info h2 a:hover,
.rank-body h2 a:hover {
  color: var(--blue);
}

.movie-info p {
  min-height: 3.1em;
  margin: 0 0 14px;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.compact .movie-info p {
  min-height: 0;
  -webkit-line-clamp: 2;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 20px;
  border-radius: 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

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

.category-glow,
.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
}

.category-glow {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.78));
}

.category-tile::after {
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.35), transparent 16rem);
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-tile strong {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.category-tile em {
  font-style: normal;
  color: #dbeafe;
  font-size: 0.9rem;
  line-height: 1.6;
}

.dark-panel {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, #020617, #0f172a 48%, #0c4a6e);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: 0.25s ease;
}

.rank-row:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.13);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-cover img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-body h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.rank-body p {
  margin: 0 0 8px;
  color: #cbd5e1;
  line-height: 1.6;
}

.page-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 70px max(16px, calc((100% - 1180px) / 2));
  color: #fff;
  background: linear-gradient(135deg, #020617, #0f172a 55%, #155e75);
}

.small-hero {
  min-height: 300px;
  text-align: center;
}

.small-hero > div {
  max-width: 820px;
}

.category-hero {
  grid-template-columns: minmax(0, 1fr);
  place-items: start;
}

.category-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.category-hero > div {
  position: relative;
  width: min(760px, 100%);
}

.filter-panel {
  margin-top: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

.sticky-filter {
  position: sticky;
  top: 84px;
  z-index: 20;
}

.page-grid {
  align-items: stretch;
}

.category-overview {
  display: grid;
  gap: 28px;
  padding: 64px 0;
}

.category-overview-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.category-banner {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: #fff;
  overflow: hidden;
}

.category-banner img,
.category-banner span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-banner img {
  object-fit: cover;
}

.category-banner span {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.24));
}

.category-banner div {
  position: relative;
  max-width: 720px;
}

.category-banner h2 {
  margin: 0 0 10px;
  font-size: 2.2rem;
}

.category-banner p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.8;
}

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

.breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 28px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 32px;
  align-items: center;
  padding: 18px 0 50px;
}

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

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

.movie-player {
  z-index: 1;
  background: #020617;
}

.player-cover {
  z-index: 3;
  border: 0;
  padding: 0;
  color: #fff;
  cursor: pointer;
  background: #020617;
}

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

.player-cover img {
  object-fit: cover;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.18), rgba(2, 6, 23, 0.78));
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 22px 55px rgba(239, 68, 68, 0.42);
}

.player-cover strong {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 62px);
  text-align: center;
  font-size: 1.15rem;
}

.player-state {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  max-width: calc(100% - 36px);
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.66);
  backdrop-filter: blur(12px);
  font-size: 0.86rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.player-state.show {
  opacity: 1;
}

.detail-copy {
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 45px rgba(15, 23, 42, 0.08);
}

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

.lead {
  margin: 18px 0;
  color: #475569;
  line-height: 1.85;
  font-size: 1.05rem;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.info-list span {
  color: var(--muted);
  font-weight: 700;
}

.info-list strong {
  text-align: right;
}

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

.poster-panel {
  position: sticky;
  top: 94px;
  padding: 16px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.poster-panel img {
  border-radius: 20px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.full {
  width: 100%;
  margin-top: 16px;
}

.detail-article {
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.detail-article h2 + p {
  margin-top: 12px;
}

.detail-article p {
  color: #334155;
  font-size: 1.04rem;
  line-height: 2;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 40px;
  padding: 54px 0;
}

.footer-logo {
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.05rem;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 16px;
  text-align: center;
  color: #94a3b8;
}

.hidden-card {
  display: none !important;
}

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

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

  .detail-hero,
  .detail-layout,
  .search-band {
    grid-template-columns: 1fr;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 90px 0;
  }

  .hero-poster {
    display: none;
  }
}

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

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

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

  .hero-arrow {
    display: none;
  }

  .search-band {
    padding: 22px;
  }

  .inline-search {
    flex-direction: column;
  }

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

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

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

  .rank-action {
    grid-column: 2 / -1;
    width: 100%;
  }

  .rank-cover img {
    width: 72px;
    height: 54px;
  }

  .rank-body p {
    display: none;
  }

  .poster-panel {
    position: static;
  }

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

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

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  .hero-content {
    align-items: end;
  }

  .detail-copy,
  .detail-article {
    padding: 22px;
  }
}
