:root {
  --color-primary: #0891b2;
  --color-primary-dark: #2563eb;
  --color-accent: #f97316;
  --color-bg: #f8fafc;
  --color-card: #ffffff;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.nav-shell {
  width: var(--container);
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand {
  font-size: clamp(18px, 2vw, 24px);
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #06b6d4;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

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

.desktop-nav > a,
.nav-dropdown > a {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > a:hover,
.desktop-nav .is-active {
  color: #cffafe;
}

.nav-dropdown {
  position: relative;
  padding: 22px 0;
}

.nav-dropdown-panel {
  position: absolute;
  top: 64px;
  left: 50%;
  width: 190px;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #334155;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-panel a:hover {
  color: #0369a1;
  background: #e0f2fe;
}

.nav-search {
  position: relative;
  width: 260px;
}

.nav-search input,
.mobile-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 11px 46px 11px 18px;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.nav-search input:focus,
.mobile-search input:focus {
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 0 3px rgba(207, 250, 254, 0.55);
}

.nav-search button {
  position: absolute;
  top: 50%;
  right: 12px;
  border: 0;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

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

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

.mobile-panel > a,
.mobile-cats a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.mobile-search {
  display: flex;
  gap: 10px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #0369a1;
  background: #ffffff;
  font-weight: 800;
}

.mobile-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 70vh;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

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

.hero-slide {
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.hero-copy {
  max-width: 700px;
  padding: 96px 0 108px;
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  padding: 8px 16px;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.28);
}

.eyebrow {
  margin: 0 0 10px;
  color: #0891b2;
}

.hero h1 {
  max-width: 780px;
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 650px;
  margin: 0 0 26px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  display: block;
  border-radius: 28px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

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

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

.quick-stats {
  width: var(--container);
  margin: -54px auto 44px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.quick-stats a {
  display: grid;
  gap: 4px;
  min-height: 116px;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.quick-stats strong {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1;
}

.quick-stats span {
  color: var(--color-muted);
  font-weight: 700;
}

.content-section,
.filter-panel,
.search-page,
.detail-content,
.player-section,
.ranking-page-section,
.category-grid,
.spotlight-section {
  width: var(--container);
  margin: 0 auto 56px;
}

.content-section--soft {
  width: 100%;
  max-width: none;
  padding: 56px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-heading h2,
.filter-panel h2,
.detail-content h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.18;
}

.section-heading a {
  color: #0891b2;
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
  border-radius: 20px;
  background: var(--color-card);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 22px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.play-mark {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  font-size: 46px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 22px rgba(239, 68, 68, 0.22);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: #cbd5e1;
}

.movie-card h3 {
  min-height: 2.8em;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  color: #0369a1;
  background: #e0f2fe;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.card-bottom strong {
  color: #f97316;
  font-size: 18px;
}

.card-bottom span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

.spotlight-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  padding: 34px;
  border-radius: 30px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.8), transparent 38%), linear-gradient(135deg, #0f172a, #1e3a8a);
  box-shadow: var(--shadow-soft);
}

.spotlight-copy {
  align-self: center;
}

.spotlight-copy .eyebrow {
  color: #a5f3fc;
}

.spotlight-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 42px);
}

.spotlight-copy p {
  color: rgba(255, 255, 255, 0.76);
}

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

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

.ranking-row:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.2);
}

.ranking-row img {
  width: 54px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-number {
  color: #a5f3fc;
  font-weight: 900;
}

.ranking-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ranking-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-main em {
  color: rgba(255, 255, 255, 0.62);
  font-style: normal;
  font-size: 13px;
}

.ranking-row b {
  color: #fed7aa;
}

.ranking-page-section .ranking-row,
.ranking-list--wide .ranking-row {
  color: var(--color-text);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.ranking-page-section .ranking-row:hover,
.ranking-list--wide .ranking-row:hover {
  background: #f0f9ff;
}

.ranking-page-section .ranking-main em,
.ranking-list--wide .ranking-main em {
  color: var(--color-muted);
}

.page-hero,
.detail-hero {
  color: #ffffff;
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
}

.page-hero {
  min-height: 330px;
  display: grid;
  align-items: center;
  margin-bottom: 42px;
}

.page-hero--plain {
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.45), transparent 36%), linear-gradient(135deg, #0f172a, #1e3a8a);
}

.page-hero > div {
  width: var(--container);
  margin: 0 auto;
  padding: 70px 0;
}

.page-hero .eyebrow,
.detail-hero .eyebrow {
  color: #a5f3fc;
}

.page-hero h1 {
  max-width: 780px;
  margin: 0 0 14px;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.04;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(200px, 0.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(120px, 1fr));
  gap: 12px;
}

.filter-controls input,
.filter-controls select,
.search-large input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--color-text);
  background: #ffffff;
  outline: 0;
}

.filter-controls input:focus,
.filter-controls select:focus,
.search-large input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

.filter-count {
  grid-column: 2;
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
}

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

.category-card {
  border-radius: 26px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
}

.category-card a {
  display: grid;
  grid-template-columns: minmax(210px, 0.44fr) minmax(0, 1fr);
  min-height: 210px;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  background: #0f172a;
}

.category-preview img {
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  border-radius: 12px;
}

.category-info {
  padding: 28px;
}

.category-info span {
  color: #0891b2;
  font-weight: 900;
}

.category-info h2 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.category-info p {
  color: var(--color-muted);
}

.search-page {
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.search-large {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 18px;
}

.search-large button {
  border: 0;
  border-radius: 14px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  font-weight: 900;
  cursor: pointer;
}

.search-status {
  margin: 0 0 24px;
  color: var(--color-muted);
  font-weight: 800;
}

.detail-hero {
  min-height: 640px;
  display: grid;
  align-items: center;
}

.detail-hero-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  padding: 80px 0;
}

.detail-poster {
  border-radius: 28px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

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

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

.detail-score {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.detail-score strong {
  color: #fed7aa;
  font-size: 46px;
  line-height: 1;
}

.detail-score span {
  color: rgba(255, 255, 255, 0.72);
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow-soft);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.76));
  cursor: pointer;
}

