:root {
  --bg: #fff7f8;
  --surface: #ffffff;
  --surface-soft: #fff1f2;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3d9dc;
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --orange: #f97316;
  --amber: #f59e0b;
  --emerald: #10b981;
  --blue: #0ea5e9;
  --shadow: 0 20px 45px rgba(190, 18, 60, 0.16);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 45%, #fff1f2 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.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.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

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

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.35);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.header-search input,
.mobile-search input,
.filter-search input,
.search-panel-card input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

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

.header-search button,
.mobile-search button,
.search-panel-card button,
.filter-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 800;
}

.header-search button {
  padding: 10px 16px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--rose-dark);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid #ffe4e6;
}

.mobile-search {
  display: flex;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-search input {
  flex: 1;
  padding: 12px 14px;
}

.mobile-search button {
  padding: 0 18px;
}

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

.hero-stage,
.hero-slide,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

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

.hero-bg {
  background-position: center;
  background-size: cover;
  transform: scale(1.05);
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 78% 30%, rgba(249, 115, 22, 0.36), transparent 34%),
    linear-gradient(110deg, rgba(136, 19, 55, 0.96), rgba(17, 24, 39, 0.72) 48%, rgba(15, 23, 42, 0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 52px;
  min-height: 600px;
  color: #ffffff;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 14px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 710px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 23px);
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 30px;
}

.hero-meta span,
.detail-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

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

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

.btn.primary {
  color: var(--rose-dark);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(255, 255, 255, 0.22);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.28);
}

.hero-poster,
.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.hero-poster {
  height: 460px;
  transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 34px;
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dots button.active {
  background: #ffffff;
}

.featured-strip {
  position: relative;
  z-index: 10;
  margin-top: -74px;
}

.section-block {
  padding: 74px 0 0;
}

.white-band {
  padding: 74px 0;
  background: rgba(255, 255, 255, 0.72);
}

.ranking-band {
  padding: 74px 0;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.92), rgba(255, 237, 213, 0.92));
}

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

.section-heading h2 {
  margin: 10px 0 4px;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 950;
}

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

.section-link {
  color: var(--rose);
  font-weight: 900;
  white-space: nowrap;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 205, 211, 0.72);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

.movie-card.featured .poster {
  aspect-ratio: 4 / 3;
}

.movie-card.wide {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.movie-card.wide .poster {
  min-height: 100%;
  aspect-ratio: auto;
}

.poster img,
.category-card img,
.rank-thumb img,
.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 58%);
}

.poster-badge,
.poster-duration,
.rank-num {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  top: 12px;
  right: 12px;
  background: rgba(244, 63, 94, 0.92);
}

.poster-duration {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.rank-num {
  left: 12px;
  top: 12px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.card-body h3 a:hover {
  color: var(--rose);
}

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

.card-meta {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff1f2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--rose-dark);
  border-radius: 999px;
  background: #ffe4e6;
  font-size: 12px;
  font-weight: 800;
}

.tag-row.large span {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.13);
}

.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: 24px;
  color: #ffffff;
  box-shadow: var(--soft-shadow);
}

.category-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(136, 19, 55, 0.9), rgba(249, 115, 22, 0.35));
}

.category-card strong,
.category-card em {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.category-card strong {
  bottom: 58px;
  font-size: 24px;
  font-style: normal;
  font-weight: 950;
}

.category-card em {
  bottom: 20px;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(254, 205, 211, 0.8);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

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

.rank-thumb {
  height: 76px;
  overflow: hidden;
  border-radius: 14px;
}

.rank-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.rank-item p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.search-panel-card {
  position: sticky;
  top: 92px;
  padding: 28px;
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(135deg, var(--rose-dark), var(--orange));
  box-shadow: var(--shadow);
}

.search-panel-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 950;
}

.search-panel-card p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
}

.search-panel-card form {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff;
}

.search-panel-card input {
  flex: 1;
  padding: 13px 15px;
}

.search-panel-card button {
  padding: 0 18px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-links a {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.sub-hero {
  padding: 86px 0 80px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.38), transparent 28%),
    linear-gradient(135deg, #be123c, #fb7185 48%, #f97316);
  background-position: center;
  background-size: cover;
}

.sub-hero span {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sub-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  font-weight: 950;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  font-weight: 800;
}

.crumbs a:hover {
  text-decoration: underline;
}

.crumbs.dark {
  color: rgba(255, 255, 255, 0.82);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid rgba(254, 205, 211, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.filter-search {
  display: flex;
  overflow: hidden;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #ffffff;
}

.filter-search input {
  flex: 1;
  padding: 13px 18px;
}

.filter-search button {
  padding: 0 20px;
}

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

.filter-chips button {
  border: 0;
  padding: 8px 13px;
  color: var(--rose-dark);
  border-radius: 999px;
  background: #ffe4e6;
  font-weight: 900;
}

.filter-chips button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.filter-state {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 34px;
  text-align: center;
  border-radius: 24px;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.empty-state.show {
  display: block;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(254, 205, 211, 0.85);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
}

.category-cover {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  border-radius: 20px;
}

.category-cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.88);
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 4px 0 8px;
  font-size: 25px;
  font-weight: 950;
}

.category-overview-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.category-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-inline-links a {
  padding: 6px 9px;
  color: var(--rose-dark);
  border-radius: 999px;
  background: #ffe4e6;
  font-size: 13px;
  font-weight: 800;
}

.detail-hero {
  padding: 42px 0 76px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  height: 430px;
}

.detail-copy h1 {
  margin: 14px 0 14px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.06;
  font-weight: 950;
}

.detail-one-line {
  max-width: 800px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.detail-meta {
  margin-bottom: 18px;
}

.player-section {
  margin-top: -46px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(254, 205, 211, 0.9);
  border-radius: 28px;
  background: #030712;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030712;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.16), rgba(3, 7, 18, 0.72)),
    radial-gradient(circle, rgba(244, 63, 94, 0.28), transparent 45%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  padding-left: 4px;
  color: var(--rose-dark);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.25);
  font-size: 34px;
}

.play-cover strong {
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 950;
}

.play-cover em {
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
  font-weight: 800;
}

.detail-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding-top: 52px;
}

.content-card {
  padding: 30px;
  border: 1px solid rgba(254, 205, 211, 0.85);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin: 12px 0 12px;
  font-size: 30px;
  font-weight: 950;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.accent-card {
  background: linear-gradient(135deg, #ffffff, #fff1f2);
}

.site-footer {
  margin-top: 88px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

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

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  margin: 12px 0 0;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

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

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

.footer-bottom p {
  margin: 0;
}

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

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

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

  .nav-toggle {
    display: inline-block;
  }

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

  .mobile-nav {
    background: rgba(255, 255, 255, 0.96);
  }

  .mobile-link {
    display: block;
    padding: 12px 0;
  }

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

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

  .hero-poster {
    display: none;
  }

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

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

  .ranking-layout .search-panel-card {
    position: static;
  }
}

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

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

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

  .hero-arrow {
    display: none;
  }

  .hero-copy h1,
  .detail-copy h1,
  .sub-hero h1 {
    letter-spacing: -0.03em;
  }

  .movie-grid,
  .wide-grid,
  .library-grid,
  .featured-grid,
  .category-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    display: inline-block;
    margin-top: 12px;
  }

  .featured-strip {
    margin-top: 26px;
  }

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

  .detail-poster {
    height: 360px;
  }

  .content-card {
    padding: 24px;
  }
}
