:root {
  --color-sky-50: #f0f9ff;
  --color-sky-100: #e0f2fe;
  --color-sky-500: #0ea5e9;
  --color-sky-600: #0284c7;
  --color-blue-600: #2563eb;
  --color-blue-700: #1d4ed8;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 34px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-slate-800);
  background: linear-gradient(180deg, var(--color-slate-50) 0%, #ffffff 45%, var(--color-slate-50) 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-sky-600), var(--color-blue-700));
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.25);
}

.site-header__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.brand__text {
  display: grid;
  line-height: 1.1;
}

.brand__text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand__text small {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.88;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 10px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: var(--color-sky-700);
  background: #ffffff;
  padding: 10px 15px;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #0284c7 0%, #2563eb 52%, #1e40af 100%);
  padding: 84px 0;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(18px);
}

.hero-orb--one {
  width: 260px;
  height: 260px;
  top: 40px;
  left: 6%;
}

.hero-orb--two {
  width: 380px;
  height: 380px;
  right: 6%;
  bottom: -80px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  gap: 52px;
  align-items: center;
}

.hero-copy h1,
.sub-hero h1 {
  margin: 14px 0 20px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero-copy p,
.sub-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-sky-600);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-section .eyebrow,
.sub-hero .eyebrow,
.cta-panel .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

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

.primary-button,
.secondary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-sky-500), var(--color-blue-600));
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.28);
}

.primary-button--light {
  color: var(--color-sky-700);
  background: #ffffff;
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.ghost-button {
  color: var(--color-sky-700);
  background: #ffffff;
}

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

.hero-stats span {
  display: grid;
  min-width: 112px;
  padding: 14px 18px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats strong {
  color: #ffffff;
  font-size: 24px;
}

.hero-carousel {
  position: relative;
  min-height: 460px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.34);
  background: rgba(15, 23, 42, 0.22);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide__image {
  position: absolute;
  inset: 0;
}

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

.hero-slide__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.86));
}

.hero-slide__content {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 32px;
}

.hero-slide__content h2 {
  margin: 10px 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.hero-slide__content p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  margin-bottom: 18px;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 28px;
  background: #ffffff;
}

.section {
  padding: 72px 0;
}

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

.section--sky {
  background: linear-gradient(135deg, var(--color-sky-50), #eff6ff);
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--color-slate-800);
  letter-spacing: -0.04em;
}

.section-heading > a,
.text-link {
  color: var(--color-sky-600);
  font-weight: 800;
}

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

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

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

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

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

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

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

.movie-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-sky-100), #dbeafe);
}

.movie-card--large .movie-card__image {
  aspect-ratio: 16 / 13;
}

.movie-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(15, 23, 42, 0.7));
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--color-sky-500);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.score-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.score-badge {
  right: 12px;
  background: rgba(14, 165, 233, 0.95);
}

.rank-badge {
  left: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.movie-card__body {
  padding: 18px;
}

.movie-card__title {
  display: -webkit-box;
  min-height: 1.4em;
  overflow: hidden;
  color: var(--color-slate-800);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__title:hover {
  color: var(--color-sky-600);
}

.movie-card__body p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--color-slate-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-slate-500);
  font-size: 13px;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--color-sky-700);
  background: var(--color-sky-50);
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(2, 132, 199, 0.18);
}

.category-tile__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-sky-500), var(--color-blue-600));
}

.category-tile__name {
  font-size: 18px;
  font-weight: 850;
}

.category-tile__desc,
.category-tile__count {
  color: var(--color-slate-500);
  font-size: 13px;
  line-height: 1.5;
}

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

