:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --secondary-50: #f0fdfa;
  --secondary-100: #ccfbf1;
  --secondary-500: #14b8a6;
  --secondary-600: #0d9488;
  --accent-100: #ffedd5;
  --accent-600: #ea580c;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-400: #a8a29e;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --shadow-soft: 0 20px 50px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 18px 36px rgba(28, 25, 23, 0.11);
  --radius-xl: 1rem;
  --radius-2xl: 1.35rem;
  --radius-3xl: 2rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--neutral-900);
  background: linear-gradient(180deg, var(--neutral-50) 0%, #ffffff 48%, #ffffff 100%);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  transition: background 0.28s ease, box-shadow 0.28s ease, backdrop-filter 0.28s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-2deg);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 21px;
  line-height: 1.05;
}

.brand-copy small {
  color: var(--neutral-500);
  font-size: 12px;
}

.brand.compact .brand-mark {
  width: 44px;
  height: 44px;
}

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

.nav-link,
.mobile-link {
  color: var(--neutral-700);
  font-weight: 700;
  transition: color 0.22s ease, background 0.22s ease;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--primary-600);
  background: var(--primary-50);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 268px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-search input,
.search-page-form input {
  width: 100%;
  border: 1px solid var(--neutral-200);
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 12px 16px;
  transition: border 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-search input:focus,
.search-page-form input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
  background: #ffffff;
}

.header-search button,
.mobile-search button,
.big-search button,
.search-page-form button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: 0 14px 26px rgba(2, 132, 199, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--neutral-100);
  cursor: pointer;
  font-size: 22px;
  color: var(--neutral-800);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--neutral-200);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
}

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

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  color: #ffffff;
  background: var(--neutral-900);
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.32) 100%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding: 132px 0 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  max-width: 1180px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  background: var(--primary-600);
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.26);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.75;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.hero-meta span,
.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero-actions,
.detail-copy .btn {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: 0 18px 36px rgba(2, 132, 199, 0.3);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-tools {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.hero-tools button {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.hero-dots button {
  width: 36px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.22s ease, width 0.22s ease;
}

.hero-dots button.is-active {
  width: 54px;
  background: #ffffff;
}

.hero-thumbs {
  position: absolute;
  right: max(16px, calc((100% - 1180px) / 2));
  bottom: 30px;
  display: flex;
  gap: 12px;
  max-width: min(560px, calc(100% - 32px));
  overflow-x: auto;
  padding-bottom: 4px;
}

.hero-thumb {
  min-width: 94px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  color: #ffffff;
  transition: transform 0.22s ease, border 0.22s ease;
}

.hero-thumb.is-active,
.hero-thumb:hover {
  transform: translateY(-3px);
  border-color: #ffffff;
}

.hero-thumb img {
  width: 94px;
  height: 62px;
  object-fit: cover;
}

.hero-thumb span {
  display: block;
  padding: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.search-band {
  position: relative;
  z-index: 2;
  margin-top: -42px;
  padding: 0 16px;
}

.search-band-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
  border-radius: var(--radius-3xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 0.95fr 1.45fr;
  gap: 22px;
  align-items: center;
}

.search-band-inner span {
  display: inline-flex;
  color: var(--primary-600);
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 8px;
}

.search-band-inner h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.03em;
}

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

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

.first-section {
  margin-top: 64px;
}

.no-top {
  margin-top: 28px;
}

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

.section-head > div {
  min-width: 0;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 12px;
  color: var(--primary-600);
  background: var(--primary-100);
  font-weight: 900;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--neutral-500);
  line-height: 1.7;
}

.section-more {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--primary-600);
  background: var(--primary-50);
  font-weight: 900;
}

.card-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  display: block;
  border-radius: var(--radius-2xl);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  border: 1px solid rgba(231, 229, 228, 0.72);
}

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

.poster-wrap {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  background: var(--neutral-100);
  overflow: hidden;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 14px;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent-600);
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
}

.card-info {
  padding: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--primary-600);
  background: var(--primary-50);
  font-size: 12px;
  font-weight: 800;
}

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

.meta-line {
  margin: 0 0 10px;
  color: var(--neutral-500);
  font-size: 13px;
}

.card-summary {
  margin: 0;
  color: var(--neutral-600);
  line-height: 1.7;
  font-size: 14px;
}

