:root {
  --bg-deep: #020617;
  --bg-main: #0f172a;
  --bg-blue: #172554;
  --card: rgba(30, 41, 59, 0.58);
  --card-strong: rgba(15, 23, 42, 0.86);
  --border: rgba(30, 64, 175, 0.35);
  --border-bright: rgba(34, 211, 238, 0.55);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #60a5fa;
  --yellow: #facc15;
  --shadow: 0 24px 80px rgba(8, 47, 73, 0.36);
}

* {
  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 20% 0%, rgba(8, 145, 178, 0.22), transparent 28rem),
    radial-gradient(circle at 80% 15%, rgba(37, 99, 235, 0.26), transparent 32rem),
    linear-gradient(135deg, var(--bg-main), var(--bg-blue) 48%, var(--bg-main));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 70%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.82), rgba(15, 23, 42, 0.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.26);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.18);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.brand-text,
.footer-brand {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--soft);
  font-weight: 650;
}

.nav-links a,
.nav-dropdown > button,
.mobile-panel a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-dropdown > button:hover,
.mobile-panel a:hover {
  color: var(--cyan);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button,
.menu-toggle {
  border: 0;
  color: var(--soft);
  background: transparent;
  cursor: pointer;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 220px;
  display: grid;
  gap: 6px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-panel a {
  padding: 10px 12px;
  border-radius: 12px;
}

.nav-dropdown-panel a:hover,
.mobile-panel a:hover {
  background: rgba(34, 211, 238, 0.08);
}

.menu-toggle {
  display: none;
  font-size: 1.7rem;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--border);
}

.mobile-panel.is-open {
  display: grid;
  gap: 4px;
}

.mobile-panel a {
  padding: 12px 4px;
  color: var(--soft);
  font-weight: 650;
}

main {
  min-height: 68vh;
}

.home-hero {
  padding-top: 32px;
}

.hero-slider {
  position: relative;
  height: min(600px, calc(100vh - 140px));
  min-height: 500px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background: var(--card-strong);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.52), transparent),
    linear-gradient(90deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
}

.hero-tags,
.detail-meta,
.movie-card-foot,
.poster-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.hero-tags a,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  backdrop-filter: blur(10px);
}

.hero-tags span:nth-child(2) {
  color: var(--yellow);
  background: rgba(250, 204, 21, 0.13);
  border-color: rgba(250, 204, 21, 0.32);
}

.hero-content h1,
.page-hero h1,
.detail-title-block h1 {
  margin: 16px 0 18px;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--soft);
  font-size: 1.14rem;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  gap: 12px;
  color: #dbeafe;
  margin-bottom: 28px;
}

.hero-actions,
.filter-bar,
.home-search {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost,
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 13px;
  font-weight: 800;
  color: #fff;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary,
.home-search button {
  background: var(--cyan-strong);
  box-shadow: 0 18px 44px rgba(6, 182, 212, 0.26);
}

.btn-primary:hover,
.home-search button:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--cyan);
  box-shadow: 0 22px 54px rgba(34, 211, 238, 0.35);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.42);
  color: var(--cyan);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 2rem;
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.52);
  color: var(--cyan);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: 0.25s ease;
}

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

.search-panel,
.page-hero,
.category-strip,
.movie-section,
.list-page,
.detail-page {
  margin-top: 34px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 16px 60px rgba(2, 6, 23, 0.2);
}

.search-panel h2,
.section-heading h2,
.detail-side h2,
.content-card h2,
.tag-panel h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
}

.search-panel p,
.page-hero p,
.category-info p,
.content-card p,
.movie-card-body p {
  color: var(--muted);
  line-height: 1.72;
}

.home-search {
  justify-content: flex-end;
}

.home-search input,
.filter-bar input,
.filter-bar select {
  min-height: 46px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(2, 6, 23, 0.42);
  outline: none;
}

.home-search input {
  flex: 1;
  min-width: 240px;
  padding: 0 16px;
}

.home-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--border-bright);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-strip a {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--soft);
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.45);
  transition: 0.2s ease;
}

.category-strip a:hover {
  color: var(--cyan);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  flex: 1;
}

.section-heading h2 span,
.detail-side h2 span,
.page-hero h1,
.detail-title-block h1 {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading h2::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 22px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.42), transparent);
}

.section-more {
  color: var(--cyan);
  font-weight: 750;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  backdrop-filter: blur(14px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px) scale(1.018);
  border-color: var(--border-bright);
  box-shadow: 0 20px 56px rgba(34, 211, 238, 0.16);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.54));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.1), transparent);
  transition: opacity 0.28s ease;
}

