:root {
  --page: #fff7ed;
  --page-soft: #fff1f2;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-solid: #ffffff;
  --text: #22161a;
  --muted: #75666b;
  --line: rgba(244, 114, 182, 0.18);
  --orange: #f97316;
  --pink: #ec4899;
  --yellow: #facc15;
  --shadow: 0 24px 70px rgba(154, 52, 18, 0.16);
}

* {
  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", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(251, 146, 60, 0.22), transparent 32rem),
    radial-gradient(circle at 92% 4%, rgba(236, 72, 153, 0.2), transparent 34rem),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 52%, #fefce8 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(154, 52, 18, 0.08);
}

.nav-shell,
.section-shell,
.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.25);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-6deg);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.footer-brand {
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 14px;
  color: #68585f;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--orange);
  background: rgba(251, 146, 60, 0.1);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(251, 146, 60, 0.12);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--orange);
}

.hero-slider {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: #171013;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.72s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(251, 146, 60, 0.28), transparent 26rem),
    linear-gradient(90deg, rgba(12, 10, 12, 0.9) 0%, rgba(12, 10, 12, 0.68) 46%, rgba(12, 10, 12, 0.16) 100%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 720px;
  justify-self: center;
  margin-left: max(16px, calc((100vw - 1180px) / 2));
  padding: 40px 0;
}

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

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
}

.hero-content h2 {
  margin-top: 10px;
  font-size: clamp(30px, 5vw, 58px);
}

.hero-content p:not(.eyebrow) {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

.hero-meta {
  margin-top: 24px;
}

.hero-meta span,
.detail-meta span,
.tag-row span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  margin-top: 34px;
}

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

.primary-button,
.home-search button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 16px 40px rgba(236, 72, 153, 0.28);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.home-search button:hover {
  transform: translateY(-2px) scale(1.02);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.quick-search-section {
  margin-top: -38px;
  position: relative;
  z-index: 4;
}

.home-search {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(251, 146, 60, 0.16);
  outline: 0;
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
}

.home-search input {
  min-height: 52px;
  padding: 0 18px;
  font-size: 16px;
}

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

.soft-section {
  background: rgba(255, 255, 255, 0.42);
}

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

.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-head.slim {
  align-items: center;
  margin-bottom: 18px;
}

.section-head h2,
.footer-shell h2,
.article-card h2,
.side-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head.slim h2,
.footer-shell h2,
.article-card h2,
.side-card h2 {
  font-size: 24px;
}

.text-link {
  color: var(--orange);
  font-weight: 900;
}

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

.movie-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(154, 52, 18, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 60px rgba(154, 52, 18, 0.18);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(236, 72, 153, 0.18)),
    #241015;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.5));
  opacity: 0.75;
}

