/* Убираем стандартные отступы у всей страницы */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --neon-purple: #a855f7;
  --neon-pink: #ec4899;
  --neon-cyan: #00e5ff;
  --neon-purple-bright: #c084fc;
  --neon-pink-bright: #ff4fa3;

  --neon-purple-rgb: 168, 85, 247;
  --neon-pink-rgb: 236, 72, 153;
  --neon-cyan-rgb: 0, 229, 255;
  --neon-purple-bright-rgb: 192, 132, 252;
  --neon-pink-bright-rgb: 255, 79, 163;
}

body {
  background-color: #07020d;
  position: relative;
  color: #ffffff;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle at 20% 20%,
      rgba(var(--neon-purple-rgb), 0.18) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(var(--neon-pink-rgb), 0.14) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, #150a1f 0%, #1a0b2e 100%);
  animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
  0%,
  100% {
    filter: hue-rotate(0deg) saturate(0.9) brightness(1);
  }
  50% {
    filter: hue-rotate(90deg) saturate(1.1) brightness(1.05);
  }
}

/* ========== ШАПКА ========== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 12px 30px;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
}

.logo span {
  color: var(--neon-purple);
  text-shadow: 0 0 10px var(--neon-purple);
}

.search-box {
  flex: 1;
  max-width: 500px;
  margin: 0 30px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 86px 10px 20px;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 20px;
  color: #fff;
  outline: none;
  transition: all 0.3s;
}

.search-box input:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 15px rgba(var(--neon-purple-rgb), 0.4);
}

.search-btn,
.filter-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  color: #fff;
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn {
  right: 46px;
}

.filter-btn {
  right: 8px;
}

.search-btn svg,
.filter-btn svg {
  width: 18px;
  height: 18px;
}

.search-btn:hover,
.filter-btn:hover {
  opacity: 1;
  background-color: rgba(var(--neon-purple-rgb), 0.2);
  box-shadow: 0 0 12px rgba(var(--neon-purple-rgb), 0.5);
}

.search-btn:active,
.filter-btn:active {
  transform: translateY(-50%) scale(0.9);
}

/* ========== ВЫПАДАЮЩИЙ СПИСОК ПОИСКА ========== */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: #12101a;
  border: 1px solid #2a2a3a;
  border-radius: 14px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(var(--neon-purple-rgb), 0.25);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  z-index: 200;
  max-height: 460px;
  overflow-y: auto;
}

.search-suggest.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-suggest::-webkit-scrollbar {
  width: 4px;
}
.search-suggest::-webkit-scrollbar-track {
  background: transparent;
}
.search-suggest::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #1e1e2a;
}

.suggest-item:last-child {
  border-bottom: none;
}

.suggest-item:hover,
.suggest-item.focused {
  background-color: rgba(var(--neon-purple-rgb), 0.12);
}

.suggest-poster {
  width: 40px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: #222;
}

.suggest-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.suggest-info {
  flex: 1;
  min-width: 0;
}

.suggest-title {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggest-title .suggest-type {
  color: #888;
  font-weight: normal;
  font-style: italic;
  font-size: 12px;
  margin-left: 4px;
}

.suggest-meta {
  font-size: 12px;
  color: #888;
  margin-top: 3px;
}

.suggest-status {
  padding: 16px 14px;
  text-align: center;
  color: #777;
  font-size: 13px;
}

@media (max-width: 768px) {
  .search-box {
    margin: 0 12px;
  }
  .search-box input {
    padding-right: 86px;
  }
}

/* ========== КНОПКА "ВОЙТИ / РЕГИСТРАЦИЯ" ========== */
.login-btn {
  display: inline-block;
  background-color: transparent;
  color: #fff;
  border: 1px solid var(--neon-purple);
  border-radius: 20px;
  padding: 8px 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  white-space: nowrap;
  text-decoration: none;
}

.login-btn:hover {
  background-color: var(--neon-purple);
  box-shadow: 0 0 20px rgba(var(--neon-purple-rgb), 0.8);
  color: #000;
}

/* ========== ПОЛКИ ========== */
.shelf {
  margin-bottom: 40px;
  position: relative;
}

.shelf-title {
  font-size: 24px;
  color: #fff;
  margin-bottom: 15px;
  margin-left: 10px;
  position: relative;
  z-index: 3;
}

.shelf-frame {
  padding: 3px;
  border-radius: 25px;
  background: linear-gradient(
    45deg,
    var(--neon-purple-bright),
    var(--neon-pink-bright),
    var(--neon-purple-bright),
    var(--neon-pink-bright)
  );
  background-size: 300% 300%;
  animation: neonMove 5s linear infinite;
  position: relative;
  box-shadow:
    0 0 25px rgba(var(--neon-purple-bright-rgb), 0.55),
    0 0 45px rgba(var(--neon-pink-bright-rgb), 0.35);
}

.shelf-frame::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background-color: #0a0a0f;
  border-radius: 22px;
  z-index: 1;
}

