:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-strong: #fffaf0;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(31, 41, 55, 0.12);
  --primary: #f97316;
  --primary-dark: #ea580c;
  --secondary: #f59e0b;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.13);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(251, 146, 60, 0.18), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(245, 158, 11, 0.18), transparent 30%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 48%, #fffaf0 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.is-locked {
  overflow: hidden;
}

img {
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(249, 115, 22, 0.14);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.35);
}

.brand-text {
  font-size: 1.2rem;
}

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

.nav-link,
.mobile-link {
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: all 0.25s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--dark);
}

.mobile-nav {
  display: none;
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.28) 100%),
    radial-gradient(circle at 20% 25%, rgba(249, 115, 22, 0.32), transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 48px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 420px;
  align-items: center;
  gap: 56px;
  padding: 80px 0;
}

.hero-copy {
  max-width: 760px;
  color: #fff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fed7aa;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-info h1 {
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  max-width: 900px;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
}

.hero-lead {
  margin-top: 24px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.85;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.movie-tags span {
  color: #9a3412;
  background: #ffedd5;
}

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

.primary-button,
.ghost-button,
.card-action,
.section-more,
.panel-link,
.page-search button,
.hero-search button,
.filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.25s ease;
}

.primary-button,
.page-search button,
.hero-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.35);
}

.primary-button,
.ghost-button {
  min-height: 52px;
  padding: 0 24px;
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.page-search button:hover,
.hero-search button:hover,
.card-action:hover,
.section-more:hover,
.panel-link:hover,
.filter-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(249, 115, 22, 0.38);
}

.hero-search,
.page-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px;
  backdrop-filter: blur(16px);
}

.hero-search {
  max-width: 650px;
  margin-top: 30px;
}

.hero-search input,
.page-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  outline: none;
}

.hero-search input,
.page-search input {
  padding: 0 20px;
  color: #111827;
  background: #fff;
}

.hero-search button,
.page-search button {
  min-height: 48px;
  padding: 0 22px;
  white-space: nowrap;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.46);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 560px;
}

.hero-poster span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 14px 18px;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.64);
  backdrop-filter: blur(14px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: all 0.25s ease;
}

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

.content-section {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

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

.section-heading h2,
.category-overview-head h2,
.panel-title h2,
.story-section h2 {
  color: var(--dark);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-kicker {
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.section-more,
.panel-link,
.card-action,
.filter-link {
  color: var(--primary-dark);
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.section-more,
.panel-link,
.filter-link {
  padding: 12px 18px;
}

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

.category-card {
  min-height: 188px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fff7ed);
  border: 1px solid rgba(249, 115, 22, 0.14);
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 62px rgba(124, 45, 18, 0.18);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 24px rgba(249, 115, 22, 0.28);
}

.category-card strong {
  display: block;
  margin-top: 18px;
  color: var(--dark);
  font-size: 1.15rem;
}

.category-card em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
}

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

.latest-grid,
.mini-grid,
.related-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(249, 115, 22, 0.12);
  box-shadow: var(--shadow);
  transition: all 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(124, 45, 18, 0.2);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #f3f4f6;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(17, 24, 39, 0.78));
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.26);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 12px 22px rgba(239, 68, 68, 0.28);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.movie-card h2 {
  margin-top: 10px;
  color: var(--dark);
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 950;
}

.movie-card h2 a:hover {
  color: var(--primary-dark);
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.4em;
  margin-top: 10px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card .movie-tags {
  margin-top: 14px;
}

.card-action {
  margin-top: 16px;
  min-height: 40px;
  padding: 0 16px;
}

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

.movie-card-compact h2 {
  font-size: 1rem;
}

.movie-card-compact p,
.movie-card-compact .movie-tags,
.movie-card-compact .card-action {
  display: none;
}

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

.rank-panel {
  border-radius: 30px;
  padding: 24px;
  background: #111827;
  color: #fff;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.28);
}

.sticky-panel {
  position: sticky;
  top: 96px;
}

.panel-title {
  margin-bottom: 18px;
}

.panel-title span {
  color: #fed7aa;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.panel-title h2 {
  color: #fff;
  margin-top: 4px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}

.rank-row img {
  width: 58px;
  height: 78px;
  border-radius: 14px;
}

.rank-row strong,
.rank-row em {
  display: block;
}

.rank-row strong {
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.35;
}

.rank-row em {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-style: normal;
  font-size: 0.82rem;
}

.list-rank {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.panel-link {
  width: 100%;
  margin-top: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 0;
}

.page-hero {
  width: min(1280px, calc(100% - 48px));
  margin: 36px auto 0;
  border-radius: 34px;
  padding: clamp(36px, 7vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 32px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(124, 45, 18, 0.86)),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.52), transparent 36%);
  box-shadow: 0 32px 90px rgba(124, 45, 18, 0.26);
}

.compact-hero,
.category-hero,
.ranking-hero,
.search-hero {
  min-height: 320px;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.4rem);
}

