:root {
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --cyan-500: #06b6d4;
  --red-600: #dc2626;
  --orange-500: #f97316;
  --green-600: #059669;
  --teal-600: #0d9488;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 25px 60px rgba(15, 23, 42, 0.22);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-900);
  background: #f8fafc;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: white;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-700));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand {
  font-size: 22px;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 650;
  margin-left: 8px;
}

.desktop-nav a,
.nav-drop-button {
  color: white;
  opacity: 0.96;
  transition: 0.2s ease;
}

.desktop-nav a:hover,
.nav-drop-button:hover,
.desktop-nav .is-active {
  color: #dbeafe;
  opacity: 1;
}

.nav-dropdown {
  position: relative;
}

.nav-drop-button {
  padding: 0;
  background: transparent;
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  min-width: 190px;
  padding: 10px 0;
  color: var(--gray-800);
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.18s ease;
}

.nav-dropdown:hover .nav-drop-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-drop-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--gray-700);
}

.nav-drop-menu a:hover {
  color: var(--blue-600);
  background: #eff6ff;
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 420px;
  margin-left: auto;
}

.header-search input,
.mobile-search input {
  width: 100%;
  color: white;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 11px 46px 11px 18px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  transition: 0.2s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: #dbeafe;
}

.header-search input:focus,
.mobile-search input:focus {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.header-search button {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  background: transparent;
  font-size: 21px;
}

.menu-toggle {
  display: none;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-700));
}

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

.mobile-panel nav {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.mobile-panel nav a {
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.mobile-search input {
  padding-right: 16px;
}

.mobile-search button {
  color: var(--blue-700);
  background: white;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: white;
  background: linear-gradient(180deg, var(--gray-900), var(--gray-800));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.46) 48%, rgba(0, 0, 0, 0.16));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 70px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--red-600);
  font-weight: 700;
  font-size: 14px;
}

.hero h1,
.hero h2 {
  max-width: 800px;
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 690px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 45px;
  padding: 0 22px;
  color: white;
  background: var(--blue-600);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.32);
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
}

.btn-light {
  color: var(--blue-700);
  background: white;
}

.btn-light:hover {
  color: var(--blue-700);
  background: #eff6ff;
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 48px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: white;
}

.section {
  padding: 56px 0;
}

.section-white {
  background: white;
}

.section-muted {
  background: var(--gray-100);
}

.section-hot {
  color: white;
  background: linear-gradient(90deg, var(--orange-500), var(--red-600));
}

.section-green {
  color: white;
  background: linear-gradient(135deg, var(--green-600), var(--teal-600));
}

.section-blue {
  color: white;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
}

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

.section-heading > div {
  min-width: 0;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 12px;
  color: var(--blue-600);
  background: #dbeafe;
}

.section-hot .section-icon,
.section-green .section-icon,
.section-blue .section-icon {
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 900;
}

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

.section-hot .section-heading p,
.section-green .section-heading p,
.section-blue .section-heading p {
  color: rgba(255, 255, 255, 0.86);
}

.scroller-wrap {
  position: relative;
}

.movie-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 2px 2px 18px;
  scrollbar-width: none;
}

.movie-scroller::-webkit-scrollbar {
  display: none;
}

.movie-scroller .movie-card {
  flex: 0 0 286px;
}

.scroll-buttons {
  display: flex;
  gap: 10px;
}

.scroll-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: 0.2s ease;
}

.scroll-button:hover {
  background: rgba(255, 255, 255, 0.32);
}

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

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

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

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

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

.movie-card,
.category-card,
.info-panel,
.detail-card,
.related-panel,
.filter-bar,
.search-empty {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.movie-card {
  overflow: hidden;
  transition: 0.22s ease;
}

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

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

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-800), var(--gray-700));
}

.card-thumb img,
.compact-thumb img,
.related-thumb img,
.detail-poster img,
.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .card-thumb img,
.compact-card:hover .compact-thumb img,
.related-item:hover .related-thumb img,
.category-card:hover .category-cover img {
  transform: scale(1.08);
}

.card-body {
  padding: 18px;
}

.card-meta,
.card-foot,
.detail-meta,
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-meta span,
.detail-pill,
.breadcrumbs a,
.breadcrumbs span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: var(--blue-600);
  background: #eff6ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.card-meta span:nth-child(2) {
  color: var(--gray-600);
  background: var(--gray-100);
}

.card-body h2,
.card-body h3 {
  margin: 12px 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.32;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h2,
.movie-card:hover h3,
.compact-card:hover h3,
.related-item:hover h3 {
  color: var(--blue-600);
}

.card-body p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  justify-content: space-between;
  margin-top: 15px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-list a {
  display: grid;
  grid-template-columns: 265px 1fr;
}

.card-list .list-thumb {
  aspect-ratio: auto;
  height: 100%;
  min-height: 190px;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 38px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--orange-500), var(--red-600));
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.35);
}

.compact-card {
  overflow: hidden;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: 0.22s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
}

.compact-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-800);
}

.compact-info {
  padding: 12px;
}

.compact-info h3 {
  margin: 0 0 5px;
  color: var(--gray-900);
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-info p {
  margin: 0;
  color: var(--gray-500);
  font-size: 12px;
}

.category-tabs,
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip,
.category-tabs a,
.category-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--gray-700);
  background: white;
  font-weight: 750;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.08);
  transition: 0.2s ease;
}

