* {
  box-sizing: border-box;
}

:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --rose-soft: #fff1f2;
  --amber-soft: #fff7ed;
  --green-soft: #f0fdfa;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 32%, #ffffff 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
}

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

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), #fb7185);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
}

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

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--rose-soft);
  color: var(--rose);
}

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

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

.hero,
.detail-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.30) 45%, rgba(0, 0, 0, 0.66));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  padding: 82px 0;
  color: #ffffff;
}

.hero-copy {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.96;
  }

  50% {
    transform: scale(1.06);
    opacity: 0.72;
  }
}

.eyebrow {
  margin: 0 0 10px;
  color: #fb7185;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.06em;
}

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

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-badges span,
.detail-meta span,
.detail-genres a,
.detail-genres span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-badges span {
  padding: 12px 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-search {
  width: min(640px, 100%);
  margin: 30px auto 0;
  display: flex;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: #111827;
  background: transparent;
}

.hero-search button,
.primary-btn,
.filter-bar button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), #fb7185);
  box-shadow: 0 16px 30px rgba(225, 29, 72, 0.26);
}

.hero-search button,
.primary-btn,
.ghost-btn,
.text-link,
.filter-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.hero-search button:hover,
.primary-btn:hover,
.filter-bar button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--rose-dark), var(--rose));
}

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

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

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

.hero-feature {
  display: block;
  padding: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: 0.25s ease;
}

.hero-feature:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.22);
}

.hero-feature img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.hero-feature-text {
  display: grid;
  gap: 8px;
  padding: 16px 6px 4px;
}

.hero-feature-text strong {
  font-size: 20px;
}

.hero-feature-text em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.section {
  padding: 72px 0;
}

.section-warm {
  background: linear-gradient(90deg, #fff7ed, #fff1f2);
}

.section-cool {
  background: linear-gradient(90deg, #f0fdfa, #f0f9ff);
}

.section-heading {
  text-align: center;
  margin-bottom: 34px;
}

.section-heading h2,
.category-block h2,
.spotlight-card h2,
.player-card h2,
.story-card h2,
.related-card h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

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

.movie-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #111827, #4b5563);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: 0.25s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.88);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.75);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
  color: #111827;
}

.card-meta {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
}

.card-desc {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.category-chips a,
.text-link {
  color: #374151;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.category-chips a {
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.category-chips a:hover,
.text-link:hover {
  color: var(--rose);
  background: var(--rose-soft);
  transform: translateY(-2px);
}

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

.section-actions.left {
  justify-content: flex-start;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: 0.2s ease;
}

.rank-item:hover {
  transform: translateX(6px);
  color: var(--rose);
}

.rank-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), #fb7185);
  border-radius: 14px;
  font-weight: 950;
}

.rank-title {
  min-width: 0;
  font-size: 18px;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  color: var(--muted);
  font-size: 14px;
}

.spotlight-card,
.player-card,
.story-card,
.related-card,
.category-block {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.spotlight-card {
  padding: 24px;
  position: sticky;
  top: 96px;
}

.spotlight-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
}

.spotlight-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.spotlight-card p {
  color: var(--muted);
}

.page-main {
  background: linear-gradient(180deg, #fff1f2, #ffffff 260px);
}

.page-hero {
  padding: 80px 0;
  color: #ffffff;
  background: radial-gradient(circle at top left, #fb7185, #be123c 46%, #111827 100%);
}

.page-hero.small-hero {
  padding: 72px 0;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.category-block {
  padding: 28px;
  margin-bottom: 28px;
}

.category-block h2 {
  font-size: 28px;
}

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

.category-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 20px;
  background: #111827;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  opacity: 0.62;
  transition: 0.3s ease;
}

.category-card:hover img {
  opacity: 0.78;
  transform: scale(1.06);
}

.category-card span {
  position: absolute;
  inset: auto 16px 16px 16px;
  color: #ffffff;
}

.category-card strong,
.category-card em {
  display: block;
}

.category-card strong {
  font-size: 21px;
  font-weight: 950;
}

.category-card em {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 14px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px)) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  margin-bottom: 30px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: #374151;
  font-weight: 800;
}

.filter-bar span {
  font-size: 13px;
  color: var(--muted);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.18);
}

