/* ========================================
   MYLACRON CINEMA - OPENAI STYLE
   Минималистичный CSS для OpenAI дизайна
   ======================================== */

/* Убираем кастомные анимации и 3D эффекты */
* {
  transition-property: color, background-color, border-color, opacity, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Типографика в стиле OpenAI */
body {
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Скрытие скроллбара для каруселей */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Line clamp для обрезки текста */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Улучшенные hover эффекты для карточек */
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Стили для мобильного меню с категориями */
.mobile-category-item {
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.mobile-category-toggle {
  transition: all 0.2s ease-in-out;
  border-radius: 0.5rem;
}

.mobile-category-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.mobile-category-toggle svg {
  transition: transform 0.3s ease-in-out;
}

.mobile-category-children {
  transition: all 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.mobile-category-children:not(.hidden) {
  max-height: 500px;
  opacity: 1;
}

.mobile-category-children a {
  border-left: 2px solid transparent;
  transition: all 0.2s ease-in-out;
  padding-left: 1rem;
  margin-left: 0.5rem;
}

.mobile-category-children a:hover {
  border-left-color: #0ea5e9;
  background-color: rgba(14, 165, 233, 0.05);
}

/* Улучшенные стили для мобильного меню */
#mobile-menu {
  transition: all 0.3s ease-in-out;
  transform: translateY(-10px);
  opacity: 0;
}

#mobile-menu:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
}

/* Стили для кнопки мобильного меню */
#mobile-menu-toggle {
  transition: all 0.2s ease-in-out;
}

#mobile-menu-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

#mobile-menu-toggle svg {
  transition: transform 0.2s ease-in-out;
}

/* Анимация для элементов мобильного меню */
#mobile-menu a {
  transition: all 0.2s ease-in-out;
}

#mobile-menu a:hover {
  transform: translateX(4px);
}

/* Дополнительные стили для мобильного меню */
@media (max-width: 768px) {
  #mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  #mobile-menu.hidden {
    display: none;
  }
  
  #mobile-menu:not(.hidden) {
    display: block;
  }
  
  /* Улучшенные стили для поиска в мобильном меню */
  #mobile-ajax-search {
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease-in-out;
  }
  
  #mobile-ajax-search:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  }
  
  /* Стили для результатов поиска в мобильном меню */
  #mobile-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }
  
  /* Улучшенные стили для кнопок в мобильном меню */
  #mobile-menu button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  #mobile-menu a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  /* Стили для активного состояния */
  #mobile-menu a:active {
    background-color: rgba(14, 165, 233, 0.1);
    transform: scale(0.98);
  }
  
  /* Улучшенные стили для категорий */
  .mobile-category-item {
    background: rgba(249, 250, 251, 0.5);
    border: 1px solid rgba(229, 231, 235, 0.5);
  }
  
  .mobile-category-item:hover {
    background: rgba(249, 250, 251, 1);
    border-color: rgba(14, 165, 233, 0.3);
  }
}

/* Улучшенные стили для десктопного выпадающего меню */
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:visible {
  visibility: visible;
}

.group:hover .group-hover\:rotate-180 {
  transform: rotate(180deg);
}

/* Стили для страницы фильма/сериала */
.movie-detail-card {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
}