.play-chip,
.year-badge {
  position: absolute;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.play-chip {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.year-badge {
  top: 12px;
  right: 12px;
  min-width: 54px;
  padding: 6px 10px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.movie-info {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.movie-info strong {
  overflow: hidden;
  min-height: 48px;
  color: #342126;
  font-size: 17px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info small,
.compact-card small,
.ranking-row small {
  color: var(--muted);
  font-size: 13px;
}

.movie-info .tag-row span,
.large-tags span {
  border-color: rgba(251, 146, 60, 0.2);
  color: var(--orange);
  background: rgba(251, 146, 60, 0.1);
  backdrop-filter: none;
}

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

.category-tile {
  position: relative;
  display: grid;
  min-height: 184px;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform 0.24s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 14rem);
  z-index: -1;
}

.category-tile:hover {
  transform: translateY(-6px) scale(1.02);
}

.category-tile span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 28px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.category-tile strong {
  margin-top: 12px;
  font-size: 22px;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.tile-0 {
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.tile-1 {
  background: linear-gradient(135deg, #fb7185, #f59e0b);
}

.tile-2 {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.tile-3 {
  background: linear-gradient(135deg, #06b6d4, #f97316);
}

.tile-4 {
  background: linear-gradient(135deg, #ef4444, #facc15);
}

.twin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 32px;
}

.compact-list,
.rank-list,
.ranking-panel {
  display: grid;
  gap: 14px;
}

.compact-card,
.ranking-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(154, 52, 18, 0.08);
}

.compact-card img,
.ranking-row img {
  width: 118px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.compact-card span,
.ranking-row span + img + strong,
.compact-card strong,
.compact-card em {
  min-width: 0;
}

.compact-card strong,
.ranking-row strong {
  display: block;
  overflow: hidden;
  color: #321c22;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card em {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-hero {
  padding: 96px 0 68px;
  color: #ffffff;
  background:
    radial-gradient(circle at 74% 28%, rgba(250, 204, 21, 0.24), transparent 26rem),
    linear-gradient(135deg, #c2410c, #db2777 52%, #f59e0b);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 7vw, 72px);
}

.page-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(150px, 0.6fr));
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(154, 52, 18, 0.08);
  backdrop-filter: blur(14px);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 13px;
}

.movie-card.is-hidden,
.ranking-row.is-hidden,
.compact-card.is-hidden {
  display: none;
}

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

.ranking-panel {
  position: sticky;
  top: 100px;
}

.ranking-row {
  grid-template-columns: 46px 82px minmax(0, 1fr);
  padding: 8px;
}

.ranking-row span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.ranking-row img {
  width: 82px;
  height: 58px;
  border-radius: 14px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(12, 10, 12, 0.92), rgba(12, 10, 12, 0.56)),
    var(--hero-image) center / cover;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(236, 72, 153, 0.3), transparent 26rem),
    linear-gradient(90deg, rgba(12, 10, 12, 0.94), rgba(12, 10, 12, 0.62));
  backdrop-filter: blur(5px);
}

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

.detail-poster {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

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

.detail-intro h1 {
  max-width: 820px;
  font-size: clamp(40px, 7vw, 78px);
}

.detail-intro p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta span {
  color: #ffffff;
}

.large-tags {
  margin-top: 18px;
}

.player-section {
  margin-top: -88px;
  position: relative;
  z-index: 2;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  background: #0f0a0c;
  box-shadow: 0 28px 86px rgba(18, 8, 12, 0.34);
}

.player-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f0a0c;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(236, 72, 153, 0.22), transparent 18rem),
    linear-gradient(135deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.72));
}

.player-card.is-playing .player-cover {
  display: none;
}

.player-icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 38px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 44px rgba(236, 72, 153, 0.34);
}

.player-cover strong {
  max-width: 82%;
  font-size: clamp(24px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.16;
}

.player-cover small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  font-weight: 800;
}

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

.article-card,
.side-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(154, 52, 18, 0.08);
}

.article-card {
  padding: 32px;
}

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

.article-card p {
  color: #4f4247;
  font-size: 17px;
  line-height: 2;
}

.side-card {
  padding: 26px;
  align-self: start;
  position: sticky;
  top: 100px;
}

.side-card dl {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.side-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.side-card dd {
  margin: -8px 0 0;
  color: #2f2025;
  font-weight: 800;
  line-height: 1.6;
}

.site-footer {
  margin-top: 48px;
  padding: 56px 0 28px;
  color: #ffffff;
  background: linear-gradient(90deg, #c2410c, #db2777, #f59e0b);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 40px;
}

.footer-shell p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-shell h2 {
  color: #ffffff;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
}

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

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

  .twin-layout,
  .rank-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .side-card {
    position: static;
  }

  .detail-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  .nav-shell {
    min-height: 66px;
  }

  .brand-copy strong {
    font-size: 22px;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .menu-button {
    display: block;
  }

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

  .hero-content {
    width: min(100% - 28px, 1180px);
    margin-left: auto;
    padding-top: 70px;
  }

  .hero-actions,
  .home-search,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .home-search {
    border-radius: 22px;
  }

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

  .movie-info {
    padding: 13px;
  }

  .movie-info strong {
    min-height: 44px;
    font-size: 15px;
  }

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

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

  .detail-shell {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .detail-poster {
    width: min(280px, 76vw);
  }

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

  .article-card,
  .side-card {
    padding: 22px;
  }

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

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

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

  .compact-card img {
    width: 96px;
    height: 68px;
  }

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

  .ranking-row img {
    width: 72px;
    height: 54px;
  }
}