.player-cover-button span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.35);
  font-size: 34px;
}

.player-cover-button strong {
  font-size: 20px;
}

.player-box.is-playing .player-cover-button {
  display: none;
}

.player-tip {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(15, 23, 42, 0.7);
  font-size: 13px;
  pointer-events: none;
}

.player-box.is-playing .player-tip {
  opacity: 0;
}

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

.detail-content article {
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-content p:last-child {
  color: #334155;
  font-size: 16px;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 34px;
  padding: 48px 0;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.footer-grid p {
  color: #94a3b8;
}

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

.footer-grid a:hover {
  color: #67e8f9;
}

.footer-bottom {
  width: var(--container);
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  color: #94a3b8;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-inner,
  .detail-hero-inner,
  .spotlight-section,
  .filter-panel,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .filter-count {
    grid-column: 1;
  }

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

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

  .detail-poster {
    max-width: 320px;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 24px, 1180px);
  }

  .nav-shell {
    height: 62px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-copy {
    padding: 74px 0 96px;
  }

  .hero h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 40px;
  }

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

  .quick-stats {
    margin-top: -36px;
    grid-template-columns: 1fr;
  }

  .quick-stats a {
    min-height: auto;
    padding: 18px;
  }

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

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

  .movie-card p,
  .tag-row {
    display: none;
  }

  .filter-controls,
  .search-large {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-inner {
    padding: 48px 0;
  }

  .player-cover-button span {
    width: 62px;
    height: 62px;
    font-size: 26px;
  }

  .ranking-row {
    grid-template-columns: 34px 46px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .ranking-row img {
    width: 46px;
    height: 64px;
  }

  .footer-grid {
    padding: 36px 0;
  }
}
