:root {
  --bg-color: #151617;
  --text-color: #e0e0e0;
  --accent-color: #ff6b6b;
  --secondary-color: #2a2a2a;
  --border-color: #333;
  --hover-color: #3a3a3a;
  --rating-color: #ffd700;
  --grid-gap: 20px;
  --transition: all 0.3s ease;
}

/* Секции */
.sect {
  padding: 1rem;
 
}

.sect__header {
  margin-bottom: 1.5rem;
}

.sect__title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;padding-top: 15px;
}

/* Кнопка "Вернуться назад" */
.pmovie__back {
  display: inline-flex;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.pmovie__back:hover {
  color: var(--accent-color);
}

.pmovie__back svg {
  margin-right: 0.5rem;
  width: 16px;
  height: 16px;
}

/* Грид и карточки */
.result_grid {
  padding: 0 1rem;
}

.d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--grid-gap);
  margin-bottom: 2rem;
}

.poster {
  background-color: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.poster:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.poster__img {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.poster__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}



.poster:hover .poster__img.low img {
  filter: blur(0);
}

.item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
}

.poster:hover .item__overlay {
  opacity: 1;
}

.item__overlay svg {
  width: 40px;
  height: 40px;
  color: white;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.7));
}

/* Рейтинг */
.item__rating {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.item__rating svg {
  width: 35px;
  height: 35px;
  transform: rotate(-90deg);
}

.item__rating circle {
  fill: none;
  stroke: var(--rating-color);
  stroke-width: 4;
  stroke-linecap: round;
}

.item__rating circle:nth-child(2) {
  stroke-dashoffset: 378;
  stroke-dasharray: 444;
  transition: var(--transition);
}

.poster:hover .item__rating circle:nth-child(2) {
  stroke-dashoffset: 0;
}

/* Серия */
.item__season {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: var(--accent-color);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Описание */
.poster__desc {
  padding: 1rem;
}

.poster__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.poster__title a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.poster__title a:hover {
  
}

.poster__subtitle {
  font-size: 0.8rem;
  color: #aaa;
  display: flex;
  justify-content: space-between;
}

.item__subtitle {
  font-size: 0.7rem;
  color: #888;
}

/* Адаптивность */
@media (max-width: 768px) {
  .d-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .sect__title {
    font-size: 1.5rem;
  }
}

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

/* Вспомогательные классы */
.anim {
  transition: var(--transition);
}

.d-flex {
  display: flex;
}

.fd-column {
  flex-direction: column;
}

.jc-center {
  justify-content: center;
}

.ai-center {
  align-items: center;
}

.ws-nowrap {
  white-space: nowrap;
}

.link-stretched {
  position: relative;
  z-index: 1;
}