:root {
  --night-950: #0a1929;
  --night-900: #102a43;
  --night-850: #16324f;
  --night-800: #243b53;
  --night-700: #334e68;
  --night-300: #9fb3c8;
  --night-200: #bcccdc;
  --night-100: #d9e2ec;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --text-main: #f0f4f8;
  --shadow-night: 0 24px 70px rgba(0, 0, 0, .45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, .12), transparent 32rem), var(--night-950);
  color: var(--text-main);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 25, 41, .88);
  border-bottom: 1px solid rgba(51, 78, 104, .72);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: var(--night-950);
  box-shadow: 0 0 28px rgba(245, 158, 11, .35);
}

.brand-text {
  background: linear-gradient(90deg, var(--amber-400), #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.24rem;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--night-200);
  font-size: .95rem;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-400);
  background: rgba(245, 158, 11, .1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(159, 179, 200, .2);
  border-radius: 14px;
  background: rgba(36, 59, 83, .55);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--night-100);
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid rgba(51, 78, 104, .55);
  background: rgba(10, 25, 41, .96);
}

.hero {
  position: relative;
  min-height: clamp(660px, 88vh, 860px);
  overflow: hidden;
  background: var(--night-950);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}

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

.hero-backdrop {
  background-image: linear-gradient(90deg, rgba(10, 25, 41, .98) 0%, rgba(10, 25, 41, .86) 38%, rgba(10, 25, 41, .42) 72%, rgba(10, 25, 41, .9) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: 54px;
  min-height: clamp(660px, 88vh, 860px);
  padding-top: 42px;
}

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

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

.hero-tags span,
.detail-tags span,
.info-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 999px;
  background: rgba(245, 158, 11, .1);
  color: var(--amber-400);
  font-size: .78rem;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 30px;
  color: var(--night-200);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.8;
}

.hero-actions,
.toolbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: var(--night-950);
  box-shadow: 0 16px 34px rgba(245, 158, 11, .24);
}

.btn-ghost {
  border: 1px solid rgba(188, 204, 220, .22);
  background: rgba(36, 59, 83, .52);
  color: var(--night-100);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, .22);
  border-radius: 28px;
  background: rgba(16, 42, 67, .6);
  box-shadow: var(--shadow-night);
}

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

.hero-poster:hover img {
  transform: scale(1.04);
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(10, 25, 41, .72);
  color: var(--amber-400);
  font-size: .85rem;
  backdrop-filter: blur(12px);
}

.hero-control {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: rgba(16, 42, 67, .78);
  color: var(--night-100);
  font-size: 2rem;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(188, 204, 220, .4);
  transition: width .25s ease, background .25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--amber-500);
}

.section {
  padding: 72px 0;
}

.search-panel {
  padding: 30px 0;
  background: linear-gradient(180deg, rgba(16, 42, 67, .72), rgba(10, 25, 41, 0));
}

.search-wrap,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.search-wrap h2,
.section-heading h2,
.rank-panel h2,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.search-wrap p,
.section-heading p,
.page-hero p,
.category-card-body p,
.site-footer p {
  color: var(--night-300);
  line-height: 1.7;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(460px, 100%);
  padding: 10px 14px;
  border: 1px solid rgba(159, 179, 200, .18);
  border-radius: 16px;
  background: rgba(16, 42, 67, .72);
}

.search-box span {
  color: var(--amber-400);
  font-size: .9rem;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
  font-size: 1rem;
}

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

.section-action,
.rank-panel-head a,
.toolbar-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .1);
  color: var(--amber-400);
  font-weight: 700;
}

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

.category-tile,
.category-card-link {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, .86);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(36, 59, 83, .82), rgba(16, 42, 67, .82));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.category-tile {
  min-height: 190px;
  padding: 20px;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
  transition: transform .45s ease, opacity .45s ease;
}

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

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 1;
  display: block;
}

.category-tile span {
  margin-top: 80px;
  font-size: 1.35rem;
  font-weight: 800;
}

.category-tile em {
  margin-top: 8px;
  color: var(--night-200);
  font-style: normal;
  line-height: 1.6;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, .72);
  border-radius: 22px;
  background: rgba(16, 42, 67, .84);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, .36);
  box-shadow: 0 22px 64px rgba(0, 0, 0, .34);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--night-800);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .45s ease;
}

.compact-card .poster-link img {
  aspect-ratio: 2 / 3;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
  opacity: .35;
}

.poster-play,
.score-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  min-height: 34px;
  padding: 0 13px;
  background: var(--amber-500);
  color: var(--night-950);
}

.score-badge {
  top: 12px;
  right: 12px;
  width: 42px;
  height: 30px;
  background: rgba(0, 0, 0, .72);
  color: var(--amber-400);
  backdrop-filter: blur(10px);
}

.movie-info {
  padding: 16px;
}

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

.movie-info h2 a:hover {
  color: var(--amber-400);
}

.movie-info p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--night-300);
  font-size: .9rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-tags {
  margin-bottom: 14px;
}

.movie-tags span {
  min-height: 24px;
  padding: 3px 8px;
  border-color: rgba(159, 179, 200, .18);
  background: rgba(36, 59, 83, .75);
  color: var(--night-200);
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--night-300);
  font-size: .82rem;
}

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