.rank-panel,
.side-info-card,
.poster-card,
.detail-content-card,
.player-card,
.search-panel,
.category-overview-card {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.rank-panel h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.rank-item {
  display: grid;
  grid-template-columns: 36px 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-slate-100);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item__num {
  color: var(--color-sky-600);
  font-weight: 900;
}

.rank-item img {
  width: 62px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-item strong {
  display: block;
  color: var(--color-slate-800);
  font-size: 14px;
}

.rank-item small {
  color: var(--color-slate-500);
  font-size: 12px;
}

.cta-panel,
.sub-hero {
  color: #ffffff;
  background: linear-gradient(100deg, var(--color-sky-500), var(--color-blue-600));
}

.cta-panel {
  padding: 56px 28px;
  border-radius: 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.cta-panel h2 {
  margin: 10px 0;
  font-size: clamp(32px, 5vw, 52px);
}

.cta-panel p {
  max-width: 680px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.84);
}

.sub-hero {
  padding: 74px 0;
}

.sub-hero h1 {
  max-width: 900px;
}

.sub-hero p {
  max-width: 860px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb a:hover {
  color: #ffffff;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 210px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--color-slate-200);
  outline: 0;
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--color-slate-800);
  background: var(--color-slate-50);
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--color-sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.filter-bar span {
  color: var(--color-slate-600);
  font-weight: 800;
  text-align: right;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 24px;
  overflow: hidden;
}

.category-overview-card__media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  min-height: 220px;
  background: var(--color-slate-100);
}

.category-overview-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card__body {
  padding: 28px 28px 28px 0;
}

.category-overview-card__body h2 {
  margin: 8px 0 10px;
  font-size: 30px;
}

.category-overview-card__body p {
  color: var(--color-slate-600);
  line-height: 1.8;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px 120px;
  gap: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.search-panel button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--color-sky-500), var(--color-blue-600));
  cursor: pointer;
}

.search-count {
  color: var(--color-slate-600);
  margin-bottom: 22px;
}

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

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

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

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

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

.video-player.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-overlay__button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  border-radius: 999px;
  font-size: 34px;
  background: var(--color-sky-500);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.35);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  margin: 0;
  color: #ffffff;
  text-align: center;
  pointer-events: none;
}

.detail-content-card {
  padding: 30px;
}

.detail-content-card h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-one-line {
  color: var(--color-slate-600);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: var(--color-slate-50);
  color: var(--color-slate-700);
}

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

.tag-row--detail {
  margin-bottom: 28px;
}

.detail-content-card h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-content-card p {
  color: var(--color-slate-600);
  line-height: 1.9;
}

.detail-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.poster-card {
  overflow: hidden;
  padding-bottom: 20px;
}

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

.poster-card .primary-button {
  width: calc(100% - 36px);
  margin: 18px;
}

.side-info-card {
  padding: 22px;
}

.side-info-card h2 {
  margin: 0 0 12px;
}

.side-info-card p {
  color: var(--color-slate-600);
  line-height: 1.75;
}

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

.sitemap-group {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.sitemap-group h2 {
  margin: 0 0 16px;
}

.sitemap-group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-group li a {
  display: block;
  color: var(--color-slate-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sitemap-group li a:hover {
  color: var(--color-sky-600);
}

.sitemap-group span {
  color: var(--color-slate-500);
  font-size: 12px;
}

.site-footer {
  margin-top: 72px;
  padding: 48px 0 26px;
  color: #dbeafe;
  background: var(--color-slate-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  color: #cbd5e1;
  line-height: 1.8;
}

.site-footer h3 {
  color: #ffffff;
  margin: 0 0 12px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

@media (max-width: 1100px) {
  .hero-grid,
  .featured-grid,
  .two-column-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 420px;
  }

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

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

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

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

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

  .brand__text small {
    display: none;
  }

  .hero-section {
    padding: 58px 0;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-carousel {
    min-height: 360px;
  }

  .featured-grid__side,
  .movie-grid--three,
  .movie-grid--four,
  .category-overview-card,
  .footer-grid,
  .sitemap-page {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .filter-bar,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .filter-bar span {
    text-align: left;
  }

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

  .sitemap-group ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .site-header__inner {
    min-height: 62px;
  }

  .brand__text strong {
    font-size: 17px;
  }

  .hero-copy h1,
  .sub-hero h1 {
    font-size: 38px;
  }

  .hero-carousel {
    min-height: 330px;
    border-radius: 22px;
  }

  .hero-slide__content {
    padding: 22px;
  }

  .featured-grid__side,
  .movie-grid--three,
  .movie-grid--four,
  .category-grid,
  .category-overview-card,
  .footer-grid,
  .sitemap-page {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

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

  .detail-content-card,
  .side-info-card {
    padding: 22px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}
