:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 24px rgba(15, 23, 42, 0.10);
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--slate-50), #ffffff 36%, var(--amber-50));
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500), var(--amber-500));
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.25);
}

.nav-shell {
  width: min(var(--container), calc(100% - 32px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--amber-500);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.04);
}

.brand-text {
  font-size: 1.35rem;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #ffffff;
  font-weight: 650;
  flex: 1;
}

.desktop-nav a {
  opacity: 0.95;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--amber-100);
  transform: translateY(-1px);
}

.nav-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.filter-bar input {
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.92);
  min-width: 230px;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.22);
}

.nav-search button,
.mobile-search button,
.search-page-form button,
.primary-btn,
.ghost-btn,
.inline-link,
.section-more {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button,
.search-page-form button,
.primary-btn,
.inline-link {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  padding: 11px 18px;
  box-shadow: 0 10px 18px rgba(234, 88, 12, 0.25);
}

.nav-search button {
  background: #ffffff;
  color: var(--orange-600);
  box-shadow: none;
}

.primary-btn:hover,
.nav-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.inline-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(234, 88, 12, 0.25);
}

.ghost-btn {
  padding: 11px 18px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.mobile-panel {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.mobile-panel a {
  display: block;
  padding: 10px 0;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 74vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(2px) saturate(1.25);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.32), transparent 28%), linear-gradient(135deg, rgba(245, 158, 11, 0.90), rgba(249, 115, 22, 0.88), rgba(15, 23, 42, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  min-height: 74vh;
  margin: 0 auto;
  padding: 118px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 42px;
  align-items: center;
}

.hero-copy {
  color: #ffffff;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 13px;
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 820px;
  margin: 18px 0 10px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 0 0 14px;
  color: var(--amber-100);
  font-size: clamp(1.35rem, 2.5vw, 2.4rem);
}

.hero p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 18px;
}

.hero-tags,
.tag-row,
.detail-meta,
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag-row span,
.detail-meta span {
  color: var(--slate-700);
  background: var(--amber-50);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.35);
  transform: rotate(2deg);
  transition: transform 0.25s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-4px);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 12px 16px;
  text-align: center;
  color: #ffffff;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.5rem;
}

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

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

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

.content-section,
.quick-categories {
  padding: 72px 0;
}

.soft-panel {
  background: linear-gradient(180deg, #ffffff, var(--slate-100));
}

.dark-section {
  color: #ffffff;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

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

.section-heading h2 {
  margin: 10px 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.1;
}

.section-heading p {
  margin: 0;
  color: var(--slate-500);
}

.dark-section .section-heading p {
  color: var(--slate-200);
}

.section-kicker {
  color: var(--amber-500);
  background: var(--amber-50);
  border-color: rgba(245, 158, 11, 0.25);
}

.section-more {
  padding: 10px 16px;
  color: var(--orange-600);
  background: var(--amber-50);
}

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

.category-tile,
.category-card-large,
.movie-card,
.text-card,
.player-card,
.side-card,
.rank-panel,
.ranking-item {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.category-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  padding: 18px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover,
.ranking-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

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

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.82));
}

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 1.25rem;
  font-weight: 850;
}

.category-tile em {
  margin-top: 6px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

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

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--slate-100);
}

.poster img {
  width: 100%;
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.75);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  color: var(--slate-900);
  font-weight: 850;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover,
.ranking-info h2 a:hover,
.category-card-large h2 a:hover {
  color: var(--orange-600);
}

.card-meta {
  margin: 8px 0;
  color: var(--slate-500);
  font-size: 0.9rem;
}

.card-body p,
.text-card p,
.player-card p,
.category-card-large p,
.footer-inner p,
.ranking-info p {
  color: var(--slate-500);
  line-height: 1.7;
}

.card-body p {
  min-height: 3.2em;
  margin: 0 0 12px;
  font-size: 0.93rem;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 184px;
}

.horizontal-poster img {
  height: 100%;
  aspect-ratio: auto;
}

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

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 18px;
  height: max-content;
}

.rank-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 850;
}

.rank-panel-head a {
  color: var(--orange-600);
  font-size: 0.9rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--slate-100);
}

.rank-index {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 850;
}

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

.rank-heat {
  color: var(--slate-500);
  font-size: 0.88rem;
}

.page-main {
  padding-top: 66px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600), var(--slate-900));
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding: 78px 0;
}

.page-hero h1 {
  max-width: 780px;
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
}

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

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

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

.category-card-large {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.category-card-large > div {
  padding: 22px;
}

.category-card-large h2 {
  margin: 0 0 10px;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.category-preview span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 0.86rem;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-bar input {
  flex: 1;
  background: var(--slate-50);
}

.filter-pills button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--slate-700);
  background: var(--slate-100);
  cursor: pointer;
  font-weight: 750;
}

.filter-pills button.is-active,
.filter-pills button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 72px 128px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-number {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 900;
}

.ranking-cover img {
  width: 128px;
  height: 170px;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-info h2 {
  margin: 0 0 8px;
}

.search-page-form {
  max-width: 720px;
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
}

.search-result-head {
  margin-bottom: 24px;
}

.search-result-head h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.search-result-head p {
  margin: 0;
  color: var(--slate-500);
}

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

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

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(4px) saturate(1.15);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.90), rgba(249, 115, 22, 0.82));
}

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

.detail-head-grid {
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: center;
}

.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

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

.detail-cover span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 7px 11px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  font-weight: 850;
}

.detail-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

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

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

.player-card,
.text-card,
.side-card {
  padding: 22px;
}

.player-card h2,
.text-card h2,
.side-card h2 {
  margin: 18px 0 10px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.24);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.52));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--orange-600);
  background: #ffffff;
  font-size: 2rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

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

.related-section .section-heading {
  margin-top: 8px;
}

.detail-sidebar {
  position: sticky;
  top: 92px;
}

.rank-mini {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--slate-100);
}

.rank-mini-cover img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-mini-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-mini-info em {
  display: block;
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 0.86rem;
  font-style: normal;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(180deg, var(--slate-900), #020617);
}

.footer-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-logo .brand-mark {
  width: 30px;
  height: 30px;
}

.footer-brand p,
.footer-copy p {
  color: var(--slate-400);
}

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

.footer-links strong,
.footer-copy strong {
  color: var(--amber-400);
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--slate-400);
}

.footer-links a:hover {
  color: var(--amber-400);
}

.copyright {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--slate-500);
  text-align: center;
  font-size: 0.92rem;
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-poster {
    max-width: 280px;
    justify-self: start;
  }

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

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

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

  .detail-sidebar,
  .rank-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .container,
  .nav-shell,
  .mobile-panel,
  .footer-inner,
  .copyright {
    width: min(100% - 22px, var(--container));
  }

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

  .hero-content {
    min-height: 82vh;
    padding: 104px 0 82px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-poster {
    display: none;
  }

  .section-heading,
  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar input,
  .mobile-search input {
    width: 100%;
    min-width: 0;
  }

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

  .horizontal-card,
  .category-card-large,
  .ranking-item,
  .detail-head-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-poster img {
    aspect-ratio: 16 / 9;
  }

  .ranking-number {
    width: 46px;
    height: 46px;
  }

  .detail-cover {
    max-width: 240px;
  }

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

@media (max-width: 480px) {
  .category-strip,
  .movie-grid,
  .compact-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 150px;
  }

  .hero-actions,
  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn,
  .search-page-form button {
    text-align: center;
  }
}
