:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-50: #fdf2f8;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --purple-50: #faf5ff;
  --purple-500: #a855f7;
  --blue-50: #eff6ff;
  --cyan-50: #ecfeff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 8px 20px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 18px 40px rgba(17, 24, 39, 0.10);
  --shadow-xl: 0 28px 70px rgba(17, 24, 39, 0.18);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  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;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--white), var(--rose-50) 42%, var(--white));
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(253, 242, 248, 0.96));
  border-bottom: 1px solid var(--rose-100);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
  font-size: 14px;
  transition: transform 220ms ease;
}

.brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.05);
}

.brand-text,
.footer-logo span:last-child {
  font-size: 22px;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--rose-600);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-panel input {
  width: 260px;
  border: 1px solid rgba(244, 63, 94, 0.24);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-panel input:focus {
  border-color: rgba(244, 63, 94, 0.7);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14);
}

.header-search button,
.mobile-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--white);
  font-weight: 700;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.24);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--gray-700);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--rose-100);
  padding: 16px 20px 20px;
  background: rgba(255, 255, 255, 0.98);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  width: auto;
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-nav a:hover {
  background: var(--rose-50);
}

.hero-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(90deg, #fecdd3, #fbcfe8, #e9d5ff);
}

.hero-background {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.52;
  filter: saturate(1.08) blur(0.2px);
  transform: scale(1.04);
  transition: background-image 600ms ease, opacity 600ms ease;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.80), rgba(225, 29, 72, 0.48) 48%, rgba(17, 24, 39, 0.34));
}

.hero-inner {
  position: relative;
  max-width: 1240px;
  min-height: 600px;
  margin: 0 auto;
  padding: 68px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 42px;
}

.hero-slides {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 500ms ease, transform 500ms ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-copy {
  max-width: 650px;
}

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

.hero-copy .eyebrow,
.page-hero .eyebrow {
  color: #fecdd3;
}

.hero-copy h1,
.page-hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p {
  max-width: 780px;
  margin: 0;
  font-size: clamp(17px, 2.2vw, 22px);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.32);
}

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

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

.hero-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 220ms ease, background 220ms ease;
}

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

.hero-poster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hero-poster {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transform: translateZ(0);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.hero-poster-large {
  grid-column: span 2;
  min-height: 280px;
}

.hero-poster:hover,
.hero-poster.active {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 35px 85px rgba(17, 24, 39, 0.28);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 58%);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
}

.stats-strip {
  max-width: 1120px;
  margin: -46px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0 20px;
}

.stat-card {
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: var(--radius-xl);
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--rose-600);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--gray-500);
  font-weight: 700;
}

.section-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 20px;
}

.compact-wrap {
  padding-top: 56px;
  padding-bottom: 56px;
}

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

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading a,
.result-count {
  color: var(--rose-600);
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 231, 235, 0.72);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(244, 63, 94, 0.24);
}

.poster-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-50), var(--purple-50));
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 460ms ease;
}

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background: rgba(17, 24, 39, 0.38);
  opacity: 0;
  transition: opacity 220ms ease;
}

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

.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.20);
}

.score-badge {
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  font-size: 13px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 180ms ease;
}

.movie-card-link:hover h3 {
  color: var(--rose-600);
}

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

.movie-meta-line,
.movie-tags,
.detail-meta,
.filter-chips,
.detail-tags,
.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta-line span,
.movie-tags span,
.filter-chips button,
.detail-tags a,
.popular-tags a {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--gray-700);
  background: var(--rose-50);
  font-size: 12px;
  font-weight: 750;
}

.movie-tags span:first-child {
  color: var(--rose-600);
  background: var(--rose-100);
}

.soft-section {
  margin: 24px 0;
}

.soft-blue {
  background: linear-gradient(90deg, var(--blue-50), var(--cyan-50));
}

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

.mini-card,
.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--gray-100);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.mini-card:hover,
.category-tile:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-xl);
}

.mini-card img,
.category-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 420ms ease;
}

.mini-card:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.mini-card-shade,
.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 60%);
}

.mini-card-title,
.category-tile-content {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: var(--white);
  font-weight: 850;
  line-height: 1.35;
}

