:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --cyan-50: #ecfeff;
  --blue-50: #eff6ff;
  --blue-600: #2563eb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(2, 132, 199, 0.08);
  --shadow-md: 0 18px 48px rgba(2, 132, 199, 0.16);
  --shadow-lg: 0 28px 80px rgba(3, 105, 161, 0.22);
  --radius-lg: 18px;
  --radius-xl: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--white) 0%, var(--sky-50) 48%, var(--cyan-50) 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.96), rgba(239, 246, 255, 0.96), rgba(236, 254, 255, 0.96));
  border-bottom: 1px solid rgba(125, 211, 252, 0.5);
  box-shadow: 0 8px 28px rgba(2, 132, 199, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner,
.page-shell,
.hero-content,
.detail-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.28);
  font-weight: 800;
}

.brand-text,
.footer-logo span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand strong,
.footer-logo strong {
  color: var(--sky-700);
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand small,
.footer-logo small {
  color: var(--sky-500);
  font-size: 12px;
  margin-top: 4px;
}

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

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 600;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 13px;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--sky-700);
  background: rgba(186, 230, 253, 0.7);
}

.header-search,
.mobile-search,
.hero-search-card form,
.search-hero-form,
.local-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search-card input,
.search-hero-form input,
.local-search-row input,
.local-search-main {
  border: 1px solid var(--sky-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-900);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search-card input:focus,
.search-hero-form input:focus,
.local-search-row input:focus,
.local-search-main:focus {
  border-color: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.header-search button,
.mobile-search button,
.hero-search-card button,
.search-hero-form button,
.btn,
.panel-link {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.24);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search-card button:hover,
.search-hero-form button:hover,
.btn:hover,
.panel-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(186, 230, 253, 0.6);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--sky-700);
}

.mobile-panel {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--sky-200);
  background: rgba(240, 249, 255, 0.98);
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 15px;
}

.mobile-nav,
.mobile-cats {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-link,
.mobile-cats a {
  padding: 11px 14px;
}

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

.mobile-cats a {
  border-radius: 14px;
  background: var(--white);
  color: var(--sky-700);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--sky-400), var(--blue-600), #22d3ee);
}

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

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

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), transparent 32%),
    linear-gradient(90deg, rgba(3, 105, 161, 0.9), rgba(37, 99, 235, 0.72), rgba(8, 47, 73, 0.68));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 430px;
  align-items: center;
  gap: 54px;
  padding: 76px 0 120px;
}

.hero-copy h1 {
  margin: 16px 0 20px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 14px 34px rgba(8, 47, 73, 0.35);
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.9;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--sky-700);
  background: rgba(224, 242, 254, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-tags,
.tag-row,
.tag-cloud,
.detail-meta,
.rank-meta,
.movie-meta,
.hero-actions,
.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags {
  margin: 24px 0;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.rank-meta span,
.movie-meta span,
.movie-meta a {
  border-radius: 999px;
  background: rgba(224, 242, 254, 0.88);
  color: var(--sky-700);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

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

.hero-poster span,
.play-badge,
.feature-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(14, 165, 233, 0.92);
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.34);
}

.hero-poster span {
  right: 24px;
  bottom: 24px;
  width: 74px;
  height: 74px;
  font-size: 30px;
}

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

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-search-card {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 6;
  width: min(1080px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid rgba(186, 230, 253, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.hero-search-card form {
  gap: 12px;
}

.hero-search-card label {
  color: var(--sky-700);
  font-weight: 800;
}

.hero-search-card input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
}

.hero-search-card button,
.search-hero-form button {
  padding: 13px 22px;
}

.hero-category-links {
  margin-top: 12px;
}

.hero-category-links a,
.tag-cloud a {
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--sky-50);
  border: 1px solid var(--sky-200);
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hero-category-links a:hover,
.tag-cloud a:hover {
  color: var(--sky-700);
  background: var(--sky-100);
  transform: translateY(-2px);
}

.page-shell {
  padding: 54px 0;
}

.section-block {
  margin-bottom: 70px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-title h2,
.side-panel h2,
.detail-article h2,
.detail-aside h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--gray-500);
}

.section-title a {
  color: var(--sky-700);
  font-weight: 800;
}

.feature-grid,
.movie-grid,
.category-grid {
  display: grid;
  gap: 24px;
}

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

.feature-card,
.movie-card,
.category-tile,
.side-panel,
.detail-article,
.detail-aside,
.player-shell,
.rank-item,
.filter-panel,
.page-hero {
  border: 1px solid rgba(186, 230, 253, 0.7);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.feature-card,
.feature-link,
.movie-card,
.category-tile {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.feature-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
}

.feature-link img,
.movie-cover img,
.rank-thumb img,
.category-images img,
.detail-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-link img,
.movie-cover img {
  transition: transform 0.45s ease;
}

.feature-card:hover img,
.movie-card:hover .movie-cover img {
  transform: scale(1.08);
}

.feature-overlay,
.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(8, 47, 73, 0.82) 100%);
}

.feature-text {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 6px;
  color: var(--white);
}

.feature-text em {
  font-style: normal;
  color: var(--sky-100);
  font-size: 13px;
  font-weight: 700;
}

.feature-text strong {
  font-size: 22px;
  line-height: 1.25;
}

.feature-text small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.6;
}

.feature-play {
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
}

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

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

