@charset "UTF-8";

:root {
  color-scheme: light;
  --page: #fff7ed;
  --paper: #ffffff;
  --paper-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.14);
  --primary: #ea580c;
  --primary-dark: #9a3412;
  --accent: #f59e0b;
  --accent-soft: #fed7aa;
  --shadow: 0 24px 60px rgba(124, 45, 18, 0.16);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1280px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.20), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 44%, #fff7ed 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #f97316, #f59e0b 54%, #fde68a);
  color: #fff;
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.32);
}

.brand-text {
  font-size: 1.08rem;
  color: #7c2d12;
}

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

.nav-link {
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  color: #7c2d12;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: #ffedd5;
  color: #c2410c;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.global-search-wrap {
  position: relative;
}

.global-search-input,
.local-search input {
  width: 16rem;
  border: 1px solid rgba(234, 88, 12, 0.20);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.82);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.global-search-input:focus,
.local-search input:focus {
  border-color: rgba(234, 88, 12, 0.48);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(24rem, 88vw);
  display: none;
  overflow: hidden;
  border: 1px solid rgba(234, 88, 12, 0.16);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.search-panel.is-visible {
  display: block;
}

.search-result {
  display: block;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(251, 146, 60, 0.12);
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #7c2d12;
}

.search-result span {
  color: var(--muted);
  font-size: 0.86rem;
}

.menu-toggle {
  display: none;
  width: 2.65rem;
  height: 2.65rem;
  border: 0;
  border-radius: 0.9rem;
  background: #ffedd5;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 0.12rem;
  margin: 0.22rem auto;
  border-radius: 999px;
  background: #9a3412;
}

.mobile-menu {
  display: none;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

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

main {
  width: 100%;
}

.hero-carousel {
  position: relative;
  width: min(100% - 2rem, var(--max));
  min-height: clamp(38rem, 72vh, 50rem);
  margin: 1.25rem auto 0;
  overflow: hidden;
  border-radius: 2.2rem;
  background: #431407;
  box-shadow: var(--shadow);
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.12) contrast(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(67, 20, 7, 0.94) 0%, rgba(67, 20, 7, 0.72) 42%, rgba(67, 20, 7, 0.28) 100%),
    radial-gradient(circle at 72% 28%, rgba(251, 191, 36, 0.26), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  padding: clamp(2rem, 5vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-copy {
  color: #fff7ed;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  color: #fed7aa;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #c2410c;
}

.hero-copy h1 {
  max-width: 54rem;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.9rem);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.07em;
  text-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
  max-width: 42rem;
  margin: 1.35rem 0 0;
  color: #ffedd5;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.86;
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags {
  margin-top: 1.4rem;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-tags span {
  padding: 0.42rem 0.7rem;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-tags span,
.card-tags span {
  padding: 0.32rem 0.58rem;
  color: #9a3412;
  background: #ffedd5;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  box-shadow: 0 16px 36px rgba(234, 88, 12, 0.32);
}

.button.ghost {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.button.ghost.dark {
  color: #9a3412;
  background: #ffedd5;
  border-color: rgba(234, 88, 12, 0.20);
}

.button.text {
  color: #fed7aa;
}

.button.full {
  width: 100%;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 2rem;
  overflow: hidden;
  transform: rotate(1.4deg);
  box-shadow: 0 38px 70px rgba(0, 0, 0, 0.38);
}

.hero-poster::before {
  content: "";
  display: block;
  aspect-ratio: 3 / 4.2;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  font-size: 2rem;
  line-height: 1;
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1.2rem;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.is-active {
  width: 2.2rem;
  background: #f59e0b;
}

.section-block,
.detail-wrap {
  width: min(100% - 2rem, var(--max));
  margin: 3rem auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-content h2 {
  margin: 0;
  color: #7c2d12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.section-more,
.category-arrow {
  color: #c2410c;
  font-weight: 900;
}

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

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

.category-card {
  position: relative;
  min-height: 13rem;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(234, 88, 12, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 237, 213, 0.78)),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.22), transparent 14rem);
  box-shadow: 0 12px 35px rgba(124, 45, 18, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.podium-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(124, 45, 18, 0.16);
}

.category-dot {
  display: block;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.category-card strong {
  display: block;
  margin-bottom: 0.55rem;
  color: #7c2d12;
  font-size: 1.25rem;
}

.category-card p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1.5rem;
  align-items: start;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(234, 88, 12, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(124, 45, 18, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fed7aa;
}

.poster-link::before {
  content: "";
  display: block;
  aspect-ratio: 3 / 4;
}

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

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

.poster-badge,
.poster-year,
.podium-rank {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  background: rgba(154, 52, 18, 0.82);
  backdrop-filter: blur(10px);
}

.poster-badge {
  left: 0.7rem;
  top: 0.7rem;
  padding: 0.34rem 0.58rem;
}

.poster-year {
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.34rem 0.58rem;
}

.movie-card-body {
  padding: 0.95rem;
}

.movie-title {
  display: -webkit-box;
  min-height: 2.6rem;
  overflow: hidden;
  color: #7c2d12;
  font-weight: 950;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 0.35rem;
  color: #fb923c;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 3.9rem;
  margin: 0.72rem 0 0.78rem;
  overflow: hidden;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.compact-card .movie-card-body p {
  min-height: 3rem;
  -webkit-line-clamp: 2;
}

.ranking-panel,
.page-hero,
.detail-hero,
.player-section,
.detail-content,
.ranking-section {
  border: 1px solid rgba(234, 88, 12, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(124, 45, 18, 0.10);
}

.ranking-panel {
  position: sticky;
  top: 6rem;
  padding: 1.2rem;
}

.compact-heading {
  margin-bottom: 0.8rem;
}

.rank-list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.rank-mini {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.72rem;
  border-radius: 1rem;
  background: #fff7ed;
}

.rank-mini > span {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 0.75rem;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.rank-mini strong {
  display: block;
  overflow: hidden;
  color: #7c2d12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-mini p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.page-hero {
  width: min(100% - 2rem, var(--max));
  margin: 1.25rem auto 3rem;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.32), transparent 30rem),
    linear-gradient(135deg, #fff7ed, #ffffff 58%, #ffedd5);
}

.page-hero h1 {
  max-width: 54rem;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.04;
}

.page-hero p {
  max-width: 54rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.82;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #9a3412;
  font-weight: 800;
  font-size: 0.92rem;
}

.detail-wrap {
  display: grid;
  gap: 1.4rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(15rem, 23rem) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.detail-poster {
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 28px 60px rgba(124, 45, 18, 0.20);
}

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

.detail-info h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.04;
}

.detail-tags {
  margin: 1rem 0;
}

.detail-lead {
  max-width: 58rem;
  margin: 1rem 0;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.9;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.2rem 0 0;
}

.detail-meta div {
  padding: 0.85rem;
  border-radius: 1rem;
  background: #fff7ed;
}

.detail-meta dt {
  margin-bottom: 0.25rem;
  color: #c2410c;
  font-size: 0.78rem;
  font-weight: 900;
}

.detail-meta dd {
  margin: 0;
  color: #7c2d12;
  font-weight: 850;
}

.player-section,
.detail-content,
.ranking-section {
  padding: clamp(1rem, 3vw, 1.6rem);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  object-fit: contain;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle, rgba(251, 146, 60, 0.28), rgba(15, 23, 42, 0.56) 44%, rgba(15, 23, 42, 0.84));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: clamp(4.2rem, 9vw, 6.8rem);
  height: clamp(4.2rem, 9vw, 6.8rem);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  box-shadow: 0 24px 60px rgba(234, 88, 12, 0.45);
}

.play-circle::before {
  content: "";
  margin-left: 0.28rem;
  border-top: 1rem solid transparent;
  border-bottom: 1rem solid transparent;
  border-left: 1.45rem solid #fff;
}

.detail-content h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.detail-content h2:not(:first-child) {
  margin-top: 1.6rem;
}

.detail-content p {
  margin: 0;
  color: #374151;
  font-size: 1.02rem;
  line-height: 1.95;
}

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

.podium-card {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: #431407;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.podium-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.podium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(67, 20, 7, 0.08), rgba(67, 20, 7, 0.92));
}

.podium-rank {
  left: 1rem;
  top: 1rem;
  padding: 0.45rem 0.75rem;
}

.podium-card strong,
.podium-card p {
  position: absolute;
  z-index: 2;
  left: 1.15rem;
  right: 1.15rem;
}

.podium-card strong {
  bottom: 4.6rem;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 950;
}

.podium-card p {
  bottom: 1rem;
  margin: 0;
  color: #ffedd5;
  line-height: 1.55;
}

.ranking-list-large {
  display: grid;
  gap: 0.8rem;
}

.ranking-card {
  border-radius: 1.2rem;
}

.ranking-link {
  display: grid;
  grid-template-columns: 3.4rem 5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
}

.ranking-number {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border-radius: 1rem;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.ranking-link img {
  width: 5rem;
  aspect-ratio: 3 / 4;
  border-radius: 0.9rem;
  object-fit: cover;
}

.ranking-link strong {
  display: block;
  color: #7c2d12;
  font-size: 1.05rem;
}

.ranking-link p,
.ranking-link span {
  display: block;
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: #431407;
  color: #ffedd5;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #fff7ed;
  font-size: 1.2rem;
  font-weight: 950;
}

.footer-inner p {
  max-width: 46rem;
  margin: 0;
  color: #fed7aa;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 0.8rem;
  font-weight: 900;
}

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

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

  .menu-toggle {
    display: block;
  }

  .global-search-input {
    width: min(42vw, 18rem);
  }

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

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

  .two-column-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .hero-carousel {
    width: min(100% - 1rem, var(--max));
    min-height: 46rem;
    border-radius: 1.4rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
    padding: 2rem 1.2rem 4rem;
  }

  .hero-poster {
    display: none;
  }

  .hero-control {
    display: none;
  }

  .section-block,
  .detail-wrap,
  .page-hero {
    width: min(100% - 1rem, var(--max));
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .local-search input,
  .global-search-input {
    width: 100%;
  }

  .header-actions {
    flex: 1;
    justify-content: end;
  }

  .global-search-wrap {
    flex: 1;
  }

  .brand-text {
    display: none;
  }

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

  .detail-hero {
    grid-template-columns: 1fr;
  }

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

  .ranking-link {
    grid-template-columns: 2.8rem 4.4rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-shell {
    padding: 0.75rem 0.75rem;
  }

  .global-search-wrap {
    display: none;
  }

  .mobile-menu {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .hero-tags span,
  .detail-tags span,
  .card-tags span {
    font-size: 0.75rem;
  }

  .category-grid,
  .category-grid.full-grid,
  .movie-grid,
  .movie-grid.compact-grid,
  .movie-grid.catalogue-grid,
  .podium-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

  .ranking-link {
    grid-template-columns: 2.6rem 4rem minmax(0, 1fr);
  }
}
