:root {
  --rose: #f43f5e;
  --rose-deep: #e11d48;
  --orange: #fb923c;
  --amber: #f59e0b;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: rgba(17, 24, 39, 0.08);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 48%, #fdf2f8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(244, 63, 94, 0.09);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.24);
}

.logo-text strong {
  display: block;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(90deg, var(--rose-deep), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-text em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, #fb7185, #fb923c);
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.2);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  color: var(--rose-deep);
}

.mobile-nav {
  display: none;
  padding: 10px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  background: #fff;
  font-weight: 650;
}

.hero-carousel {
  position: relative;
  height: min(72vh, 640px);
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose), var(--orange) 55%, var(--amber));
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(251, 146, 60, 0.34), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.45) 48%, rgba(2, 6, 23, 0.18)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.66), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 0 112px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.7;
}

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

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 850;
  transition: 0.25s ease;
}

.primary-btn {
  color: var(--rose-deep);
  background: #fff;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: #fff7ed;
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

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

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
  transition: 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 22px;
  transform: translateY(-50%);
}

.hero-next {
  right: 22px;
  transform: translateY(-50%);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.hero-category-bar {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 68px;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-search,
.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(430px, 100%);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.12);
}

.hero-search input,
.filter-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
}

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.hero-cats a,
.chip-row button {
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 750;
}

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

.content-band {
  margin: 54px 0 18px;
  padding: 56px 0;
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.75), rgba(239, 246, 255, 0.92));
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.heading-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #fb7185, #fb923c);
  box-shadow: 0 14px 26px rgba(244, 63, 94, 0.18);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

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

.poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(251, 146, 60, 0.14));
}

.poster-cinema {
  aspect-ratio: 16 / 10;
}

.poster-wide {
  width: 190px;
  min-height: 150px;
  aspect-ratio: auto;
  flex: 0 0 190px;
}

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

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

.poster-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.6), transparent 56%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.movie-card:hover .poster-fade {
  opacity: 1;
}

.type-pill,
.genre-pill,
.rank-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.type-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  font-size: 12px;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 22px rgba(244, 63, 94, 0.22);
}

.genre-pill {
  width: max-content;
  padding: 6px 10px;
  color: var(--rose-deep);
  background: #ffe4e6;
  font-size: 12px;
}

.genre-pill.bright {
  color: #fff;
  background: linear-gradient(90deg, #fb7185, #fb923c);
}

.movie-info {
  padding: 17px;
}

.movie-info.compact {
  padding: 13px 16px 15px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.meta-row {
  justify-content: space-between;
  color: #6b7280;
  font-size: 13px;
  font-weight: 650;
}

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

.movie-card-horizontal .movie-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.movie-card-horizontal .movie-info h3 {
  min-height: auto;
}

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

.category-tile,
.category-panel {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.18));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
}

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

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.category-panel a {
  display: block;
}

.category-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

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

.category-panel-body h2 {
  margin: 0 0 9px;
  font-size: 24px;
  font-weight: 900;
}

.category-panel-body p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.category-panel-body span {
  color: var(--rose-deep);
  font-weight: 850;
}

.sub-hero {
  padding: 78px 0 66px;
  color: #fff;
}

.sub-hero span {
  display: inline-flex;
  margin-bottom: 15px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 850;
}

.sub-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.75;
}

.rose-hero {
  background: linear-gradient(135deg, #f43f5e, #fb923c);
}

.orange-hero {
  background: linear-gradient(135deg, #fb7185, #f97316 60%, #f59e0b);
}

.cyan-hero {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 180px)) 110px;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(244, 63, 94, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.filter-panel select,
.clear-filter {
  min-height: 48px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: #fff;
  padding: 0 14px;
  outline: 0;
  color: #374151;
}

.clear-filter {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  border: 0;
  font-weight: 850;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.chip-row button {
  color: var(--rose-deep);
  background: #fff;
  border: 1px solid rgba(244, 63, 94, 0.14);
}

.chip-row button.active {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

.empty-state {
  display: none;
  margin: 30px 0;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.empty-state.show {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #fff;
  background: #020617;
}

.detail-bg,
.detail-bg-shade {
  position: absolute;
  inset: 0;
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.08);
  opacity: 0.55;
}

.detail-bg-shade {
  background:
    radial-gradient(circle at 78% 20%, rgba(251, 146, 60, 0.3), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.56)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.15));
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: end;
  min-height: 560px;
  padding: 70px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.detail-headline h1 {
  max-width: 840px;
  margin: 16px 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-headline p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.75;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 54px 0 8px;
}

.player-card,
.info-card,
.side-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

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

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

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

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
  cursor: pointer;
}

.player-layer.is-hidden {
  display: none;
}

.play-mark {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
  font-size: 31px;
  text-indent: 5px;
}

.player-layer strong {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 18px;
}

.player-card h2,
.player-card p {
  margin-left: 24px;
  margin-right: 24px;
}

.player-card h2 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 900;
}

.player-card p {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.7;
}

.info-card {
  padding: 26px;
  margin-bottom: 24px;
}

.info-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
}

.info-card p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--rose-deep);
  background: #ffe4e6;
  font-weight: 750;
  font-size: 14px;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 90px;
}

.side-card {
  padding: 22px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-list .movie-card-horizontal {
  box-shadow: none;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.side-list .poster-wide {
  width: 130px;
  min-height: 100px;
  flex-basis: 130px;
}

.side-list .movie-info p,
.side-list .meta-row,
.side-list .genre-pill {
  display: none;
}

.site-footer {
  margin-top: 76px;
  color: #d1d5db;
  background: linear-gradient(90deg, #111827, #1f2937);
}

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

.footer-logo {
  margin-bottom: 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fb7185;
  font-size: 17px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  line-height: 1.75;
  color: #9ca3af;
}

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

.site-footer a {
  color: #d1d5db;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  text-align: center;
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-category-bar,
  .filter-panel,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-category-bar {
    display: grid;
  }

  .hero-cats {
    justify-content: flex-start;
  }

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 780px) {
  .hero-carousel {
    min-height: 610px;
  }

  .hero-content {
    padding-bottom: 190px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .large-grid,
  .all-grid,
  .horizontal-grid,
  .ranking-top,
  .category-grid,
  .category-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .movie-card-horizontal .movie-link {
    display: block;
  }

  .poster-wide {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .detail-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }

  .detail-poster {
    width: min(260px, 78vw);
  }

  .detail-headline h1 {
    font-size: 40px;
  }
}

@media (max-width: 520px) {
  .nav-wrap {
    height: 62px;
  }

  .logo-text strong {
    font-size: 18px;
  }

  .logo-text em {
    display: none;
  }

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

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

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

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

  .movie-grid,
  .large-grid,
  .all-grid,
  .horizontal-grid,
  .ranking-top,
  .category-grid,
  .category-panel-grid {
    grid-template-columns: 1fr;
  }

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

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

  .filter-panel {
    padding: 12px;
  }
}
