:root {
  --page-bg: #faf5ff;
  --paper: #ffffff;
  --paper-strong: #fff7ff;
  --text: #1f1235;
  --muted: #6b5f7a;
  --line: rgba(147, 51, 234, 0.15);
  --primary: #9333ea;
  --primary-dark: #6d28d9;
  --secondary: #ec4899;
  --accent: #f97316;
  --gold: #facc15;
  --shadow: 0 24px 60px rgba(88, 28, 135, 0.18);
  --shadow-soft: 0 16px 42px rgba(88, 28, 135, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(147, 51, 234, 0.14), transparent 32rem),
    linear-gradient(180deg, #fff 0%, var(--page-bg) 38%, #ffffff 100%);
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(147, 51, 234, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 28px rgba(147, 51, 234, 0.28);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(135deg, #581c87, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
}

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

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

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-dark);
  background: rgba(147, 51, 234, 0.1);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(147, 51, 234, 0.1);
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(88, 28, 135, 0.98), rgba(147, 51, 234, 0.94) 52%, rgba(236, 72, 153, 0.92)),
    #581c87;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.38;
  pointer-events: none;
}

.hero-glow-one {
  top: -120px;
  left: 8%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.55), transparent 64%);
}

.hero-glow-two {
  right: -80px;
  bottom: 4%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.64), transparent 64%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  padding: 72px 0 56px;
}

.hero-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-heading h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-heading p:last-child,
.page-hero p,
.detail-line {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 80px rgba(31, 18, 53, 0.28);
  backdrop-filter: blur(18px);
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
  gap: 34px;
  min-height: 390px;
  padding: clamp(24px, 4vw, 46px);
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.45s ease both;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.9;
}

.hero-tags,
.genre-row,
.tag-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.genre-row span,
.tag-row span,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  color: #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.detail-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  box-shadow: 0 14px 32px rgba(236, 72, 153, 0.36);
}

.btn-ghost,
.btn-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-light {
  color: var(--primary-dark);
  background: #fff;
  border-color: rgba(147, 51, 234, 0.2);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

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

.hero-poster span,
.poster-type {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 12px;
  color: #fff;
  border-radius: 999px;
  background: rgba(88, 28, 135, 0.78);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 24px 24px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
}

.hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

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

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 780px;
  margin-top: 26px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(147, 51, 234, 0.16);
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  padding: 0 18px;
  box-shadow: 0 8px 22px rgba(88, 28, 135, 0.08);
}

.hero-search button {
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-shortcuts a {
  padding: 8px 14px;
  color: #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

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

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

.section-title p {
  margin: 0 0 6px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-title > a,
.pager-links a {
  color: var(--primary-dark);
  font-weight: 900;
}

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

.category-card,
.category-overview-card a {
  display: block;
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff, #fff7ff);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card a:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card span,
.category-overview-card span {
  display: block;
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 900;
}

.category-card strong,
.category-overview-card strong {
  display: block;
  margin-top: 12px;
  color: var(--secondary);
  font-size: 32px;
  line-height: 1;
}

.category-card p,
.category-overview-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(88, 28, 135, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #f3e8ff, #fdf2f8);
}

.poster-link img {
  transition: transform 0.35s ease;
}

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

.rank-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.32);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.08);
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.32;
}

.movie-card h3 a:hover,
.rank-body h3 a:hover,
.story-card a:hover,
.info-card a:hover {
  color: var(--primary-dark);
}

.movie-card p {
  min-height: 66px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  min-height: 26px;
  color: var(--primary-dark);
  background: rgba(147, 51, 234, 0.08);
  border-color: rgba(147, 51, 234, 0.08);
  font-size: 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 14px 32px rgba(88, 28, 135, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 900;
}

.rank-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: linear-gradient(135deg, #f3e8ff, #fdf2f8);
}

.rank-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-body p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #581c87, var(--primary), var(--secondary));
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 52%;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.32), transparent 62%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
}

.slim-hero .page-hero-inner {
  padding: 70px 0;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.rich-filter {
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(130px, 160px));
}

.result-count {
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 800;
}

.empty-state {
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #1f1235;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  filter: blur(6px);
  transform: scale(1.04);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 18, 53, 0.96), rgba(88, 28, 135, 0.78), rgba(236, 72, 153, 0.54));
}

.detail-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

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

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

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.3);
}

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

.detail-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.genre-row {
  margin-top: 18px;
}

.detail-section {
  padding-top: 56px;
}

.watch-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #12091f;
}

.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, rgba(31, 18, 53, 0.28), rgba(31, 18, 53, 0.76));
  font-size: 18px;
  font-weight: 900;
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.38);
  font-size: 28px;
}

.watch-copy {
  padding: 24px;
}

.watch-copy h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.watch-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px;
  gap: 20px;
}

.story-card,
.info-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.story-card h2,
.info-card h2,
.footer-links h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.2;
}

.story-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.info-card dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
  font-weight: 900;
}

.info-card dd {
  margin: 0;
  line-height: 1.6;
}

.tag-cloud {
  margin-top: 20px;
}

.tag-cloud a {
  color: var(--primary-dark);
  background: rgba(147, 51, 234, 0.08);
  border-color: rgba(147, 51, 234, 0.1);
}

.pager-links {
  display: flex;
  gap: 16px;
}

.site-footer {
  margin-top: 86px;
  color: #fff;
  background: linear-gradient(135deg, #2e1065, #581c87 48%, #831843);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 32px;
}

.brand-footer .brand-text {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
}

.footer-brand p {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

.footer-links h2 {
  font-size: 18px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

@media (max-width: 820px) {
  .site-nav {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

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

  .nav-toggle {
    display: block;
  }

  .hero-inner {
    min-height: auto;
    padding: 48px 0;
  }

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

  .hero-poster {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search button {
    width: 100%;
  }

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

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

  .filter-panel,
  .rich-filter {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 560px) {
  .header-inner,
  .hero-inner,
  .section-block,
  .page-hero-inner,
  .detail-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-heading h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-slide {
    padding: 20px;
  }

  .hero-controls {
    padding: 0 18px 18px;
  }

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

  .rank-item {
    grid-template-columns: 46px 70px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-body p {
    display: none;
  }

  .detail-inner {
    padding-bottom: 48px;
  }

  .info-card dl {
    grid-template-columns: 1fr;
  }
}
