
:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --green-600: #16a34a;
  --orange-600: #ea580c;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 35px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 55px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.brand:hover {
  color: var(--blue-400);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.18);
  font-size: 14px;
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--blue-400);
  font-weight: 700;
}

.header-search {
  flex: 0 0 260px;
}

.search-wrap,
.inline-filter,
.search-panel,
.big-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap input {
  width: 100%;
  border: 1px solid var(--slate-600);
  border-radius: 999px;
  background: var(--slate-700);
  color: #ffffff;
  outline: none;
  padding: 9px 16px 9px 40px;
}

.search-wrap input::placeholder {
  color: #cbd5e1;
}

.search-wrap input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.search-icon,
.search-wrap span {
  position: absolute;
  left: 14px;
  color: #cbd5e1;
  pointer-events: none;
}

.mobile-menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 26px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 16px;
}

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

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.mobile-search input {
  width: 100%;
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-700));
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
}

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

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

.hero-image.is-missing,
.movie-cover img.is-missing,
.poster-card img.is-missing,
.overview-tile img.is-missing,
.ranking-item img.is-missing {
  display: none;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.06));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
  color: #ffffff;
}

.hero-badges,
.badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-badges span:first-child {
  background: var(--blue-600);
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 30px;
  color: #e5e7eb;
  font-size: clamp(18px, 2.4vw, 26px);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.primary-button,
.glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 28px;
  min-height: 48px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  background: var(--blue-600);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.primary-button:hover {
  background: var(--blue-700);
  transform: translateY(-2px) scale(1.02);
}

.primary-button.full {
  width: 100%;
}

.glass-button {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.home-search-band {
  margin-top: -36px;
  position: relative;
  z-index: 8;
}

.big-search {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.big-search span {
  padding-left: 22px;
  color: var(--blue-600);
  font-size: 24px;
}

.big-search input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 22px 20px;
  font-size: 17px;
}

.big-search button,
.search-panel button {
  align-self: stretch;
  border: 0;
  background: var(--blue-600);
  color: #ffffff;
  font-weight: 800;
  padding: 0 30px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.category-tile {
  display: block;
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong {
  display: block;
  color: var(--gray-900);
  font-size: 18px;
  margin-bottom: 6px;
}

.category-tile span {
  color: var(--gray-500);
  font-size: 14px;
}

.page-section {
  margin-top: 56px;
}

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

.section-head h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

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

.section-more {
  color: var(--blue-600);
  font-weight: 800;
  white-space: nowrap;
}

.section-more span {
  font-size: 22px;
}

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

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-700));
}

.large-cover {
  aspect-ratio: 16 / 9;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.play-badge,
.round-play {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-600);
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.22);
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translateY(0);
}

.round-play {
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .round-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cover-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 18px;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78));
  color: #ffffff;
}

.cover-shade h3 {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.25;
}

.movie-info {
  padding: 16px;
}

.large-info {
  padding: 18px;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}

.badge.blue {
  background: var(--blue-100);
  color: var(--blue-600);
}

.badge.light {
  background: var(--gray-100);
  color: var(--gray-600);
}

.badge.glass {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.movie-info h3 {
  margin: 10px 0 8px;
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-info h3 {
  color: var(--blue-600);
}

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

.meta-line,
.tag-line {
  margin-top: 12px;
  color: var(--gray-500);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.horizontal-card {
  display: flex;
  gap: 16px;
}

.horizontal-cover {
  width: 168px;
  flex: 0 0 168px;
  aspect-ratio: 16 / 10;
}

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

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

.rank-card,
.filter-card,
.side-card,
.detail-card,
.player-card,
.poster-card,
.text-card {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.rank-card {
  position: sticky;
  top: 86px;
  padding: 24px;
}

.rank-card h2,
.filter-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

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

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

.rank-row:hover {
  background: var(--blue-50);
}

.rank-no,
.ranking-number {
  color: var(--blue-600);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.rank-meta {
  color: var(--gray-500);
  font-size: 13px;
}

.dual-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 56px;
}

.page-shell {
  min-height: 60vh;
}

.compact-hero {
  padding: 70px 0;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.35), transparent 34%), linear-gradient(135deg, var(--slate-900), var(--slate-800));
  color: #ffffff;
}

.compact-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.content-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 38px 0 64px;
}

.filter-sidebar {
  position: sticky;
  top: 86px;
}

.filter-card {
  padding: 22px;
}

.filter-links {
  display: grid;
  gap: 8px;
}

.filter-link {
  display: block;
  border-radius: 12px;
  background: var(--gray-50);
  color: var(--gray-700);
  padding: 12px 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-link:hover,
.filter-link.active {
  background: var(--blue-600);
  color: #ffffff;
}

.library-content {
  min-width: 0;
}

.library-content.single-column {
  padding: 42px 0 70px;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.library-toolbar h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.page-pill {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-600);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 800;
}

.inline-filter {
  width: min(340px, 100%);
}

.inline-filter span {
  position: absolute;
  left: 14px;
  color: var(--gray-500);
}

.inline-filter input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #ffffff;
  outline: none;
  padding: 11px 16px 11px 40px;
  box-shadow: var(--shadow-sm);
}

.inline-filter input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
  padding: 0 12px;
  font-weight: 800;
}

.pagination a.active {
  background: var(--blue-600);
  color: #ffffff;
}