.category-tabs a:hover,
.category-tabs button:hover,
.category-tabs .is-active,
.chip:hover {
  color: white;
  background: var(--blue-600);
}

.page-hero {
  color: white;
  padding: 62px 0;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
}

.page-hero.dark {
  background: linear-gradient(90deg, var(--gray-800), var(--gray-950));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.12;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.category-card {
  overflow: hidden;
  transition: 0.22s ease;
}

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

.category-card a {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 170px;
}

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

.category-body {
  padding: 22px;
}

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

.category-body p {
  margin: 0 0 16px;
  color: var(--gray-600);
}

.category-body span {
  color: var(--blue-600);
  font-weight: 800;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px;
  margin-bottom: 28px;
}

.filter-left,
.filter-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-bar input,
.filter-bar select,
.search-box input {
  min-height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 14px;
  outline: 0;
  background: white;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-box input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.layout-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: white;
}

.layout-toggle button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--gray-600);
  background: transparent;
}

.layout-toggle button.is-active {
  color: white;
  background: var(--blue-600);
}

.card-grid.is-list {
  display: grid;
  grid-template-columns: 1fr;
}

.card-grid.is-list .movie-card a {
  display: grid;
  grid-template-columns: 265px 1fr;
}

.card-grid.is-list .card-thumb {
  aspect-ratio: auto;
  height: 100%;
  min-height: 190px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 24px;
}

.search-box input {
  width: 100%;
  font-size: 18px;
}

.search-box button {
  color: white;
  background: var(--blue-600);
  border-radius: 12px;
  padding: 0 26px;
  font-weight: 800;
}

.search-empty {
  display: none;
  padding: 70px 20px;
  text-align: center;
  color: var(--gray-600);
}

.search-empty.is-show {
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 30px;
  padding: 34px 0 56px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: black;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
  cursor: pointer;
}

.player-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.05));
  transition: opacity 0.2s ease;
}

.player-shell.is-playing .player-shade,
.player-shell.is-playing .big-play {
  opacity: 0;
  pointer-events: none;
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--blue-600);
  border-radius: 999px;
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.42);
  transform: translate(-50%, -50%);
  transition: 0.2s ease;
}

.big-play svg {
  width: 48px;
  height: 48px;
  margin-left: 4px;
  fill: currentColor;
  stroke: none;
}

.big-play:hover {
  background: var(--blue-700);
  transform: translate(-50%, -50%) scale(1.04);
}

.player-tools {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: 0.2s ease;
  pointer-events: none;
}

.player-shell:hover .player-tools {
  opacity: 1;
}

.player-tools button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  pointer-events: auto;
}

.player-tools button:hover {
  background: rgba(255, 255, 255, 0.32);
}

.detail-card {
  margin-top: 22px;
  padding: 26px;
}

.breadcrumbs {
  margin-bottom: 16px;
}

.detail-card h1 {
  margin: 14px 0 12px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 950;
}

.detail-intro {
  color: var(--gray-600);
  font-size: 18px;
  margin: 0 0 20px;
}

.detail-meta {
  margin: 18px 0 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gray-200);
}

.detail-section {
  margin-top: 26px;
}

.detail-section h2,
.detail-section h3,
.related-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.detail-section p {
  color: var(--gray-700);
  margin: 0;
  white-space: pre-line;
}

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

.tag-list span {
  padding: 6px 12px;
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

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

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

.related-item a {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 12px;
  align-items: center;
}

.related-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: var(--gray-800);
}

.related-item h3 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item p {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 18px;
  aspect-ratio: 16 / 10;
  background: var(--gray-800);
}

.cta-panel {
  padding: 60px 0;
  text-align: center;
}

.cta-panel h2 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
}

.cta-panel p {
  max-width: 780px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.site-footer {
  color: #d1d5db;
  background: var(--gray-900);
}

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

.footer-brand {
  margin-bottom: 16px;
  color: white;
  font-size: 20px;
}

.site-footer h2 {
  margin: 0 0 15px;
  color: white;
  font-size: 18px;
  font-weight: 850;
}

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

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

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

.footer-bottom {
  padding: 22px;
  text-align: center;
  color: #6b7280;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

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

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

  .header-search {
    max-width: none;
  }

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

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

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

  .related-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    height: 62px;
    gap: 12px;
  }

  .brand {
    font-size: 18px;
  }

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

  .header-search {
    display: none;
  }

  .hero,
  .hero-slide img {
    min-height: 500px;
  }

  .hero-content {
    padding: 48px 0 76px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 34px;
  }

  .section {
    padding: 42px 0;
  }

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

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card a,
  .card-list a,
  .card-grid.is-list .movie-card a {
    grid-template-columns: 1fr;
  }

  .card-list .list-thumb,
  .card-grid.is-list .card-thumb {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .filter-bar,
  .filter-left,
  .filter-right,
  .search-box {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-box button {
    min-height: 44px;
  }

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

  .big-play {
    width: 72px;
    height: 72px;
  }

  .big-play svg {
    width: 38px;
    height: 38px;
  }
}
