/* Современный дизайн для страницы фильма/сериала */

/* Основные стили */
.modern-film-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(135deg, #0c1018 0%, #171b27 100%);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Хлебные крошки */
.breadcrumbs {
  margin-bottom: 20px;
}

.breadcrumbs ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  align-items: center;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: #e10916;
  font-weight: bold;
}

.breadcrumbs a {
  color: #A1ACB4;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: #e10916;
}

.breadcrumbs span {
  color: #fff;
  font-size: 14px;
}

/* Заголовок фильма */
.film-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 20px 0;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Мета-информация */
.film-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e10916, #ff4757);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(225, 9, 22, 0.3);
}

.rating-stars {
  color: #ffd700;
  font-size: 16px;
}

.rating-text {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.film-year,
.film-country,
.film-quality {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Основной контент */
.film-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

/* Верхняя секция: постер и информация */
.film-top-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

/* Секция постера */
.film-poster-section {
  display: flex;
  flex-direction: column;
}

/* Секция информации о фильме */
.film-info-section {
  display: flex;
  flex-direction: column;
}

.poster-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.poster-container:hover {
  transform: translateY(-5px);
}

.film-poster {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.poster-container:hover .poster-overlay {
  opacity: 1;
}

.favorite-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.favorite-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.favorite-btn.active {
  background: #e10916;
}

.favorite-icon {
  color: #fff;
  font-size: 18px;
}

.quality-badge {
  background: linear-gradient(135deg, #e10916, #ff4757);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Информация о фильме */
.film-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: fit-content;
}

.info-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-label {
  color: #e10916;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  word-wrap: break-word;
}

/* Секция плеера */
.player-section {
  display: flex;
  flex-direction: column;
}

.player-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Табы плеера */
.player-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px 20px;
  color: #A1ACB4;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.tab-btn.active {
  background: linear-gradient(135deg, #e10916, #ff4757);
  color: #fff;
  box-shadow: 0 4px 15px rgba(225, 9, 22, 0.3);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
}

.tab-icon {
  font-size: 16px;
}

/* Контент плеера */
.player-content {
  position: relative;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 соотношение */
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.blocked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.blocked-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.blocked-text {
  font-size: 18px;
  font-weight: 600;
}

.trailer-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
}

.trailer-icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.7;
}

.trailer-text {
  font-size: 16px;
  opacity: 0.8;
}

/* Действия плеера */
.player-actions {
  display: flex;
  gap: 10px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.share-btn:hover {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.download-btn:hover {
  background: linear-gradient(135deg, #e10916, #ff4757);
}

.report-btn:hover {
  background: linear-gradient(135deg, #ffa726, #ff9800);
}

/* Описание фильма */
.film-description {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.description-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.description-header h2 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

.toggle-description {
  background: linear-gradient(135deg, #e10916, #ff4757);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.toggle-description:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(225, 9, 22, 0.3);
}

.description-content {
  max-height: 150px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.description-text {
  color: #A1ACB4;
  line-height: 1.6;
  font-size: 16px;
}

.seo-text {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.seo-text p {
  margin-bottom: 15px;
}

.seo-text strong {
  color: #e10916;
  font-weight: 600;
}

/* Похожие сериалы */
.related-content {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-content h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

/* Адаптивный дизайн */
@media (max-width: 1024px) {
  .film-top-section {
    grid-template-columns: 250px 1fr;
    gap: 30px;
  }
  
  .film-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .modern-film-page {
    padding: 15px;
  }
  
  .film-top-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .film-poster-section {
    order: 1;
    display: flex;
    align-items: center;
  }
  
  .film-info-section {
    order: 2;
  }
  
  .player-section {
    order: 3;
  }
  
  .film-title {
    font-size: 1.8rem;
  }
  
  .film-meta {
    gap: 10px;
  }
  
  .player-tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .tab-btn:last-child {
    border-bottom: none;
  }
  
  .player-actions {
    flex-direction: column;
  }
  
  .description-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .info-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .info-label {
    margin-bottom: 0;
    min-width: 100px;
  }
  
  .info-value {
    text-align: right;
    margin-left: 15px;
  }
}

@media (max-width: 480px) {
  .modern-film-page {
    padding: 10px;
  }
  
  .film-title {
    font-size: 1.5rem;
  }
  
  .film-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .rating-badge,
  .film-year,
  .film-country,
  .film-quality {
    width: 100%;
    text-align: center;
  }
  
  .info-item {
    flex-direction: column;
    gap: 5px;
  }
  
  .info-value {
    text-align: left;
    margin-left: 0;
  }
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modern-film-page > * {
  animation: fadeIn 0.6s ease forwards;
}

.modern-film-page > *:nth-child(1) { animation-delay: 0.1s; }
.modern-film-page > *:nth-child(2) { animation-delay: 0.2s; }
.modern-film-page > *:nth-child(3) { animation-delay: 0.3s; }
.modern-film-page > *:nth-child(4) { animation-delay: 0.4s; }

/* Улучшения доступности */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Темная тема (уже активна) */
@media (prefers-color-scheme: dark) {
  .modern-film-page {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  }
}

/* Высокий контраст */
@media (prefers-contrast: high) {
  .modern-film-page {
    border: 2px solid #fff;
  }
  
  .tab-btn.active {
    background: #fff;
    color: #000;
  }
  
  .action-btn {
    border: 2px solid #fff;
  }
}
