:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(231, 229, 228, 0.8);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  color: var(--slate-900);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.32);
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  letter-spacing: -0.02em;
}

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

.nav-link,
.mobile-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--slate-600);
  font-weight: 650;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--amber-700);
  background: var(--amber-50);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--slate-700);
}

.mobile-menu {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 16px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 560px;
  max-height: 820px;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.24));
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

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

.hero-content h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.hero-content p {
  max-width: 760px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  justify-content: center;
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.primary-button,
.ghost-button,
.section-more,
.load-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-button {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.36);
}

.primary-button:hover {
  background: var(--amber-700);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 46px rgba(217, 119, 6, 0.45);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

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

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

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

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

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

.main-content,
.page-section {
  background: var(--white);
}

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

.page-section.soft {
  background: linear-gradient(180deg, var(--stone-50), var(--white));
}

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

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

.section-head h2,
.page-title h1,
.detail-copy h2,
.player-section h2 {
  margin: 0;
  color: var(--slate-800);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
}

.section-head p,
.page-title p {
  margin: 10px 0 0;
  color: var(--slate-500);
}

.section-more,
.load-link {
  color: var(--amber-700);
  background: var(--amber-50);
}

.section-more:hover,
.load-link:hover {
  color: var(--white);
  background: var(--amber-600);
  transform: translateY(-2px);
}

.movie-row-wrap {
  position: relative;
}

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 330px);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 2px 20px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

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

.row-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}

.row-controls button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  color: var(--slate-700);
  background: var(--white);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.row-controls button:hover {
  color: var(--amber-700);
  background: var(--amber-50);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(231, 229, 228, 0.72);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: var(--shadow-lg);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-900);
}

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

.movie-card:hover .card-cover img,
.horizontal-card:hover .horizontal-cover img,
.related-card:hover .related-cover img {
  transform: scale(1.08);
}

.play-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0);
  font-size: 46px;
  opacity: 0;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.movie-card:hover .play-hover,
.horizontal-card:hover .play-hover,
.related-card:hover .play-hover {
  background: rgba(0, 0, 0, 0.32);
  opacity: 1;
}

.year-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.year-pill {
  right: 12px;
  padding: 5px 9px;
}

.rank-badge {
  left: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--slate-800);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.25s ease;
}

.card-title:hover {
  color: var(--amber-700);
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 12px;
}

.card-meta span {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--stone-100);
}

.card-tags {
  margin-top: 12px;
}

.card-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-50);
  font-size: 12px;
  font-weight: 700;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.horizontal-cover {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  background: var(--slate-900);
}

.horizontal-body {
  padding: 18px 18px 18px 0;
}

.horizontal-top {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--slate-800);
  font-size: 19px;
  font-weight: 800;
}

.list-rank {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: var(--white);
  background: var(--amber-600);
}

.horizontal-body p {
  display: -webkit-box;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--slate-600);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border: 1px solid rgba(231, 229, 228, 0.8);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 38%),
    linear-gradient(145deg, var(--white), var(--stone-50));
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.26);
  box-shadow: var(--shadow-lg);
}

.category-card span {
  color: var(--slate-900);
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 10px 0 0;
  color: var(--slate-600);
  font-size: 14px;
}

.page-hero {
  padding: 72px 0 38px;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.18), transparent 26%),
    linear-gradient(180deg, var(--stone-50), var(--white));
}

.page-title h1 {
  max-width: 860px;
  font-size: clamp(34px, 5vw, 58px);
}

.page-title p {
  max-width: 780px;
  font-size: 18px;
}

.search-panel {
  margin: 28px 0 0;
  padding: 18px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.search-input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-input:focus {
  border-color: rgba(217, 119, 6, 0.5);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--slate-600);
  background: var(--stone-100);
  cursor: pointer;
  font-weight: 800;
  transition: background 0.25s ease, color 0.25s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: var(--white);
  background: var(--amber-600);
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

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

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.08);
  transform: scale(1.05);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(15, 23, 42, 0.95));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 54px;
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: var(--slate-900);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

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

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

.detail-info .lead {
  max-width: 780px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

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

.player-section {
  padding: 58px 0 30px;
  background: var(--white);
}

.player-section h2 {
  margin-bottom: 20px;
  font-size: clamp(26px, 3.2vw, 38px);
}

.movie-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--black);
  box-shadow: var(--shadow-lg);
}

.movie-player video {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--black);
  object-fit: contain;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
  transition: opacity 0.25s ease;
  pointer-events: auto;
}

.movie-player.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-trigger {
  width: min(220px, 62vw);
  height: 64px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(217, 119, 6, 0.42);
  transition: transform 0.25s ease, background 0.25s ease;
}

.player-trigger:hover {
  background: var(--amber-700);
  transform: scale(1.04);
}

.detail-content {
  padding: 34px 0 64px;
}

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

.detail-copy {
  display: grid;
  gap: 24px;
}

.copy-card {
  padding: 26px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.copy-card h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.copy-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 17px;
}

.sidebar-card {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--stone-50), var(--white));
  box-shadow: var(--shadow-sm);
}

.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: center;
}

.related-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: var(--slate-900);
}

.related-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-800);
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-card span {
  display: block;
  margin-top: 6px;
  color: var(--slate-500);
  font-size: 13px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--slate-900);
}

.footer-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: var(--white);
  font-size: 20px;
}

.footer-inner p {
  max-width: 620px;
  margin: 10px 0 0;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

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

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

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

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

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

  .mobile-menu.open {
    display: grid;
    gap: 6px;
  }

  .brand-text {
    max-width: 210px;
  }

  .hero-carousel {
    min-height: 620px;
    height: 78vh;
  }

  .hero-content {
    align-items: flex-start;
    text-align: left;
  }

  .hero-tags,
  .hero-actions {
    justify-content: flex-start;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .horizontal-card {
    grid-template-columns: 160px 1fr;
  }

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

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 62px;
    padding: 0 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-text {
    max-width: 168px;
    font-size: 15px;
  }

  .container,
  .detail-hero-inner,
  .footer-inner {
    width: min(100% - 28px, 1280px);
  }

  .hero-content {
    padding: 0 24px;
  }

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

  .hero-content p,
  .detail-info .lead {
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
  }

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

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

  .section-head {
    display: grid;
  }

  .movie-row {
    grid-auto-columns: minmax(236px, 82vw);
  }

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

  .horizontal-card {
    grid-template-columns: 1fr;
  }

  .horizontal-cover {
    min-height: 190px;
  }

  .horizontal-body {
    padding: 0 16px 16px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-inner {
    padding: 48px 0 42px;
    gap: 24px;
  }

  .detail-info h1 {
    font-size: 36px;
  }

  .copy-card {
    padding: 20px;
  }

  .footer-inner {
    display: grid;
  }
}
