:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --header: #0f172a;
  --footer: #020617;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(18px);
}

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

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

.brand {
  flex: 0 0 auto;
  font-size: 22px;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #60a5fa;
}

.header-search {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(148, 163, 184, 0.36);
  outline: none;
}

.header-search input {
  width: 210px;
  padding: 10px 14px;
  border-radius: 999px 0 0 999px;
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
}

.header-search button,
.mobile-search button,
.big-search button {
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button {
  padding: 11px 16px;
  border-radius: 0 999px 999px 0;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.primary-button:hover {
  background: var(--primary-dark);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

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

.mobile-search {
  display: flex;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  border-radius: 999px 0 0 999px;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.95);
  color: #ffffff;
}

.mobile-search button {
  border-radius: 0 999px 999px 0;
  padding: 10px 16px;
}

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

.mobile-link {
  padding: 10px 2px;
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

.hero-slides,
.hero-slide {
  min-height: 72vh;
}

.hero-slide {
  display: none;
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-slide.is-active {
  display: block;
  animation: heroFade 0.65s ease both;
}

.hero-backdrop,
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.2) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.2) 50%, rgba(2, 6, 23, 0.7) 100%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 72vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 52px;
  padding: 58px 0 88px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.eyebrow {
  margin: 0 0 12px;
  color: #facc15;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow.dark {
  color: var(--primary);
}

.hero-description {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.hero-meta span,
.detail-meta span,
.detail-tags span,
.movie-tags span {
  border-radius: 999px;
  font-weight: 700;
}

.hero-meta span,
.detail-meta span {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.primary-button,
.ghost-button,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  padding: 0 26px;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.ghost-button {
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(14px);
}

.primary-button:hover,
.ghost-button:hover,
.more-link:hover,
.category-tile:hover,
.movie-card:hover,
.rank-item:hover,
.compact-movie:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  aspect-ratio: 2 / 3;
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster img,
.detail-poster img,
.movie-cover,
.compact-movie img,
.rank-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: none;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #60a5fa;
}

.section-block,
.category-band,
.ranking-section,
.detail-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.search-hub {
  margin-top: -36px;
  position: relative;
  z-index: 5;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 38px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.side-panel h2,
.text-panel h2,
.player-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p:last-child,
.search-hub p,
.page-hero p,
.ranking-copy p {
  color: var(--muted);
  margin: 10px 0 0;
}

.center-heading {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.light-heading h2,
.light-heading p {
  color: #ffffff;
}

.more-link {
  min-height: 42px;
  padding: 0 18px;
  background: #dbeafe;
  color: #1d4ed8;
}

.more-link.light {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.big-search {
  display: flex;
  max-width: 760px;
  margin: 26px auto 0;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 17px 22px;
  border-radius: 999px 0 0 999px;
  background: #ffffff;
  color: var(--ink);
}

.big-search button {
  border-radius: 0 999px 999px 0;
  padding: 0 28px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
}

.movie-poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.movie-cover {
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.movie-card:hover .movie-cover {
  transform: scale(1.06);
}

.movie-badge,
.movie-playmark {
  position: absolute;
  z-index: 2;
}

.movie-badge {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.movie-playmark {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.9);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card-title {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-card-title a:hover {
  color: var(--primary);
}

.movie-card-line {
  min-height: 3.2em;
  margin: 8px 0 12px;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-tags span {
  padding: 4px 9px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
}

.movie-card-meta {
  margin: 12px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.category-band {
  width: 100%;
  max-width: none;
  padding: 58px max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, #0f172a, #1e3a8a 58%, #4c1d95);
}

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

.category-tile {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 24px;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::after,
.page-hero::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  right: -55px;
  bottom: -55px;
  background: rgba(255, 255, 255, 0.18);
}

.category-icon {
  font-size: 38px;
}

.category-tile strong {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 900;
}

.category-tile em {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.gradient-red {
  background: linear-gradient(135deg, #ef4444, #e11d48);
}

.gradient-blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.gradient-purple {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.gradient-pink {
  background: linear-gradient(135deg, #ec4899, #9333ea);
}

.gradient-orange {
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.gradient-cyan {
  background: linear-gradient(135deg, #0891b2, #2563eb);
}

.gradient-rose {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
}

.gradient-indigo {
  background: linear-gradient(135deg, #3730a3, #0f172a);
}

.ranking-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: start;
  padding: 60px 0 72px;
}

.ranking-copy {
  position: sticky;
  top: 100px;
  border-radius: 30px;
  padding: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  box-shadow: var(--shadow);
}

.ranking-copy h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

.ranking-copy p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 900;
}

.rank-item img {
  height: 72px;
  border-radius: 12px;
}

.rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 74px max(16px, calc((100% - 1180px) / 2));
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8 52%, #4c1d95);
}

.page-hero > div {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 64px);
}

.page-hero p:last-child {
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.small-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.ranking-hero {
  background: linear-gradient(135deg, #0f172a, #7c2d12 58%, #991b1b);
}

.category-overview-card {
  display: grid;
  gap: 14px;
}

.category-samples {
  display: grid;
  gap: 8px;
  border-radius: 20px;
  padding: 18px;
  background: #ffffff;
  color: var(--muted);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.category-samples span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  border-radius: 22px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 16px;
  background: #f8fafc;
  color: var(--ink);
}

.filter-bar input {
  flex: 1 1 280px;
}

.filter-bar select {
  flex: 0 0 160px;
}

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

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

.large-rank-list .rank-item {
  grid-template-columns: 52px 92px minmax(0, 1fr);
}

.side-panel,
.text-panel,
.player-panel {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.side-panel h2,
.text-panel h2,
.player-panel h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

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

.compact-movie {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  transition: transform 0.2s ease;
}

.compact-movie img {
  height: 62px;
  border-radius: 12px;
  background: #0f172a;
}

.compact-movie span {
  min-width: 0;
}

.compact-movie strong,
.compact-movie em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-movie strong {
  color: var(--ink);
  font-size: 15px;
}

.compact-movie em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.72);
}

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

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

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.detail-copy h1 {
  max-width: 850px;
  font-size: clamp(38px, 6vw, 68px);
}

.detail-line {
  max-width: 840px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

.detail-tags span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.detail-play-jump {
  margin-top: 28px;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-panel,
.text-panel {
  padding: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

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

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

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

.player-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.95);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.35);
  font-size: 36px;
}

.player-overlay span:last-child {
  font-size: 18px;
  font-weight: 900;
}

.text-panel p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.review-panel {
  background: linear-gradient(135deg, #eff6ff, #faf5ff);
}

.site-footer {
  margin-top: 24px;
  background: linear-gradient(135deg, #020617, #0f172a);
  color: rgba(255, 255, 255, 0.78);
}

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

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 22px;
}

.footer-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 14px;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(1.012);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

  .hero-content,
  .detail-grid,
  .ranking-section,
  .ranking-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .header-inner {
    height: 64px;
  }

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

  .hero-content {
    gap: 28px;
    padding-top: 42px;
  }

  .hero-poster {
    display: none;
  }

  .search-hub {
    margin-top: 0;
    border-radius: 0;
    padding: 34px 18px;
  }

  .row-heading {
    align-items: start;
    flex-direction: column;
  }

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

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

  .detail-hero {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .mobile-panel,
  .section-block,
  .ranking-section,
  .detail-hero-inner,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand-icon {
    width: 30px;
    height: 30px;
  }

  .hero-controls {
    width: calc(100% - 24px);
  }

  .hero-prev,
  .hero-next {
    width: 38px;
    height: 38px;
  }

  .big-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .big-search input,
  .big-search button {
    width: 100%;
    border-radius: 18px;
  }

  .big-search button {
    min-height: 48px;
  }

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

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

  .movie-poster-link {
    aspect-ratio: 2 / 3;
  }

  .movie-card-line {
    min-height: auto;
  }

  .rank-item,
  .large-rank-list .rank-item {
    grid-template-columns: 40px 70px minmax(0, 1fr);
  }

  .rank-item img {
    height: 58px;
  }

  .page-hero {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .detail-grid {
    gap: 24px;
  }

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

  .player-panel,
  .text-panel,
  .side-panel {
    padding: 18px;
  }

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