.movie-card-link:hover .poster-shade {
  opacity: 1;
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.year-badge {
  right: 12px;
  padding: 0 9px;
  color: #713f12;
  background: rgba(250, 204, 21, 0.92);
}

.rank-badge {
  left: 12px;
  min-width: 30px;
  justify-content: center;
  color: #ecfeff;
  background: rgba(6, 182, 212, 0.92);
}

.poster-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  opacity: 0;
  color: #e2e8f0;
  font-size: 0.78rem;
  transition: opacity 0.28s ease;
}

.movie-card-link:hover .poster-meta {
  opacity: 1;
}

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

.movie-card-body h3 {
  margin: 0 0 9px;
  color: #f8fafc;
  font-size: 1rem;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.22s ease;
}

.movie-card-link:hover h3 {
  color: var(--cyan);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 3.4em;
  margin: 0 0 10px;
  overflow: hidden;
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-foot {
  justify-content: space-between;
  color: #64748b;
  font-size: 0.75rem;
}

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

.ranking-panel,
.content-card,
.tag-panel,
.filter-bar,
.category-card,
.detail-side,
.player-card,
.detail-title-block {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 50px rgba(2, 6, 23, 0.18);
}

.ranking-panel {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.compact-heading {
  margin-bottom: 14px;
}

.ranking-list {
  display: grid;
  gap: 8px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  color: var(--soft);
  transition: 0.2s ease;
}

.ranking-row:hover {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.ranking-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: rgba(6, 182, 212, 0.84);
  font-weight: 900;
}

.ranking-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 750;
}

.ranking-meta {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.82rem;
}

.page-hero {
  padding: 46px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 20%, rgba(34, 211, 238, 0.2), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 64, 175, 0.54));
  box-shadow: var(--shadow);
}

.slim-hero h1 {
  margin-top: 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.slim-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 1.06rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.category-card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
}

.category-card a {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 180px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 10px;
}

.category-covers img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
}

.category-info {
  padding: 26px 24px;
}

.category-info h2 {
  margin: 0 0 10px;
  color: #f8fafc;
}

.filter-bar {
  margin-bottom: 24px;
  padding: 18px;
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.filter-search {
  flex: 1;
  min-width: 260px;
}

.filter-bar input,
.filter-bar select {
  min-width: 180px;
  padding: 0 14px;
}

.empty-state {
  display: none;
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--cyan);
}

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

.player-card {
  position: relative;
  overflow: hidden;
  background: #000;
}

.media-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.player-overlay:hover {
  background: rgba(0, 0, 0, 0.55);
}

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

.player-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 999px;
  color: #fff;
  background: var(--cyan-strong);
  box-shadow: 0 0 48px rgba(34, 211, 238, 0.42);
  font-size: 2rem;
}

.detail-title-block {
  margin-top: 22px;
  padding: 26px;
}

.detail-title-block h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

.content-card,
.tag-panel {
  margin-top: 22px;
  padding: 24px;
}

.content-card h2,
.tag-panel h2 {
  margin-bottom: 14px;
  font-size: 1.36rem;
}

.content-card p {
  margin: 0 0 12px;
  color: #cbd5e1;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.tag-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-panel span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.detail-side {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.detail-side h2 {
  margin-bottom: 18px;
}

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

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

.movie-card-small .poster-frame {
  aspect-ratio: 2 / 3;
  min-height: 142px;
}

.movie-card-small .movie-card-body p {
  min-height: 0;
  -webkit-line-clamp: 2;
}

.movie-card-small .year-badge,
.movie-card-small .poster-meta,
.movie-card-small .rank-badge {
  display: none;
}

.site-footer {
  margin-top: 76px;
  border-top: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(23, 37, 84, 0.86), rgba(2, 6, 23, 0.96));
}

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

.site-footer p,
.site-footer a,
.footer-bottom {
  color: var(--muted);
}

.site-footer p {
  max-width: 420px;
  line-height: 1.75;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--text);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.92rem;
}

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

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

  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-slider {
    min-height: 520px;
    height: 520px;
    border-radius: 22px;
  }

  .hero-content {
    padding: 34px 24px 60px;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
  }

  .search-panel,
  .category-card a,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-search {
    justify-content: stretch;
  }

  .home-search input,
  .home-search button {
    width: 100%;
  }

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

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

@media (max-width: 560px) {
  .container,
  .nav-wrap,
  .mobile-panel,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    font-size: 1.16rem;
  }

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

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .hero-content p {
    font-size: 0.98rem;
  }

  .page-hero,
  .search-panel {
    padding: 28px 20px;
  }

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

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

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

  .movie-card-small .poster-frame {
    min-height: 124px;
  }

  .filter-bar {
    display: grid;
  }

  .filter-bar label,
  .filter-bar input,
  .filter-bar select {
    width: 100%;
  }
}