@keyframes neonMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.carousel-container {
  overflow: hidden;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.carousel {
  display: flex;
  gap: 20px;
  will-change: transform;
}

/* ========== КАРТОЧКА ФИЛЬМА ========== */
.movie-card {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  width: 220px;
  min-width: 220px;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.movie-card:hover {
  transform: scale(1.08);
  border-color: var(--neon-purple);
  box-shadow:
    0 0 25px rgba(var(--neon-purple-rgb), 0.7),
    0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 20;
}

.card-media {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background-color: #000;
}

.card-poster,
.card-trailer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}

.card-trailer {
  opacity: 0;
  pointer-events: none;
}

.movie-card.playing .card-trailer {
  opacity: 1;
}

.movie-card.playing .card-poster {
  opacity: 0;
}

.movie-card .rating {
  z-index: 3;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
  pointer-events: none;
}

.movie-card:hover .card-media::after {
  opacity: 1;
}

.card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(
    to top,
    rgba(8, 4, 16, 0.98) 0%,
    rgba(8, 4, 16, 0.94) 60%,
    rgba(8, 4, 16, 0.78) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
  z-index: 4;
  pointer-events: none;
}

.movie-card:hover .card-overlay {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.card-title {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.card-meta {
  font-size: 11px;
  color: #b8b8b8;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.card-desc {
  font-size: 12px;
  color: #dcdcdc;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  width: 100%;
}

.card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  padding: 8px 12px;
  transition: all 0.25s ease;
  background-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}

.card-btn.play {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  box-shadow: 0 4px 12px rgba(var(--neon-purple-rgb), 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-btn.play:hover {
  box-shadow: 0 6px 18px rgba(var(--neon-purple-rgb), 0.7);
  transform: translateY(-1px);
}

.card-btn.later,
.card-btn.info {
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
}

.card-btn.later:hover,
.card-btn.info:hover {
  background-color: rgba(var(--neon-purple-rgb), 0.4);
  box-shadow: 0 0 10px rgba(var(--neon-purple-rgb), 0.6);
}

.card-btn.later svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
  transition:
    fill 0.2s ease,
    stroke 0.2s ease;
}

.card-btn.later:hover svg {
  fill: #fff;
}

.card-btn.later.active {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  box-shadow: 0 4px 12px rgba(var(--neon-purple-rgb), 0.6);
}

.card-btn.later.active svg {
  fill: #fff;
  stroke: #fff;
}

/* Для уменьшенных карточек в «Похожих» */
.recommendation-card .card-btn.play {
  font-size: 11px;
  padding: 7px 8px;
  gap: 4px;
}

.recommendation-card .card-btn.play span {
  font-size: 10px;
}

/* Рейтинг */
.rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--neon-cyan);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 10px rgba(var(--neon-cyan-rgb), 0.6);
  backdrop-filter: blur(5px);
}

/* Кнопки-стрелки карусели */
.slider-wrapper {
  position: relative;
  z-index: 3;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  border: 1px solid var(--neon-purple);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn.left {
  left: -20px;
}

.slider-btn.right {
  right: -20px;
}

.slider-wrapper:hover .slider-btn {
  opacity: 1;
}

.slider-btn:hover {
  background-color: var(--neon-purple);
  box-shadow: 0 0 15px var(--neon-purple);
  color: #000;
}

/* ========== HERO БЛОК ========== */
.hero {
  position: relative;
  width: 100%;
  height: 600px;
  margin-bottom: 50px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(7, 2, 13, 0.95) 0%,
    rgba(7, 2, 13, 0.7) 50%,
    rgba(7, 2, 13, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
  padding: 60px;
  height: 100%;
  align-items: center;
}

.hero-poster {
  flex-shrink: 0;
  width: 300px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.05);
}

.hero-poster img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

.hero-info {
  flex: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(var(--neon-purple-rgb), 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 5px;
  text-shadow: 0 0 30px rgba(var(--neon-purple-rgb), 0.5);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--neon-purple);
  margin-bottom: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-rating {
  color: var(--neon-cyan);
  font-weight: bold;
  font-size: 18px;
  padding: 5px 12px;
  border: 1px solid var(--neon-cyan);
  border-radius: 10px;
  background-color: rgba(var(--neon-cyan-rgb), 0.1);
  box-shadow: 0 0 15px rgba(var(--neon-cyan-rgb), 0.3);
}

.hero-year,
.hero-genre,
.hero-duration {
  color: #aaa;
  font-size: 16px;
  padding: 5px 12px;
  border: 1px solid #333;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.3);
}

.hero-description {
  color: #ccc;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.play-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.bookmark-icon,
.later-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.play-btn {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: #fff;
  box-shadow: 0 10px 25px rgba(var(--neon-purple-rgb), 0.4);
}

.play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(var(--neon-purple-rgb), 0.6);
}

.play-btn:hover .play-icon {
  transform: scale(1.2);
}

.bookmark-btn,
.later-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid var(--neon-purple);
  backdrop-filter: blur(10px);
}

.bookmark-btn:hover,
.later-btn:hover {
  background-color: rgba(var(--neon-purple-rgb), 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(var(--neon-purple-rgb), 0.3);
}

.bookmark-btn .bookmark-icon svg,
.later-btn .later-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  stroke-width: 1.8;
  fill: none;
  transition:
    fill 0.2s ease,
    stroke 0.2s ease;
}

.bookmark-btn:hover .bookmark-icon svg,
.later-btn:hover .later-icon svg {
  fill: #fff;
}

.bookmark-btn.active,
.later-btn.active {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 25px rgba(var(--neon-purple-rgb), 0.6);
}

.bookmark-btn.active .bookmark-icon svg,
.later-btn.active .later-icon svg {
  fill: #fff;
  stroke: #fff;
}

/* ========== ОСНОВНОЙ LAYOUT ========== */
.main-layout {
  display: flex;
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 70px);
  align-items: flex-start;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 15px;
  backdrop-filter: blur(10px);
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  color: #999;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.25s ease;
  position: relative;
  letter-spacing: 0.3px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item:hover {
  color: #fff;
  background-color: rgba(168, 85, 247, 0.08);
  transform: translateX(3px);
}

.nav-item:hover .nav-icon {
  opacity: 1;
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.15),
    rgba(236, 72, 153, 0.1)
  );
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.nav-item.active .nav-icon {
  opacity: 1;
  color: #a855f7;
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 60%;
  background: linear-gradient(to bottom, #a855f7, #ec4899);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

main {
  flex: 1;
  min-width: 0;
  padding: 0;
  max-width: none;
  margin: 0;
}

@media (max-width: 1024px) {
  .sidebar {
    width: 190px;
    padding: 12px;
  }
  .nav-item {
    padding: 8px 12px;
    font-size: 13px;
    gap: 10px;
  }
  .nav-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
    padding: 15px 10px;
  }
  .sidebar {
    width: 100%;
    position: static;
    max-height: none;
    overflow-y: visible;
    background-color: transparent;
    border: none;
    padding: 0;
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
  }
  .nav-item {
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.05);
  }
  .nav-item:hover {
    transform: none;
  }
  .nav-item.active::before {
    display: none;
  }
  .hero {
    height: auto;
    min-height: 500px;
  }
  .hero-content {
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
  }
  .hero-poster {
    width: 200px;
  }
  .hero-poster img {
    height: 300px;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .hero-description {
    font-size: 14px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-btn {
    justify-content: center;
  }
}

#carousel-4 .rating {
  display: none;
}

.shelf-link {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
}

.shelf-link:hover {
  transform: scale(1.08);
}

/* ========== ФУТЕР ========== */
.site-footer {
  text-align: center;
  padding: 25px 20px;
  margin-top: 30px;
  border-top: 1px solid #222;
  background-color: rgba(0, 0, 0, 0.3);
}

.footer-line {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 4px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-decoration: none;
  font-weight: normal;
  letter-spacing: 0.2px;
}

.footer-line:last-child {
  margin-bottom: 0;
}

.footer-signature {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.footer-signature span {
  color: var(--neon-purple);
  text-shadow: 0 0 10px var(--neon-purple);
  font-weight: bold;
  letter-spacing: 1px;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  display: flex;
  gap: 25px;
  background-color: #12101a;
  border: 1px solid var(--neon-purple);
  border-radius: 20px;
  padding: 25px;
  max-width: 820px;
  width: 100%;
  box-shadow:
    0 0 40px rgba(var(--neon-purple-rgb), 0.5),
    0 25px 50px rgba(0, 0, 0, 0.7);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
}

.modal-close:hover {
  background-color: rgba(var(--neon-purple-rgb), 0.4);
  box-shadow: 0 0 10px rgba(var(--neon-purple-rgb), 0.6);
}

.modal-media {
  flex-shrink: 0;
  width: 220px;
  border-radius: 14px;
  overflow: hidden;
  background-color: #000;
}

.modal-media img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  display: block;
}

.modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.modal-title {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.modal-meta {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 12px;
}

.modal-rating {
  display: inline-block;
  color: var(--neon-cyan);
  font-weight: bold;
  font-size: 14px;
  padding: 4px 10px;
  border: 1px solid var(--neon-cyan);
  border-radius: 8px;
  background-color: rgba(var(--neon-cyan-rgb), 0.1);
  box-shadow: 0 0 12px rgba(var(--neon-cyan-rgb), 0.3);
  margin-bottom: 15px;
  align-self: flex-start;
}

.modal-desc {
  font-size: 14px;
  color: #ccc;
  line-height: 1.55;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

.modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-btn.play {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: #fff;
  box-shadow: 0 6px 16px rgba(var(--neon-purple-rgb), 0.4);
}

.modal-btn.play:hover {
  box-shadow: 0 8px 22px rgba(var(--neon-purple-rgb), 0.7);
  transform: translateY(-2px);
}

.modal-btn.fav,
.modal-btn.later {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--neon-purple);
}

.modal-btn.fav:hover,
.modal-btn.later:hover {
  background-color: rgba(var(--neon-purple-rgb), 0.25);
  box-shadow: 0 0 12px rgba(var(--neon-purple-rgb), 0.5);
}

.modal-btn.fav svg,
.modal-btn.later svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  stroke-width: 1.8;
  fill: none;
  transition:
    fill 0.2s ease,
    stroke 0.2s ease;
}

.modal-btn.fav:hover svg,
.modal-btn.later:hover svg {
  fill: #fff;
}

.modal-btn.fav.active,
.modal-btn.later.active {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(var(--neon-purple-rgb), 0.6);
}

.modal-btn.fav.active svg,
.modal-btn.later.active svg {
  fill: #fff;
  stroke: #fff;
}

@media (max-width: 640px) {
  .modal-card {
    flex-direction: column;
    padding: 20px;
  }
  .modal-media {
    width: 100%;
  }
  .modal-media img {
    height: 260px;
  }
}

/* ========== СТРАНИЦА ФИЛЬМА ========== */
.movie-page {
  padding: 10px 0 40px;
  position: relative;
}

.movie-back {
  display: inline-block;
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 20px;
  transition: color 0.25s ease;
}

.movie-back:hover {
  color: var(--neon-purple);
}

.movie-page-content {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-color: #0a0712;
  border: 1px solid #222;
  min-height: 400px;
}

.movie-page-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.35) saturate(1.2);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.movie-page-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 35px;
  padding: 30px;
  align-items: flex-start;
}

