:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.88);
  --panel-strong: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #10b981;
  --orange: #f59e0b;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.48);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.14), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.18), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
}

.brand-text {
  font-size: 20px;
}

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

.nav-link,
.dropdown-button {
  padding: 10px 14px;
  border-radius: 999px;
  color: #cbd5e1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-button:hover {
  color: white;
  background: rgba(34, 211, 238, 0.12);
}

.nav-dropdown {
  position: relative;
}

.dropdown-button {
  border: 0;
  cursor: pointer;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #cbd5e1;
}

.dropdown-panel a:hover {
  color: white;
  background: rgba(34, 211, 238, 0.12);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(330px, 26vw);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
}

.header-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
}

.header-search input {
  padding: 9px 12px;
}

.header-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: white;
}

.mobile-nav {
  display: none;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #dbeafe;
}

.mobile-nav a:hover {
  background: rgba(34, 211, 238, 0.12);
}

.hero-slider {
  position: relative;
  min-height: 720px;
  isolation: isolate;
  overflow: hidden;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(180deg, transparent, #020617);
  pointer-events: none;
  z-index: 2;
}

.hero-track {
  position: relative;
  min-height: 720px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.55fr);
  align-items: center;
  gap: 48px;
  padding: 110px max(32px, calc((100vw - 1380px) / 2)) 130px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-content {
  max-width: 760px;
}

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

.hero-content h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.hero-content p,
.page-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.75;
}

.hero-meta,
.detail-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.detail-meta span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.62);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

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

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 36px rgba(34, 211, 238, 0.23);
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.62);
}

.text-button {
  color: var(--cyan);
}

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

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

.primary-button.small,
.ghost-button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.hero-poster {
  width: min(420px, 100%);
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
}

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

.hero-dots {
  position: absolute;
  left: max(32px, calc((100vw - 1380px) / 2));
  right: max(32px, calc((100vw - 1380px) / 2));
  bottom: 92px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.hero-dot {
  min-height: 54px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  cursor: pointer;
  overflow: hidden;
}

.hero-dot.active,
.hero-dot:hover {
  border-color: rgba(34, 211, 238, 0.55);
  color: white;
  background: rgba(34, 211, 238, 0.16);
}

.hero-dot span {
  display: block;
  padding: 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  display: flex;
  width: min(740px, calc(100% - 32px));
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.hero-search input {
  padding: 0 20px;
  min-height: 46px;
}

.section-wrap,
.page-main,
.detail-main {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
}

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

.section-wrap.no-top {
  padding-top: 22px;
}

.section-head,
.category-block-head,
.detail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2,
.category-block-head h2,
.detail-heading h1,
.text-section h2,
.side-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

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

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

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

.compact-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.movie-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  color: white;
  background: rgba(34, 211, 238, 0.82);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  color: #020617;
  background: linear-gradient(135deg, #fef08a, #f97316);
}

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

.movie-card-body h3 {
  margin: 0 0 10px;
  min-height: 2.8em;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-line {
  min-height: 4.8em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  margin-top: 0;
  gap: 6px;
}

.meta-row span {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 12px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #a5f3fc;
  font-size: 12px;
  background: rgba(34, 211, 238, 0.11);
}

.compact-card .movie-card-body {
  padding: 14px;
}

.compact-card .movie-card-body h3 {
  font-size: 16px;
}

.compact-card .card-line {
  -webkit-line-clamp: 2;
  min-height: 3.2em;
}

.side-rank,
.side-card,
.movie-detail-card,
.player-card,
.category-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.side-rank {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.compact-head {
  margin-bottom: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(34, 211, 238, 0.12);
  transform: translateX(3px);
}

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

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.mini-rank {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #020617;
  font-weight: 900;
  background: var(--cyan);
}

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

.category-tile,
.category-block {
  overflow: hidden;
}

.category-tile-main {
  display: block;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.08)),
    rgba(15, 23, 42, 0.82);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile-main:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.38);
}

.category-label {
  color: var(--cyan);
  font-weight: 800;
  font-size: 13px;
}

.category-tile h3,
.category-tile p {
  margin: 0;
}

.category-tile h3 {
  margin-top: 14px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.category-tile p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 12px 4px 0;
}

.category-samples a {
  overflow: hidden;
  color: #cbd5e1;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-samples a:hover {
  color: var(--cyan);
}

.page-main {
  padding-bottom: 48px;
}

.page-hero {
  margin: 42px 0 24px;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.18), transparent 32rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.86));
  box-shadow: var(--shadow);
}

.small-hero h1,
.category-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.category-block-list {
  display: grid;
  gap: 28px;
  padding-bottom: 44px;
}

.category-block {
  padding: 24px;
}

.category-block-head p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
}

.filter-panel.wide-filter {
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
}

.filter-panel input,
.filter-panel select {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  color: white;
  background: rgba(2, 6, 23, 0.54);
}

.filter-panel select option {
  color: #0f172a;
}

.ranking-featured {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 34px;
}

.ranking-table {
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(220px, auto) 76px;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.1);
  transform: translateX(4px);
}

.ranking-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #020617;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.ranking-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-meta {
  color: var(--muted);
  font-size: 14px;
}

.ranking-go {
  color: var(--cyan);
  font-weight: 800;
  text-align: right;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 26px 0 18px;
  color: var(--muted);
}

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

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

.detail-content {
  min-width: 0;
}

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

.video-shell {
  position: relative;
  background: #000;
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.96), rgba(59, 130, 246, 0.96));
  box-shadow: 0 18px 46px rgba(34, 211, 238, 0.28);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.video-shell.is-playing .video-play-button {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0f172a;
  background: white;
}

.movie-detail-card {
  padding: 28px;
}

.detail-heading {
  align-items: start;
}

.detail-meta {
  margin-top: 18px;
}

.detail-one-line {
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.text-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.text-section h2 {
  font-size: 24px;
}

.text-section p {
  margin: 14px 0 0;
  color: #cbd5e1;
  line-height: 1.9;
  text-align: justify;
}

.detail-related-wrap {
  width: 100%;
  padding-bottom: 0;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.side-card {
  padding: 20px;
}

.side-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 18px;
}

.side-card h2 {
  font-size: 22px;
}

.side-card p {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.68);
}

.footer-inner {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer-brand {
  color: white;
  font-weight: 900;
}

.footer-links {
  display: flex;
  gap: 16px;
}

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

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

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

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

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

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

  .side-rank,
  .detail-side {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: block;
  }

  .hero-slider,
  .hero-track {
    min-height: 780px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 96px 20px 190px;
  }

  .hero-poster {
    justify-self: start;
    width: min(230px, 60vw);
    border-radius: 24px;
    transform: none;
  }

  .hero-dots {
    left: 16px;
    right: 16px;
    bottom: 94px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-search {
    bottom: 18px;
  }

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

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

  .page-hero {
    padding: 32px;
  }

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

  .ranking-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .ranking-meta,
  .ranking-go {
    grid-column: 2;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .section-wrap,
  .page-main,
  .detail-main,
  .footer-inner {
    width: min(100% - 22px, 1380px);
  }

  .brand-text {
    font-size: 17px;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-actions,
  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .text-button {
    width: 100%;
  }

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

  .hero-dot:nth-child(n + 4) {
    display: none;
  }

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

  .movie-grid,
  .compact-grid,
  .ranking-featured,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-detail-card,
  .page-hero,
  .category-block {
    padding: 22px;
    border-radius: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