.pagination .disabled {
  color: #9ca3af;
  opacity: 0.68;
}

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

.overview-tile {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.overview-tile img {
  width: 120px;
  height: 130px;
  object-fit: cover;
  background: var(--slate-800);
}

.overview-tile h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.overview-tile p {
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
}

.categories-wrap {
  padding-bottom: 70px;
}

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

.collection-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #ffffff;
  color: var(--gray-800);
  min-height: 58px;
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.collection-link:hover {
  background: var(--blue-600);
  color: #ffffff;
  transform: translateY(-2px);
}

.search-panel {
  overflow: hidden;
  margin-bottom: 26px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.search-panel span {
  padding-left: 20px;
  color: var(--blue-600);
  font-size: 24px;
}

.search-panel input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 18px;
  font-size: 17px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-item img {
  width: 80px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--slate-800);
}

.ranking-main strong {
  display: block;
  color: var(--gray-900);
  font-size: 17px;
}

.ranking-main em {
  display: block;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-meta {
  color: var(--gray-500);
  font-weight: 800;
}

.breadcrumb-wrap {
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  color: var(--gray-500);
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
}

.breadcrumbs a:hover {
  color: var(--blue-600);
}

.breadcrumbs strong {
  color: var(--gray-900);
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.detail-main {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.player-card {
  overflow: hidden;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.45));
  color: var(--blue-600);
  transition: opacity 0.2s ease;
}

.video-start span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  font-size: 30px;
}

.video-player.is-playing .video-start,
.video-player.is-ready .video-start.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-message {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  color: #ffffff;
  padding: 9px 14px;
  font-size: 14px;
}

.detail-card {
  padding: 26px;
}

.detail-title-row h1 {
  margin: 12px 0 0;
  color: var(--gray-900);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.detail-meta-grid div {
  border-radius: 14px;
  background: var(--gray-50);
  padding: 14px;
}

.detail-meta-grid span {
  display: block;
  color: var(--gray-500);
  font-size: 13px;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--gray-900);
}

.summary-block {
  margin-top: 24px;
}

.summary-block h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.summary-block p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
}

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

.tag-cloud span {
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.detail-side {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 18px;
}

.poster-card {
  overflow: hidden;
  padding: 14px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  background: var(--slate-800);
}

.side-card {
  padding: 20px;
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-card dt {
  float: left;
  color: var(--gray-500);
  font-size: 13px;
}

.side-card dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
  text-align: right;
}

.side-links {
  display: grid;
  gap: 8px;
}

.side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  background: var(--gray-50);
  padding: 10px 12px;
}

.side-link:hover {
  color: var(--blue-600);
}

.side-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.side-link em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.info-page {
  display: grid;
  gap: 24px;
  padding: 42px 0 70px;
}

.text-card {
  padding: 30px;
}

.text-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.text-card p {
  margin: 0 0 12px;
  color: var(--gray-700);
}

.faq-card details {
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 0;
}

.faq-card summary {
  cursor: pointer;
  color: var(--gray-900);
  font-weight: 800;
}

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

.values-grid article {
  display: grid;
  gap: 8px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.values-grid strong {
  color: var(--gray-900);
  font-size: 20px;
}

.values-grid span {
  color: var(--gray-500);
}

.title-index {
  padding: 42px 0 70px;
}

.index-group {
  margin-bottom: 26px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.index-group h2 {
  margin: 0 0 14px;
  color: var(--blue-600);
}

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

.title-index-links a {
  border-radius: 999px;
  background: var(--gray-50);
  color: var(--gray-700);
  padding: 7px 12px;
  font-size: 14px;
}

.title-index-links a:hover {
  background: var(--blue-600);
  color: #ffffff;
}

.site-footer {
  background: var(--slate-900);
  color: #94a3b8;
  padding-top: 44px;
}

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

.footer-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  margin: 0;
  max-width: 560px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

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

.site-footer a:hover {
  color: var(--blue-400);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  margin-top: 34px;
  padding: 22px 16px;
  font-size: 14px;
}

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

@media (max-width: 1100px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

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

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

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

  .filter-sidebar,
  .detail-side,
  .rank-card {
    position: static;
  }

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

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

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

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

  .hero-slider {
    height: 560px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .hero-arrow {
    display: none;
  }

  .home-search-band {
    margin-top: -24px;
  }

  .big-search,
  .search-panel {
    flex-wrap: wrap;
  }

  .big-search input,
  .search-panel input {
    width: calc(100% - 58px);
    flex: none;
  }

  .big-search button,
  .search-panel button {
    width: 100%;
    min-height: 48px;
  }

  .movie-grid,
  .compact-grid,
  .library-grid,
  .large-grid,
  .overview-grid,
  .dual-lists,
  .collection-grid,
  .values-grid,
  .category-strip {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    flex-direction: column;
  }

  .horizontal-cover {
    width: 100%;
    flex-basis: auto;
  }

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

  .inline-filter {
    width: 100%;
  }

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

  .ranking-item {
    grid-template-columns: 42px 64px minmax(0, 1fr);
  }

  .ranking-item img {
    width: 64px;
    height: 48px;
  }

  .ranking-meta {
    display: none;
  }

  .overview-tile {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .overview-tile img {
    width: 100px;
    height: 112px;
  }

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

@media (max-width: 430px) {
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .glass-button {
    width: 100%;
  }
}