.movie-page-left {
  flex-shrink: 0;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.movie-page-poster {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(var(--neon-purple-rgb), 0.25);
}

.movie-page-poster img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* ========== РЕЙТИНГ ЗВЁЗДАМИ (без кружков) ========== */
.movie-rating-block {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid #2a2a3a;
  border-radius: 16px;
  padding: 10px 16px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.movie-rating-block.flash {
  border-color: var(--neon-cyan);
  box-shadow:
    0 0 20px rgba(var(--neon-cyan-rgb), 0.7),
    0 0 40px rgba(var(--neon-cyan-rgb), 0.4);
  animation: ratingFlash 0.7s ease-out;
}

@keyframes ratingFlash {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.03);
  }
  60% {
    transform: scale(0.99);
  }
  100% {
    transform: scale(1);
  }
}

.movie-rating-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.movie-rating-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.movie-star {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  border-radius: 0;
  color: #555;
  cursor: pointer;
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease;
  font-family: inherit;
}

.movie-star svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: all 0.25s ease;
}

.movie-star:hover {
  color: #888;
}

.movie-star.hover {
  color: var(--neon-cyan);
  transform: scale(1.12);
  filter: drop-shadow(0 0 10px rgba(var(--neon-cyan-rgb), 0.9))
    drop-shadow(0 0 18px rgba(var(--neon-cyan-rgb), 0.5));
}