.mini-rank {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

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

.category-tile {
  min-height: 260px;
}

.category-tile-content {
  display: grid;
  gap: 4px;
}

.category-tile-content strong {
  font-size: 22px;
}

.category-tile-content small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: grid;
  align-items: center;
  padding: 70px 20px;
  color: var(--white);
  background: linear-gradient(120deg, rgba(225, 29, 72, 0.88), rgba(168, 85, 247, 0.76));
}

.page-hero > div {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

.category-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  transform: scale(1.04);
}

.category-hero::after,
.simple-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(225, 29, 72, 0.56));
}

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

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

.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(229, 231, 235, 0.78);
}

.filter-panel label {
  font-size: 18px;
  font-weight: 900;
}

.filter-panel input {
  width: 100%;
}

.filter-chips button {
  border: 0;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.filter-chips button:hover,
.filter-chips button.active {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  transform: translateY(-1px);
}

.filter-count {
  margin: 0;
  color: var(--gray-500);
  font-weight: 750;
}

.category-overview-list {
  display: grid;
  gap: 28px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: center;
  border-radius: var(--radius-2xl);
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(244, 63, 94, 0.12);
}

.category-overview-copy span {
  color: var(--rose-600);
  font-weight: 900;
}

.category-overview-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 46px);
}

.category-overview-copy p {
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 22px;
}

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

.category-overview-posters .mini-card {
  min-height: 180px;
}

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

.top-three {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.top-three .mini-card {
  min-height: 300px;
}

.large-search {
  display: flex;
  max-width: 720px;
  gap: 12px;
  margin-top: 28px;
}

.large-search input {
  flex: 1;
  width: auto;
  min-height: 54px;
}

.large-search button {
  padding-left: 28px;
  padding-right: 28px;
}

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

.popular-tags a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.detail-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 20px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
}

.detail-layout .breadcrumb {
  color: var(--gray-500);
}

.detail-layout .breadcrumb a:hover {
  color: var(--rose-600);
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-xl);
}

.player-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(244, 63, 94, 0.30), rgba(0, 0, 0, 0.50));
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.player-start span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 24px 60px rgba(244, 63, 94, 0.34);
  font-size: 26px;
}

.player-start strong {
  font-size: 20px;
}

.detail-content,
.cover-panel,
.side-panel {
  margin-top: 24px;
  border-radius: var(--radius-xl);
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(229, 231, 235, 0.78);
}

.detail-content h1 {
  margin: 12px 0 10px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: var(--gray-500);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta span {
  color: var(--gray-700);
  background: var(--rose-50);
}

.detail-content section {
  margin-top: 28px;
}

.detail-content h2,
.side-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-content p {
  color: var(--gray-700);
  line-height: 1.9;
  margin: 0;
}

.detail-tags a:hover {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

.cover-panel {
  margin-top: 48px;
  padding: 0;
  overflow: hidden;
}

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

.cover-panel div {
  padding: 18px;
  display: grid;
  gap: 6px;
}

.cover-panel strong {
  font-size: 20px;
}

.cover-panel span {
  color: var(--gray-500);
}

.side-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.side-list .mini-card {
  min-height: 180px;
}

.related-section {
  padding-top: 46px;
}

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

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 12px;
    font-size: 14px;
  }

  .header-search input {
    width: 210px;
  }

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

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

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

  .hero-poster-grid {
    display: none;
  }

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

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

  .category-overview-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .cover-panel {
    margin-top: 0;
  }

  .detail-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-text,
  .footer-logo span:last-child {
    font-size: 18px;
  }

  .hero-section,
  .hero-inner {
    min-height: 560px;
  }

  .hero-inner {
    padding: 52px 18px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .hero-slides {
    min-height: 450px;
  }

  .stats-strip {
    margin-top: 20px;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 18px;
  }

  .section-wrap {
    padding: 54px 18px;
  }

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

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

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

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

  .category-overview-posters,
  .top-three {
    grid-template-columns: 1fr;
  }

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

  .detail-layout {
    padding: 24px 16px 0;
  }

  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .side-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .mini-grid,
  .category-grid,
  .stats-strip,
  .side-list {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
  }
}
