:root {
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --teal: #14b8a6;
  --yellow: #fde047;
  --red: #ef4444;
  --text: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: rgba(15, 23, 42, 0.10);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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: 100;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.96), rgba(59, 130, 246, 0.96), rgba(20, 184, 166, 0.96));
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.26);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  max-width: 1220px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  font-size: 18px;
}

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

.brand-text strong {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 5px;
  font-size: 12px;
  opacity: 0.88;
}

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

.nav-link,
.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  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: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  width: min(280px, 24vw);
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-search input,
.filter-select select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
  padding: 12px 48px 12px 18px;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.large-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.38);
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  color: var(--blue);
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  padding: 0 24px 18px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-nav-link {
  display: block;
  margin: 6px 0;
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.mobile-search input {
  padding-right: 16px;
}

.mobile-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--blue);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.hero-track,
.hero-slide,
.hero-backdrop,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.04);
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 24%, rgba(6, 182, 212, 0.52), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 46%, rgba(14, 165, 233, 0.28) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.12));
}

.hero-content {
  position: relative;
  max-width: 1220px;
  min-height: 680px;
  margin: 0 auto;
  padding: 90px 24px 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 780px;
  animation: fadeUp 0.7s ease both;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 900;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 14px 0 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1.1;
  color: #e0f2fe;
}

.hero-copy p,
.page-hero p,
.detail-info .lead {
  margin: 22px 0 0;
  max-width: 720px;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags,
.detail-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.16);
  color: #0891b2;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.hero-tags span,
.detail-tags span {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.78);
}

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

.primary-action,
.secondary-action,
.text-action,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-action {
  min-height: 48px;
  padding: 0 24px;
  color: #1d4ed8;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(255, 255, 255, 0.18);
}

.primary-action:hover,
.secondary-action:hover,
.text-action:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.secondary-action {
  min-height: 48px;
  padding: 0 20px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.primary-action.full {
  width: 100%;
  margin-top: 20px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(14px);
  font-weight: 900;
  text-align: center;
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
}

.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-light {
  max-width: none;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.section-light > .section-head,
.section-light > .movie-grid {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-head.compact {
  align-items: flex-start;
}

.section-head h2,
.ranking-panel h2,
.prose-card h2,
.category-overview-text h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p,
.category-overview-text p,
.ranking-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link,
.text-action {
  color: #0891b2;
  font-weight: 900;
}

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

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

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

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

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(59, 130, 246, 0.18));
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card.featured .movie-poster img,
.catalog-grid .movie-poster img {
  aspect-ratio: 3 / 4;
}

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

.poster-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.92);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.28);
}

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

.movie-tags {
  margin-bottom: 12px;
}

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 900;
}

.movie-card h3 a:hover {
  color: #0891b2;
}

.movie-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  border-radius: 28px;
  overflow: hidden;
  padding: 24px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(8, 145, 178, 0.28));
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 1;
  display: block;
}

.category-tile span {
  margin-top: 112px;
  font-size: 24px;
  font-weight: 900;
}

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

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
}

.ranking-panel {
  position: sticky;
  top: 100px;
  align-self: start;
  border-radius: 28px;
  padding: 26px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-panel h2 {
  color: #ffffff;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.rank-item,
.rank-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item {
  grid-template-columns: 42px 1fr auto;
  padding: 12px;
}

.rank-item:hover,
.rank-row:hover {
  transform: translateX(4px);
  background: rgba(6, 182, 212, 0.22);
}

.rank-item strong,
.rank-row strong {
  color: var(--yellow);
  font-weight: 900;
}

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

.rank-item em,
.rank-row em {
  color: rgba(255, 255, 255, 0.64);
  font-style: normal;
  font-size: 12px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 78% 18%, rgba(20, 184, 166, 0.44), transparent 32%), linear-gradient(90deg, #020617, #1d4ed8 55%, #0891b2);
}

.page-hero {
  padding: 92px 24px;
}

.page-hero > div {
  max-width: 1220px;
  margin: 0 auto;
}

.small-hero,
.category-hero,
.ranking-hero,
.search-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
}

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

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

.category-overview-list {
  display: grid;
  gap: 26px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.compact-card-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.compact-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.compact-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.compact-card:hover img {
  transform: scale(1.06);
  opacity: 1;
}

.compact-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
  border-radius: 28px;
  padding: 18px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.10), rgba(59, 130, 246, 0.10));
  border: 1px solid rgba(6, 182, 212, 0.18);
}

.filter-search span,
.filter-select span {
  display: block;
  margin: 0 0 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.filter-search input,
.filter-select select {
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  padding-right: 18px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  color: #334155;
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.rank-table {
  display: grid;
  gap: 10px;
}

.rank-row {
  grid-template-columns: 62px 58px minmax(0, 1fr) auto;
  padding: 10px 16px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
}

.rank-row strong {
  color: #ef4444;
}

.rank-row img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-row em {
  color: var(--muted);
}

.large-search {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin-top: 28px;
}

.large-search input {
  min-height: 58px;
  padding-left: 22px;
  padding-right: 22px;
}

.large-search button {
  min-width: 132px;
}

.detail-hero {
  min-height: 650px;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) saturate(1.1);
  transform: scale(1.1);
  opacity: 0.34;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72), rgba(8, 145, 178, 0.42));
}

.detail-wrap {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 72px 24px;
}

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

.detail-cover {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.36);
}

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

.detail-meta {
  display: grid;
  gap: 8px;
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.detail-meta a {
  color: #bae6fd;
}

.player-section {
  padding-top: 56px;
  padding-bottom: 40px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24);
}

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

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

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

.play-ring {
  width: 84px;
  height: 84px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #ffffff;
  font-size: 32px;
  box-shadow: 0 20px 45px rgba(255, 255, 255, 0.24);
}

.player-overlay strong {
  font-size: clamp(22px, 4vw, 36px);
  max-width: 80%;
  text-align: center;
}

.player-overlay em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.detail-content {
  padding-top: 36px;
}

.prose-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 34px;
  background: #ffffff;
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.07);
}

.prose-card h2 + p {
  margin-top: 14px;
}

.prose-card p {
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.prose-card p + h2 {
  margin-top: 30px;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 42px 24px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  color: #ffffff;
  font-weight: 900;
  font-size: 20px;
}

.footer-inner p {
  max-width: 560px;
  margin: 16px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-content: flex-start;
}

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

.footer-bottom {
  max-width: 1220px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px 28px;
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-content,
  .section-split,
  .detail-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    min-height: 66px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

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

  .brand-text small {
    font-size: 11px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding: 70px 18px 90px;
    gap: 28px;
  }

  .hero-actions,
  .large-search,
  .footer-inner {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .large-search button {
    width: 100%;
  }

  .section,
  .page-hero,
  .detail-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-head,
  .footer-inner {
    align-items: flex-start;
  }

  .section-head {
    flex-direction: column;
  }

  .movie-grid,
  .catalog-grid,
  .compact-grid,
  .category-grid,
  .compact-card-row {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 46px 48px minmax(0, 1fr);
  }

  .rank-row em {
    grid-column: 3;
  }

  .prose-card {
    padding: 24px;
  }
}
