/* ===== ВИЗУАЛЬНОЕ РАЗДЕЛЕНИЕ ===== */
input[type="radio"] + label,
input[type="radio"] {
  color: #DDD;
  font-size: 0.95rem;
  cursor: pointer;
}

input[type="radio"] + label {
  margin-right: 1rem;
}

.radio-group {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    flex-direction: row;
}

  
  .datetime-picker {
    background: #2A2A2A;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.8rem;
    color: #FFF;
    width: 100%;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
  }
  
  .datetime-picker:focus {
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(255,107,0,0.2);
  }
  

  

/* Рейтинг в модалке */




/* Модалка с отметкой о просмотре фильма */


/* Блок с отзывами - улучшенная версия */
.reviews-section {
background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.4), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.5em;
    color: #fff;
    margin: 0 0 10px 0;
    font-weight: 700;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.reviews-count {
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.section-subtitle {
    color: #aaa;
    font-size: 1.1rem;
    font-weight: 300;
}

.review-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 107, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff6b00, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.15);
}

.review-card:hover::before {
    opacity: 1;
}

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

.user-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.avatar-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ff6b00;
    position: relative;
}

.user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-card:hover .user-avatar {
    transform: scale(1.1);
}

.user-details {
    flex: 1;
}

.username {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.review-date {
    color: #888;
    font-size: 0.9rem;
    font-weight: 300;
}

.rating-container {
    flex-shrink: 0;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.rating-high {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.rating-mid {
    background: rgba(255, 170, 0, 0.1);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.rating-low {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.rating-star {
    width: 16px;
    height: 16px;
}

.review-content {
    margin-bottom: 20px;
}

.review-text {
    color: #e0e0e0;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
    position: relative;
    padding-left: 20px;
}

.review-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2.5rem;
    color: rgba(255, 107, 0, 0.3);
    font-family: serif;
    line-height: 1;
}

.review-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.like-btn:hover {
    border-color: rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.dislike-btn:hover {
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.action-count {
    font-weight: 600;
}

.action-btn.active {
    color: #ff6b6b;
}

.like-btn.active {
    color: #4CAF50;
}

.dislike-btn.active {
    color: #f44336;
}

.review-buttons{
    margin-top: 15px;
    margin-left: 18px;
}

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

@media (max-width: 768px) {
    .reviews-section {
        padding: 40px 20px;
    }
    
    .section-title {
        font-size: 12px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .rating-container {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 10px;
        flex-direction: column;
        gap: 10px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar-container {
        align-self: center;
    }
}



.movie {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 60px;
}

.movie-right {
    width: 100%;

}

/* УДАЛИТЬ весь старый CSS для .tabs и вставить этот */
.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 8px 12px;
}

.nav-scroll {
    display: flex;
    gap: 10px;
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: var(--max-width);
    margin: 0 auto;
    justify-content: center;
}

.nav-scroll::-webkit-scrollbar {
    display: none;
}

.navigation-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
    min-width: 60px;
}

.navigation-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
    transform: translateY(-1px);
}

.navigation-btn.active {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
}

.navigation-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Адаптивность */
@media (max-width: 768px) {
    .bottom-navigation {
        padding: 6px 10px;
    }
    
    .navigation-btn {
        padding: 6px 8px;
        min-width: 55px;
        font-size: 10px;
    }
    
    .navigation-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .bottom-navigation {
        padding: 4px 8px;
    }
    
    .nav-scroll {
        gap: 2px;
        padding-left: 35px;
    }

    
    .navigation-btn {
        padding: 6px 4px;
        min-width: 50px;
        font-size: 9px;
        gap: 2px;
    }
    
    .navigation-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 360px) {
    .navigation-btn span {
        display: none;
    }
    
    .navigation-btn {
        padding: 8px;
        min-width: 44px;
    }
    
    .navigation-btn svg {
        width: 16px;
        height: 16px;
        margin: 0;
    }
}

/* Для очень высоких экранов */
@media (min-height: 1000px) {
    .bottom-navigation {
        padding: 12px 16px;
    }
    
    .navigation-btn {
        padding: 10px 14px;
        min-width: 70px;
        font-size: 12px;
    }
}



.movie-content {
    margin-top: 30px;
}

.movie-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
}

.movie-title {
    color: white;
}

.movie-title h1 {
    display: inline-block;
}

.movie-year{
    margin-left: 10px;
    font-size: var(--font-size-22);
}

.movie-title .movie-year, .movie-title i {
    opacity: .6;
}

.movie-title .movie-year a:hover {
    color: #da7700;
}

.movie-title-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    color: white;
    justify-content: space-between;
    gap: 20px;
    font-size: 24px;
}

.rating-low { /* оценки от 1 до 4 */
    color: #ff4c4c; /* Замените этот цвет на нужный вам */
    font-weight: 700;
}

.rating-mid { /* оценки от 5 до 6 */
    color: #ffae00; /* Замените этот цвет на нужный вам */
    font-weight: 700;
}

.rating-high { /* оценки от 7 до 10 */
    color: #15d415; /* Этот цвет уже определен в вашем .rating */
    font-weight: 700;
}




/* Общие стили для блока с рейтингом */
.movie-title-buttons .rating {
    font-size: 1em; /* Больший размер шрифта */
    background: #333; /* Темный фон */
    padding: 5px 10px; /* Отступы вокруг текста */
    border-radius: 5px; /* Скругленные углы */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); /* Тень для элемента */
    transition: background-color 0.3s ease; /* Плавный переход фона */
}

.movie-title-buttons .note:before, .movie-title-buttons .copy:before, .movie-title-buttons .send:before, .movie-title-buttons .administrator:before{
    font-family: 'kino', serif;
    font-size: var(--font-size-30);
    font-weight: 900;
    color: white;
    transition: all 0.5s ease; /* Увеличено время перехода до 0.5 секунды */
    cursor: pointer;
    opacity: 0.7;
}

.movie-title-buttons .note:hover:before, .movie-title-buttons .copy:hover:before, .movie-title-buttons .send:hover:before, .movie-title-buttons .administrator:before {
    color: var(--main-color);
    opacity: 1;
}

.movie-title-buttons .note:before {
    content: "\edce";
}

.movie-title-buttons .copy:before {
    content: "\e9cb";
}

.movie-title-buttons .send:before {
    content: "\edda";
}

.movie-title-buttons .administrator:before {
    content: "\eb7c";
}


.copy:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.poster {
    width: 100%;
}


/* Детали фильма */
/* Детали фильма - переработанный дизайн */
.details-section {
    grid-column: 1 / -1;
    margin: 0;
    border-top: 1px solid transparent;
    padding-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
    border-radius: 0 0 var(--radius) var(--radius);
    transform: translateY(-10px);
}

.details-section.active {
    max-height: 3000px;
    opacity: 1;
    transform: translateY(0);
}

/* Кнопка "Подробнее" - улучшенный дизайн */
.details-toggle {
    grid-column: 1 / -1;
    margin-top: -12px !important;
    padding: 16px 24px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    max-width: 200px;
}

.details-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.6s ease;
}

.details-toggle:hover {
    color: var(--primary);
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.details-toggle:hover::before {
    left: 100%;
}

.details-toggle.active {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.3);
}

/* Сетка деталей - современный дизайн */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px!important;
    background: var(--card-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.detail-card:nth-child(odd) {
    background: rgba(255,255,255,0.02);
}

.detail-card:last-child {
    border-bottom: none;
}

.detail-card:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    z-index: 2;
}

.detail-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 4px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 0 2px 2px 0;
    transition: transform 0.3s ease;
}

