:root {
  --color-primary: 15 23 42;
  --color-primary-light: 30 41 59;
  --color-secondary: 8 51 68;
  --color-accent: 6 182 212;
  --color-highlight: 251 146 60;
  --color-bg-dark: 3 7 18;
  --color-bg-darker: 0 0 0;
  --color-text-primary: 248 250 252;
  --color-text-secondary: 203 213 225;
  --color-text-muted: 148 163 184;
  --color-border: 30 41 59;
  --color-card-bg: 15 23 42;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: rgb(2 6 23);
  color: rgb(var(--color-text-primary));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(30 41 59 / 0.55);
  background: rgb(15 23 42 / 0.82);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgb(6 182 212 / 0.16);
  color: rgb(34 211 238);
  box-shadow: 0 0 32px rgb(6 182 212 / 0.28);
  transition: transform 0.3s ease, background 0.3s ease;
}

.group:hover .brand-mark,
.brand:hover .brand-mark {
  transform: scale(1.08) rotate(10deg);
  background: rgb(6 182 212 / 0.26);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1;
  font-weight: 800;
  background: linear-gradient(90deg, rgb(34 211 238), rgb(59 130 246));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: rgb(var(--color-text-muted));
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  position: relative;
  color: rgb(var(--color-text-secondary));
  font-weight: 650;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: rgb(34 211 238);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: rgb(34 211 238);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-search,
.btn-primary,
.btn-ghost,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0 20px;
  font-weight: 750;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.header-search,
.btn-primary {
  background: rgb(8 145 178);
  color: white;
  box-shadow: 0 16px 34px rgb(6 182 212 / 0.22);
}

.header-search:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  background: rgb(14 116 144);
  box-shadow: 0 20px 40px rgb(6 182 212 / 0.30);
}

.btn-ghost,
.section-more {
  border-color: rgb(30 41 59);
  background: rgb(15 23 42 / 0.75);
  color: rgb(125 211 252);
}

.btn-ghost:hover,
.section-more:hover {
  border-color: rgb(34 211 238 / 0.55);
  background: rgb(8 145 178 / 0.12);
  transform: translateY(-2px);
}

.btn-ghost.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.btn-primary.full {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgb(30 41 59 / 0.75);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: rgb(203 213 225);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgb(30 41 59 / 0.65);
  background: rgb(15 23 42 / 0.96);
}

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

.mobile-nav {
  display: grid;
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: 16px 0 22px;
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: rgb(30 41 59 / 0.55);
}

.site-main {
  padding-top: 72px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  padding: 70px 0 56px;
  background:
    radial-gradient(circle at 15% 12%, rgb(6 182 212 / 0.22), transparent 32%),
    radial-gradient(circle at 88% 20%, rgb(59 130 246 / 0.18), transparent 30%),
    linear-gradient(180deg, rgb(15 23 42), rgb(2 6 23));
}

.hero-glow {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: radial-gradient(circle at 50% 50%, rgb(6 182 212 / 0.14), transparent 48%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgb(30 41 59 / 0.72);
  border-radius: 28px;
  background: rgb(15 23 42);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  min-height: 560px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hero-image {
  position: relative;
  height: 100%;
  min-height: 560px;
  overflow: hidden;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 42%, rgb(15 23 42 / 0.96)), linear-gradient(0deg, rgb(2 6 23 / 0.45), transparent 55%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgb(15 23 42), rgb(8 51 68));
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 52px 52px 52px 10px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin-bottom: 18px;
  border: 1px solid rgb(34 211 238 / 0.25);
  border-radius: 999px;
  padding: 0 14px;
  background: rgb(34 211 238 / 0.08);
  color: rgb(34 211 238);
  font-size: 14px;
  font-weight: 750;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgb(34 211 238);
  box-shadow: 0 0 18px rgb(34 211 238 / 0.75);
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  background: linear-gradient(90deg, rgb(248 250 252), rgb(34 211 238) 55%, rgb(59 130 246));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h2 + p,
.hero-copy p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgb(var(--color-text-secondary));
  font-size: 18px;
  line-height: 1.75;
}

.hero-tags,
.detail-tags,
.category-chips,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.detail-tags span,
.category-chips a,
.filter-row button,
.category-pill {
  border: 1px solid rgb(34 211 238 / 0.22);
  border-radius: 999px;
  background: rgb(34 211 238 / 0.08);
  color: rgb(103 232 249);
  font-size: 13px;
  font-weight: 750;
}

.hero-tags span,
.detail-tags span,
.category-chips a {
  padding: 7px 12px;
}

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

.hero-dots {
  position: absolute;
  right: 30px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgb(148 163 184 / 0.38);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 54px;
  background: rgb(34 211 238);
}

.glass-effect,
.hero-panel {
  border: 1px solid rgb(30 41 59 / 0.78);
  background: rgb(15 23 42 / 0.78);
  backdrop-filter: blur(16px);
}

.hero-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.3);
}

