:root {
  --pink: #ec4899;
  --pink-strong: #db2777;
  --purple: #8b5cf6;
  --purple-deep: #581c87;
  --yellow: #facc15;
  --orange: #fb923c;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --line: rgba(219, 39, 119, 0.14);
  --shadow: 0 22px 55px rgba(139, 92, 246, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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: linear-gradient(90deg, #ec4899, #8b5cf6 52%, #f472b6);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.32);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #7e22ce;
  background: var(--yellow);
  box-shadow: 0 10px 22px rgba(250, 204, 21, 0.35);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pink-strong);
  background: #fff;
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  width: 290px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 9px 12px;
  color: #374151;
  background: transparent;
}

.nav-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  font-weight: 800;
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-link {
  padding: 11px 14px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  font-weight: 700;
}

.mobile-link.is-active {
  color: var(--pink-strong);
  background: #fff;
}

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

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

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

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

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.56) 45%, rgba(17, 24, 39, 0.06));
}

.hero-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 9px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.32);
}

.hero-content h1 {
  margin: 0 0 18px;
  max-width: 760px;
  color: #fff;
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.42);
}

.hero-content p {
  max-width: 690px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.7;
}

.hero-tags,
.detail-badges,
.tag-line,
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-badges span,
.tag-line span,
.quick-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #be185d;
  background: #fce7f3;
  font-weight: 800;
  font-size: 13px;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-actions,
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.ghost-light-btn,
.panel-link,
.preview-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.35);
}

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

.ghost-light-btn,
.panel-link,
.preview-head a {
  color: var(--pink-strong);
  background: #fff;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.14);
}

.primary-btn:hover,
.ghost-btn:hover,
.ghost-light-btn:hover,
.panel-link:hover,
.preview-head a:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 38px rgba(139, 92, 246, 0.24);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

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

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.page-intro,
.page-title-block,
.category-hero-inner,
.search-hero .container {
  text-align: center;
}

.page-intro {
  padding: 64px 0 30px;
}

.page-intro p,
.page-title-block p,
.category-hero-inner > p:first-child,
.search-hero p {
  margin: 0 0 10px;
  color: var(--pink-strong);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.page-intro h2,
.page-title-block h1,
.category-hero h1,
.search-hero h1 {
  margin: 0 auto;
  max-width: 900px;
  color: #111827;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.14;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.content-section {
  margin-top: 54px;
}

.section-heading,
.preview-head,
.compact-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading span:first-child {
  font-size: 28px;
}

.section-heading h2,
.preview-head h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 950;
}

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

.movie-card,
.compact-card,
.list-card,
.ranking-card,
.category-preview,
.rank-panel,
.category-tile {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 64px rgba(236, 72, 153, 0.23);
}

.poster,
.compact-poster,
.list-poster,
.ranking-poster,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

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

.poster img,
.compact-poster img,
.list-poster img,
.ranking-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster img,
.compact-card:hover .compact-poster img,
.list-card:hover .list-poster img,
.ranking-card:hover .ranking-poster img {
  transform: scale(1.08);
}

