* {
  box-sizing: border-box;
}

:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-900: #0c4a6e;
  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-400: #94a3b8;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;
  --accent-400: #fbbf24;
  --accent-500: #f59e0b;
  --accent-600: #d97706;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.15);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--secondary-50);
  color: var(--secondary-900);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-sm);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--secondary-900);
  white-space: nowrap;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  color: var(--white);
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.28);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.04em;
}

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

.nav-link {
  font-weight: 600;
  color: var(--secondary-700);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 310px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--secondary-300);
  border-radius: 12px;
  background: var(--white);
  color: var(--secondary-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
  padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.header-search button,
.mobile-search button,
.hero-search button,
.btn-primary,
.hero-play {
  border: 0;
  border-radius: 12px;
  background: var(--primary-600);
  color: var(--white);
  font-weight: 700;
  padding: 10px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.btn-primary:hover,
.hero-play:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--secondary-100);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--secondary-700);
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--secondary-200);
  background: rgba(255, 255, 255, 0.98);
}

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

.mobile-link {
  display: block;
  padding: 12px 4px;
  color: var(--secondary-700);
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--primary-600);
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.card {
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(125, 211, 252, 0.75);
}

.hero-carousel {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--secondary-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroImage 8s ease-in-out both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.32)), linear-gradient(0deg, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
  animation: slideUp 0.6s ease both;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.hero-tags span:first-child {
  background: var(--primary-600);
  color: var(--white);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.hero-play {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
}

.hero-rating {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.hero-rating strong {
  color: var(--accent-400);
  font-size: 24px;
  margin-left: 6px;
}

.hero-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 28px;
}

.hero-search input {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.96);
}

.hero-search button {
  padding: 14px 22px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(15, 23, 42, 0.7);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  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.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--white);
}

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

.soft-bg,
.editor-section {
  background: linear-gradient(135deg, var(--primary-50), #fff7ed);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--primary-700);
  font-weight: 800;
}

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

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

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

.movie-rail .poster-card {
  width: 200px;
  flex: 0 0 200px;
}

.rail-wrap {
  position: relative;
}

.rail-button {
  position: absolute;
  z-index: 2;
  top: 42%;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--secondary-700);
  font-size: 30px;
  box-shadow: var(--shadow-md);
}

.rail-prev {
  left: -8px;
}

.rail-next {
  right: -8px;
}

.movie-card {
  color: inherit;
}

.poster-card {
  display: block;
  overflow: hidden;
  height: 100%;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.poster-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(125, 211, 252, 0.78);
}

.poster-wrap,
.large-poster,
.horizontal-poster,
.category-cover-row {
  position: relative;
  display: block;
  overflow: hidden;
}

.poster-wrap {
  aspect-ratio: 3 / 4;
  background: var(--secondary-200);
}

.poster-wrap img,
.large-poster img,
.horizontal-poster img,
.category-cover-row img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.poster-card:hover img,
.large-card:hover img,
.horizontal-card:hover img,
.category-cover-row:hover img {
  transform: scale(1.055);
}

.rating-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: var(--accent-400);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.45);
  color: var(--white);
  font-size: 42px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-card:hover .play-hover,
.large-card:hover .play-hover,
.horizontal-card:hover .play-hover {
  opacity: 1;
}

.card-body {
  display: block;
  padding: 14px;
}

.card-body strong,
.horizontal-info strong,
.large-info strong {
  display: -webkit-box;
  color: var(--secondary-900);
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body em,
.horizontal-info em,
.large-info em {
  display: -webkit-box;
  margin-top: 8px;
  color: var(--secondary-600);
  font-style: normal;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.tag-line {
  display: block;
  margin-top: 8px;
  color: var(--secondary-500);
  font-size: 12px;
}

.tag-line {
  display: inline-block;
  max-width: 100%;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary-700);
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.large-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.large-poster {
  height: 100%;
  min-height: 420px;
}

.large-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.1));
}

.large-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: var(--white);
}

.large-info strong {
  color: var(--white);
  font-size: 25px;
}

.large-info em,
.large-info span {
  color: rgba(255, 255, 255, 0.85);
}

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

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

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

.category-entry {
  padding: 22px;
}

.category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-head strong {
  font-size: 20px;
}

.category-head span {
  color: var(--primary-700);
  font-weight: 800;
}

