* {
  box-sizing: border-box;
}

:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --yellow-400: #facc15;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 30px 80px rgba(2, 6, 23, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--slate-50), #e0f2fe);
  color: var(--slate-900);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 35px rgba(2, 6, 23, 0.3);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  border-radius: 50%;
  font-size: 14px;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
}

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

.desktop-nav a,
.mobile-nav a {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--cyan-400);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.header-search input,
.mobile-nav input,
.hero-search input,
.inline-filter input,
.search-page-form input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  color: var(--slate-900);
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-nav input:focus,
.hero-search input:focus,
.inline-filter input:focus,
.search-page-form input:focus {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}

.header-search button,
.mobile-nav button,
.hero-search button,
.search-page-form button {
  border: 0;
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-nav button:hover,
.hero-search button:hover,
.search-page-form button:hover,
.btn-primary:hover,
.btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.3);
}

.mobile-menu-button {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 16px;
  background: var(--slate-800);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

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

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), #164e63, var(--slate-900));
}

.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,
.detail-bg,
.category-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  opacity: 0.34;
  transform: scale(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.1));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 780px;
  padding-right: min(36vw, 420px);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  color: var(--cyan-400);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker::before,
.section-kicker::before {
  content: "★";
  color: var(--yellow-400);
}

.hero-content h1,
.page-hero h1,
.detail-heading-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-heading-copy p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: 18px;
}

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

.hero-tags a,
.hero-tags span,
.detail-tags span,
.movie-tags span,
.secondary-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

.hero-tags a,
.detail-tags span:first-child {
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(6, 182, 212, 0.18);
}

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

.btn-primary,
.btn-ghost,
.btn-small,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary,
.btn-small {
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.28);
}

.btn-primary {
  padding: 14px 28px;
}

.btn-small {
  padding: 10px 16px;
  min-width: 76px;
}

.btn-ghost {
  padding: 13px 24px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  bottom: 42px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
  right: 92px;
}

.hero-next {
  right: 36px;
}

