:root {
  --ice-50: #eff8ff;
  --ice-100: #dbeefe;
  --ice-200: #bfe3fd;
  --ice-300: #93d1fb;
  --ice-400: #5bb6f6;
  --ice-500: #3298e6;
  --ice-600: #1d74c8;
  --ice-700: #195da2;
  --glacier-500: #14b8c8;
  --glacier-600: #0891a2;
  --snow-50: #f8fafc;
  --snow-100: #f1f5f9;
  --snow-200: #e2e8f0;
  --snow-300: #cbd5e1;
  --snow-500: #64748b;
  --snow-600: #475569;
  --snow-700: #334155;
  --snow-800: #1e293b;
  --snow-900: #0f172a;
  --shadow-soft: 0 16px 48px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 34px rgba(15, 23, 42, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--snow-800);
  background:
    radial-gradient(circle at 8% 0%, rgba(50, 152, 230, 0.16), transparent 32rem),
    linear-gradient(180deg, var(--ice-50) 0%, #ffffff 34%, var(--snow-50) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: var(--container);
  height: 72px;
  padding: 0 24px;
  margin: 0 auto;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--snow-900);
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  font-size: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ice-600), var(--glacier-500));
  box-shadow: 0 10px 26px rgba(29, 116, 200, 0.32);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  overflow: hidden;
}

.desktop-nav a {
  font-weight: 700;
  font-size: 15px;
  color: var(--snow-700);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.section-head a:hover,
.card-body h3 a:hover,
.rank-info h3 a:hover {
  color: var(--ice-600);
}

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

.nav-search input,
.mobile-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--snow-200);
  outline: none;
  color: var(--snow-800);
  background: #ffffff;
  border-radius: 999px;
  padding: 11px 16px;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--ice-400);
  box-shadow: 0 0 0 4px rgba(50, 152, 230, 0.14);
}

.nav-search button,
.mobile-panel button,
.filter-panel button,
.primary-btn,
.secondary-btn,
.primary-link,
.ghost-link {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-search button,
.mobile-panel button,
.primary-btn,
.primary-link {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ice-600), var(--glacier-600));
  box-shadow: 0 12px 26px rgba(29, 116, 200, 0.24);
}

.secondary-btn,
.ghost-link,
.filter-panel button {
  color: var(--ice-700);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(191, 227, 253, 0.88);
}

.nav-search button:hover,
.mobile-panel button:hover,
.primary-btn:hover,
.primary-link:hover,
.secondary-btn:hover,
.ghost-link:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(29, 116, 200, 0.26);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--snow-800);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 18px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  font-weight: 700;
  color: var(--snow-700);
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.hero {
  padding: 34px 24px 16px;
}

.hero-shell {
  position: relative;
  max-width: var(--container);
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--snow-900);
  box-shadow: var(--shadow-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 72px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.20) 100%),
    radial-gradient(circle at 24% 22%, rgba(50, 152, 230, 0.44), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ice-500);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags a,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.20);
  padding: 7px 12px;
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: var(--snow-900);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-arrow:hover {
  transform: translateY(-50%) scale(1.06);
  background: #ffffff;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 6;
  left: 72px;
  bottom: 34px;
  display: flex;
  gap: 9px;
}

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

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

.intro-band {
  padding: 34px 24px 12px;
}

.section-block {
  max-width: var(--container);
  margin: 0 auto;
  padding: 54px 24px;
}

.soft-block {
  max-width: none;
  padding-left: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  padding-right: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  background: linear-gradient(135deg, rgba(239, 248, 255, 0.84), rgba(255, 255, 255, 0.96));
}

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

.center-head {
  display: block;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.section-head h2,
.center-head h2,
.sub-hero h1,
.article-block h2 {
  margin: 0;
  color: var(--snow-900);
  letter-spacing: -0.04em;
}

.section-head h2,
.center-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.center-head p:last-child,
.sub-hero p,
.category-overview-body p {
  color: var(--snow-600);
}

.section-head a {
  font-weight: 900;
  color: var(--ice-700);
}

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

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

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

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

.movie-card,
.rank-row,
.category-overview-card,
.category-tile {
  border: 1px solid rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

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

.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  border-color: rgba(93, 182, 246, 0.54);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--ice-100), var(--snow-200));
}

.movie-card-wide .poster-link {
  aspect-ratio: 16 / 10;
}

.poster-link img,
.rank-cover img,
.detail-poster img,
.player-poster img,
.category-cover-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img,
.rank-cover img {
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.rank-row:hover .rank-cover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.62));
}

.play-ring,
.big-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ice-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.play-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  padding: 6px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--snow-900);
  font-size: 16px;
  line-height: 1.35;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--snow-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--snow-500);
  font-size: 13px;
}

.meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: var(--snow-300);
}

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

.tag-row span,
.detail-tags a {
  color: var(--ice-700);
  background: var(--ice-50);
  border: 1px solid var(--ice-100);
  padding: 5px 9px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 24px;
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(50, 152, 230, 0.12);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ice-600), var(--glacier-600));
  box-shadow: 0 12px 30px rgba(29, 116, 200, 0.22);
}

.category-tile strong {
  display: block;
  color: var(--snow-900);
  font-size: 22px;
  margin-bottom: 8px;
}

