:root {
  --text: #151923;
  --muted: #667085;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --pink: #ec4899;
  --pink-dark: #db2777;
  --yellow: #f59e0b;
  --green: #22c55e;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #facc15, #ec4899 52%, #22c55e);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

.logo-text,
.footer-logo span:last-child {
  font-size: 20px;
  background: linear-gradient(90deg, #ca8a04, #ec4899, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pink-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.22);
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-menu.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--pink-dark);
  background: #fdf2f8;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 18px 18px;
  background: rgba(15, 23, 42, 0.48);
}

.search-panel.is-open {
  display: flex;
}

.search-card {
  width: min(760px, 100%);
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
}

.search-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.search-topline strong {
  font-size: 20px;
}

.search-topline button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

#site-search-input,
.list-toolbar input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: #ffffff;
}

#site-search-input:focus,
.list-toolbar input:focus {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.search-results {
  max-height: 62vh;
  overflow: auto;
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.search-result {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f9fafb;
  transition: transform 0.2s ease, background 0.2s ease;
}

.search-result:hover {
  transform: translateY(-2px);
  background: #fdf2f8;
}

.search-result img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: #e5e7eb;
}

.search-result strong {
  display: block;
  margin-bottom: 4px;
  color: #111827;
}

.search-result span {
  color: var(--muted);
  font-size: 13px;
}

.home-hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fce7f3 48%, #dcfce7);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.65), transparent 26%), radial-gradient(circle at 78% 24%, rgba(236, 72, 153, 0.24), transparent 32%), radial-gradient(circle at 60% 86%, rgba(34, 197, 94, 0.22), transparent 30%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 420px);
  align-items: center;
  gap: 54px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(34px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: -30px -80px;
  opacity: 0.16;
  filter: blur(18px) saturate(1.2);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-eyebrow,
.detail-kicker,
.section-heading p,
.category-overview-title p,
.rank-panel-top p,
.page-hero p {
  margin: 0 0 12px;
  color: var(--pink-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-content h2 {
  display: inline-block;
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 900;
  background: linear-gradient(90deg, #ca8a04, #ec4899, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-summary {
  max-width: 620px;
  margin: 0 0 22px;
  color: #374151;
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span,
.detail-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.12);
  font-size: 13px;
  font-weight: 800;
}

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

.primary-button,
.secondary-button,
.side-actions a,
.category-overview-title a,
.rank-panel-top a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button,
.side-actions a:first-child,
.category-overview-title a,
.rank-panel-top a {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.24);
}

.secondary-button,
.side-actions a:last-child {
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
}

.primary-button:hover,
.secondary-button:hover,
.side-actions a:hover,
.category-overview-title a:hover,
.rank-panel-top a:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.hero-poster {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(420px, 100%);
  border-radius: 34px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #111827;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  font-size: 26px;
}

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

.hero-dots .hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.22);
  box-shadow: none;
}

.hero-dots .hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
}

.hero-mini-list {
  position: absolute;
  right: max(16px, calc((100% - 1180px) / 2));
  bottom: 28px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 220px));
  gap: 12px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.hero-mini-card img {
  width: 54px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-mini-card strong,
.hero-mini-card em {
  display: block;
}

.hero-mini-card strong {
  font-size: 14px;
  line-height: 1.35;
}

.hero-mini-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-section,
.category-overview-block {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-soft {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, #f0fdf4, #fffbeb);
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading h2,
.page-hero h1,
.category-overview-title h2,
.rank-panel-top h2,
.detail-main-copy h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading span,
.page-hero span,
.category-overview-title span {
  display: block;
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

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

.small-card-grid,
.poster-mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card-compact {
  border-radius: 18px;
}

.poster-box {
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
}

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

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

.poster-badge,
.poster-score {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  left: 12px;
  top: 12px;
  color: #ffffff;
  background: rgba(219, 39, 119, 0.92);
}

.poster-score {
  right: 12px;
  top: 12px;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
}

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

.movie-kicker {
  margin: 0 0 8px;
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--pink-dark);
}

.movie-one-line {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #4b5563;
  font-size: 12px;
}

.movie-meta-row span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.movie-tags-line {
  margin: 12px 0 0;
  color: #9ca3af;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.category-tile {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
}

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

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

.category-tile span {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent);
}

.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile strong {
  font-size: 22px;
  font-weight: 950;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.7;
  font-style: normal;
}

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

.split-section .section-heading {
  text-align: left;
}

.split-section .section-heading span {
  margin-left: 0;
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.rank-panel-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.rank-list,
.rank-directory {
  display: grid;
  gap: 10px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 58px 1fr auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border-radius: 18px;
  background: #f9fafb;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  background: #fdf2f8;
}

.rank-number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  font-weight: 950;
}

.rank-item img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  background: #e5e7eb;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: #ca8a04;
  font-weight: 900;
  white-space: nowrap;
}

.inner-page,
.detail-page {
  background: #f8fafc;
  min-height: 80vh;
  padding: 28px 0 70px;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

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

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fef3c7, #fce7f3 48%, #dcfce7);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.compact-hero {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.list-section {
  padding-top: 46px;
}

.list-toolbar,
.category-overview-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 26px;
}

