:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --cyan-700: #0e7490;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --teal-600: #0d9488;
  --blue-600: #2563eb;
  --orange-500: #f97316;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 10px 26px rgba(15, 23, 42, 0.10);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  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-800);
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
}

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: linear-gradient(90deg, rgba(8, 145, 178, 0.96), rgba(37, 99, 235, 0.94));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(14, 116, 144, 0.28);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark,
.footer-logo span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.logo-text {
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link,
.dropdown-button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-weight: 650;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active,
.dropdown-button:hover {
  color: var(--white);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 190px;
  padding: 10px;
  border-radius: 14px;
  background: var(--white);
  color: var(--slate-700);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.dropdown-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.dropdown-link:hover {
  color: var(--cyan-700);
  background: var(--slate-100);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.20);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(6, 182, 212, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.58) 52%, rgba(15, 23, 42, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
  padding: 80px 0 120px;
}

.hero-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan-600), var(--blue-600));
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.32);
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1,
.page-hero h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags a,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.text-button,
.panel-search button,
.filter-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.panel-search button,
.filter-bar button {
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan-600), var(--blue-600));
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.26);
}

.primary-button:hover,
.panel-search button:hover,
.filter-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(8, 145, 178, 0.34);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
}

.text-button {
  min-height: auto;
  padding: 10px 0;
  color: var(--cyan-700);
  background: transparent;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  font-size: 38px;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-search {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 76px;
  width: min(760px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.hero-search input,
.panel-search input,
.filter-bar input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--slate-800);
  background: var(--white);
  outline: 0;
}

.hero-search button {
  min-width: 118px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan-600), var(--blue-600));
  font-weight: 800;
  cursor: pointer;
}

.page-stack {
  display: grid;
  gap: 64px;
  padding: 48px 0 72px;
}

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

.section-head > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
}

.section-head h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-head p {
  grid-column: 2;
  margin: 5px 0 0;
  color: var(--slate-500);
}

.section-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
  font-size: 14px;
}

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

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

.library-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 42px 0 72px;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--slate-200);
}

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

.movie-card:hover .poster-link img,
.compact-item:hover img,
.podium-card:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.play-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-700);
  font-size: 32px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: scale(0.78);
}

.play-hover::before {
  content: "";
  position: absolute;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  z-index: -1;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: scale(1);
}

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

.movie-card-body h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  min-height: 43px;
}

.movie-card-body h2 a:hover {
  color: var(--cyan-700);
}

.movie-card-body p {
  min-height: 43px;
  margin: 0 0 12px;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate-500);
  font-size: 12px;
}

.card-meta a {
  color: var(--cyan-700);
  font-weight: 800;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.detail-tags a {
  color: var(--slate-700);
  background: var(--slate-100);
}

.horizontal-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 4px 18px;
  scrollbar-width: none;
}

.horizontal-strip::-webkit-scrollbar {
  display: none;
}

.strip-card {
  flex: 0 0 260px;
}

.scroll-section {
  position: relative;
}

.scroll-controls {
  position: absolute;
  top: 4px;
  right: 0;
  display: flex;
  gap: 10px;
}

.scroll-controls button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-card);
  color: var(--slate-700);
  font-size: 24px;
  cursor: pointer;
}

.category-panel,
.year-panel,
.rank-preview,
.rank-list-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(236, 254, 255, 0.96));
  padding: 34px;
  box-shadow: var(--shadow-card);
}

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

.category-tile {
  display: grid;
  gap: 14px;
  min-height: 240px;
  border-radius: 18px;
  padding: 16px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 12px;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--slate-200);
}

.category-tile h2,
.category-card-large h2 {
  margin: 0;
  font-size: 20px;
}

.category-tile p,
.category-card-large p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
  font-size: 14px;
}

.year-links,
.category-filter,
.year-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.year-links a,
.category-filter button,
.year-filter button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--white);
  color: var(--slate-700);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.category-filter button.active,
.year-filter button.active {
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan-600), var(--blue-600));
}

.rank-preview {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  background: var(--white);
}