.detail-card:hover::before {
    transform: translateY(-50%) scaleX(1);
}

/* Иконки */
.detail-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.detail-card:hover .detail-icon {
    background: var(--primary-gradient);
    transform: scale(1.1);
}

/* Контент */
.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.5;
    font-size: 1em;
}

.detail-extra {
    color: var(--primary);
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 6px;
    padding: 4px 8px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 6px;
    display: inline-block;
}

/* Стрелка */
.toggle-arrow {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9em;
}

.details-toggle.active .toggle-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

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

.details-section.active .detail-card:nth-child(1) { animation-delay: 0.1s; }
.details-section.active .detail-card:nth-child(2) { animation-delay: 0.15s; }
.details-section.active .detail-card:nth-child(3) { animation-delay: 0.2s; }
.details-section.active .detail-card:nth-child(4) { animation-delay: 0.25s; }
.details-section.active .detail-card:nth-child(5) { animation-delay: 0.3s; }
.details-section.active .detail-card:nth-child(6) { animation-delay: 0.35s; }
.details-section.active .detail-card:nth-child(7) { animation-delay: 0.4s; }
.details-section.active .detail-card:nth-child(8) { animation-delay: 0.45s; }

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

@media (max-width: 768px) {
.details-toggle {
    max-width: 100%;
}
}