.page-hero p {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.85;
}

.category-overview-block {
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(249, 115, 22, 0.14);
  box-shadow: var(--shadow);
}

.category-directory {
  display: grid;
  gap: 30px;
}

.category-overview-head p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.75;
}

.filter-bar {
  position: sticky;
  top: 82px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px auto;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(249, 115, 22, 0.14);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(124, 45, 18, 0.09);
}

.filter-bar input,
.filter-bar select {
  padding: 0 18px;
  color: var(--dark);
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.16);
}

.filter-link {
  min-height: 48px;
  padding: 0 18px;
}

.breadcrumb {
  width: min(1280px, calc(100% - 48px));
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

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

.detail-hero {
  width: min(1280px, calc(100% - 48px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 36px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(124, 45, 18, 0.88)),
    radial-gradient(circle at 76% 16%, rgba(249, 115, 22, 0.42), transparent 34%);
  box-shadow: 0 34px 90px rgba(17, 24, 39, 0.26);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.detail-info h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

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

.detail-meta span {
  padding: 8px 14px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-one-line {
  max-width: 900px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.85;
}

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

.detail-info .primary-button {
  margin-top: 28px;
}

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

.detail-main,
.story-section {
  display: grid;
  gap: 24px;
}

.player-section {
  border-radius: 30px;
  overflow: hidden;
  background: #050816;
  box-shadow: 0 32px 90px rgba(17, 24, 39, 0.3);
}

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

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 2.1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 22px 46px rgba(249, 115, 22, 0.42);
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.story-section {
  padding: clamp(24px, 4vw, 38px);
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(249, 115, 22, 0.12);
  box-shadow: var(--shadow);
}

.story-section h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.story-section p {
  color: #374151;
  font-size: 1.08rem;
  line-height: 2;
}

.search-summary {
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  margin-top: 48px;
  padding: 56px 24px 28px;
  color: rgba(255, 255, 255, 0.72);
  background: #111827;
}

.footer-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: #fff;
}

.site-footer p {
  max-width: 520px;
  margin-top: 18px;
  line-height: 1.8;
}

.site-footer h2 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 950;
}

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

.footer-links a:hover {
  color: #fed7aa;
}

.footer-bottom {
  width: min(1280px, 100%);
  margin: 36px auto 0;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1100px) {
  .hero-content,
  .two-column-layout,
  .detail-layout,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-side {
    display: none;
  }
}

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

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

  .mobile-nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    z-index: 60;
    padding: 18px;
    border-radius: 24px;
    display: grid;
    gap: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(249, 115, 22, 0.18);
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.2);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
  }

  .mobile-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-brand,
  .mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .mobile-brand {
    color: var(--dark);
    font-weight: 950;
  }

  .header-inner,
  .content-section,
  .page-hero,
  .detail-hero,
  .breadcrumb,
  .hero-content {
    width: min(100% - 28px, 1280px);
  }

  .hero-carousel,
  .hero-content {
    min-height: 660px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(2.45rem, 13vw, 4.2rem);
  }

  .hero-search,
  .page-search,
  .filter-bar {
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar {
    position: static;
    grid-template-columns: 1fr;
  }

  .category-grid,
  .movie-grid,
  .latest-grid,
  .mini-grid,
  .related-grid,
  .footer-grid,
  .detail-hero {
    grid-template-columns: 1fr 1fr;
  }

  .detail-hero {
    align-items: start;
  }

  .footer-bottom,
  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .category-grid,
  .movie-grid,
  .latest-grid,
  .mini-grid,
  .related-grid,
  .footer-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

  .page-hero,
  .category-overview-block,
  .story-section {
    border-radius: 24px;
  }

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