.movie-star.hover svg {
  fill: rgba(var(--neon-cyan-rgb), 0.35);
  stroke: var(--neon-cyan);
}

.movie-star.active {
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 8px rgba(var(--neon-cyan-rgb), 0.7));
}

.movie-star.active svg {
  fill: rgba(var(--neon-cyan-rgb), 0.7);
  stroke: var(--neon-cyan);
}

.movie-star.pulse {
  animation: starPulseCyan 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes starPulseCyan {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(var(--neon-cyan-rgb), 0));
  }
  35% {
    transform: scale(1.45) rotate(-6deg);
    filter: drop-shadow(0 0 18px rgba(var(--neon-cyan-rgb), 1))
      drop-shadow(0 0 32px rgba(var(--neon-cyan-rgb), 0.7));
  }
  60% {
    transform: scale(1.2) rotate(4deg);
    filter: drop-shadow(0 0 14px rgba(var(--neon-cyan-rgb), 0.9));
  }
  100% {
    transform: scale(1) rotate(0);
    filter: drop-shadow(0 0 0 rgba(var(--neon-cyan-rgb), 0));
  }
}

.movie-rating-hint {
  font-size: 12px;
  color: transparent;
  min-height: 16px;
  transition: color 0.2s ease;
  letter-spacing: 0.3px;
}

.movie-rating-hint.visible {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(var(--neon-cyan-rgb), 0.8);
}

.movie-page-right {
  flex: 1;
  min-width: 0;
}

.movie-page-title {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 6px;
  line-height: 1.15;
  text-shadow: 0 0 30px rgba(var(--neon-purple-rgb), 0.5);
}

.movie-page-original {
  color: var(--neon-purple);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.movie-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.movie-page-rating {
  color: var(--neon-cyan);
  font-weight: bold;
  font-size: 16px;
  padding: 6px 14px;
  border: 1px solid var(--neon-cyan);
  border-radius: 10px;
  background-color: rgba(var(--neon-cyan-rgb), 0.1);
  box-shadow: 0 0 15px rgba(var(--neon-cyan-rgb), 0.3);
}

.movie-page-chip {
  color: #aaa;
  font-size: 14px;
  padding: 6px 14px;
  border: 1px solid #333;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.3);
}

.movie-page-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.movie-page-actions .hero-btn {
  text-decoration: none;
  font-size: 16px;
  padding: 12px 24px;
}

.movie-page-section {
  margin-bottom: 26px;
}

.movie-page-section-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 12px;
}

.movie-page-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: linear-gradient(to bottom, var(--neon-purple), var(--neon-pink));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(var(--neon-purple-rgb), 0.6);
}

.movie-page-desc {
  color: #ccc;
  font-size: 15px;
  line-height: 1.7;
  max-width: 780px;
}

.movie-page-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 780px;
}

.movie-detail-row {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  border-left: 2px solid rgba(var(--neon-purple-rgb), 0.3);
}

.movie-detail-label {
  color: #888;
  font-size: 14px;
  min-width: 140px;
  flex-shrink: 0;
}

.movie-detail-value {
  color: #fff;
  font-size: 14px;
  flex: 1;
}

.movie-page-skeleton {
  display: flex;
  gap: 35px;
  padding: 30px;
}