.category-tile p {
  margin: 0 0 14px;
  color: var(--snow-600);
}

.tile-more,
.primary-link {
  display: inline-flex;
  align-items: center;
}

.tile-more {
  font-weight: 900;
  color: var(--ice-700);
}

.tile-links,
.mini-link-list {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: var(--snow-600);
  font-size: 14px;
}

.tile-links a,
.mini-link-list a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 148px 54px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-md);
}

.rank-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ice-100), var(--snow-200));
}

.rank-index {
  color: var(--ice-600);
  font-size: 28px;
  font-weight: 950;
}

.rank-info h3 {
  margin: 0 0 4px;
  color: var(--snow-900);
}

.rank-info p {
  margin: 0 0 8px;
  color: var(--snow-600);
}

.sub-hero {
  max-width: var(--container);
  margin: 34px auto 0;
  padding: 70px 42px;
  border: 1px solid rgba(191, 227, 253, 0.74);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 18%, rgba(20, 184, 200, 0.20), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 248, 255, 0.88));
  box-shadow: var(--shadow-card);
}

.sub-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.sub-hero p:last-child {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 18px;
}

.filter-panel {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.filter-search {
  flex: 1;
  min-width: 220px;
}

.filter-selects {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-selects select {
  min-width: 136px;
}

.empty-state {
  display: none;
  margin-top: 20px;
  padding: 34px;
  text-align: center;
  color: var(--snow-500);
  border: 1px dashed var(--snow-300);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

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

[data-card].is-hidden {
  display: none;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-height: 230px;
}

.category-cover-stack img {
  min-height: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ice-100), var(--snow-200));
}

.category-cover-stack img:first-child {
  grid-row: span 2;
}

.category-overview-body h2 {
  margin: 0 0 8px;
  color: var(--snow-900);
  font-size: 26px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  color: #ffffff;
  background: var(--snow-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) saturate(1.12);
  transform: scale(1.08);
  opacity: 0.35;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 12%, rgba(29, 116, 200, 0.44), transparent 28rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.74));
}

.detail-wrap {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 42px 24px 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--ice-100), var(--snow-200));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.detail-info h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

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

.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 7px 12px;
}

.detail-tags {
  margin-top: 16px;
}

.player-block {
  padding-top: 42px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.12);
  z-index: 3;
  overflow: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.player-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.38);
}

.player-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.player-poster img {
  filter: brightness(0.78) saturate(1.08);
}

.big-play {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  padding-left: 5px;
  font-size: 34px;
  color: var(--ice-600);
}

.play-text {
  position: absolute;
  z-index: 2;
  margin-top: 134px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.70);
  backdrop-filter: blur(12px);
}

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

.article-block {
  max-width: 920px;
  color: var(--snow-700);
  font-size: 18px;
}

.article-block h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 30px;
}

.article-block p {
  margin: 0 0 30px;
}

.site-footer {
  margin-top: 44px;
  color: var(--snow-300);
  background: var(--snow-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 38px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 50px 24px;
}

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

.site-footer p {
  max-width: 620px;
  color: var(--snow-300);
}

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

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: var(--snow-300);
}

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

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--snow-500);
  text-align: center;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ice-600), var(--glacier-600));
  box-shadow: 0 14px 30px rgba(29, 116, 200, 0.30);
  cursor: pointer;
  z-index: 30;
}

.back-top.is-visible {
  display: block;
}

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

  .nav-search {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

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

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

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

@media (max-width: 820px) {
  .nav-wrap {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .nav-search {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .hero {
    padding: 18px 14px;
  }

  .hero-shell {
    min-height: 640px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 48px 28px 78px;
    align-items: end;
  }

  .hero-bg::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.36), rgba(15, 23, 42, 0.92));
  }

  .hero-dots {
    left: 28px;
    bottom: 28px;
  }

  .hero-arrow {
    display: none;
  }

  .section-block,
  .soft-block {
    padding: 38px 16px;
  }

  .section-head {
    display: block;
  }

  .section-head a {
    display: inline-block;
    margin-top: 12px;
  }

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

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

  .rank-row {
    grid-template-columns: 96px 42px 1fr;
  }

  .rank-row .ghost-link {
    grid-column: 3;
    width: fit-content;
  }

  .rank-info p {
    display: none;
  }

  .sub-hero {
    margin: 18px 14px 0;
    padding: 44px 24px;
  }

  .filter-panel {
    display: grid;
  }

  .filter-selects {
    flex-wrap: wrap;
  }

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

  .detail-poster {
    width: min(260px, 72vw);
  }

  .detail-wrap {
    padding: 30px 16px 44px;
  }

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

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

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

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .nav-search {
    display: none;
  }

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

  .mobile-panel form {
    display: grid;
  }

  .hero-content h1,
  .detail-info h1,
  .sub-hero h1 {
    font-size: 34px;
  }

  .hero-summary,
  .detail-one-line,
  .sub-hero p:last-child {
    font-size: 16px;
  }

  .movie-grid,
  .catalog-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .card-body p {
    min-height: auto;
  }

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

  .rank-index {
    position: absolute;
    margin-left: 8px;
    margin-top: 8px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }

  .rank-row .ghost-link {
    grid-column: 2;
  }

  .big-play {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