.hero-panel h2,
.section-heading h2,
.category-overview h2,
.ranking-main h2,
.ranking-side h2,
.detail-article h2,
.detail-side h2,
.footer-column h2 {
  margin: 0;
  color: rgb(248 250 252);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.18;
}

.hero-panel p,
.section-heading p,
.category-overview p,
.footer-brand p,
.page-hero p,
.detail-copy p,
.detail-article p {
  color: rgb(var(--color-text-secondary));
  line-height: 1.75;
}

.hero-search,
.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.hero-search input,
.search-box input {
  min-height: 46px;
  border: 1px solid rgb(30 41 59);
  border-radius: 14px;
  outline: 0;
  background: rgb(2 6 23 / 0.72);
  color: rgb(248 250 252);
  padding: 0 15px;
}

.hero-search input:focus,
.search-box input:focus {
  border-color: rgb(8 145 178);
  box-shadow: 0 0 0 3px rgb(6 182 212 / 0.14);
}

.hero-search button,
.search-box button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgb(8 145 178);
  color: white;
  font-weight: 800;
  padding: 0 18px;
}

.hero-rail,
.mini-grid,
.ranking-list,
.side-links,
.footer-links {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgb(2 6 23 / 0.58);
  transition: background 0.25s ease, transform 0.25s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  background: rgb(30 41 59 / 0.68);
}

.mini-card img {
  width: 82px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, rgb(15 23 42), rgb(8 51 68));
}

.mini-card strong,
.ranking-item strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: rgb(248 250 252);
}

.mini-card small,
.ranking-item small {
  color: rgb(var(--color-text-muted));
  font-size: 12px;
}

.content-section {
  padding: 64px 0;
}

.bg-deep {
  background: rgb(2 6 23);
}

.bg-gradient-soft {
  background: linear-gradient(180deg, rgb(2 6 23), rgb(15 23 42), rgb(2 6 23));
}

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

.section-kicker {
  display: inline-block;
  width: 5px;
  height: 34px;
  margin-right: 12px;
  border-radius: 999px;
  vertical-align: middle;
  background: linear-gradient(180deg, rgb(34 211 238), rgb(59 130 246));
}

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

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

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

.card {
  overflow: hidden;
  border: 1px solid rgb(30 41 59);
  border-radius: 22px;
  background: rgb(15 23 42);
  box-shadow: 0 18px 54px rgb(0 0 0 / 0.22);
}

.movie-card {
  display: grid;
  color: inherit;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgb(8 145 178 / 0.75);
  box-shadow: 0 24px 70px rgb(8 145 178 / 0.15);
}

.thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgb(15 23 42), rgb(8 51 68));
}

.video-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .video-card-thumb {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(2 6 23 / 0.72), transparent 62%);
  opacity: 0.78;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-overlay {
  opacity: 0.9;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 99px;
  background: rgb(8 145 178 / 0.92);
  color: white;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: rgb(2 6 23 / 0.82);
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.movie-card-body {
  display: grid;
  gap: 11px;
  padding: 18px;
}

.category-pill {
  justify-self: start;
  padding: 6px 10px;
}

.movie-card strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 52px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: rgb(248 250 252);
  font-size: 19px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.movie-card:hover strong {
  color: rgb(34 211 238);
}

.line-clamp {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: rgb(var(--color-text-secondary));
  font-size: 14px;
  line-height: 1.7;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgb(var(--color-text-muted));
  font-size: 13px;
}

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

.category-card {
  display: grid;
  gap: 12px;
  min-height: 188px;
  border: 1px solid rgb(30 41 59);
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgb(6 182 212 / 0.18), transparent 42%),
    rgb(15 23 42);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgb(34 211 238 / 0.55);
}

.category-card span {
  color: rgb(34 211 238);
  font-weight: 850;
  font-size: 21px;
}

.category-card strong {
  color: rgb(var(--color-text-secondary));
  font-size: 15px;
  line-height: 1.65;
}

.category-card em {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-style: normal;
}

.category-card em a {
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(2 6 23 / 0.62);
  color: rgb(var(--color-text-muted));
  padding: 6px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 46px 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgb(30 41 59);
  border-radius: 18px;
  padding: 12px;
  background: rgb(15 23 42);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  border-color: rgb(34 211 238 / 0.5);
}