.movie-page-skeleton-poster {
  width: 300px;
  height: 450px;
  border-radius: 18px;
  background: linear-gradient(90deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

.movie-page-skeleton-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 10px;
}

.movie-page-skeleton-line {
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.4s ease-in-out infinite;
}

.movie-page-skeleton-line.title {
  height: 40px;
  width: 60%;
}

.movie-page-skeleton-line.short {
  width: 40%;
}

.movie-page-error {
  padding: 60px 30px;
  text-align: center;
  color: #888;
}

.movie-page-error h2 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
}

.movie-page-error a {
  color: var(--neon-purple);
  text-decoration: none;
}

.movie-page-error a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .movie-page-inner {
    flex-direction: column;
    padding: 20px;
  }
  .movie-page-left {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .movie-page-title {
    font-size: 28px;
  }
  .movie-page-actions {
    flex-direction: column;
  }
  .movie-page-actions .hero-btn {
    justify-content: center;
  }
  .movie-detail-row {
    flex-direction: column;
    gap: 4px;
  }
  .movie-detail-label {
    min-width: 0;
  }
  .movie-page-skeleton {
    flex-direction: column;
    padding: 20px;
  }
  .movie-page-skeleton-poster {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ========== МОДАЛКА ФИЛЬТРОВ ========== */
.filters-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.filters-overlay.open {
  opacity: 1;
  visibility: visible;
}

.filters-card {
  position: relative;
  background-color: #12101a;
  border: 1px solid var(--neon-purple);
  border-radius: 20px;
  padding: 28px 26px 22px;
  max-width: 640px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow:
    0 0 40px rgba(var(--neon-purple-rgb), 0.5),
    0 25px 50px rgba(0, 0, 0, 0.7);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s ease;
}

.filters-overlay.open .filters-card {
  transform: scale(1) translateY(0);
}

.filters-card::-webkit-scrollbar {
  width: 6px;
}
.filters-card::-webkit-scrollbar-track {
  background: transparent;
}
.filters-card::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.filters-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
}

.filters-close:hover {
  background-color: rgba(var(--neon-purple-rgb), 0.4);
  box-shadow: 0 0 10px rgba(var(--neon-purple-rgb), 0.6);
}

.filters-title {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}

.filters-section {
  margin-bottom: 20px;
}

.filters-label {
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  background-color: transparent;
  color: #ccc;
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-chip:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
}

.filter-chip.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--neon-purple);
  box-shadow:
    0 0 10px rgba(var(--neon-purple-rgb), 0.55),
    inset 0 0 6px rgba(var(--neon-purple-rgb), 0.15);
}

.filters-years {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filters-years-sep {
  color: #666;
}

.filters-select {
  background-color: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
  min-width: 110px;
}

.filters-select:hover,
.filters-select:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 12px rgba(var(--neon-purple-rgb), 0.4);
}

.filters-select-full {
  width: 100%;
}

.filters-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.filters-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 26px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.filters-btn.reset {
  background-color: transparent;
  color: #aaa;
  border: 1px solid #333;
}

.filters-btn.reset:hover {
  color: #fff;
  border-color: #555;
}

.filters-btn.apply {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: #fff;
  box-shadow: 0 6px 18px rgba(var(--neon-purple-rgb), 0.45);
}

.filters-btn.apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--neon-purple-rgb), 0.7);
}

@media (max-width: 640px) {
  .filters-card {
    padding: 22px 18px 18px;
  }
  .filter-chip {
    padding: 7px 12px;
    font-size: 12px;
  }
  .filters-title {
    font-size: 18px;
  }
  .filters-years {
    flex-wrap: wrap;
  }
}

/* ========== АКТЁРЫ ========== */
.cast-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 14px 4px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.cast-scroll::-webkit-scrollbar {
  height: 6px;
}
.cast-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.cast-scroll::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}
.cast-scroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.cast-card {
  flex: 0 0 auto;
  width: 130px;
  text-align: center;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.cast-card:hover {
  transform: translateY(-4px);
}

.cast-photo {
  width: 110px;
  height: 110px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #222;
  border: 2px solid #2a2a3a;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.cast-card:hover .cast-photo {
  border-color: var(--neon-purple);
  box-shadow:
    0 0 20px rgba(var(--neon-purple-rgb), 0.7),
    0 8px 20px rgba(0, 0, 0, 0.6);
}

.cast-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cast-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cast-character {
  font-size: 11px;
  color: #888;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .cast-card {
    width: 110px;
  }
  .cast-photo {
    width: 90px;
    height: 90px;
  }
  .cast-name {
    font-size: 12px;
  }
  .cast-character {
    font-size: 10px;
  }
}

/* ========== БЛОК ТРЕЙЛЕРА ========== */
.movie-trailer-block {
  margin-top: 30px;
  padding: 0 30px 30px;
}

.movie-trailer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background-color: #000;
  border: 1px solid #2a2a3a;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(var(--neon-purple-rgb), 0.2);
  transition: box-shadow 0.3s ease;
}

.movie-trailer:hover {
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(var(--neon-purple-rgb), 0.35);
}

.movie-trailer-poster {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 2;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.movie-trailer-poster.hidden {
  opacity: 0;
  visibility: hidden;
}

.movie-trailer-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.55);
  transition: filter 0.3s ease;
}

.movie-trailer-poster:hover img {
  filter: brightness(0.75);
}

.movie-trailer-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow:
    0 0 30px rgba(var(--neon-purple-rgb), 0.8),
    0 15px 35px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  padding-left: 6px;
}

