:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --cyan-700: #0e7490;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-500: #3b82f6;
  --yellow-400: #facc15;
  --white: #ffffff;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 45px rgba(15, 23, 42, 0.14);
  --shadow-xl: 0 30px 80px rgba(2, 6, 23, 0.32);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
  color: var(--slate-900);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.36);
  color: var(--cyan-400);
  font-size: 15px;
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.14);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 650;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

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

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

.mobile-panel a {
  display: block;
  color: #cbd5e1;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hero-carousel {
  position: relative;
  min-height: 600px;
  background: radial-gradient(circle at 20% 10%, rgba(6, 182, 212, 0.34), transparent 36%), linear-gradient(135deg, var(--slate-900), #164e63, var(--slate-900));
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-image,
.hero-image img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.03);
}

.hero-overlay {
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.28));
}

.hero-content {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-copy {
  width: min(760px, 100%);
  padding-top: 20px;
  color: var(--white);
}

.eyebrow,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.hero-copy p {
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.1);
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 650;
}

.hero-tags span:first-child {
  color: var(--cyan-400);
  background: rgba(6, 182, 212, 0.16);
  border-color: rgba(34, 211, 238, 0.36);
}

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

.primary-button,
.ghost-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.small-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 18px 38px rgba(6, 182, 212, 0.28);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-prev {
  left: max(18px, calc((100vw - 1180px) / 2 - 60px));
}

.hero-next {
  right: max(18px, calc((100vw - 1180px) / 2 - 60px));
}

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

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

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

.search-strip {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.search-strip-inner {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  align-items: center;
  gap: 32px;
  padding: 28px 0;
}

.search-strip h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.search-strip p {
  margin: 0;
  color: var(--slate-600);
}

.search-box,
.filter-bar {
  display: flex;
  gap: 12px;
}

.search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: var(--white);
  padding: 0 15px;
  outline: none;
  color: var(--slate-900);
  box-shadow: var(--shadow-sm);
}

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

.search-box button {
  min-width: 96px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

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

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

.soft-section {
  background: linear-gradient(90deg, var(--slate-50), #ecfeff);
}

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

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

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading a {
  color: var(--cyan-600);
  font-weight: 800;
}

.light-heading a,
.light-heading h2 {
  color: var(--white);
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.88);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-800);
}

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

.movie-card:hover .card-poster img,
.wide-card:hover img,
.category-tile:hover img,
.related-item:hover img {
  transform: scale(1.08);
}

.card-badge,
.card-duration {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  left: 12px;
  top: 12px;
  color: var(--cyan-400);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(34, 211, 238, 0.34);
}

.card-duration {
  right: 12px;
  bottom: 12px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.66);
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 650;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 9px;
  color: var(--slate-400);
}

.movie-card h3,
.wide-card h3 {
  margin: 10px 0 9px;
  color: var(--slate-900);
  line-height: 1.35;
  font-size: 18px;
}

.movie-card h3 a:hover,
.wide-card h3 a:hover,
.ranking-main h2 a:hover {
  color: var(--cyan-600);
}

.movie-card p,
.wide-card p,
.category-panel p,
.ranking-main p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

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

.tag-row span {
  background: var(--slate-100);
  color: var(--slate-600);
  border-color: var(--slate-200);
  padding: 6px 9px;
}

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

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.36));
}

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

.category-tile span,
.category-tile p {
  position: relative;
  display: block;
  padding: 0 22px;
}

.category-tile span {
  margin-top: 116px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  margin: 10px 0 0;
  color: #dbeafe;
  line-height: 1.7;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.rank-number {
  color: var(--cyan-400);
  font-weight: 900;
  font-size: 22px;
}

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

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

.rank-info strong {
  color: var(--white);
  line-height: 1.4;
}

.rank-info em {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.wide-poster {
  overflow: hidden;
  background: var(--slate-800);
}

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

.wide-body {
  padding: 20px 20px 20px 0;
}

.wide-body span {
  color: var(--cyan-600);
  font-weight: 800;
  font-size: 13px;
}

.page-hero {
  background: radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.28), transparent 32%), linear-gradient(135deg, var(--slate-950), var(--slate-900), #164e63);
  color: var(--white);
  padding: 88px 0;
}

.compact-hero {
  padding: 58px 0 46px;
}

.page-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.04em;
}