.analysis-section {
  padding: 40px;
  border-radius: var(--radius-3xl);
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

.wide-list {
  display: grid;
  gap: 18px;
}

.movie-card.is-wide {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card.is-wide .poster-wrap {
  aspect-ratio: auto;
  height: 100%;
}

.movie-card.is-wide .card-info {
  padding: 20px 22px;
}

.rank-panel {
  padding: 40px;
  border-radius: var(--radius-3xl);
  background: linear-gradient(135deg, var(--neutral-900), var(--neutral-800));
  color: #ffffff;
}

.rank-panel .section-head p,
.rank-panel .section-more {
  color: rgba(255, 255, 255, 0.72);
}

.rank-panel .section-more {
  background: rgba(255, 255, 255, 0.12);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(3px);
}

.rank-item span {
  color: var(--secondary-100);
  font-weight: 900;
}

.rank-item img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item em {
  color: rgba(255, 255, 255, 0.62);
  font-style: normal;
  font-size: 13px;
}

.page-main,
.detail-main {
  padding-top: 76px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  border-radius: var(--radius-3xl);
  padding: clamp(34px, 7vw, 72px);
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.95), rgba(13, 148, 136, 0.95)), var(--neutral-900);
  box-shadow: var(--shadow-soft);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

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

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

.category-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background: #ffffff;
  border: 1px solid rgba(231, 229, 228, 0.78);
  box-shadow: 0 14px 32px rgba(28, 25, 23, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--neutral-100);
}

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

.category-info {
  padding: 26px;
  align-self: center;
}

.category-info span {
  color: var(--primary-600);
  font-weight: 900;
}

.category-info h2 {
  margin: 8px 0 10px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.category-info p {
  margin: 0;
  color: var(--neutral-600);
  line-height: 1.7;
}

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.08);
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  border: 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--neutral-700);
  background: var(--neutral-100);
  font-weight: 800;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
}

.detail-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: var(--neutral-900);
}

.detail-wrap {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 680px;
  padding: 116px 0 66px;
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: end;
}

.detail-poster {
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

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

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: -36px auto 0;
  position: relative;
  z-index: 3;
}

.player-box {
  position: relative;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.58));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: #ffffff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: 0 18px 38px rgba(2, 132, 199, 0.32);
}

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

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

.story-card {
  padding: 28px;
  border-radius: var(--radius-2xl);
  background: #ffffff;
  border: 1px solid rgba(231, 229, 228, 0.8);
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.07);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.story-card p {
  margin: 0;
  color: var(--neutral-700);
  line-height: 1.9;
}

.related-section {
  margin-bottom: 32px;
}

.search-page-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: 24px;
  border-radius: var(--radius-3xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-results {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--neutral-200);
  transition: border 0.22s ease, transform 0.22s ease;
}

.search-result-card:hover {
  border-color: var(--primary-500);
  transform: translateY(-2px);
}

.search-result-card img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 16px;
}

.search-result-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.search-result-card p {
  margin: 0;
  color: var(--neutral-600);
  line-height: 1.7;
}

.search-result-card span {
  color: var(--primary-600);
  font-weight: 900;
}

.empty-state {
  padding: 34px;
  border-radius: 24px;
  color: var(--neutral-600);
  background: var(--neutral-50);
  text-align: center;
  font-weight: 800;
}

.site-footer {
  margin-top: 88px;
  color: var(--neutral-300);
  background: linear-gradient(135deg, var(--neutral-900), var(--neutral-800));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 36px;
}

.footer-brand p {
  color: var(--neutral-400);
  line-height: 1.8;
  max-width: 440px;
}

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

.footer-group h3 {
  margin: 0 0 8px;
  color: #ffffff;
}

.footer-group a,
.footer-group span {
  color: var(--neutral-400);
}

.footer-group a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--neutral-400);
  font-size: 14px;
}

[hidden],
.movie-card.is-hidden {
  display: none !important;
}

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

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

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

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

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

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

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    padding: 110px 0 178px;
  }

  .hero-tools {
    bottom: 116px;
  }

  .hero-thumbs {
    left: 16px;
    right: 16px;
    bottom: 22px;
  }

  .search-band-inner,
  .filter-panel,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .big-search,
  .search-page-form,
  .mobile-search {
    flex-direction: column;
  }

  .four-col,
  .three-col,
  .category-grid,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .analysis-section,
  .rank-panel {
    padding: 24px;
  }

  .movie-card.is-wide {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .detail-wrap {
    min-height: auto;
    padding: 112px 0 52px;
  }

  .detail-poster {
    max-width: 260px;
  }

  .detail-hero {
    min-height: auto;
  }

  .search-result-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .search-result-card span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

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

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

  .hero-tools {
    justify-content: center;
    gap: 14px;
  }

  .hero-dots button {
    width: 20px;
  }

  .hero-dots button.is-active {
    width: 34px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-card.is-wide {
    grid-template-columns: 1fr;
  }

  .movie-card.is-wide .poster-wrap {
    aspect-ratio: 2 / 3;
  }

  .player-overlay span {
    width: 68px;
    height: 68px;
  }
}