.rank-number {
  color: rgb(34 211 238);
  font-size: 22px;
  font-weight: 900;
}

.ranking-item img {
  width: 92px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, rgb(15 23 42), rgb(8 51 68));
}

.rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.inner-page .page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 58px;
  background:
    radial-gradient(circle at 18% 20%, rgb(6 182 212 / 0.16), transparent 36%),
    linear-gradient(180deg, rgb(15 23 42), rgb(2 6 23));
}

.page-hero p {
  max-width: 850px;
  margin: 18px 0 0;
  font-size: 18px;
}

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

.breadcrumb a {
  color: rgb(103 232 249);
}

.category-chips {
  margin-top: 22px;
}

.category-chips a:hover {
  background: rgb(34 211 238 / 0.16);
}

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

.category-overview {
  padding: 24px;
}

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

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

.ranking-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.ranking-main,
.ranking-side {
  padding: 24px;
}

.ranking-main h2,
.ranking-side h2 {
  margin-bottom: 18px;
}

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

.side-links a,
.footer-links a {
  color: rgb(var(--color-text-secondary));
  transition: color 0.25s ease;
}

.side-links a:hover,
.footer-links a:hover {
  color: rgb(34 211 238);
}

.search-box {
  max-width: 760px;
  margin-top: 26px;
}

.filter-row {
  margin-top: 18px;
}

.filter-row button {
  padding: 8px 12px;
}

.filter-row button.is-active,
.filter-row button:hover {
  background: rgb(8 145 178);
  color: white;
}

.movie-card.is-hidden {
  display: none;
}

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

.detail-copy p {
  max-width: 800px;
  margin: 20px 0 0;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.detail-meta span {
  border-radius: 14px;
  background: rgb(30 41 59 / 0.72);
  color: rgb(var(--color-text-secondary));
  padding: 10px 14px;
  font-weight: 700;
}

.detail-poster {
  padding: 12px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, rgb(15 23 42), rgb(8 51 68));
}

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

.movie-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgb(0 0 0);
}

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

.player-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  background: linear-gradient(0deg, rgb(2 6 23 / 0.82), rgb(2 6 23 / 0.2));
  color: white;
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.movie-player.is-playing .player-shade {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-start {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 99px;
  background: rgb(8 145 178 / 0.94);
  box-shadow: 0 18px 40px rgb(6 182 212 / 0.35);
  font-size: 30px;
}

.player-shade strong {
  width: min(90%, 720px);
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.25;
}

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

.detail-article,
.detail-side {
  padding: 26px;
}

.detail-article h2 + p {
  margin-top: 12px;
}

.detail-article p + h2 {
  margin-top: 28px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px 16px;
  margin: 18px 0 24px;
}

.detail-side dt {
  color: rgb(var(--color-text-muted));
}

.detail-side dd {
  margin: 0;
  color: rgb(248 250 252);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid rgb(30 41 59);
  background: rgb(2 6 23);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 52px 0 32px;
}

.footer-brand p {
  max-width: 460px;
}

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

.footer-column h2 {
  margin-bottom: 16px;
  font-size: 18px;
}

.footer-bottom {
  border-top: 1px solid rgb(30 41 59 / 0.65);
  padding: 20px;
  color: rgb(var(--color-text-muted));
  text-align: center;
}

@media (max-width: 1120px) {
  .hero-grid,
  .detail-grid,
  .ranking-page-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: 2;
  }

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .site-main {
    padding-top: 68px;
  }

  .hero-section {
    min-height: auto;
    padding: 34px 0;
  }

  .hero-stage,
  .hero-slide,
  .hero-image {
    min-height: auto;
  }

  .hero-stage {
    border-radius: 22px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 280px;
  }

  .hero-image::after {
    background: linear-gradient(0deg, rgb(15 23 42), transparent 78%);
  }

  .hero-copy {
    padding: 26px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1,
  .detail-copy h1 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .hero-dots {
    right: 22px;
    bottom: 18px;
  }

  .compact-grid,
  .featured-grid,
  .category-grid,
  .ranking-strip,
  .mini-grid,
  .ranking-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-section {
    padding: 44px 0;
  }

  .inner-page .page-hero,
  .detail-hero {
    padding: 46px 0 38px;
  }

  .search-box,
  .hero-search {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 42px 84px minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .container-custom {
    width: min(100% - 22px, 1280px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-panel,
  .category-overview,
  .ranking-main,
  .ranking-side,
  .detail-article,
  .detail-side {
    padding: 18px;
  }

  .movie-card-body {
    padding: 16px;
  }

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