.page-hero p {
  width: min(760px, 100%);
  margin: 0;
  color: #dbeafe;
  line-height: 1.8;
  font-size: 18px;
}

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

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

.filter-bar {
  width: min(760px, 100%);
  margin-top: 28px;
}

.filter-bar select {
  max-width: 180px;
}

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

.category-panel {
  display: grid;
  grid-template-columns: 230px 1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.category-panel-cover {
  overflow: hidden;
  background: var(--slate-800);
}

.category-panel-cover img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.category-panel-body {
  padding: 26px;
}

.category-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.category-panel h2 a:hover {
  color: var(--cyan-600);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-links a,
.inline-links a {
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 700;
}

.mini-links a:hover,
.inline-links a:hover {
  color: var(--white);
  background: var(--cyan-600);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 72px 140px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.ranking-num {
  color: var(--cyan-600);
  font-weight: 950;
  font-size: 26px;
}

.ranking-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: var(--slate-800);
}

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

.ranking-main h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.detail-shell {
  padding: 34px 0 72px;
}

.detail-breadcrumb {
  color: var(--slate-600);
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card,
.movie-detail-card,
.side-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
}

.player-card {
  overflow: hidden;
  padding: 12px;
  background: var(--slate-950);
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.46));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 2;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  font-size: 30px;
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.4);
  padding-left: 4px;
}

.movie-detail-card {
  padding: clamp(24px, 4vw, 36px);
}

.detail-meta-line {
  margin-bottom: 16px;
}

.detail-meta-line a {
  color: var(--cyan-600);
  font-weight: 900;
}

.movie-detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.lead-text {
  margin: 0 0 22px;
  color: var(--slate-600);
  font-size: 19px;
  line-height: 1.8;
}

.movie-detail-card h2,
.side-card h2,
.site-footer h2 {
  margin: 28px 0 12px;
  font-size: 23px;
}

.movie-detail-card p {
  color: var(--slate-700);
  line-height: 1.9;
  font-size: 17px;
}

.detail-tags {
  margin: 0 0 28px;
}

.detail-tags span {
  background: var(--slate-100);
  color: var(--slate-700);
  border-color: var(--slate-200);
}

.detail-side {
  position: sticky;
  top: 92px;
}

.side-card {
  padding: 20px;
}

.side-card h2 {
  margin-top: 0;
}

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

.related-item {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 13px;
  align-items: center;
}

.related-item img {
  width: 116px;
  height: 74px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--slate-800);
  transition: transform 0.35s ease;
}

.related-item strong,
.related-item em {
  display: block;
}

.related-item strong {
  color: var(--slate-900);
  line-height: 1.45;
  font-size: 14px;
}

.related-item em {
  margin-top: 6px;
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  text-align: center;
  color: var(--slate-500);
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--slate-50);
}

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

.site-footer {
  background: var(--slate-900);
  color: #cbd5e1;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

.footer-brand p {
  color: #94a3b8;
  line-height: 1.8;
  margin: 0;
}

.site-footer h2 {
  color: var(--white);
  margin-top: 0;
  font-size: 17px;
}

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

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

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

.is-hidden-by-filter {
  display: none !important;
}

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

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

  .detail-side {
    position: static;
  }

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

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-arrow {
    display: none;
  }

  .search-strip-inner,
  .wide-grid,
  .category-panel-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .wide-card,
  .category-panel,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .wide-poster,
  .category-panel-cover,
  .ranking-cover {
    aspect-ratio: 16 / 9;
  }

  .wide-body,
  .category-panel-body {
    padding: 20px;
  }

  .category-panel-cover img {
    min-height: 0;
  }

  .ranking-row .small-button {
    justify-self: start;
  }
}

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

  .brand {
    font-size: 18px;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
  }

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

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

  .hero-copy p {
    font-size: 16px;
  }

  .hero-tags span {
    padding: 7px 10px;
  }

  .search-box,
  .filter-bar {
    flex-direction: column;
  }

  .filter-bar select {
    max-width: none;
  }

  .movie-grid,
  .category-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

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

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

  .related-item {
    grid-template-columns: 100px 1fr;
  }

  .related-item img {
    width: 100px;
    height: 68px;
  }
}
