:root {
  --bg: #fafaf9;
  --bg-soft: #fffbeb;
  --text: #1c1917;
  --muted: #78716c;
  --line: rgba(217, 119, 6, 0.22);
  --amber: #d97706;
  --amber-dark: #92400e;
  --green: #15803d;
  --blue: #1d4ed8;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(28, 25, 23, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fafaf9 0%, rgba(255, 251, 235, 0.72) 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(250, 250, 249, 0.96), rgba(240, 253, 244, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(28, 25, 23, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.logo-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), var(--green));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.3);
  transition: transform 0.3s ease;
}

.logo:hover .logo-icon,
.footer-logo:hover .logo-icon {
  transform: scale(1.08);
}

.logo-icon.small {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.logo-text {
  font-size: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--amber-dark), #166534);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: #44403c;
  font-weight: 700;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--amber);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-bar input {
  border: 1px solid rgba(217, 119, 6, 0.35);
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 14px;
  border-radius: 999px;
}

.header-search button,
.mobile-search button,
.big-search button {
  border: none;
  color: var(--white);
  background: var(--amber);
  border-radius: 999px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button {
  padding: 10px 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-bar input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: none;
  background: transparent;
  color: #44403c;
  font-size: 26px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-panel a {
  color: #44403c;
  font-weight: 700;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 14px;
  border-radius: 999px;
}

.mobile-search button {
  padding: 0 16px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #1c1917;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  bottom: 88px;
  width: min(680px, calc(100% - 48px));
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  padding: 7px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.92);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.48);
}

.hero p {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.75;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.42);
}

.hero-tags,
.detail-tags,
.tag-row,
.rank-tags,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  padding: 13px 26px;
  color: var(--white);
  background: var(--amber);
  box-shadow: 0 16px 26px rgba(217, 119, 6, 0.3);
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: var(--amber-dark);
}

.ghost-btn {
  padding: 12px 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  border-color: var(--white);
  background: rgba(0, 0, 0, 0.42);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.34);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
  backdrop-filter: blur(12px);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.56);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--white);
}

.hero-search-panel {
  margin-top: -38px;
  position: relative;
  z-index: 2;
}

.search-panel,
.filter-bar,
.content-card,
.player-card {
  border: 1px solid rgba(217, 119, 6, 0.18);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-panel {
  padding: 20px;
  border-radius: var(--radius);
}

.big-search {
  display: flex;
  gap: 12px;
}

.big-search input {
  min-width: 0;
  flex: 1;
  padding: 16px 20px;
  border-radius: 999px;
  font-size: 17px;
}

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

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--amber-dark);
  background: rgba(251, 191, 36, 0.18);
  font-weight: 700;
}

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

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

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-heading h2::before {
  content: "";
  width: 7px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber), var(--green));
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.feature-card a,
.category-card,
.category-preview {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #1c1917;
}

.feature-card img,
.category-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover img,
.category-card:hover img,
.card-cover:hover img,
.rank-cover:hover img {
  transform: scale(1.06);
}

.feature-shade,
.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

.feature-type {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 12px;
  color: var(--white);
  border-radius: 999px;
  background: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

.feature-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: var(--white);
}

.feature-copy strong,
.feature-copy em,
.feature-copy span {
  display: block;
}

.feature-copy strong {
  margin-bottom: 6px;
  font-size: 24px;
}

.feature-copy em {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  line-height: 1.6;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 24px rgba(28, 25, 23, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 38px rgba(28, 25, 23, 0.16);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #292524;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  right: 12px;
  background: rgba(217, 119, 6, 0.92);
}

.rank-badge {
  left: 12px;
  background: rgba(21, 128, 61, 0.92);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  min-height: 2.8em;
  font-size: 17px;
  line-height: 1.4;
}

.card-body h3 a:hover,
.rank-content h3 a:hover,
.category-overview-card h2 a:hover {
  color: var(--amber-dark);
}

.card-body p {
  margin: 0 0 12px;
  min-height: 4.8em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-meta {
  color: #57534e;
  font-size: 13px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 8px;
  background: #f5f5f4;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 210px;
  color: var(--white);
}

.category-card img {
  position: absolute;
  inset: 0;
  height: 100%;
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 18px;
}

.category-card strong {
  margin-top: 116px;
  font-size: 22px;
}

.category-card em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  line-height: 1.5;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 96px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(28, 25, 23, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(28, 25, 23, 0.14);
}

.rank-cover {
  display: block;
  width: 96px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #292524;
}

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

.rank-num {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), var(--green));
  font-weight: 900;
}

