:root {
  color-scheme: light;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #f59e0b;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--amber-50), #ffffff 42%, var(--slate-50));
  color: var(--slate-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  border-bottom: 1px solid var(--amber-200);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.14);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #78350f;
  min-width: 188px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: #b45309;
  font-size: 12px;
}

.header-search,
.mobile-search,
.library-search,
.page-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search {
  flex: 1;
  max-width: 430px;
}

.header-search input,
.mobile-search input,
.library-search input,
.page-search input {
  width: 100%;
  min-width: 0;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  background: #ffffff;
  color: var(--slate-800);
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.library-search input:focus,
.page-search input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button,
.library-search button,
.page-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  padding: 11px 18px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.22);
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.nav-link {
  color: #78350f;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange-500);
}

.mobile-menu-button {
  display: none;
  border: 0;
  background: rgba(245, 158, 11, 0.12);
  color: #78350f;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid rgba(245, 158, 11, 0.22);
}

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

.mobile-nav .nav-link {
  padding: 10px 0;
}

.hero-carousel {
  position: relative;
  max-width: 1280px;
  margin: 32px auto 64px;
  padding: 0 24px;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--slate-900);
  box-shadow: var(--shadow-soft);
}

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

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

.hero-bg,
.detail-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(245, 158, 11, 0.25), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.70) 45%, rgba(15, 23, 42, 0.28)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.76), transparent 50%);
}

.hero-content {
  position: relative;
  min-height: 560px;
  padding: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.17);
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(38px, 6vw, 72px);
}

.hero-line {
  max-width: 760px;
  margin: 0 0 14px;
  color: #f8fafc;
  font-size: 20px;
  line-height: 1.65;
}

.hero-summary {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.hero-tags span,
.tag-list span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 28px rgba(249, 115, 22, 0.30);
}

.primary-button.small {
  padding: 10px 16px;
  font-size: 14px;
}

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

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--slate-900);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  transform: translateY(-50%);
}

.hero-prev {
  left: 44px;
}

.hero-next {
  right: 44px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section-wrap {
  max-width: 1280px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

.section-title {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--slate-500);
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.18);
}

.section-more {
  margin-left: auto;
  color: #d97706;
  font-weight: 800;
}

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

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

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

.movie-card {
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

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

.movie-card a {
  display: grid;
  height: 100%;
  color: inherit;
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-100);
}

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

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

.card-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.56), transparent 60%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.movie-card:hover .card-cover-shade {
  opacity: 1;
}

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

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, var(--orange-500));
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-topline,
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-topline {
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 9px 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  margin: 0;
  min-height: 44px;
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 12px;
  color: var(--slate-500);
  font-size: 12px;
}

.tag-list {
  margin-top: 12px;
}

.tag-list span {
  color: #92400e;
  background: var(--amber-100);
}

.category-band {
  margin: 64px 0;
  padding: 56px 0;
  background: linear-gradient(135deg, var(--amber-100), #fff7ed);
}

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

.category-tile,
.category-overview-panel {
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.category-tile {
  padding: 18px;
}

.category-tile > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate-900);
}

.category-tile span {
  font-size: 18px;
  font-weight: 900;
}

.category-tile strong {
  color: #d97706;
  font-size: 13px;
}

.category-tile div {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.category-tile div a {
  color: var(--slate-500);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.rank-list-large {
  grid-template-columns: 1fr;
}

.rank-row {
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.rank-row[hidden] {
  display: none;
}

.rank-row a {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  color: inherit;
}

.rank-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  font-weight: 900;
}

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

.rank-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.rank-info small {
  color: var(--slate-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: #d97706;
  font-weight: 900;
}

.library-title {
  align-items: flex-end;
}

.library-search {
  margin-left: auto;
  min-width: min(460px, 100%);
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 28px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--slate-500);
  text-align: center;
  box-shadow: var(--shadow-card);
}

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

.page-hero {
  max-width: 1280px;
  margin: 32px auto 48px;
  padding: 56px;
  border-radius: 28px;
  background:
    radial-gradient(circle at right top, rgba(245, 158, 11, 0.20), transparent 36%),
    linear-gradient(135deg, var(--slate-900), var(--slate-800));
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--slate-300);
  font-size: 17px;
  line-height: 1.8;
}

.page-search {
  width: min(420px, 100%);
}

.category-pills {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pills a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--slate-300);
  font-size: 14px;
}

.breadcrumb a {
  color: #fbbf24;
}

.category-overview {
  display: grid;
  gap: 30px;
}

.category-overview-panel {
  padding: 24px;
}

.category-overview-head {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.category-overview-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
}

.category-overview-head p {
  margin: 0;
  color: var(--slate-500);
}

.detail-main {
  background: linear-gradient(180deg, var(--slate-900), var(--slate-800) 540px, var(--slate-50) 541px);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0.28;
  filter: blur(4px);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.70), rgba(15, 23, 42, 0.98));
}

.detail-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 72px;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
  max-width: 920px;
  font-size: clamp(34px, 5vw, 62px);
}

.detail-one-line {
  max-width: 820px;
  margin: 0;
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.7;
}

.detail-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.22);
}

.detail-section {
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.30), transparent 24%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12));
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  font-size: 36px;
  box-shadow: 0 24px 50px rgba(249, 115, 22, 0.32);
}

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

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

.movie-prose {
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 34px;
  box-shadow: var(--shadow-card);
}

.movie-prose h2 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: 26px;
  font-weight: 900;
}

.movie-prose p {
  margin: 0 0 28px;
  color: var(--slate-700);
  line-height: 1.95;
  font-size: 17px;
}

.movie-prose p:last-child {
  margin-bottom: 0;
}

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

.next-prev a {
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
  color: var(--slate-800);
  font-weight: 800;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  margin-top: 80px;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
  color: var(--slate-300);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner h2 {
  margin: 0 0 10px;
  color: #fbbf24;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 580px;
  margin: 0;
  line-height: 1.8;
}

.footer-inner nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-inner a {
  color: var(--slate-300);
  font-weight: 700;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid rgba(203, 213, 225, 0.18);
  color: var(--slate-500);
  text-align: center;
}

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

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

@media (max-width: 900px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    padding: 12px 18px;
  }

  .header-search {
    display: none;
  }

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

  .hero-carousel {
    margin-top: 18px;
    padding: 0 16px;
  }

  .hero-stage,
  .hero-content {
    min-height: 650px;
  }

  .hero-content {
    padding: 36px 24px 80px;
    grid-template-columns: 1fr;
  }

  .hero-poster {
    width: min(260px, 78vw);
    transform: none;
  }

  .hero-arrow {
    width: 44px;
    height: 44px;
  }

  .hero-prev {
    left: 24px;
  }

  .hero-next {
    right: 24px;
  }

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

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

  .section-title,
  .library-title,
  .page-hero,
  .footer-inner,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-search,
  .page-search {
    width: 100%;
    margin-left: 0;
  }

  .rank-list {
    grid-template-columns: 1fr;
  }

  .page-hero {
    margin: 20px 16px 42px;
    padding: 34px 24px;
  }

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

  .detail-poster {
    width: min(280px, 78vw);
  }
}

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

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

  .hero-line,
  .detail-one-line {
    font-size: 17px;
  }

  .rank-row a {
    grid-template-columns: 40px 70px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .rank-row img {
    width: 70px;
    height: 52px;
  }

  .next-prev {
    grid-template-columns: 1fr;
  }

  .footer-inner nav {
    flex-wrap: wrap;
  }
}