.no-result {
  display: none;
  padding: 28px;
  margin-bottom: 24px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.no-result.is-visible {
  display: block;
}

.ranking-grid {
  display: grid;
  gap: 16px;
}

.ranking-card {
  position: relative;
}

.ranking-card a {
  display: grid;
  grid-template-columns: 62px 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.ranking-card img {
  width: 110px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.rank-badge {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), #fb7185);
  border-radius: 16px;
  font-weight: 950;
}

.ranking-info strong,
.ranking-info em,
.ranking-info small {
  display: block;
}

.ranking-info strong {
  font-size: 22px;
  font-weight: 950;
}

.ranking-info em {
  margin: 6px 0;
  color: var(--rose);
  font-style: normal;
  font-weight: 800;
}

.ranking-info small {
  color: var(--muted);
  font-size: 15px;
}

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

.sitemap-grid a {
  display: block;
  padding: 12px 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #374151;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.sitemap-grid a:hover {
  color: var(--rose);
  background: var(--rose-soft);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.pagination a {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  font-weight: 900;
}

.pagination a:hover,
.pagination a.is-current {
  color: #ffffff;
  background: var(--rose);
}

.detail-hero {
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 42px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-top {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  padding: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.detail-info h1 {
  max-width: 860px;
}

.detail-lead {
  margin: 18px 0 0;
  max-width: 860px;
}

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

.detail-meta span {
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-genres a,
.detail-genres span {
  padding: 8px 14px;
  color: #ffe4e6;
  background: rgba(225, 29, 72, 0.28);
}

.detail-info .primary-btn {
  margin-top: 26px;
}

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

.main-detail-column {
  display: grid;
  gap: 26px;
}

.player-card,
.story-card,
.related-card {
  padding: 24px;
}

.player-card h2,
.story-card h2,
.related-card h2 {
  font-size: 26px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.78));
  border: 0;
  cursor: pointer;
  transition: 0.25s ease;
}

.player-cover:hover .play-circle {
  transform: scale(1.08);
}

.video-shell.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  background: rgba(225, 29, 72, 0.92);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.36);
  transition: 0.2s ease;
}

.player-cover strong {
  font-size: 22px;
}

.story-card p,
.story-card blockquote {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.85;
}

.story-one-line {
  color: #111827 !important;
  font-weight: 800;
}

.story-card blockquote {
  margin: 0;
  padding: 20px 22px;
  background: linear-gradient(90deg, #fff1f2, #fdf2f8);
  border-left: 5px solid var(--rose);
  border-radius: 16px;
  font-style: italic;
}

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

.tag-list span {
  padding: 8px 14px;
  color: #374151;
  background: #f3f4f6;
}

.related-card {
  position: sticky;
  top: 96px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f9fafb;
  transition: 0.2s ease;
}

.compact-card:hover {
  color: var(--rose);
  background: var(--rose-soft);
  transform: translateX(4px);
}

.compact-card img {
  width: 82px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  font-weight: 950;
  line-height: 1.25;
}

.compact-card em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

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

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-inner,
  .two-column,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-feature,
  .spotlight-card,
  .related-card {
    position: static;
  }

  .hero-feature {
    max-width: 360px;
    margin: 0 auto;
  }

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

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

  .detail-top {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

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

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

  .hero-inner {
    padding: 58px 0;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-icon,
  .hero-lead {
    margin-left: 0;
  }

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

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
    gap: 8px;
  }

  .hero-search input {
    min-height: 46px;
  }

  .section {
    padding: 50px 0;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .sitemap-grid,
  .filter-bar,
  .detail-top,
  .ranking-card a {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 210px;
  }

  .rank-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .rank-meta {
    grid-column: 2;
  }

  .ranking-card img {
    width: 100%;
    max-width: 180px;
  }
}