.rank-panel {
  position: sticky;
  top: 98px;
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, .72);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(36, 59, 83, .78), rgba(16, 42, 67, .9));
  box-shadow: var(--shadow-night);
}

.rank-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid rgba(51, 78, 104, .72);
}

.rank-list {
  margin: 0;
  padding: 10px;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 36px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  color: var(--night-100);
  transition: background .25s ease;
}

.rank-item a:hover {
  background: rgba(245, 158, 11, .08);
}

.rank-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: rgba(188, 204, 220, .1);
  color: var(--night-200);
  font-weight: 900;
}

.rank-gold,
.rank-silver,
.rank-bronze {
  color: var(--night-950);
}

.rank-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.rank-silver {
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
}

.rank-bronze {
  background: linear-gradient(135deg, #fdba74, #c2410c);
}

.rank-item img {
  width: 58px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-text strong,
.rank-text em {
  display: block;
}

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

.rank-text em {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--night-300);
  font-size: .78rem;
  font-style: normal;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-score {
  color: var(--amber-400);
  font-weight: 900;
}

.page-hero {
  position: relative;
  padding: 90px 0 60px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, .18), transparent 34rem), linear-gradient(180deg, rgba(16, 42, 67, .78), rgba(10, 25, 41, 0));
}

.small-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.eyebrow {
  margin: 0;
  color: var(--amber-400);
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: var(--night-300);
  font-size: .92rem;
}

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

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

.category-card-link {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 180px;
}

.category-covers {
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.category-covers img {
  position: absolute;
  width: 48%;
  height: 78%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
}

.category-covers img:nth-child(1) {
  top: 22px;
  left: 18px;
  z-index: 3;
}

.category-covers img:nth-child(2) {
  top: 36px;
  left: 54px;
  z-index: 2;
  opacity: .8;
}

.category-covers img:nth-child(3) {
  top: 50px;
  left: 90px;
  z-index: 1;
  opacity: .6;
}

.category-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.category-card-body h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.category-card-body span {
  width: fit-content;
  margin-top: 14px;
  color: var(--amber-400);
  font-weight: 800;
}

.toolbar {
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(51, 78, 104, .72);
  border-radius: 22px;
  background: rgba(16, 42, 67, .56);
}

.inline-search {
  width: min(560px, 100%);
}

.sort-note {
  color: var(--night-300);
  font-size: .9rem;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 56px;
  background: var(--night-950);
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(10, 25, 41, .98), rgba(10, 25, 41, .86), rgba(10, 25, 41, .6)), var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(1px) saturate(1.08);
  transform: scale(1.04);
}

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

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, .22);
  border-radius: 28px;
  box-shadow: var(--shadow-night);
}

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

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.detail-copy p {
  max-width: 820px;
  color: var(--night-100);
  font-size: 1.15rem;
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 26px 0;
}

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(159, 179, 200, .16);
  border-radius: 16px;
  background: rgba(16, 42, 67, .55);
}

.detail-meta dt {
  color: var(--night-300);
  font-size: .8rem;
}

.detail-meta dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.player-section {
  padding-top: 54px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, .22);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow-night);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, .2), rgba(0, 0, 0, .78));
  color: var(--text-main);
  cursor: pointer;
  transition: opacity .25s ease, visibility .25s ease;
}

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

.player-play-icon {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: var(--night-950);
  font-size: 2rem;
  box-shadow: 0 0 44px rgba(245, 158, 11, .38);
}

.player-overlay strong {
  max-width: min(720px, calc(100% - 40px));
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  text-align: center;
}

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

.detail-article,
.detail-side {
  border: 1px solid rgba(51, 78, 104, .72);
  border-radius: 24px;
  background: rgba(16, 42, 67, .64);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .2);
}

.detail-article {
  padding: 30px;
}

.detail-article h2 {
  margin: 0 0 14px;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  margin: 0;
  color: var(--night-100);
  font-size: 1.02rem;
  line-height: 1.9;
  white-space: pre-line;
}

.detail-side {
  position: sticky;
  top: 98px;
  padding: 22px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.related-grid .movie-info p,
.related-grid .movie-meta,
.related-grid .movie-tags {
  display: none;
}

.related-grid .movie-info h2 {
  margin: 0;
  font-size: .9rem;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid rgba(51, 78, 104, .72);
  background: rgba(5, 15, 27, .88);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  padding: 46px 0 28px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

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

.footer-links a {
  color: var(--night-300);
}

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

.footer-bottom {
  padding: 18px 0 32px;
  color: var(--night-300);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--night-950);
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(245, 158, 11, .28);
}

.back-to-top.is-visible {
  display: block;
}

.is-filtered-out {
  display: none !important;
}

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

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

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

  .hero-poster,
  .detail-cover {
    max-width: 280px;
  }

  .hero-content {
    padding-top: 24px;
    padding-bottom: 90px;
  }

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

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

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

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

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

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

  .brand-text {
    font-size: 1.05rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .wide-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .poster-link img {
    aspect-ratio: 16 / 11;
  }

  .rank-item a {
    grid-template-columns: 32px 50px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

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