* {
  box-sizing: border-box;
}

:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --blue-600: #2563eb;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(2, 132, 199, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.85), #ffffff 360px);
  min-height: 100vh;
}

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

img {
  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.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.07);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
  font-size: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong,
.footer-logo strong {
  font-size: 21px;
  background: linear-gradient(135deg, var(--sky-600), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--slate-500);
  font-size: 12px;
  margin-top: 3px;
}

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

.nav-link,
.mobile-nav-link {
  padding: 10px 15px;
  color: var(--slate-500);
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--sky-600);
  background: var(--sky-100);
}

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--slate-700);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--slate-100);
  padding: 10px 16px 16px;
}

.quick-category-strip {
  border-top: 1px solid rgba(226, 232, 240, 0.75);
}

.quick-category-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 9px 0;
}

.quick-category-inner a {
  flex: 0 0 auto;
  color: var(--slate-500);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(240, 249, 255, 0.76);
}

.quick-category-inner a:hover {
  color: var(--sky-600);
  background: var(--sky-100);
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 34px 0 80px;
}

.inner-page {
  padding-top: 42px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 34px;
  padding: 48px;
  background:
    radial-gradient(circle at 15% 10%, rgba(14, 165, 233, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(240, 249, 255, 0.94), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(14, 165, 233, 0.16);
}

.hero-background-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.5;
  pointer-events: none;
}

.orb-one {
  right: 11%;
  top: 8%;
  width: 220px;
  height: 220px;
  background: rgba(14, 165, 233, 0.28);
}

.orb-two {
  right: 27%;
  bottom: 7%;
  width: 160px;
  height: 160px;
  background: rgba(37, 99, 235, 0.18);
}

.hero-slides {
  position: relative;
  min-height: 414px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: center;
  gap: 40px;
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  color: var(--sky-600);
  font-weight: 700;
  font-size: 14px;
  background: rgba(224, 242, 254, 0.92);
  border: 1px solid rgba(14, 165, 233, 0.16);
  padding: 6px 12px;
  border-radius: 999px;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--slate-900);
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  margin: 0;
  max-width: 680px;
  color: var(--slate-500);
  font-size: 18px;
  line-height: 1.9;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.18);
  color: var(--slate-500);
  padding: 6px 10px;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.ghost-button {
  color: var(--sky-600);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(14, 165, 233, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  isolation: isolate;
  min-height: 400px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, var(--sky-100), #ffffff);
}

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

.hero-poster:after,
.poster-frame:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.35));
  pointer-events: none;
}

.hero-poster-glow {
  position: absolute;
  inset: 18px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(14, 165, 233, 0.24);
  filter: blur(28px);
}

.hero-controls {
  position: absolute;
  left: 48px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--sky-600);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  font-size: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.22);
  padding: 0;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--sky-500);
}

.content-section,
.category-strip-card,
.ranking-panel,
.page-hero,
.detail-article,
.detail-side-panel,
.player-section,
.ranking-table-section,
.category-card-large {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.content-section,
.category-strip-card,
.page-hero,
.player-section,
.ranking-table-section {
  padding: 26px;
}

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

.section-heading h2,
.panel-heading h2,
.detail-article h2,
.detail-side-panel h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(23px, 3vw, 31px);
  letter-spacing: -0.03em;
}

.section-heading p,
.panel-heading a,
.category-strip-card p,
.category-card-content p {
  color: var(--slate-500);
  margin: 6px 0 0;
  line-height: 1.75;
}

.category-strip-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.35fr) 1fr;
  gap: 24px;
  align-items: start;
}

.category-strip-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

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

.category-tile {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.95), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(14, 165, 233, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile span,
.category-tile small {
  display: block;
}

.category-tile span {
  font-weight: 800;
  color: var(--slate-900);
}

.category-tile small {
  color: var(--slate-500);
  margin-top: 6px;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(14, 165, 233, 0.16);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.compact-grid {
  grid-template-columns: repeat(6, minmax(210px, 1fr));
}

.horizontal-scroll {
  overflow-x: auto;
  padding: 4px 4px 14px;
}

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-100), #ffffff);
}

.poster-frame img,
.detail-poster img,
.hero-poster img,
.category-cover-stack img,
.video-player {
  background: linear-gradient(135deg, var(--sky-100), #ffffff);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.92);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.54);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.card-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--sky-600);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 9px;
}

.movie-card h3 {
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.movie-card h3 a:hover {
  color: var(--sky-600);
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--slate-500);
  line-height: 1.7;
  font-size: 14px;
}

.tag-row span {
  padding: 4px 8px;
  font-size: 12px;
}

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

.ranking-panel {
  padding: 24px;
}

.sticky-panel {
  position: sticky;
  top: 118px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--slate-50);
}

