:root {
  --bg: #090a14;
  --panel: rgba(255, 255, 255, 0.10);
  --panel-strong: rgba(255, 255, 255, 0.16);
  --border: rgba(255, 255, 255, 0.20);
  --text: #ffffff;
  --muted: #b9bed3;
  --dim: #7d8399;
  --blueberry-300: #bcb2ff;
  --blueberry-400: #9d8df9;
  --blueberry-500: #7d60f5;
  --blueberry-600: #6547d8;
  --night-400: #7d9aff;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(125, 96, 245, 0.35), transparent 34rem),
    radial-gradient(circle at 82% 12%, rgba(125, 154, 255, 0.18), transparent 28rem),
    linear-gradient(180deg, #111327 0%, #090a14 45%, #070812 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 80%);
  z-index: -1;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

.page-main {
  padding: 96px 0 72px;
}

.glass-effect {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.22);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(9, 10, 20, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blueberry-500), var(--night-400));
  box-shadow: 0 0 24px rgba(125, 96, 245, 0.72);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

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

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -25px;
  height: 2px;
  border-radius: 999px;
  background: var(--blueberry-400);
  box-shadow: 0 0 12px rgba(157, 141, 249, 0.85);
}

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

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
}

.mobile-nav a {
  display: block;
  padding: 12px 10px;
  color: var(--muted);
}

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

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 16px 24px;
  background: rgba(3, 5, 12, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

.search-panel-inner {
  position: relative;
  width: min(780px, 100%);
  max-height: 80vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 28px;
  background: rgba(16, 18, 35, 0.95);
  box-shadow: var(--shadow);
}

.search-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
  font-size: 24px;
}

.search-panel h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.site-search-input,
.local-filter {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 15px 18px;
  color: var(--text);
  outline: none;
  background: rgba(255, 255, 255, 0.09);
}

.site-search-input:focus,
.local-filter:focus {
  border-color: rgba(157, 141, 249, 0.75);
  box-shadow: 0 0 0 4px rgba(125, 96, 245, 0.22);
}

.site-search-results {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.search-result-item img {
  width: 96px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.search-result-item strong {
  display: block;
  margin-bottom: 4px;
}

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

.hero-slider {
  position: relative;
  min-height: 570px;
  margin: 8px 0 64px;
  border: 1px solid var(--border);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow);
}

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.hero-stars span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  animation: twinkle 3s ease-in-out infinite;
}

.hero-track {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 570px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 38px;
  align-items: center;
  padding: 64px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.06);
  opacity: 0.42;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 50%, rgba(125, 96, 245, 0.20), transparent 26rem),
    linear-gradient(90deg, rgba(9, 10, 20, 0.96), rgba(9, 10, 20, 0.70) 48%, rgba(9, 10, 20, 0.52));
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--blueberry-300);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.2vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--blueberry-300), #ffffff 45%, var(--night-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h2 + p,
.hero-copy h1 + h2 {
  margin-top: -4px;
}

.hero-copy h1 + h2 {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.02em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #d8dcef;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.inline-search {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blueberry-500), var(--night-400));
  box-shadow: 0 14px 34px rgba(125, 96, 245, 0.32);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.10);
}

.btn.text {
  border-color: transparent;
  color: var(--blueberry-300);
  background: transparent;
}

.hero-poster {
  position: relative;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  transform: perspective(900px) rotateY(-7deg);
  animation: float 6s ease-in-out infinite;
}

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

.hero-poster span,
.play-hover {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(125, 96, 245, 0.88);
  box-shadow: 0 0 35px rgba(125, 96, 245, 0.8);
  transform: translate(-50%, -50%);
}

.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--blueberry-300);
  box-shadow: 0 0 12px rgba(157, 141, 249, 0.92);
}

.content-section {
  margin-bottom: 64px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  color: var(--blueberry-300);
  font-size: 27px;
  filter: drop-shadow(0 0 12px rgba(157, 141, 249, 0.55));
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 34px);
}

.section-more {
  color: var(--blueberry-300);
  font-weight: 700;
}

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

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: block;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.movie-card a:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(157, 141, 249, 0.58);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.24);
}

.movie-card.large .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent 56%);
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(101, 71, 216, 0.88);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: rgba(255, 187, 70, 0.92);
  color: #1d1424;
}

.play-hover {
  z-index: 4;
  width: 52px;
  height: 52px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card a:hover .play-hover {
  opacity: 1;
}

.card-content {
  padding: 16px;
}

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

.movie-card.small .card-content h3 {
  min-height: 42px;
  font-size: 15px;
}

.card-content p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--dim);
  font-size: 13px;
}

.meta-chip,
.card-meta span:first-child {
  color: #ffd166;
}