.list-toolbar h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 950;
}

.list-toolbar p {
  margin: 0;
  color: var(--muted);
}

.list-toolbar input {
  width: min(360px, 100%);
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 24px;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.empty-state.is-visible {
  display: block;
}

.category-overview-block {
  padding-top: 18px;
  padding-bottom: 58px;
}

.category-overview-title {
  align-items: center;
}

.detail-card {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-area {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000000;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.22));
}

.play-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.play-core i {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.32);
}

.play-core i::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 26px solid #ffffff;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  padding: 36px;
}

.detail-main-copy h1 {
  margin-bottom: 16px;
}

.detail-lead {
  margin: 0 0 18px;
  color: #374151;
  font-size: 19px;
  line-height: 1.8;
}

.detail-main-copy section {
  margin-top: 28px;
}

.detail-main-copy h2,
.detail-side h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 950;
}

.detail-main-copy p {
  color: #4b5563;
  line-height: 1.92;
}

.detail-side {
  align-self: start;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fffbeb, #fdf2f8 52%, #f0fdf4);
}

.detail-facts {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.detail-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.detail-facts span {
  color: var(--muted);
}

.detail-facts strong {
  text-align: right;
}

.related-section {
  padding-bottom: 34px;
}

.detail-neighbor {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-neighbor a {
  padding: 18px;
  border-radius: 18px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.site-footer {
  background: #111827;
  color: #ffffff;
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 44px;
}

.footer-shell p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.footer-shell h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(236, 72, 153, 0.5);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

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

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

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

  .hero-mini-list {
    display: none;
  }

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

  .rank-panel {
    position: static;
  }
}

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

  .menu-button {
    display: flex;
  }

  .nav-shell {
    min-height: 66px;
  }

  .home-hero {
    min-height: 760px;
  }

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

  .hero-poster {
    width: min(280px, 72vw);
    justify-self: start;
    transform: rotate(0);
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .movie-grid,
  .catalog-grid,
  .featured-grid,
  .poster-mosaic,
  .category-grid,
  .category-grid.wide,
  .rank-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .list-toolbar,
  .category-overview-title,
  .footer-shell,
  .detail-neighbor {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .detail-neighbor a:last-child {
    text-align: left;
  }

  .page-hero,
  .detail-content {
    padding: 26px;
  }

  .player-area {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 520px) {
  .logo-text {
    font-size: 17px;
  }

  .icon-button {
    padding: 0 14px;
  }

  .home-hero {
    min-height: 790px;
  }

  .hero-controls {
    bottom: 18px;
  }

  .hero-tags,
  .detail-tags {
    gap: 8px;
  }

  .movie-grid,
  .catalog-grid,
  .featured-grid,
  .poster-mosaic,
  .category-grid,
  .category-grid.wide,
  .small-card-grid,
  .rank-directory {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 34px 52px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

  .page-section,
  .category-overview-block {
    padding: 48px 0;
  }

  .detail-card,
  .page-hero {
    border-radius: 24px;
  }
}