.hero-dots {
  position: absolute;
  bottom: 60px;
  left: 50%;
  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.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--cyan-400);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 118px;
  display: flex;
  gap: 10px;
  width: min(620px, calc(100% - 32px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.site-section {
  padding: 72px 0;
}

.light-section {
  background: var(--white);
}

.tinted-section {
  background: linear-gradient(90deg, #f8fafc, #ecfeff);
}

.dark-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), #083344);
}

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

.section-heading h2,
.panel-heading h2,
.side-card h2,
.detail-article h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.dark-section .section-heading h2,
.dark-section .section-heading p,
.dark-section .section-kicker,
.ranking-panel .panel-heading h2 {
  color: var(--white);
}

.section-heading p {
  margin: 8px 0 0;
  max-width: 650px;
  color: var(--slate-600);
}

.section-more,
.text-link,
.panel-heading a {
  color: var(--cyan-500);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dark-section .movie-card {
  background: rgba(255, 255, 255, 0.98);
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.movie-cover img,
.category-tile img,
.ranking-cover img,
.side-links img,
.category-cover-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .movie-cover img,
.category-tile:hover img,
.ranking-row:hover .ranking-cover img,
.side-links a:hover img {
  transform: scale(1.08);
}

.movie-duration,
.movie-play {
  position: absolute;
  z-index: 2;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.movie-duration {
  right: 10px;
  bottom: 10px;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.movie-play {
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(37, 99, 235, 0.9));
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.movie-info {
  padding: 16px;
}

.movie-category {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #0e7490;
  background: #cffafe;
  font-size: 12px;
  font-weight: 800;
}

.movie-info h3,
.ranking-copy h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
  line-height: 1.35;
  font-size: 18px;
  font-weight: 900;
}

.movie-info h3 a:hover,
.ranking-copy h2 a:hover {
  color: var(--cyan-500);
}

.movie-info p,
.ranking-copy p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta-row span,
.detail-meta span {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--slate-100);
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.movie-card-wide .movie-cover {
  height: 100%;
  aspect-ratio: auto;
}

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

.category-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.2));
}

.category-tile > div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.category-tile span,
.category-overview-card span {
  color: var(--cyan-400);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-tile h3,
.category-overview-card h2 {
  margin: 6px 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile p,
.category-overview-card p {
  margin: 0;
  color: #dbeafe;
  font-size: 14px;
}

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

.ranking-panel,
.side-card {
  position: sticky;
  top: 96px;
  border-radius: var(--radius-xl);
  padding: 22px;
  background: linear-gradient(135deg, var(--slate-900), #164e63);
  box-shadow: var(--shadow-strong);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.rank-list,
.side-links {
  display: grid;
  gap: 12px;
}

.rank-item,
.side-links a {
  display: grid;
  grid-template-columns: 40px 70px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--white);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--cyan-400), var(--yellow-400));
  font-weight: 900;
}

.rank-item img,
.side-links img {
  width: 70px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-item strong,
.side-links span {
  display: block;
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item small {
  display: block;
  color: #bae6fd;
  font-size: 12px;
}

.scroll-row {
  display: grid;
  grid-auto-columns: 310px;
  grid-auto-flow: column;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0 22px;
  scroll-snap-type: x proximity;
}

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

.page-main {
  min-height: 60vh;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), #164e63);
}

.slim-hero {
  padding: 88px 0;
}

.dark-gradient {
  background: linear-gradient(135deg, var(--slate-950), var(--slate-900), #155e75);
}

.category-hero {
  min-height: 430px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #bae6fd;
  font-size: 14px;
}

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

.inline-filter,
.search-page-form {
  width: min(720px, 100%);
  margin-top: 24px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-xl);
  padding: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-overview-card p {
  color: var(--slate-600);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.category-cover-stack img {
  height: 92px;
  border-radius: 14px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 64px 170px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.ranking-pos {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--cyan-400), #fef08a);
  font-weight: 900;
}

.ranking-cover {
  display: block;
  height: 100px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--slate-900);
}

.ranking-copy h2 {
  font-size: 20px;
}

.detail-hero {
  min-height: 560px;
}

.detail-bg {
  opacity: 0.25;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 70px 0;
}

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
}

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

.detail-meta {
  margin: 22px 0;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--slate-950);
  box-shadow: var(--shadow-strong);
  aspect-ratio: 16 / 9;
}

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

.movie-player {
  z-index: 1;
  background: var(--slate-950);
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--slate-950);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

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

.player-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 25px 70px rgba(6, 182, 212, 0.34);
  transform: translate(-50%, -50%);
  font-size: 30px;
}

.detail-article,
.side-card {
  margin-top: 24px;
}

.detail-article {
  border-radius: var(--radius-xl);
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-article h2 {
  margin-top: 28px;
  font-size: 26px;
}

.detail-article h2:first-child {
  margin-top: 0;
}

.detail-article p {
  color: var(--slate-700);
  font-size: 16px;
}

.detail-info-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.detail-info-box div {
  border-radius: 16px;
  padding: 14px;
  background: var(--slate-100);
}

.detail-info-box strong,
.detail-info-box span {
  display: block;
}

.detail-info-box strong {
  color: var(--slate-500);
  font-size: 12px;
}

.detail-info-box span {
  margin-top: 4px;
  color: var(--slate-900);
  font-weight: 800;
}

.secondary-tags span {
  color: var(--slate-700);
  border-color: rgba(148, 163, 184, 0.3);
  background: var(--slate-100);
}

.side-card h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 24px;
}

.side-links a {
  grid-template-columns: 80px 1fr;
}

.search-page-form {
  display: flex;
  gap: 10px;
}

.search-summary {
  margin-bottom: 24px;
  color: var(--slate-600);
  font-weight: 700;
}

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

.site-footer {
  color: #cbd5e1;
  background: var(--slate-950);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding: 46px 0;
}

.footer-inner p {
  max-width: 520px;
  color: #94a3b8;
}

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

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

.footer-copy {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 16px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

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

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

  .ranking-panel,
  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

  .logo {
    font-size: 19px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 680px;
  }

  .hero-content {
    padding-right: 0;
    padding-top: 72px;
    justify-content: flex-start;
  }

  .hero-content p,
  .page-hero p,
  .detail-heading-copy p {
    font-size: 16px;
  }

  .hero-search {
    bottom: 86px;
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-arrow {
    bottom: 24px;
  }

  .hero-prev {
    right: 76px;
  }

  .hero-next {
    right: 24px;
  }

  .hero-dots {
    left: 24px;
    bottom: 40px;
    transform: none;
  }

  .site-section {
    padding: 52px 0;
  }

  .section-heading {
    display: block;
  }

  .two-cols,
  .three-cols,
  .four-cols,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-wide,
  .category-overview-card,
  .detail-heading-grid,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .movie-card-wide .movie-cover {
    aspect-ratio: 16 / 9;
  }

  .ranking-row {
    gap: 12px;
  }

  .ranking-cover {
    height: 180px;
  }

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

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

  .scroll-row {
    grid-auto-columns: 82%;
  }

  .search-page-form,
  .mobile-nav form {
    flex-direction: column;
  }

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

@media (max-width: 460px) {
  .detail-info-box {
    grid-template-columns: 1fr;
  }

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