.tag-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span,
.tag-cloud a {
  padding: 5px 9px;
  border-radius: 999px;
  color: #d9dcff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

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

.ranking-panel {
  position: sticky;
  top: 96px;
  border-radius: 24px;
  padding: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 28px 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(3px);
}

.rank-row span {
  color: #ffd166;
  font-weight: 900;
}

.rank-row img {
  width: 72px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  color: var(--dim);
  font-style: normal;
  font-size: 12px;
}

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

.horizontal-card a {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.10);
  transition: transform 0.25s ease, background 0.25s ease;
}

.horizontal-card a:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
}

.horizontal-poster {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.horizontal-poster img {
  width: 160px;
  height: 98px;
  object-fit: cover;
}

.rank-mini {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #1d1424;
  background: #ffd166;
  font-weight: 900;
}

.horizontal-card h3 {
  margin: 2px 0 7px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.horizontal-card p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-card,
.category-overview-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.10);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(157, 141, 249, 0.58);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  object-fit: cover;
}

.category-card h3,
.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p,
.category-overview-card p,
.search-block p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.category-sample-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #dfe2ff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.page-hero {
  position: relative;
  margin-bottom: 34px;
  border-radius: 30px;
  padding: 42px;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(125, 96, 245, 0.22);
  filter: blur(30px);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: clamp(34px, 4.2vw, 54px);
}

.page-hero p,
.page-hero .category-filter,
.page-hero .eyebrow {
  position: relative;
  z-index: 1;
}

.category-filter {
  max-width: 620px;
  margin-top: 22px;
}

.search-block {
  border-radius: 28px;
  padding: 34px;
}

.search-block h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
}

.inline-search {
  margin-top: 20px;
}

.inline-search input {
  flex: 1 1 360px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--blueberry-300);
}

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

.player-card,
.detail-info,
.detail-sidebar {
  border-radius: 24px;
  padding: 18px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
}

.site-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  background: rgba(125, 96, 245, 0.88);
  box-shadow: 0 0 42px rgba(125, 96, 245, 0.9);
  transform: translate(-50%, -50%);
  cursor: pointer;
  font-size: 30px;
  z-index: 4;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-start:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

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

.detail-info {
  margin-top: 22px;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.lead-text {
  margin: 0 0 26px;
  color: #e4e7ff;
  font-size: 18px;
  line-height: 1.85;
}

.detail-info h2,
.detail-sidebar h2 {
  margin: 26px 0 12px;
  font-size: 22px;
}

.detail-info p {
  color: var(--muted);
  line-height: 1.9;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
}

.detail-sidebar h2 {
  margin-top: 0;
}

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

.sidebar-rec {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  align-items: center;
}

.sidebar-rec img {
  width: 104px;
  height: 66px;
  border-radius: 12px;
  object-fit: cover;
}

.sidebar-rec strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
}

.sidebar-rec em {
  display: block;
  margin-top: 5px;
  color: var(--dim);
  font-size: 12px;
  font-style: normal;
}

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

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 46px 0 32px;
  background: rgba(4, 5, 12, 0.55);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
}

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

.site-footer p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.75;
}

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

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

.site-footer a:hover {
  color: var(--blueberry-300);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--dim);
}

.bottom-nav {
  display: none;
}

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

@keyframes float {
  0%, 100% {
    transform: perspective(900px) rotateY(-7deg) translateY(0);
  }
  50% {
    transform: perspective(900px) rotateY(-7deg) translateY(-18px);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

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

  .menu-toggle {
    display: inline-block;
  }

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

  .hero-slide {
    padding: 42px;
  }

  .hero-poster {
    width: min(280px, 76%);
    transform: none;
    animation: none;
  }

  .ranking-panel,
  .detail-sidebar {
    position: static;
  }

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

@media (max-width: 760px) {
  .container,
  .header-inner,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

  .page-main {
    padding-top: 88px;
    padding-bottom: 96px;
  }

  .site-logo {
    font-size: 18px;
  }

  .hero-slider,
  .hero-track {
    min-height: 690px;
  }

  .hero-slide {
    padding: 28px;
    align-content: center;
  }

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

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

  .movie-grid,
  .horizontal-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-card a,
  .rank-row,
  .search-result-item {
    grid-template-columns: 96px 1fr;
  }

  .rank-row em {
    display: none;
  }

  .horizontal-poster img {
    width: 96px;
    height: 72px;
  }

  .page-hero,
  .search-block {
    padding: 28px;
  }

  .detail-info,
  .player-card,
  .detail-sidebar {
    padding: 14px;
  }

  .player-start {
    width: 70px;
    height: 70px;
  }

  .bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(9, 10, 20, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .bottom-nav a,
  .bottom-nav button {
    border: 0;
    border-radius: 16px;
    padding: 10px 4px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.07);
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider,
  .hero-track {
    min-height: 720px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