.poster-region,
.rank-region,
.ranking-poster span {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #fff;
  background: rgba(236, 72, 153, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-body h3,
.compact-card h3,
.list-body h3,
.ranking-body h2 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-body h3 a:hover,
.compact-card h3 a:hover,
.list-body h3 a:hover,
.ranking-body h2 a:hover {
  color: var(--pink-strong);
}

.movie-body p,
.list-body p,
.ranking-body p,
.category-tile p,
.preview-head p,
.detail-copy p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.compact-card {
  padding: 10px;
  border-radius: 18px;
  transition: transform 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-5px);
}

.compact-poster {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}

.compact-card h3 {
  margin-top: 10px;
  font-size: 15px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.list-stack,
.ranking-stack,
.preview-stack {
  display: grid;
  gap: 18px;
}

.list-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  padding: 12px;
  border-radius: 22px;
}

.list-poster {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
}

.list-body {
  padding: 6px 8px 6px 0;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
  border-radius: 28px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(90deg, #fff, #fdf2f8);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.16);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 950;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

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

.panel-link {
  width: 100%;
  margin-top: 18px;
}

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

.category-tile {
  min-height: 150px;
  padding: 24px;
  border-radius: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 55px rgba(236, 72, 153, 0.22);
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  color: #be185d;
  font-size: 24px;
  font-weight: 950;
}

.site-footer {
  margin-top: 80px;
  padding: 48px 0;
  color: #fff;
  background: linear-gradient(90deg, #581c87, #831843 52%, #581c87);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.78);
}

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

.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.page-shell {
  padding-top: 54px;
}

.page-title-block {
  padding-bottom: 24px;
}

.page-title-block .category-grid {
  margin-top: 32px;
}

.category-preview {
  overflow: hidden;
  padding: 28px;
  border-radius: 30px;
}

.preview-head {
  justify-content: space-between;
  align-items: flex-start;
}

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

.category-hero,
.search-hero {
  margin-top: -54px;
  padding: 76px 0 58px;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.28), transparent 34%), linear-gradient(120deg, #ec4899, #8b5cf6 58%, #f472b6);
  box-shadow: inset 0 -60px 90px rgba(255, 255, 255, 0.14);
}

.category-hero h1,
.search-hero h1,
.category-hero-inner > p:first-child,
.search-hero p {
  color: #fff;
}

.category-hero-inner > p:last-of-type {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.filter-box,
.search-panel {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin: 30px auto 0;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(88, 28, 135, 0.22);
}

.filter-box input,
.filter-box select,
.search-panel input {
  min-height: 46px;
  border: 0;
  outline: 0;
  border-radius: 18px;
  padding: 0 14px;
  color: #374151;
  background: #fff;
}

.filter-box input,
.search-panel input {
  flex: 1;
}

.filter-box select {
  min-width: 150px;
}

.empty-state {
  display: none;
  margin: 36px auto 0;
  padding: 28px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.empty-state.is-visible {
  display: block;
}

.ranking-title {
  max-width: 850px;
}

.ranking-stack {
  margin-top: 28px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  overflow: hidden;
  padding: 14px;
  border-radius: 26px;
  transition: transform 0.25s ease;
}

.ranking-card:hover {
  transform: translateY(-4px);
}

.ranking-poster {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
}

.ranking-poster span {
  left: 12px;
  right: auto;
  font-size: 15px;
}

.ranking-body {
  align-self: center;
  padding-right: 12px;
}

.ranking-body h2 {
  font-size: 26px;
}

.search-hero .container > p {
  margin-bottom: 12px;
}

.search-panel {
  max-width: 820px;
}

.quick-tags {
  justify-content: center;
  margin-top: 18px;
}

.quick-tags a {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #fff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.66), rgba(17, 24, 39, 0.24)), linear-gradient(0deg, #111827 0%, transparent 36%);
}

.detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  min-height: 620px;
  padding: 54px 0;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border: 5px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.45);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

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

.detail-badges span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-info h1 {
  margin: 20px 0;
  color: #fff;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-info p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
  margin-top: 28px;
}

.detail-meta-grid div {
  padding: 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.detail-meta-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 16px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #050505;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.42);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.32), rgba(17, 24, 39, 0.74));
  font-size: 20px;
  font-weight: 900;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.35);
}

.detail-copy {
  display: grid;
  gap: 28px;
  margin-top: 54px;
}

.detail-copy article {
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-copy h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 28px;
  font-weight: 950;
}

.detail-copy p {
  color: #4b5563;
  font-size: 17px;
}

.large-tags {
  padding: 8px 0;
}

.large-tags span {
  min-height: 36px;
  padding: 7px 14px;
}

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

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

  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(330px, 100%);
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-menu,
  .nav-search {
    display: none;
  }

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

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-mask {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.35), rgba(17, 24, 39, 0.86));
  }

  .hero-arrow {
    display: none;
  }

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

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

  .list-card,
  .ranking-card {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
  }

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

  .rank-meta {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-box,
  .search-panel {
    flex-direction: column;
    border-radius: 22px;
  }

  .detail-layout {
    padding-top: 34px;
  }

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

@media (max-width: 560px) {
  .brand {
    font-size: 19px;
  }

  .hero-carousel {
    height: 520px;
  }

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

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

  .list-card,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .list-poster {
    aspect-ratio: 16 / 9;
  }

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