.movie-trailer-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow:
    0 0 45px rgba(var(--neon-purple-rgb), 1),
    0 20px 40px rgba(0, 0, 0, 0.7);
}

.movie-trailer-play svg {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.movie-trailer-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
  pointer-events: none;
}

.movie-trailer-iframe.active {
  opacity: 1;
  pointer-events: auto;
}

.movie-trailer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 16 / 9;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px dashed #333;
  border-radius: 18px;
  color: #666;
  font-size: 14px;
}

.movie-trailer-empty svg {
  color: #444;
}

@media (max-width: 900px) {
  .movie-trailer-block {
    padding: 0 20px 20px;
  }
  .movie-trailer-play {
    width: 64px;
    height: 64px;
  }
  .movie-trailer-play svg {
    width: 26px;
    height: 26px;
  }
}

.movie-trailer-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-color: rgba(8, 4, 16, 0.95);
  color: #aaa;
  font-size: 15px;
  z-index: 4;
  border-radius: 18px;
}

.movie-trailer-error p {
  margin: 0;
}

.movie-trailer-error-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 16px rgba(var(--neon-purple-rgb), 0.4);
}

.movie-trailer-error-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(var(--neon-purple-rgb), 0.7);
}

/* ========== БЛОК "ПОХОЖИЕ ФИЛЬМЫ" ========== */
.movie-recommendations-block {
  margin-top: 30px;
  padding: 0 30px 30px;
}

.movie-recommendations-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 4px 14px 4px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.movie-recommendations-scroll::-webkit-scrollbar {
  height: 6px;
}
.movie-recommendations-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.movie-recommendations-scroll::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}
.movie-recommendations-scroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.recommendation-card {
  width: 180px;
  min-width: 180px;
}

.recommendation-card .card-media {
  height: 260px;
}

@media (max-width: 900px) {
  .movie-recommendations-block {
    padding: 0 20px 20px;
  }
  .recommendation-card {
    width: 150px;
    min-width: 150px;
  }
  .recommendation-card .card-media {
    height: 220px;
  }
}

/* ========== БЛОК "КОММЕНТАРИИ" ========== */
.movie-comments-block {
  margin-top: 30px;
  padding: 0 30px 30px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.comments-empty {
  padding: 30px 20px;
  text-align: center;
  color: #aaa;
  font-size: 15px;
  background-color: rgba(30, 25, 45, 0.7);
  border: 1px dashed #4a4a5e;
  border-radius: 14px;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background-color: rgba(35, 28, 52, 0.85);
  border: 1px solid #3a3a52;
  border-radius: 14px;
  transition: all 0.25s ease;
}

.comment-item:hover {
  border-color: rgba(var(--neon-purple-rgb), 0.7);
  background-color: rgba(45, 36, 68, 0.9);
  box-shadow: 0 0 18px rgba(var(--neon-purple-rgb), 0.3);
}

.comment-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #1a1428;
  border: 2px solid rgba(var(--neon-purple-rgb), 0.6);
  box-shadow: 0 0 14px rgba(var(--neon-purple-rgb), 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comment-avatar-guest {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(var(--neon-purple-rgb), 0.35),
    rgba(20, 10, 35, 0.9)
  );
}

.comment-avatar-guest svg {
  width: 28px;
  height: 28px;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.comment-author {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.comment-date {
  font-size: 13px;
  color: #a8a8b8;
}

.comment-text {
  font-size: 15px;
  color: #ffffff;
  line-height: 1.65;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background-color: rgba(35, 28, 52, 0.7);
  border: 1px solid #3a3a52;
  border-radius: 14px;
}

.comment-input {
  width: 100%;
  background-color: #15101f;
  color: #ffffff;
  border: 1px solid #4a4a62;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
  outline: none;
  resize: vertical;
  min-height: 90px;
  transition: all 0.25s ease;
}

.comment-input::placeholder {
  color: #8a8a9e;
}

.comment-input:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 16px rgba(var(--neon-purple-rgb), 0.6);
  background-color: #1a1428;
}

.comment-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.comment-form-hint {
  font-size: 14px;
  color: #a8a8b8;
}

.comment-form-hint b {
  color: var(--neon-purple-bright);
  font-weight: bold;
  text-shadow: 0 0 8px rgba(var(--neon-purple-rgb), 0.6);
}

.comment-submit {
  padding: 12px 28px;
  border: none;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(var(--neon-purple-rgb), 0.6);
  letter-spacing: 0.3px;
}

.comment-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(var(--neon-purple-rgb), 0.9);
}

.comment-submit:active {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .movie-comments-block {
    padding: 0 20px 20px;
  }
  .comment-item {
    padding: 14px;
    gap: 12px;
  }
  .comment-avatar {
    width: 40px;
    height: 40px;
  }
}
/* ========== СТРАНИЦА "НОВОСТИ" (заглушка) ========== */
.news-page {
  padding: 10px 0 40px;
}

.news-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 80px 30px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid #222;
  border-radius: 24px;
  text-align: center;
  min-height: 480px;
}

.news-empty-icon {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(var(--neon-purple-rgb), 0.15),
    rgba(0, 0, 0, 0.5)
  );
  border: 1px solid rgba(var(--neon-purple-rgb), 0.35);
  box-shadow: 0 0 30px rgba(var(--neon-purple-rgb), 0.35);
  color: var(--neon-purple);
  margin-bottom: 8px;
}