.rank-content h3 {
  margin: 8px 0;
  font-size: 20px;
}

.rank-content p,
.rank-bottom {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.rank-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

.text-link {
  color: var(--amber-dark);
  white-space: nowrap;
}

.text-link:hover {
  color: var(--green);
  transform: translateX(2px);
}

.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #78350f, #14532d);
}

.slim-hero {
  min-height: 270px;
}

.category-hero > img,
.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.18));
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero p,
.detail-info > p,
.player-copy p {
  margin: 0 0 10px;
  color: #fcd34d;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero span {
  display: block;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 24px rgba(28, 25, 23, 0.08);
}

.category-preview {
  height: 156px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  border-radius: 18px;
}

.category-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-preview span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.92);
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 4px 0 10px;
  font-size: 24px;
}

.category-overview-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 18px;
}

.filter-bar input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
}

.filter-bar span {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: var(--white);
}

.empty-state.is-visible {
  display: block;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 20px 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--amber-dark);
}

.detail-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #1c1917;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding-bottom: 54px;
}

.detail-poster {
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.35);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.detail-tags {
  margin: 16px 0;
}

.detail-one-line {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.player-card {
  overflow: hidden;
  border-radius: 24px;
}

.player-copy {
  padding: 22px 24px;
  background: linear-gradient(90deg, #292524, #78350f);
  color: var(--white);
}

.player-copy h2 {
  margin: 0;
  font-size: 28px;
}

.player-box {
  position: relative;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: none;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.72));
  text-align: center;
  z-index: 3;
}

.player-overlay.is-hidden {
  display: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.36);
  font-size: 34px;
  text-indent: 5px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-overlay:hover .play-circle {
  transform: scale(1.08);
  background: var(--amber-dark);
}

.player-overlay span:last-child {
  max-width: 80%;
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

.detail-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.content-card {
  padding: 26px;
  border-radius: 22px;
}

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

.content-card p {
  margin: 0;
  color: #57534e;
  line-height: 1.95;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f5f5f4, #e7e5e4);
}

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

.footer-brand p,
.footer-column p {
  color: var(--muted);
  line-height: 1.8;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.footer-column a {
  color: var(--muted);
}

.footer-column a:hover {
  color: var(--amber-dark);
}

[hidden] {
  display: none !important;
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .header-shell {
    height: 66px;
  }

  .hero {
    height: 540px;
  }

  .hero-content {
    bottom: 76px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-arrow {
    display: none;
  }

  .big-search,
  .filter-bar,
  .rank-item,
  .detail-hero-inner,
  .detail-content,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .big-search,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .big-search button {
    padding: 14px 20px;
  }

  .feature-grid,
  .category-overview-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

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

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

  .rank-num {
    position: absolute;
    margin-left: 58px;
    margin-top: -126px;
  }

  .rank-item .text-link {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .detail-hero-inner {
    align-items: start;
    padding-top: 36px;
  }

  .detail-poster {
    width: min(220px, 70vw);
  }
}

@media (max-width: 560px) {
  .container,
  .header-shell,
  .footer-shell {
    width: min(100% - 24px, 1180px);
  }

  .logo-text {
    font-size: 20px;
  }

  .hero {
    height: 520px;
  }

  .hero-content {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-tags span {
    font-size: 13px;
  }

  .movie-grid,
  .catalog-grid,
  .category-grid {
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .card-body p {
    display: none;
  }

  .card-meta span:nth-child(3),
  .tag-row {
    display: none;
  }

  .feature-card img {
    height: 230px;
  }

  .category-card {
    min-height: 170px;
  }

  .category-card strong {
    margin-top: 86px;
  }

  .page-hero,
  .slim-hero {
    min-height: 240px;
  }

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

  .player-copy h2 {
    font-size: 22px;
  }
}