.category-tile {
  position: relative;
  display: grid;
  min-height: 210px;
  padding: 20px;
  align-content: end;
  color: var(--white);
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.8), rgba(37, 99, 235, 0.88));
}

.category-images {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0.42;
}

.category-name {
  font-size: 26px;
  font-weight: 900;
}

.category-count,
.category-sample {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.9);
}

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

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

.movie-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-100), var(--blue-50));
}

.play-badge {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  gap: 6px;
  margin-bottom: 10px;
}

.movie-meta span,
.movie-meta a,
.rank-meta span {
  font-size: 11px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-body h3 a:hover {
  color: var(--sky-700);
}

.movie-info p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.65;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  color: var(--gray-600);
  background: var(--gray-100);
}

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

.side-panel {
  position: sticky;
  top: 92px;
  border-radius: var(--radius-xl);
  padding: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-list.full .rank-item {
  grid-template-columns: 58px 108px minmax(0, 1fr);
  padding: 16px;
}

.rank-item:hover {
  background: var(--sky-50);
  transform: translateX(4px);
}

.rank-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  font-weight: 900;
}

.rank-thumb {
  display: block;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
}

.rank-list.full .rank-thumb {
  height: 108px;
}

.rank-body h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.rank-body p {
  margin: 0 0 8px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
}

.panel-link {
  width: 100%;
  margin-top: 20px;
}

.masonry-grid {
  columns: 3 260px;
  column-gap: 24px;
}

.masonry-grid .feature-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
}

.tag-cloud {
  gap: 12px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  margin-bottom: 44px;
  padding: 58px;
}

.page-hero.soft {
  background:
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.2), transparent 28%),
    linear-gradient(135deg, var(--white), var(--sky-50));
}

.page-hero.category-hero,
.detail-hero {
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.page-hero.category-hero {
  min-height: 360px;
}

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

.page-hero h1 {
  max-width: 780px;
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero.soft p {
  color: var(--gray-600);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--sky-100);
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 24px;
}

.local-search-row input,
.local-search-main {
  width: 100%;
  padding: 14px 18px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-group strong {
  min-width: 42px;
  color: var(--gray-700);
}

.filter-chip {
  border: 1px solid var(--sky-200);
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--white);
  padding: 8px 12px;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--sky-700);
  background: var(--sky-100);
}

.empty-state {
  padding: 36px;
  border-radius: 22px;
  text-align: center;
  color: var(--gray-500);
  background: var(--white);
}

.search-hero-form {
  max-width: 740px;
  margin-top: 24px;
}

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

.detail-hero {
  position: relative;
  padding: 60px 0 80px;
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
}

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
}

.detail-meta {
  margin: 22px 0;
}

.detail-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.tag-cloud.inline a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.detail-shell {
  padding-top: 42px;
}

.player-section {
  margin-bottom: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.28), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  box-shadow: 0 22px 50px rgba(14, 165, 233, 0.38);
  font-size: 32px;
}

.player-overlay strong {
  font-size: 22px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-bottom: 56px;
}

.detail-article,
.detail-aside {
  border-radius: 26px;
  padding: 28px;
}

.detail-article h2,
.detail-aside h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.detail-article p {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 2;
}

.detail-aside dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
}

.detail-aside dt {
  color: var(--gray-500);
}

.detail-aside dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
}

.detail-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  margin-top: 34px;
}

.detail-nav a {
  padding: 15px 18px;
  border-radius: 18px;
  color: var(--sky-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  text-align: center;
}

.detail-nav a:first-child {
  text-align: left;
}

.detail-nav a:last-child {
  text-align: right;
}

.site-footer {
  border-top: 1px solid var(--sky-200);
  background: linear-gradient(180deg, var(--sky-50), var(--sky-100));
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 30px;
  padding: 46px 0 30px;
}

.footer-brand p,
.footer-col a,
.footer-bottom {
  color: var(--gray-600);
}

.footer-brand p {
  max-width: 520px;
  line-height: 1.8;
}

.footer-col h3 {
  margin: 0 0 16px;
  font-size: 15px;
}

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

.footer-col a:hover {
  color: var(--sky-700);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(125, 211, 252, 0.55);
  font-size: 14px;
}

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

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

  .split-block,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

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

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 44px;
  }

  .hero-poster {
    width: min(300px, 72vw);
    margin: 0 auto;
  }

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

  .feature-grid,
  .category-grid,
  .category-grid.overview,
  .movie-grid,
  .movie-grid.compact,
  .footer-inner,
  .detail-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero-grid {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .footer-inner,
  .page-shell,
  .hero-content,
  .detail-hero-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand strong {
    font-size: 18px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .hero-search-card {
    bottom: 16px;
    padding: 14px;
  }

  .hero-controls {
    bottom: 144px;
  }

  .feature-grid,
  .category-grid,
  .category-grid.overview,
  .movie-grid,
  .movie-grid.compact,
  .footer-inner,
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 32px 22px;
    border-radius: 24px;
  }

  .detail-hero {
    padding: 34px 0 48px;
  }

  .detail-poster {
    width: min(280px, 78vw);
  }

  .rank-list.full .rank-item,
  .rank-item {
    grid-template-columns: 38px 66px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-list.full .rank-thumb,
  .rank-thumb {
    height: 66px;
  }

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

  .detail-nav a,
  .detail-nav a:first-child,
  .detail-nav a:last-child {
    text-align: center;
  }
}
