:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --blue-500: #3b82f6;
  --purple-500: #a855f7;
  --rose-500: #f43f5e;
  --amber-500: #f59e0b;
  --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 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 22px 55px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--sky-50), var(--white) 380px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  border-radius: 13px;
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.3);
}

.logo-text {
  background: linear-gradient(90deg, var(--sky-500), var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--sky-500);
}

.header-search {
  position: relative;
  width: 260px;
}

.header-search input {
  width: 100%;
  border: 1px solid #d1d5db;
  outline: 0;
  border-radius: 999px;
  padding: 10px 44px 10px 18px;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.header-search button {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--gray-500);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.header-search button:hover {
  color: var(--sky-500);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-100);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 14px 0 20px;
}

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

.mobile-panel .nav-links {
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
}

.mobile-panel .header-search {
  width: 100%;
  margin-top: 16px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(100deg, #38bdf8, #22d3ee 45%, #60a5fa);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.45) 0, rgba(255, 255, 255, 0.45) 5px, transparent 6px);
  background-size: 60px 60px;
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 54px;
  width: 100%;
  min-height: 620px;
  padding: 76px max(32px, calc((100vw - 1180px) / 2)) 72px;
  color: var(--white);
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.85s ease, transform 0.85s ease, visibility 0.85s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.93), rgba(6, 182, 212, 0.78) 48%, rgba(37, 99, 235, 0.7));
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto -15% -42% 34%;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(50px);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-content,
.hero-poster-card {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.hero-content h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.7;
}

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

.hero-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: var(--sky-600);
  background: var(--white);
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.24);
}

.btn-primary:hover {
  color: var(--sky-500);
  background: #f8fdff;
}

.btn-glass {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-poster-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  transform: rotate(1.5deg);
  transition: transform 0.35s ease;
}

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

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

.hero-card-body {
  padding: 18px;
}

.hero-card-body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 19px;
}

.hero-card-body span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.section {
  padding: 70px 0;
}