.movie-card-page {
    transition: padding-bottom 0.3s ease;
}

.movie-card-page:has(.details-section.active) {
    padding-bottom: 32px; /* увеличить отступ снизу при раскрытии */
}


/* Заголовок секции */
.section-header {
    display: flex;
    justify-content: space-between;
align-items: stretch;
    margin-bottom: 16px;
    padding: 0;
    background: none;
    border: none;
}

.section-title h2, .section-title h3 {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
}

.section-title h3 {
    font-size: 20px;
}

.add-btn {
    background: var(--main-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.add-btn:hover {
    background: var(--accent);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}


/* Модалка поделиться */
/* Общий доступ */
.share-url {
    margin-bottom: 25px;
}

.url-container {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.url-container .form-input {
    flex: 1;
}

.btn-copy {
    background: var(--main-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy:hover {
    background: var(--accent);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn.vk {
    background: #4C75A3;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


/* Секция каста и команды */
.cast-section {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin: 0 0 24px 0;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.cast-card {
    text-align: center;
    transition: var(--transition);
}

.cast-card:hover {
    transform: translateY(-4px);
}

.cast-photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.cast-photo img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: var(--transition);
}

.cast-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 8px 8px;
    opacity: 0;
    transition: var(--transition);
}

.cast-card:hover .cast-overlay {
    opacity: 1;
}

.cast-role {
    color: white;
    font-size: 0.75em;
    font-weight: 500;
}

.cast-name {
    color: var(--text-main);
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1.3;
}

.crew-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.crew-category {
    padding: 12px;
}

.crew-title {
    color: var(--primary);
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 4px;
}

.crew-names {
    color: var(--text-main);
    font-size: 0.9em;
    line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 5px;
    }
    
    .section-title h2 {
        font-size: 1.3em;
    }

    .section-title h3 {
        font-size: 1.3em;
    }
    
    .cast-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 16px;
    }
    
    .cast-photo img {
        height: 140px;
    }
    
    .crew-section {
        grid-template-columns: 1fr;
    }
    
    .add-btn {
        width: 20px;
        height: 20px;
    }
}





.movie-info h1{
    margin: 0;
    line-height: 1.2;
    font-weight: normal;
    color: #fff;
}

.movie-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
}

.movie-carousel::-webkit-scrollbar {
    height: 6px;
}

.movie-carousel::-webkit-scrollbar-track {
    background: rgba(255,107,0,0.1);
}

.movie-carousel::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}




/* Базовый сброс */
.movie-card-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Основной контейнер */
.movie-card-page {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    max-width: var(--max-width);
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Постер и действия */
.poster-actions-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 200px;
    flex-shrink: 0;
}

.poster-wrapper {
    position: relative;
    border-radius: var(--radius);
    width: 200px;
    height: 275px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: var(--transition);
    overflow: hidden;
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.poster-wrapper:hover .movie-poster {
    transform: scale(1.08);
}

/* Блок действий */
.actions-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.action-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--surface);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.action-item:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.action-item.active {
    background: linear-gradient(45deg,
    rgba(255,158,0,0.12),
    rgba(255,158,0,0.05));
    border-color: rgba(255,158,0,0.2);
}

.icon {
    font-size: 24px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    flex-grow: 1;
}

.counter {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--primary-gradient);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.1);
}