.category-mini-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.category-mini-list a,
.category-overview-links a {
  color: var(--secondary-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.category-mini-list a:hover,
.category-overview-links a:hover {
  color: var(--primary-600);
}

.page-hero {
  background: linear-gradient(135deg, var(--secondary-900), var(--primary-900));
  color: var(--white);
}

.compact-hero {
  padding: 64px 0;
}

.compact-hero span {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.18);
  color: #bae6fd;
  font-weight: 800;
  padding: 6px 12px;
}

.compact-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.compact-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.breadcrumb a:hover {
  color: var(--white);
}

.category-overview-card {
  overflow: hidden;
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 170px;
  background: var(--secondary-200);
}

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

.category-overview-body h2 {
  margin: 0;
  font-size: 24px;
}

.category-overview-body p {
  color: var(--secondary-600);
}

.category-overview-links {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 220px;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-title {
  color: var(--secondary-700);
  font-weight: 850;
}

.filter-panel input,
.filter-panel select {
  padding: 12px 14px;
}

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

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

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

.horizontal-card {
  display: grid;
  grid-template-columns: auto 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--secondary-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.horizontal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.76);
  box-shadow: var(--shadow-md);
}

.rank-num {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 900;
}

.horizontal-poster {
  width: 150px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: var(--secondary-200);
}

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

.horizontal-info strong {
  -webkit-line-clamp: 1;
}

.horizontal-info span {
  display: block;
  margin-top: 8px;
  color: var(--secondary-500);
  font-size: 13px;
}

.horizontal-score {
  color: var(--accent-600);
  font-weight: 900;
  font-size: 20px;
}

.detail-hero {
  background: radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.25), transparent 30%), linear-gradient(135deg, #020617, #0f172a 55%, #0c4a6e);
  color: var(--white);
  padding: 34px 0 44px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: stretch;
}

.detail-player-card {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow-lg);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25), rgba(2, 6, 23, 0.48));
  color: var(--white);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: var(--primary-600);
  font-size: 38px;
  box-shadow: 0 18px 46px rgba(2, 132, 199, 0.35);
}

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

.detail-cover {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.detail-cover img {
  aspect-ratio: 3 / 4;
}

.full-btn {
  display: block;
  margin: 16px;
  text-align: center;
}

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

.detail-info,
.side-recommend {
  padding: 28px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.detail-kicker {
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 850;
  padding: 6px 12px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-score {
  display: grid;
  place-items: center;
  min-width: 88px;
  border-radius: 18px;
  background: #fff7ed;
  color: var(--accent-600);
  padding: 12px;
}

.detail-score strong {
  font-size: 30px;
  line-height: 1;
}

.detail-score span {
  color: var(--secondary-500);
  font-size: 12px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  border-radius: 999px;
  background: var(--secondary-100);
  color: var(--secondary-700);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
}

.one-line-box {
  margin: 18px 0 24px;
  border-radius: 16px;
  background: var(--primary-50);
  color: var(--primary-900);
  font-weight: 750;
  padding: 18px;
}

.text-block {
  border-top: 1px solid var(--secondary-200);
  padding-top: 22px;
  margin-top: 22px;
}

.text-block h2,
.tag-block h2,
.side-recommend h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.text-block p {
  margin: 0;
  color: var(--secondary-700);
  white-space: pre-line;
}

.tag-block {
  border-top: 1px solid var(--secondary-200);
  margin-top: 22px;
  padding-top: 22px;
}

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

.tag-block span {
  border-radius: 999px;
  background: var(--secondary-100);
  color: var(--secondary-700);
  font-weight: 700;
  padding: 7px 12px;
}

.side-recommend {
  position: sticky;
  top: 96px;
}

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

.side-list .horizontal-card {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 8px;
}

.side-list .horizontal-poster {
  width: 96px;
}

.side-list .horizontal-score,
.side-list .rank-num {
  display: none;
}

.site-footer {
  margin-top: 52px;
  background: var(--secondary-900);
  color: var(--secondary-300);
}

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

.footer-brand {
  color: var(--white);
  margin-bottom: 14px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer p {
  margin: 10px 0 0;
  color: var(--secondary-400);
}

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

.site-footer a:hover {
  color: var(--primary-500);
}

.footer-note {
  color: var(--secondary-500);
  font-size: 13px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImage {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.08);
  }
}

@media (max-width: 1180px) {
  .movie-grid,
  .editor-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .header-search {
    min-width: 240px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 72px;
  }

  .hero-search {
    flex-direction: column;
  }

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

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

  .detail-cover {
    max-width: 320px;
  }

  .side-recommend {
    position: static;
  }

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

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

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

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

  .hero-carousel {
    height: 620px;
  }

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

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

  .hero-arrow {
    display: none;
  }

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

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

  .movie-grid,
  .editor-cards,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-rail .poster-card {
    width: 168px;
    flex-basis: 168px;
  }

  .card-body {
    padding: 12px;
  }

  .category-cover-row {
    height: 130px;
  }

  .horizontal-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-num,
  .horizontal-score {
    display: none;
  }

  .horizontal-poster {
    width: 96px;
  }

  .horizontal-info em {
    -webkit-line-clamp: 1;
  }

  .detail-info,
  .side-recommend {
    padding: 20px;
  }

  .detail-title-row {
    flex-direction: column;
  }

  .player-start span {
    width: 70px;
    height: 70px;
  }
}