.movie-detail-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.movie-info-item {
	display: flex;
	align-items: center;
	space-x: 12px;
	padding: 15px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

.movie-info-item:hover {
	background: rgba(255, 255, 255, 1);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.movie-info-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.movie-info-content {
	flex: 1;
}

.movie-info-label {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 4px;
}

.movie-info-value {
	font-size: 16px;
	font-weight: 600;
	color: #111827;
}

/* Стили для рейтингов */
.ratings-section {
	background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
	border-radius: 20px;
	padding: 30px;
	border: 1px solid rgba(251, 191, 36, 0.2);
}

.rating-item {
	text-align: center;
	padding: 20px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 15px;
	transition: all 0.3s ease;
}

.rating-item:hover {
	background: rgba(255, 255, 255, 1);
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.rating-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
	font-size: 24px;
	font-weight: bold;
}

.rating-value {
	font-size: 28px;
	font-weight: bold;
	color: #111827;
	margin-bottom: 4px;
}

.rating-label {
	font-size: 14px;
	color: #6b7280;
}

/* Стили для актеров */
.actors-section {
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
	border-radius: 20px;
	padding: 30px;
}

.actor-tag {
	display: inline-block;
	padding: 8px 16px;
	background: white;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	transition: all 0.3s ease;
	margin: 4px;
}

.actor-tag:hover {
	background: #f9fafb;
	border-color: #9ca3af;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Стили для трейлера */
.trailer-section {
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
	border-radius: 20px;
	padding: 30px;
}

.trailer-container {
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Стили для похожих фильмов */
.similar-movies-section {
	background: white;
}

.similar-movie-card {
	transition: all 0.3s ease;
	border-radius: 12px;
	overflow: hidden;
}

.similar-movie-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.similar-movie-poster {
	aspect-ratio: 2/3;
	background: #f3f4f6;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 8px;
}

.similar-movie-poster img {
	transition: transform 0.3s ease;
}

.similar-movie-card:hover .similar-movie-poster img {
	transform: scale(1.05);
}

.similar-movie-title {
	font-size: 14px;
	font-weight: 500;
	color: #111827;
	line-height: 1.4;
	margin-bottom: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.similar-movie-meta {
	font-size: 12px;
	color: #6b7280;
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Стили для социальных кнопок */
.social-share-section {
	background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.social-button {
	display: inline-flex;
	align-items: center;
	padding: 12px 20px;
	border-radius: 10px;
	font-weight: 500;
	font-size: 14px;
	transition: all 0.3s ease;
	text-decoration: none;
	border: none;
	cursor: pointer;
}

.social-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-button svg {
	width: 20px;
	height: 20px;
	margin-right: 8px;
}

.social-button.vk {
	background: #4c75a3;
	color: white;
}

.social-button.vk:hover {
	background: #3d5f8a;
}

.social-button.telegram {
	background: #0088cc;
	color: white;
}

.social-button.telegram:hover {
	background: #0077b5;
}

.social-button.twitter {
	background: #1da1f2;
	color: white;
}

.social-button.twitter:hover {
	background: #0d8bd9;
}

.social-button.copy {
	background: #6b7280;
	color: white;
}

.social-button.copy:hover {
	background: #4b5563;
}

/* Адаптивность для страницы фильма */
@media (max-width: 768px) {
	.movie-detail-card {
		padding: 20px;
		margin: 10px;
	}
	
	.movie-info-item {
		flex-direction: column;
		text-align: center;
		padding: 20px;
	}
	
	.movie-info-icon {
		margin-bottom: 12px;
	}
	
	.ratings-section {
		padding: 20px;
	}
	
	.rating-item {
		padding: 15px;
	}
	
	.rating-icon {
		width: 48px;
		height: 48px;
		font-size: 18px;
	}
	
	.rating-value {
		font-size: 24px;
	}
	
	.actors-section,
	.trailer-section {
		padding: 20px;
	}
	
	.actor-tag {
		font-size: 13px;
		padding: 6px 12px;
	}
	
	.social-button {
		padding: 10px 16px;
		font-size: 13px;
	}
	
	.social-button svg {
		width: 18px;
		height: 18px;
		margin-right: 6px;
	}
}

@media (max-width: 480px) {
	.movie-detail-card {
		padding: 15px;
		margin: 5px;
		border-radius: 15px;
	}
	
	.ratings-section,
	.actors-section,
	.trailer-section {
		padding: 15px;
		border-radius: 15px;
	}
	
	.similar-movie-title {
		font-size: 13px;
	}
	
	.similar-movie-meta {
		font-size: 11px;
	}
	
	.social-button {
		padding: 8px 12px;
		font-size: 12px;
		flex: 1;
		justify-content: center;
	}
	
	.social-button svg {
		width: 16px;
		height: 16px;
		margin-right: 4px;
	}
}
.category-card {
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.filter-btn {
  transition: all 0.2s ease;
}

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

.filter-btn.active {
  background-color: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
  box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3);
}

.filter-btn.active:hover {
  background-color: #0284c7;
  transform: translateY(-1px);
}

/* Анимация появления карточек */
.category-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стили для статистических карточек */
.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.3);
}

/* Улучшенные стили для поиска */
#category-search:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Стили для подкатегорий */
.category-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.category-children.expanded {
  max-height: 500px;
}

/* Адаптивность для страницы категорий */
@media (max-width: 768px) {
  .category-card {
    margin-bottom: 1rem;
  }
  
  .filter-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-card .text-3xl {
    font-size: 1.5rem;
  }
}

/* Стили для страницы детальной категории */
.movie-card {
  transition: all 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.sort-btn {
  transition: all 0.2s ease;
}

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

.sort-btn.active {
  background-color: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
  box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3);
}

.sort-btn.active:hover {
  background-color: #0284c7;
  transform: translateY(-1px);
}

/* Анимация появления карточек фильмов */
.movie-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стили для пагинации */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination-wrapper .page-numbers:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

.pagination-wrapper .page-numbers.current {
  background-color: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
}

.pagination-wrapper .page-numbers.prev,
.pagination-wrapper .page-numbers.next {
  padding: 0.5rem;
}

/* Улучшенные стили для поиска на странице категории */
#posts-search:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Адаптивность для страницы детальной категории */
@media (max-width: 1024px) {
  .movies-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .movies-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .movie-card .p-3 {
    padding: 0.75rem;
  }
  
  .movie-card h3 {
    font-size: 0.875rem;
  }
}

@media (max-width: 640px) {
  .movies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .movie-card .p-3 {
    padding: 0.75rem;
  }
  
  .movie-card h3 {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .movies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .movie-card .p-3 {
    padding: 0.5rem;
  }
  
  .movie-card h3 {
    font-size: 0.75rem;
  }
  
  .sort-btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Стили для skip link (доступность) */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999999;
  padding: 8px 16px;
  text-decoration: none;
  top: auto;
  width: auto;
  height: auto;
}

.skip-link:focus {
  display: block;
  left: 6px;
  top: 7px;
  z-index: 999999;
}

/* Стили для WordPress галереи */
.gallery {
  margin: 0 0 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  width: 100%;
}

.gallery-columns-2 .gallery-item {
  max-width: 50%;
}

.gallery-columns-3 .gallery-item {
  max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
  max-width: 25%;
}

.gallery-columns-5 .gallery-item {
  max-width: 20%;
}

.gallery-columns-6 .gallery-item {
  max-width: 16.66%;
}

.gallery-caption {
  display: block;
}

/* Адаптивные изображения */
img {
  height: auto;
  max-width: 100%;
}

/* Стили для форм комментариев WordPress */
.comment-form-comment textarea {
  width: 100%;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
}

/* Курсор для интерактивных элементов */
.cursor-grab {
  cursor: grab;
}

.cursor-grabbing {
  cursor: grabbing;
}

/* Фокус стили для доступности */
.focus-ring:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Оптимизация производительности */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Удаляем все градиенты и 3D эффекты */
.no-gradient {
  background-image: none !important;
}

/* Стили для печати */
@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* ========================================
   СТРАНИЦА АКТЕРА - ПРОСТЫЕ СТИЛИ
   ======================================== */

/* Простые карточки фильмов актера */
.actor-movie-card {
    transition: all 0.2s ease;
}

.actor-movie-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Простые фильтры */
.filter-btn {
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: #2563eb;
    color: white;
}

/* Анимация загрузки */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .actor-movie-card:hover {
        transform: translateY(-1px);
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Переопределяем motion для пользователей с ограниченной анимацией */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}