/* Cinema Styles - YouTube Layout Style */

.movie-view-layout {
    display: flex;
    gap: 40px; /* Больше зазор, сдвигаем правее */
    align-items: flex-start;
    margin-top: 25px; /* Отступ от шапки */
}

.movie-main-col {
    flex: 1;
    min-width: 0;
    max-width: 960px;
    margin-top: 10px; /* Еще ниже, как вы просили */
}

.movie-sidebar-col {
    width: 360px;
    flex-shrink: 0;
    margin-top: 25px; /* Сдвигаем еще ниже */
}

/* Видео контейнер */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 25px; /* Отступ до блока сюжета */
    border: 1px solid #eee;
    border-top: none;
}

/* Сайдбар и мини-карточки (YouTube Style) */
.sidebar-card {
    background: transparent;
    border: none;
    padding: 0;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #d8a58a;
    margin-bottom: 12px; /* Меньше отступ */
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f7ff;
    margin-top: 0;
}

.mini-movie-card {
    display: flex;
    gap: 12px;
    margin-bottom: 8px; /* Компактнее */
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px; /* Чуть меньше паддинг */
    border-radius: 10px;
    align-items: center;
}

.mini-movie-card:hover {
    background: #f8fbff;
    transform: translateY(-4px); /* Поднимаем вверх при наведении */
    box-shadow: 0 6px 15px rgba(0,0,0,0.08); /* Добавляем тень */
}

.mini-poster {
    width: 140px; /* Вернул 140px для лучшей видимости */
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mini-info {
    flex: 1;
    min-width: 0;
}

.mini-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

/* Сетка фильмов (Index) */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.movie-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.movie-poster-link {
    display: block;
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #000;
}

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

.movie-card:hover .movie-poster-img {
    scale: 1.05;
}

.movie-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.movie-title {
    font-weight: 700;
    color: #416f9d;
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-decoration: none;
    line-height: 1.3;
}

.movie-desc {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1100px) {
    .movie-view-layout {
        flex-direction: column;
    }
    .movie-main-col {
        max-width: 100%;
    }
    .movie-sidebar-col {
        width: 100%;
        margin-top: 20px;
    }
    .mini-poster {
        width: 160px;
        height: 90px;
    }
}

/* Скрываем музыкальный плеер в кинотеатре */
body.cinema-page .sticky-audio-player,
body.cinema-page #player-toggle {
    display: none !important;
}