.ranking-item:hover {
  background: var(--sky-50);
}

.rank-number {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  border-radius: 12px;
  font-weight: 800;
}

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

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

.listing-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: rgba(240, 249, 255, 0.78);
  border: 1px solid rgba(14, 165, 233, 0.14);
}

.search-box input,
.select-filters select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  color: var(--slate-700);
  outline: none;
  padding: 0 14px;
}

.search-box input:focus,
.select-filters select:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.select-filters {
  display: flex;
  gap: 10px;
}

.chip-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1px solid rgba(14, 165, 233, 0.16);
  background: #ffffff;
  color: var(--slate-500);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--sky-600);
  background: var(--sky-100);
}

.result-count {
  grid-column: 1 / -1;
  color: var(--slate-500);
  font-size: 14px;
}

.movie-card.is-hidden {
  display: none;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at right top, rgba(14, 165, 233, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.94);
}

.small-hero h1,
.category-hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
}

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

.category-card-large {
  overflow: hidden;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover-stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  min-height: 235px;
  padding: 10px;
  background: linear-gradient(135deg, var(--sky-100), #ffffff);
}

.category-cover-stack img {
  border-radius: 12px;
  aspect-ratio: 2 / 3;
}

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

.category-card-content h2 {
  margin: 14px 0 10px;
  font-size: 26px;
}

.text-link {
  width: fit-content;
  min-height: auto;
  padding: 0;
  color: var(--sky-600);
  margin-top: 14px;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.16);
  background: linear-gradient(135deg, var(--sky-100), #ffffff);
}

.detail-info {
  min-width: 0;
}

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

.detail-meta-grid div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(240, 249, 255, 0.86);
  border: 1px solid rgba(14, 165, 233, 0.12);
}

.detail-meta-grid strong,
.detail-meta-grid span {
  display: block;
}

.detail-meta-grid strong {
  color: var(--slate-500);
  font-size: 13px;
  margin-bottom: 5px;
}

.detail-meta-grid span {
  color: var(--slate-900);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.66));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.big-play {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.35);
  font-size: 28px;
}

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

.detail-article,
.detail-side-panel {
  padding: 26px;
}

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

.detail-article p {
  color: var(--slate-700);
  line-height: 2;
  font-size: 16px;
  margin: 12px 0 0;
}

.detail-side-panel ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.detail-side-panel li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--slate-100);
}

.detail-side-panel span {
  color: var(--slate-500);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 14px;
}

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

.ranking-table-header,
.ranking-table-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1.4fr) 100px 120px minmax(160px, 1fr);
  gap: 12px;
  align-items: center;
}

.ranking-table-header {
  color: var(--slate-500);
  font-weight: 800;
  padding: 0 14px 12px;
}

.ranking-table {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ranking-table-row {
  padding: 14px;
  border-radius: 16px;
  background: var(--slate-50);
}

.ranking-table-row:hover {
  background: var(--sky-50);
}

.ranking-table-rank {
  color: var(--sky-600);
  font-weight: 900;
}

.ranking-table-title {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid var(--slate-100);
  background: #ffffff;
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-brand p {
  color: var(--slate-500);
  line-height: 1.8;
  margin: 14px 0 0;
}

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

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--slate-500);
}

.footer-links a:hover {
  color: var(--sky-600);
}

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

  .hero-slide,
  .detail-hero,
  .detail-content-grid,
  .two-column-section,
  .category-strip-card {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 780px;
  }

  .hero-slides {
    min-height: 660px;
  }

  .hero-poster {
    min-height: 320px;
  }

  .sticky-panel {
    position: static;
  }
}

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

  .desktop-nav,
  .quick-category-strip {
    display: none;
  }

  .mobile-menu-button {
    display: flex;
  }

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

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

  .page-stack {
    gap: 34px;
    padding-top: 18px;
  }

  .hero-carousel,
  .content-section,
  .category-strip-card,
  .page-hero,
  .player-section,
  .ranking-table-section {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .hero-slide {
    gap: 24px;
  }

  .hero-slides {
    min-height: 610px;
  }

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

  .hero-copy p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-controls {
    left: 18px;
    bottom: 18px;
  }

  .all-grid,
  .hot-grid,
  .compact-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .listing-tools {
    grid-template-columns: 1fr;
  }

  .select-filters {
    flex-direction: column;
  }

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

  .category-cover-stack {
    min-height: auto;
  }

  .detail-hero {
    gap: 24px;
  }

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

  .ranking-table-header {
    display: none;
  }

  .ranking-table-row {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .ranking-table-row span:nth-child(n+3) {
    display: none;
  }

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

@media (max-width: 520px) {
  .all-grid,
  .hot-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .poster-frame {
    height: 100%;
    aspect-ratio: auto;
  }

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

  .tag-row {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