.news-empty-icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  fill: none;
}

.news-empty-title {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 0 20px rgba(var(--neon-purple-rgb), 0.4);
}

.news-empty-text {
  font-size: 15px;
  color: #aaa;
  line-height: 1.65;
  max-width: 520px;
}

.news-empty-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 32px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 25px rgba(var(--neon-purple-rgb), 0.4);
  transition: all 0.3s ease;
}

.news-empty-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(var(--neon-purple-rgb), 0.65);
}

@media (max-width: 640px) {
  .news-empty {
    padding: 50px 20px;
    min-height: 400px;
  }

  .news-empty-icon {
    width: 76px;
    height: 76px;
  }

  .news-empty-icon svg {
    width: 38px;
    height: 38px;
  }

  .news-empty-title {
    font-size: 20px;
  }

  .news-empty-text {
    font-size: 14px;
  }
}
/* ========== СТРАНИЦА АВТОРИЗАЦИИ ========== */
.auth-page {
  padding: 30px 20px 50px;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid #222;
  border-radius: 24px;
  padding: 36px 32px 32px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(var(--neon-purple-rgb), 0.15);
}

.auth-brand {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 24px;
}

.auth-brand span {
  color: var(--neon-purple);
  text-shadow: 0 0 10px var(--neon-purple);
}

/* Вкладки */
.auth-tabs {
  display: flex;
  gap: 6px;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid #222;
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  background-color: transparent;
  color: #999;
  border: 1px solid transparent;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.auth-tab:hover {
  color: #fff;
}

.auth-tab.active {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.2),
    rgba(236, 72, 153, 0.15)
  );
  border-color: rgba(var(--neon-purple-rgb), 0.5);
  box-shadow: 0 0 12px rgba(var(--neon-purple-rgb), 0.4);
}

/* Формы */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-title {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin: 0;
  letter-spacing: 0.3px;
}

.auth-subtitle {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 8px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.25s ease;
}

.auth-input::placeholder {
  color: #666;
}

.auth-input:hover {
  border-color: #444;
}

.auth-input:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 14px rgba(var(--neon-purple-rgb), 0.45);
  background-color: #13101c;
}

.auth-links {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.auth-forgot {
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-forgot:hover {
  color: var(--neon-purple);
}

.auth-submit {
  margin-top: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 25px rgba(var(--neon-purple-rgb), 0.4);
  transition: all 0.3s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(var(--neon-purple-rgb), 0.65);
}

.auth-submit:active {
  transform: translateY(0);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background-color: #12101a;
  border: 1px solid var(--neon-purple);
  border-radius: 14px;
  padding: 14px 24px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow:
    0 0 30px rgba(var(--neon-purple-rgb), 0.5),
    0 15px 35px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
  z-index: 2000;
  pointer-events: none;
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Мобильный адаптив */
@media (max-width: 640px) {
  .auth-page {
    padding: 20px 10px 40px;
  }

  .auth-card {
    padding: 24px 20px 22px;
    border-radius: 20px;
  }

  .auth-title {
    font-size: 22px;
  }

  .auth-tab {
    padding: 9px 12px;
    font-size: 13px;
  }

  .toast {
    bottom: 20px;
    padding: 12px 18px;
    font-size: 13px;
  }
}
/* Гарантированно скрывает форму, пока она не выбрана вкладкой */
.auth-form[hidden] {
  display: none;
}
/* ========== МОДАЛКА "АВТОРИЗУЙТЕСЬ" ========== */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  padding: 20px;
}

.auth-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.auth-modal-card {
  position: relative;
  background-color: #12101a;
  border: 1px solid var(--neon-purple);
  border-radius: 20px;
  padding: 50px 32px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow:
    0 0 40px rgba(var(--neon-purple-rgb), 0.5),
    0 25px 50px rgba(0, 0, 0, 0.7);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s ease;
  text-align: center;
}

.auth-modal-overlay.open .auth-modal-card {
  transform: scale(1) translateY(0);
}

.auth-modal-back {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: transparent;
  border: none;
  color: #aaa;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
  transition: color 0.2s ease;
}

.auth-modal-back:hover {
  color: var(--neon-purple);
}

.auth-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.auth-modal-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(var(--neon-purple-rgb), 0.25),
    rgba(0, 0, 0, 0.5)
  );
  border: 1px solid rgba(var(--neon-purple-rgb), 0.5);
  box-shadow: 0 0 25px rgba(var(--neon-purple-rgb), 0.5);
  color: var(--neon-purple);
  margin-bottom: 4px;
}

.auth-modal-icon svg {
  width: 40px;
  height: 40px;
}

.auth-modal-text {
  font-size: 16px;
  color: #e0e0e8;
  line-height: 1.5;
  margin: 0;
  max-width: 320px;
}

.auth-modal-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 13px 40px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 25px rgba(var(--neon-purple-rgb), 0.5);
  transition: all 0.3s ease;
}

.auth-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(var(--neon-purple-rgb), 0.75);
}