.section-soft {
  background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

.section-blue {
  background: linear-gradient(135deg, #f0f9ff, #ecfeff, #eff6ff);
}

.section-purple {
  background: linear-gradient(90deg, #faf5ff, #fdf2f8);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.03em;
}

.section-title .mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
}

.section-link {
  color: var(--sky-500);
  font-weight: 800;
}

.section-link:hover {
  color: var(--sky-600);
}

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

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

.movie-card {
  display: flex;
  overflow: hidden;
  min-height: 100%;
  flex-direction: column;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

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

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

.card-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(2, 6, 23, 0.42);
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  max-width: calc(50% - 12px);
  overflow: hidden;
  padding: 5px 9px;
  border-radius: 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-left {
  left: 10px;
  background: var(--sky-500);
}

.badge-right {
  right: 10px;
  background: var(--purple-500);
}

.badge-year {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 9px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 9px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title,
.movie-list-item:hover h3,
.related-item:hover h3 {
  color: var(--sky-500);
}

.movie-one-line {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta span,
.inline-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--gray-100);
}

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

.movie-list-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-list-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.movie-list-item img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.movie-list-content {
  padding: 16px 16px 16px 0;
}

.movie-list-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
  transition: color 0.2s ease;
}

.movie-list-content p {
  display: -webkit-box;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--gray-600);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card {
  display: flex;
  position: relative;
  overflow: hidden;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 22px;
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -42px;
  width: 135px;
  height: 135px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 26px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
}

.tone-rose {
  background: linear-gradient(135deg, #fb7185, #f43f5e);
}

.tone-amber {
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.tone-emerald,
.tone-green {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.tone-purple {
  background: linear-gradient(135deg, #c084fc, #a855f7);
}

.tone-pink {
  background: linear-gradient(135deg, #f472b6, #ec4899);
}

.tone-orange {
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.tone-cyan {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
}

.tone-blue {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.tone-indigo {
  background: linear-gradient(135deg, #818cf8, #6366f1);
}

.tone-teal {
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
}

.tone-sky {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.page-hero {
  padding: 62px 0;
  color: var(--white);
  background: linear-gradient(95deg, var(--sky-500), var(--cyan-500));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.04em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--gray-600);
  font-size: 14px;
}

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

.filter-panel {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.local-search {
  flex: 1 1 260px;
  min-height: 44px;
  border: 1px solid #d1d5db;
  outline: 0;
  border-radius: 999px;
  padding: 11px 17px;
}

.local-search:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.filter-chip {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 750;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--white);
  background: var(--sky-500);
  transform: translateY(-1px);
}

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

.ranking-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  background: var(--gray-900);
}

.ranking-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ranking-card:hover img {
  transform: scale(1.08);
}

.ranking-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
}

.rank-no {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--amber-500);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

.ranking-body {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px;
  color: var(--white);
}

.ranking-body h3 {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 76px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ranking-row img {
  width: 76px;
  height: 98px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-row h3 {
  margin: 0 0 7px;
}

.ranking-row p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 30px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  box-shadow: var(--shadow-lg);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  padding-left: 5px;
  color: var(--sky-500);
  background: var(--white);
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
}

.play-overlay strong {
  font-size: 18px;
}

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

.detail-card {
  margin-top: 22px;
  padding: 26px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-meta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 750;
}

.prose h2,
.prose h3 {
  margin: 28px 0 10px;
}

.prose p {
  margin: 0 0 16px;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.88;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag-cloud a {
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--sky-600);
  background: var(--sky-50);
  font-weight: 750;
}

.tag-cloud a:hover {
  color: var(--white);
  background: var(--sky-500);
}

.sidebar-card {
  position: sticky;
  top: 88px;
  padding: 20px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 112px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item h3 {
  display: -webkit-box;
  margin: 0 0 5px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.related-item p {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.search-panel {
  max-width: 840px;
  margin: 0 auto;
}

.search-panel form {
  position: relative;
}

.search-panel input {
  width: 100%;
  min-height: 58px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 16px 70px 16px 24px;
  color: var(--gray-900);
  font-size: 18px;
  box-shadow: 0 15px 35px rgba(2, 6, 23, 0.16);
}

.search-panel button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--sky-500);
  cursor: pointer;
}

.search-status {
  margin: 0 0 22px;
  color: var(--gray-600);
  font-size: 18px;
}

.empty-state {
  border-radius: 22px;
  padding: 42px;
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer p,
.site-footer li {
  color: var(--gray-600);
  line-height: 1.75;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid #d1d5db;
  color: var(--gray-600);
  font-size: 14px;
}

.hidden-by-filter {
  display: none !important;
}

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

  .mobile-panel .header-search {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poster-card {
    display: none;
  }

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

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

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

  .sidebar-card {
    position: static;
  }

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

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

  .mobile-panel .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .navbar {
    min-height: 62px;
  }

  .logo {
    font-size: 21px;
  }

  .hero-carousel,
  .hero-track,
  .hero-slide {
    min-height: 560px;
  }

  .hero-slide {
    padding: 54px 20px 72px;
  }

  .hero-controls {
    right: 20px;
    bottom: 24px;
  }

  .section {
    padding: 46px 0;
  }

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

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

  .movie-body {
    padding: 13px;
  }

  .movie-title {
    min-height: 42px;
    font-size: 16px;
  }

  .movie-one-line {
    font-size: 13px;
  }

  .movie-list-item {
    grid-template-columns: 124px 1fr;
  }

  .movie-list-item img {
    height: 118px;
  }

  .movie-list-content {
    padding: 12px 12px 12px 0;
  }

  .movie-list-content h3 {
    font-size: 17px;
  }

  .ranking-card,
  .ranking-card img {
    min-height: 275px;
  }

  .ranking-row {
    grid-template-columns: 42px 66px 1fr;
  }

  .ranking-row .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .detail-card {
    padding: 20px;
  }

  .related-item {
    grid-template-columns: 96px 1fr;
  }

  .related-item img {
    width: 96px;
    height: 66px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 34px 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .movie-list-item {
    grid-template-columns: 110px 1fr;
  }
}