/* Рейтинги */
.ratings-container {
    flex-grow: 1;
    padding-left: 24px;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.ratings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.rating-card {
    padding: 16px;
    border-radius: 8px;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.rating-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.rating-card:hover::before {
    height: 100%;
    opacity: 0.08;
}

.platform {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.score {
    font-size: 20px;
    font-weight: 700;
}

.votes {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}



.movie-genre_tag {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.movie-genre_tag h6 {
    margin: 0;
    padding: 6px 12px;
    background: rgba(255,158,0,0.1);
    border-radius: 20px;
    font-size: 12px;
}

.movie-genre_tag a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.movie-genre_tag a:hover {
    color: #fff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .movie-card-page {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .poster-actions-container {
        width: 100%;
        flex-direction: row;
        align-items: center;
    }

    .actions-column {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .ratings-container {
        padding-left: 0;
        border-left: none;
        margin-top: 24px;
    }

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



/* Стили для иконок платформ */
.platform-icon {
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Стили для блока критиков */
.critics-badges {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.critic-type {
    flex: 1;
    padding: 6px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    text-align: center;
    transition: var(--transition);
    opacity: 0.5;
}

.critic-type.active {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

.critic-type.plus.active {
    background: rgba(76, 175, 80, 0.15);
    box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.3);
}



.critic-type.minus.active {
    background: rgba(244, 67, 54, 0.15);
    box-shadow: inset 0 0 0 1px rgba(244, 67, 54, 0.3);
}

.critic-icon {
    font-size: 16px;
    display: block;
    margin-bottom: 2px;
}

.critic-count {
    font-size: 12px;
    font-weight: 600;
    display: block;
    line-height: 1;
}

/* Анимации при наведении */
.critic-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .critics-badges {
        flex-wrap: wrap;
        justify-content: center;
    }

    .critic-type {
        flex: none;
        width: calc(33% - 6px);
    }

}




.synopsys {
    position: relative;
    margin-top: 24px;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    background: linear-gradient(145deg, rgba(44,44,44,0.8), rgba(32,32,32,0.9));
    padding: 24px;
    border-radius: var(--radius);
    line-height: 1.7;
    transition: var(--transition);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
            0 4px 24px rgba(0,0,0,0.2),
            inset 0 1px 1px rgba(255,255,255,0.05);
    overflow: hidden;
}

.synopsys::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.synopsys::after {
    content: '“';
    position: absolute;
    top: -18px;
    left: -8px;
    font-size: 80px;
    color: rgba(255,158,0,0.15);
    font-family: serif;
    pointer-events: none;
}

.synopsys:hover {
    background: linear-gradient(145deg, rgba(44,44,44,0.9), rgba(32,32,32,1));
    transform: translateY(-2px);
    box-shadow:
            0 6px 32px rgba(0,0,0,0.3),
            inset 0 1px 1px rgba(255,255,255,0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .synopsys {
        margin-top: 20px;
        padding: 18px;
        font-size: 14px;
    }

    .synopsys::after {
        font-size: 60px;
        top: -12px;
    }
}






.info.video{
    flex-direction: column;
}

.movie_videos, .movie_ratings{
display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
}

.info.movies{
    flex-direction: row;
}

.info.movies .movie{
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    max-width: 90px;
}

.info.movies .movie .info-block {
    opacity: 0.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: italic; /* Устанавливаем стиль шрифта для всех блоков */
    width: 90px;
}

.info.movies .movie .info-block:nth-child(2) {
    opacity: 0.9; /* Устанавливаем большую прозрачность только для первого блока */
    font-style: normal; /* Возвращаем обычный стиль шрифта для первого блока */
}

.info.movies .movie .info-block:hover {
    opacity: 1;
}

.info.movies .movie .info-block img {
    width: 90px;
    height: 128px;
}


/* КАРУСЕЛЬ ПОСТЕРОВ */
.carousel-rating-badge {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.6);
    color: #fff;
    z-index: 2;
}
.carousel-movie-rating { top: 5px; right: 5px; }
.carousel-user-rating { top: 5px; left: 5px; }

/* Цвета */
.carousel-rating-badge.good {
    background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
    color: #fff;
}
.carousel-rating-badge.medium {
    background: linear-gradient(135deg, #FFD600 0%, #FFEA00 100%);
    color: #212529;
}
.carousel-rating-badge.bad {
    background: linear-gradient(135deg, #D50000 0%, #FF1744 100%);
    color: #fff;
}

/* Ховер */
.carousel-item:hover .rating-badge {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Коллекции */
.coll-block {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #333, #2b2b2c);
    color: white;
    padding: 30px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: .95;
    gap: 15px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.coll-block:hover { transform: translateY(-3px); }
.coll-block-title { font-size: 20px; margin: 0; }
.coll-block-title a { color: #fff; text-decoration: none; transition: color 0.3s; }
.coll-block-title a:hover { color: var(--primary); }

/* Универсальная карусель */
.carousel-wrapper { position: relative; margin-top: 15px; }
.carousel {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: #666; border-radius: 3px; }

.carousel::-webkit-scrollbar-track {
    background: rgba(255,107,0,0.1);
}

.carousel::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}


.carousel::-webkit-scrollbar-track { background: #222; }
.carousel-item { flex: 0 0 auto; width: 90px; scroll-snap-align: start; transition: transform 0.2s; text-decoration: none; font-size: 12px; }
.carousel-item:hover { transform: scale(1.1); }
.carousel-poster {
    position: relative; /* фикс для бейджей */
}
.carousel-poster img {
    width: 90px; height: 128px; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    opacity: 0.85; transition: transform 0.3s, opacity 0.3s;
}
.carousel-item:hover .carousel-poster img { opacity: 1; transform: scale(1.05); }
.carousel-info { margin-top: 5px; text-align: center; font-size: 12px; color: #ccc; }
.carousel-info .carousel-name { display: block; font-weight: bold; color: #fff; }
.carousel-info .carousel-year { font-size: 11px; color: #aaa; }
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); border: none; color: #fff;
    font-size: 22px; padding: 6px 10px; cursor: pointer;
    border-radius: 50%; z-index: 10; opacity: 0;
    transition: opacity 0.3s, background 0.3s;
}
.carousel-arrow:hover { background: rgba(0,0,0,0.8); }
.carousel-left { left: 0; }
.carousel-right { right: 0; }
.carousel-wrapper:hover .carousel-arrow { opacity: 1; }

/* Другие коллекции */
.coll-extra { margin-top: 20px; }
.coll-extra h4 { color: #fff; margin-bottom: 10px; font-size: 18px; }
.coll-extra-list { display: flex; flex-wrap: wrap; gap: 12px; }
.coll-extra-item {
    padding: 6px 12px;
    background: linear-gradient(120deg, #444, #2e2e2f);
    border-radius: 6px;
    text-decoration: none;
    color: #cb5b08;
    font-weight: bold;
    transition: all 0.3s;
}
.coll-extra-item:hover {
    background: linear-gradient(120deg, #555, #3a3a3b);
    color: #fff;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .coll-block { padding: 20px; }
    .carousel-item { width: 70px; }
    .carousel-poster img { width: 70px; height: 100px; }
    .carousel-arrow { display: none; }
}
/* КАРУСЕЛЬ ПОСТЕРОВ */



.youtube-placeholder {
width: 85px;
    height: 90px;
    background: #000;
    color: red;
font-size: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid red;
    margin-bottom: 10px;
    font-size: 12px;
}

.video-title-link {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-top: 8px;
    transition: color 0.3s;
}

.video-title-link:hover {
    color: #FF6B00;
    text-decoration: underline;
}


.critics-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #404040;
}

/* Заголовок секции */
.critics-header {
    display: flex;
justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 20px;
}



.critics-main-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}



.critics-stats {
    display: flex;
    gap: 12px;
    align-items: center;
}


.critics-rating, .critics-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    color: #cccccc;
    border: 1px solid #404040;
}

/* Emoji статистика */
.critics-emoji-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.emoji-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.emoji-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.emoji-positive { color: #10b981; }
.emoji-neutral { color: #aba7a1;}
.emoji-negative { color: #ef4444; }

.emoji-count {
    font-size: 0.8em;
    font-weight: 600;
    color: #cccccc;
}

/* Кнопка добавления */
.add-critic-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px #86491d;
}

.add-critic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #8f4510;
}

/* Сетка карточек */
.critics-grid, .reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

/* Карточка рецензии */
.critic-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #404040;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.critic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, currentColor 50%, transparent 100%);
    opacity: 0.3;
}

.critic-card.plus::before { color: #10b981; }
.critic-card.minus::before { color: #ef4444; }
.critic-card.neutral::before { color: #aba7a1; }

.critic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: #555555;
}

/* Заголовок карточки */
.critic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.critic-source {
    display: flex;
    align-items: center;
    gap: 12px;
}

.critic-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    border: 2px solid #f0f0f0;
    background: white;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    filter: contrast(1.1) brightness(1.05) saturate(1.2);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.critic-logo:hover {
    filter: contrast(1.2) brightness(1.1) saturate(1.3);
    transform: scale(1.05);
}

.critic-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.critic-link {
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.critic-link:hover {
    color: var(--primary);
}

.critic-time {
    font-size: 0.8em;
    color: #888888;
}

/* Иконка настроения */
.critic-sentiment-icon {
    font-family: 'kino', serif;
    font-size: 1.4em;
    font-weight: 900;
    transition: all 0.5s ease;
}

.critic-card.plus .critic-sentiment-icon {
    color: #10b981;
    content: "😊";
}

.critic-card.minus .critic-sentiment-icon {
    color: #ef4444;
    content: "😞";
}

.critic-card.neutral .critic-sentiment-icon {
    color: #aba7a1;;
    content: "😐";
}

/* Контент карточки */
.critic-content {
    margin-bottom: 16px;
}

.critic-text {
    color: #cccccc;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Футер карточки */
.critic-footer {
    display: flex;
    justify-content: flex-end;
}

.read-more-btn {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--accent);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: rgba(96, 165, 250, 0.1);
    transform: translateX(4px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .critics-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .critics-main-title {
        align-items: flex-start;
        gap: 12px;
    }

    .critics-rating, .critics-count {
font-size: 10px;
    }

    
    .critics-stats {
        flex-wrap: wrap;
    }
    
    .critics-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .critic-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .critic-sentiment-icon {
        align-self: flex-end;
    }
}

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

.btn-text::before {
    content: attr(data-text);
}

@media (max-width: 480px) {

[class^="kino-"], [class*=" kino-"] {
  font-size: 10px;
}

.review-header{
        flex-direction: row;
        gap: 0px;
}

.critics-header{
    align-items: stretch;
}

.critic-header{
    align-items: center;
}

.critics-main-title{
    gap: 5px;
justify-content: space-between;
}

.critics-emoji-stats{
        gap: 5px;
}

.add-critic-btn{
    justify-content: center;
}

.critics-rating{
    display: none;
}

.user-info {
    gap: 7px!important;
}

.avatar-container {
    width: 30px;
    height: 30px;
}

.username{
    font-size: 12px;
}

.review-date{
    font-size: 10px;
}

.rating-badge{
    font-size: 10px;
}

}

.critic-card {
    animation: fadeInUp 0.5s ease forwards;
}

.critic-card:nth-child(2) { animation-delay: 0.1s; }
.critic-card:nth-child(3) { animation-delay: 0.2s; }
.critic-card:nth-child(4) { animation-delay: 0.3s; }



.comment-block {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #333, #2b2b2c);
    color: white;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: .9;
    gap: 15px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    position: relative;
    width: 100%;

}


.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    flex-direction: row;
}

.user-info{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;
}


.comment-block .rating{
    font-size: 1em;
    background: #333;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.green{
    color: #15d415;
    font-weight: 700;
}

@media (max-width: 768px) {
.person-point img {
    width: 75px;
}

}


.movie-list-blocks {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    justify-content: start;
    gap: 20px;
    align-items: flex-start;
}

.movie-list-block {
    overflow: hidden;
    position: relative;
    width: 150px;
    height: 200px;
    padding: 10px;
    flex: 0 0 auto;
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.movie-list-block-img {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: #ddd;
}

.movie-list-block-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-list-block-title {
    font-size: 14px;
    margin-top: 10px;
    opacity: .9;
    width: 100%;
}

.movie-list-block-title p {
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}




@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .button {
        width: auto; /* Для мобильных делаем кнопки на всю доступную ширину */
        margin-bottom: 10px;
    }

    .youtube-placeholder {
    width: 160px;
    height: 78px;
}

}


/* Новый дизайн блока интересных фактов */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 15px 0;
}

.facts-grid.expanded {
    margin-top: 25px;
    animation: slideDownFade 0.5s ease;
}

.facts-grid.spoiler {
    margin-top: 20px;
}

.fact-card {
    position: relative;
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.fact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 107, 0, 0.3);
}

.fact-card[data-type="fact"] {
    border-left: 4px solid #4CAF50;
}

.fact-card[data-type="blooper"] {
    border-left: 4px solid #FF9800;
}

.fact-card[data-type="null"] {
    border-left: 4px solid #2196F3;
}

.fact-card.spoiler {
    border-left: 4px solid #ff4444;
    background: linear-gradient(145deg, #2a1a1a, #1f0f0f);
}

.fact-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent), #ff8533);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.fact-number.warning {
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    font-size: 16px;
}

.fact-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fact-type-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.fact-type-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.fact-text p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    text-align: justify;
}

.fact-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fact-card:hover .fact-decoration {
    opacity: 1;
}

/* Секция раскрытия дополнительных фактов */
.facts-expand-section {
    text-align: center;
    margin: 30px 0 10px;
}

.expand-facts-btn {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(255, 107, 0, 0.05));
    border: 2px dashed rgba(255, 107, 0, 0.4);
    color: var(--accent);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.expand-facts-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 107, 0, 0.1));
    border-color: rgba(255, 107, 0, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.2);
}

.btn-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.expand-facts-btn.active .btn-arrow {
    transform: rotate(180deg);
}

/* Секция спойлеров */
.spoiler-gateway {
    margin-top: 30px;
    margin-bottom: 20px;
    background: linear-gradient(145deg, #2a1a1a, #1f0f0f);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 68, 68, 0.1);
}

.spoiler-gateway-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 68, 68, 0.05);
}

.spoiler-alert {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spoiler-alert-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(255, 68, 68, 0.4));
}

.spoiler-alert-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spoiler-alert-text strong {
    color: #ff4444;
    font-size: 14px;
}

.spoiler-alert-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.spoiler-reveal-btn {
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.spoiler-reveal-btn:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff4444);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

.spoiler-facts-container {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

.spoiler-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 68, 68, 0.02);
    border-radius: 16px;
    pointer-events: none;
}

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

@keyframes pulseWarning {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
}

.spoiler-gateway {
    animation: pulseWarning 2s infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
    .facts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .spoiler-gateway-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .spoiler-alert {
        justify-content: center;
    }
    
    .fact-card {
        padding: 15px;
    }
    
    .expand-facts-btn,
    .spoiler-reveal-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .facts-grid {
        gap: 12px;
    }
    
    .fact-card {
        padding: 12px;
    }
    
    .fact-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

.admin-actions-wrapper {
    position: relative;
    display: inline-block;
}





.admin-actions-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    min-width: 180px;
    z-index: 10;
}

.admin-actions-dropdown a {
    display: block;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
}

.admin-actions-dropdown a:hover {
    background: #444;
}


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

    .ratings-grid {
        grid-template-columns: 1fr;
    }

    .poster-wrapper {
        width: 80px;
        height: 114px;
    }

    .person-point {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

    .youtube-placeholder {
        width: 65px;
        height: 65px;
    }

.tabs-container{
    display: none;
}

.movie-head{
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
}

.poster-actions-container {
    flex-wrap: wrap;
        justify-content: center;
}

}