:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --yellow-50: #fefce8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 16px 40px rgba(124, 45, 18, 0.12);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--orange-50), #fffbeb 48%, var(--yellow-50));
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 247, 237, 0.92);
  border-bottom: 1px solid rgba(251, 146, 60, 0.2);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(154, 52, 18, 0.08);
}

.site-nav {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

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

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--amber-600));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.35);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 18px;
  border-radius: 14px;
  color: var(--gray-700);
  font-weight: 700;
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--amber-600));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.24);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--amber-600));
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
  background: var(--orange-50);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: var(--white);
  background: linear-gradient(120deg, #c2410c, var(--orange-600), var(--amber-600));
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.56fr);
  align-items: center;
  gap: 44px;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 96px 0 120px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: -80px -120px;
  background-image: linear-gradient(90deg, rgba(124, 45, 18, 0.86), rgba(234, 88, 12, 0.56), rgba(245, 158, 11, 0.7)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  opacity: 0.88;
  z-index: 0;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.28), transparent 28%), radial-gradient(circle at 78% 26%, rgba(255, 255, 255, 0.18), transparent 24%);
  z-index: 1;
}

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

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-heading span,
.page-hero span,
.rank-title span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 14px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.92);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
}

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

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

.hero-tags span {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.side-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: var(--orange-600);
  background: var(--white);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.ghost-button {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.primary-button:hover,
.ghost-button:hover,
.side-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 36px rgba(124, 45, 18, 0.24);
}

.hero-poster {
  display: block;
  justify-self: end;
  width: min(330px, 100%);
  aspect-ratio: 2 / 3;
  border-radius: 32px;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  transform: rotate(3deg);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 52px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 5;
  height: 86px;
  background: var(--orange-50);
  clip-path: polygon(0 48%, 8% 42%, 18% 50%, 32% 28%, 48% 46%, 63% 32%, 78% 48%, 92% 36%, 100% 42%, 100% 100%, 0 100%);
}

.section-block {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 44px 0;
}

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

.section-heading.centered {
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px;
}

.section-heading.inline-heading {
  display: block;
}

.section-heading h2 {
  margin: 10px 0 0;
  color: var(--gray-800);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.18;
}

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

.section-heading a,
.rank-title a {
  color: var(--orange-600);
  font-weight: 800;
}

.wide-search {
  display: flex;
  max-width: 780px;
  margin: 0 auto 20px;
  padding: 8px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.wide-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 20px;
  color: var(--gray-800);
  background: transparent;
}

.wide-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--amber-600));
  font-weight: 800;
  cursor: pointer;
}

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

.category-chips a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 20px rgba(251, 146, 60, 0.12);
  font-weight: 700;
}

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

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

.category-card {
  padding: 20px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(124, 45, 18, 0.16);
}

.category-mini-posters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.category-mini-posters img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.16);
}

.category-mini-posters img:nth-child(2) {
  transform: translateY(12px);
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--gray-800);
}

.category-card p {
  margin: 0 0 14px;
  color: var(--gray-600);
}

.category-card span {
  color: var(--orange-600);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--orange-100), var(--yellow-50));
}

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

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

.poster-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(234, 88, 12, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--orange-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 14px;
}

.card-meta {
  color: var(--orange-600);
  font-size: 12px;
  font-weight: 800;
}

.card-body h2 {
  margin: 5px 0 8px;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.28;
}

.card-body p {
  display: -webkit-box;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.52;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #9a3412;
  background: var(--orange-100);
  font-size: 12px;
  font-weight: 700;
}

.compact-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
}

.compact-card .poster-wrap {
  border-radius: 12px;
}

.compact-card .card-body {
  padding: 4px 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.rank-panel,
.info-panel,
.player-card,
.detail-article,
.related-section,
.filter-panel {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.rank-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--orange-100);
}

.rank-row strong,
.rank-card strong {
  color: var(--orange-600);
  font-size: 20px;
}

.rank-row span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-row em,
.rank-card em {
  color: var(--amber-600);
  font-style: normal;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, #c2410c, var(--orange-600), var(--amber-600));
}

.compact-hero {
  padding: 72px 0;
}

.compact-hero > div {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.compact-hero h1 {
  max-width: 800px;
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--gray-600);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--orange-600);
}

.light-breadcrumb,
.light-breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-bottom: 24px;
}

.wide-filter {
  grid-template-columns: minmax(0, 1fr) 180px 160px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--gray-800);
  background: var(--white);
  outline: 0;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 50px 84px minmax(0, 1fr) 58px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

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

.rank-card h2 {
  margin: 0 0 6px;
  color: var(--gray-900);
  font-size: 20px;
}

.rank-card p {
  margin: 0 0 8px;
  color: var(--gray-600);
}

.rank-card span {
  color: var(--orange-600);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #7c2d12;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.detail-hero-content {
  position: relative;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 66px 0 78px;
  z-index: 2;
}

.detail-hero h1 {
  max-width: 860px;
  margin: 16px 0;
  font-size: clamp(36px, 5.5vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.detail-tags span {
  background: rgba(255, 255, 255, 0.15);
}

.detail-layout {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 42px 0;
}

.player-card {
  overflow: hidden;
  margin-bottom: 26px;
}

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

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: background 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  z-index: 3;
}

.player-overlay:hover {
  background: rgba(0, 0, 0, 0.38);
}

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

.player-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--amber-600));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
  font-size: 34px;
  padding-left: 6px;
}

.player-info {
  padding: 24px;
}

.player-info h2,
.detail-article h2,
.info-panel h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
}

.player-info p,
.detail-article p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
}

.detail-article,
.related-section,
.filter-panel {
  padding: 24px;
  margin-bottom: 26px;
}

.detail-article h2:not(:first-child) {
  margin-top: 28px;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 94px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.24);
  margin-bottom: 18px;
}

.info-panel {
  padding: 22px;
}

.info-panel dl {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0 0 18px;
}

.info-panel dt {
  color: var(--gray-500);
}

.info-panel dd {
  margin: 0;
  color: var(--gray-800);
  font-weight: 800;
}

.side-button {
  width: 100%;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--amber-600));
}

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

.footer-grid {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 46px 0 32px;
}

.footer-logo {
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.site-footer h2 {
  color: var(--white);
  font-size: 18px;
  margin: 0 0 12px;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #fed7aa;
}

.footer-bottom {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
}

.is-filter-hidden {
  display: none !important;
}

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

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

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

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

  .rank-panel,
  .detail-side {
    position: static;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
  }
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-section,
  .hero-track {
    min-height: 700px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 70px 0 125px;
    text-align: left;
  }

  .hero-poster {
    justify-self: start;
    width: min(240px, 74vw);
    transform: rotate(0deg);
  }

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

  .movie-grid,
  .wide-grid,
  .search-grid,
  .home-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rank-card {
    grid-template-columns: 42px 72px minmax(0, 1fr);
  }

  .rank-card em {
    grid-column: 3;
    justify-self: start;
  }

  .detail-side {
    display: block;
  }

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

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

@media (max-width: 560px) {
  .section-block {
    padding: 32px 0;
  }

  .wide-search {
    display: grid;
    border-radius: 22px;
  }

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

  .wide-search button {
    min-height: 46px;
  }

  .category-grid,
  .large-category-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .wide-grid,
  .search-grid,
  .home-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h2 {
    font-size: 15px;
  }

  .tag-row {
    display: none;
  }

  .compact-card {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .player-overlay span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