.rank-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 18px;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.rank-right h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.rank-right p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.panel-search {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

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

.compact-item {
  display: grid;
  grid-template-columns: auto 62px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.88);
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-item:hover {
  background: var(--slate-100);
  transform: translateX(2px);
}

.compact-item img {
  width: 62px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--slate-200);
  transition: transform 0.3s ease;
}

.compact-item strong,
.compact-item em {
  display: block;
}

.compact-item strong {
  color: var(--slate-800);
  line-height: 1.35;
}

.compact-item em {
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

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

.page-hero {
  color: var(--white);
  padding: 74px 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(6, 182, 212, 0.34), transparent 28%),
    linear-gradient(135deg, var(--slate-900), var(--cyan-700));
}

.small-hero,
.library-hero,
.ranking-hero,
.category-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.filter-bar {
  display: flex;
  gap: 10px;
  width: min(760px, 100%);
  margin-top: 24px;
}

.category-filter,
.year-filter {
  margin-top: 14px;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-card-large > img {
  width: 150px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
  background: var(--slate-200);
}

.sample-links {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.sample-links a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--slate-700);
  font-size: 14px;
}

.sample-links a:hover {
  color: var(--cyan-700);
}

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

.side-panel,
.cover-panel,
.detail-info-card {
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.side-panel {
  padding: 22px;
}

.side-panel h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.sticky-panel {
  position: sticky;
  top: 92px;
  margin-top: 42px;
}

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

.podium-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--slate-900);
  box-shadow: var(--shadow-soft);
}

.podium-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.4s ease;
}

.podium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.10));
}

.podium-card h2,
.podium-card p,
.podium-rank {
  position: relative;
  z-index: 1;
}

.podium-card h2 {
  margin: 0 22px 10px;
  font-size: 26px;
}

.podium-card p {
  margin: 0 22px 24px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.podium-rank {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--cyan-600));
  font-size: 22px;
  font-weight: 900;
}

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

.detail-shell {
  padding: 34px 0 72px;
}

.detail-breadcrumb {
  color: var(--slate-500);
}

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

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-soft);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--cyan-700);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.34));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.player-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding-left: 5px;
  color: var(--cyan-700);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  font-size: 38px;
}

.detail-info-card {
  padding: 28px;
}

.detail-info-card h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--slate-600);
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--slate-100);
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-info-card section + section {
  margin-top: 24px;
}

.detail-info-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.detail-info-card p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.9;
}

.detail-side {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 92px;
}

.cover-panel {
  overflow: hidden;
  padding: 16px;
}

.cover-panel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
  background: var(--slate-200);
}

.full-button {
  width: 100%;
  margin-top: 14px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.84);
  background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

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

.footer-logo {
  color: var(--white);
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--cyan-500);
  font-size: 18px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.8;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.movie-card.is-hidden,
.compact-item.is-hidden {
  display: none;
}

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

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

  .two-column-layout,
  .detail-grid,
  .rank-preview {
    grid-template-columns: 1fr;
  }

  .sticky-panel,
  .detail-side {
    position: static;
    margin-top: 0;
  }

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

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-carousel {
    min-height: 700px;
  }

  .hero-content {
    justify-content: flex-start;
    padding-top: 92px;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-search,
  .panel-search,
  .filter-bar {
    flex-direction: column;
  }

  .hero-arrow {
    display: none;
  }

  .page-stack {
    gap: 44px;
    padding-top: 34px;
  }

  .section-head,
  .rank-preview {
    align-items: flex-start;
  }

  .movie-grid,
  .library-grid,
  .category-grid,
  .category-list-large,
  .podium-grid,
  .rank-list.compact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .category-card-large > img {
    width: 100%;
    max-height: 320px;
  }

  .category-panel,
  .year-panel,
  .rank-preview,
  .rank-list-panel {
    padding: 22px;
  }

  .detail-info-card,
  .side-panel {
    padding: 20px;
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .library-grid,
  .category-grid,
  .category-list-large,
  .podium-grid,
  .rank-list.compact-list {
    grid-template-columns: 1fr;
  }

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

  .section-head > div:first-child {
    grid-template-columns: 1fr;
  }

  .section-head p {
    grid-column: 1;
  }

  .compact-item {
    grid-template-columns: auto 56px 1fr;
  }
}