@media (max-width: 640px) {
  .auth-modal-card {
    padding: 44px 22px 26px;
  }

  .auth-modal-icon {
    width: 64px;
    height: 64px;
  }

  .auth-modal-icon svg {
    width: 32px;
    height: 32px;
  }

  .auth-modal-text {
    font-size: 15px;
  }

  .auth-modal-btn {
    padding: 12px 32px;
    font-size: 15px;
  }
}
/* ============================================================ */
/* === СТРАНИЦА КОЛЛЕКЦИИ (Избранное / Буду смотреть) ===        */
/* ============================================================ */

.collection-page {
  padding: 10px 0 40px;
}

.collection-head {
  margin-bottom: 24px;
}

.collection-heading {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(var(--neon-purple-rgb), 0.4);
}

.collection-count {
  font-size: 14px;
  color: #888;
  letter-spacing: 0.3px;
}

.collection-content {
  min-height: 200px;
}

/* Сетка карточек на странице коллекции — как на search.html,
   но с адаптивной раскладкой */
.collection-content .search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .collection-heading {
    font-size: 24px;
  }

  .collection-content .search-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
}

/* ============================================================ */
/* === СКЕЛЕТОНЫ ДЛЯ КАРУСЕЛЕЙ НА ГЛАВНОЙ ===                    */
/* ============================================================ */

/* Карточка-скелетон в карусели: те же размеры, что у .movie-card,
   чтобы при загрузке не дёргался layout */
.skeleton-card-carousel {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  width: 220px;
  min-width: 220px;
  height: 320px;
  overflow: hidden;
  position: relative;
  cursor: default;
  pointer-events: none;
}

.skeleton-card-carousel:hover {
  transform: none;
  box-shadow: none;
  border-color: #333;
}

.skeleton-card-carousel .skeleton-poster {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.4s ease-in-out infinite;
}

.skeleton-card-carousel .skeleton-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(
    to top,
    rgba(8, 4, 16, 0.98) 0%,
    rgba(8, 4, 16, 0.6) 100%
  );
}

.skeleton-card-carousel .skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2a2a2a 0%, #353535 50%, #2a2a2a 100%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.4s ease-in-out infinite;
}

.skeleton-card-carousel .skeleton-line.short {
  width: 60%;
}

@keyframes skeletonPulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/* ========== СТРАНИЦА ПРОСМОТРА ========== */
.watch-container {
  margin-top: 20px;
  min-height: 400px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid #222;
  border-radius: 20px;
  padding: 20px;
  position: relative;
}

.watch-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: #aaa;
  font-size: 16px;
}

.watch-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 400px;
  text-align: center;
  color: #aaa;
}

.watch-error h2 {
  color: #fff;
  font-size: 24px;
}

.play-btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* ========== ПОДСКАЗКА НА СТРАНИЦЕ ПРОСМОТРА ========== */
.watch-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px 0;
  padding: 14px 18px;
  background-color: rgba(var(--neon-purple-rgb), 0.08);
  border: 1px solid rgba(var(--neon-purple-rgb), 0.3);
  border-radius: 14px;
  color: #ccc;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 0 20px rgba(var(--neon-purple-rgb), 0.15);
}

.watch-hint-icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.4;
}

.watch-hint b {
  color: var(--neon-purple-bright);
  font-weight: bold;
  text-shadow: 0 0 8px rgba(var(--neon-purple-rgb), 0.5);
}

@media (max-width: 640px) {
  .watch-hint {
    font-size: 13px;
    padding: 12px 14px;
    gap: 8px;
  }
}
/* ============================================================ */
/* === РАСШИРЕННЫЙ СКЕЛЕТОН СТРАНИЦЫ ФИЛЬМА ===                  */
/* ============================================================ */

.movie-page-skeleton-buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.movie-page-skeleton-btn {
  height: 46px;
  width: 140px;
  border-radius: 23px;
  background: linear-gradient(90deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.4s ease-in-out infinite;
}

@media (max-width: 900px) {
  .movie-page-skeleton-buttons {
    flex-direction: column;
  }
  .movie-page-skeleton-btn {
    width: 100%;
  }
}

/* ============================================================ */
/* === БЛОК "СВЯЗАТЬСЯ С НАМИ" В ФУТЕРЕ ===                      */
/* ============================================================ */

.footer-contact {
  max-width: 520px;
  margin: 24px auto 20px;
  padding: 20px 24px;
  background-color: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 16px;
  text-align: center;
}

.footer-contact-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.footer-contact-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-bottom: 16px;
}

.footer-contact-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border: 1px solid #333;
  background-color: rgba(255, 255, 255, 0.04);
  transition: all 0.25s ease;
}

.footer-contact-link:hover {
  transform: translateY(-2px);
}

.footer-contact-link.tg:hover {
  border-color: #2aabee;
  background-color: rgba(42, 171, 238, 0.15);
  box-shadow: 0 0 15px rgba(42, 171, 238, 0.4);
}

.footer-contact-link.email:hover {
  border-color: var(--neon-purple);
  background-color: rgba(var(--neon-purple-rgb), 0.15);
  box-shadow: 0 0 15px rgba(var(--neon-purple-rgb), 0.4);
}

.footer-contact-link svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .footer-contact {
    padding: 16px 18px;
  }
  .footer-contact-title {
    font-size: 15px;
  }
  .footer-contact-text {
    font-size: 12px;
  }
  .footer-contact-link {
    padding: 9px 16px;
    font-size: 13px;
  }
}
