

/* Start:/bitrix/templates/foldback25/components/bitrix/news.detail/dmixes/style.css?176174865119083*/
        /* Mix Detail Page Styles */
        .mix-detail {
            margin: 40px 0 60px;
        }

        .mix-detail .mix-header {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 30px;
            margin-bottom: 40px;
        }

.mix-detail .mix-cover {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Делаем квадратное соотношение */
}

.mix-detail .mix-cover img,
.mix-detail .mix-cover video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease-in-out; /* Плавный переход для всех свойств */
    border-radius: 10px;
}

.mix-detail .mix-cover img {
    transform: scale(1);
    opacity: 1;
}

.mix-detail .mix-cover video {
    transform: scale(1);
    opacity: 0; /* Начинаем с прозрачного видео */
    display: block; /* Всегда block, управляем через opacity */
}

.mix-detail .mix-cover:hover img,
.mix-detail .mix-cover:hover video {
    transform: scale(1.05);
}

.mix-detail .mix-cover.video-active img {
    opacity: 0; /* Плавно скрываем изображение */
}

.mix-detail .mix-cover.video-active video {
    opacity: 1; /* Плавно показываем видео */
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .mix-detail .mix-cover.has-live-cover img {
        opacity: 0;
    }
    
    .mix-detail .mix-cover.has-live-cover video {
        opacity: 1;
    }
}

        .mix-detail  .mix-meta {
            display: flex;
            flex-direction: column;
        }

 .mix-detail .mix-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: clamp(1.8rem, 5vw, 2.2rem);
           /* margin-bottom: 15px;*/
            color: var(--dark);
        }

        .mix-subtitle {
            font-size: 1.1rem;
            color: #666;
            margin-bottom: 20px;
        }

        .mix-genres {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }

        .mix-genre {
            background-color: var(--secondary);
            color: var(--dark);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            white-space: nowrap;
        }

        .mix-genre:nth-child(2n) {
            background-color: var(--primary);
            color: white;
        }

        .mix-genre:nth-child(3n) {
            background-color: var(--accent);
            color: white;
        }

        .mix-details {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 25px;
            margin-top: 15px;
        }

        .mix-detail-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.95rem;
        }

        .mix-detail-item i {
            color: var(--primary);
        }

        .mix-detail .mix-actions {
            display: flex;
            gap: 15px;
            margin-top: auto;
            flex-wrap: wrap;
            justify-content: flex-start;
        }

         .mix-detail .btn-large {
            padding: 12px 30px;
            font-size: 1.1rem;
        }

         .mix-detail .btn-download {
            background-color: var(--primary);
        }

         .mix-detail .btn-download:hover {
            background-color: #5d3ac9;
        }

        .mix-content {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 30px;
        }

        .mix-description {
            background-color: white;
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .mix-description h3 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.4rem;
            margin-bottom: 20px;
            color: var(--dark);
        }

        .mix-description p {
            margin-bottom: 15px;
            line-height: 1.7;
        }

        .mix-sidebar {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

 /*       .player-container {
            background-color: white;
            border-radius: 10px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .player-container h3 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.4rem;
            margin-bottom: 20px;
            color: var(--dark);
        }

        .audio-player {
            width: 100%;
            margin-bottom: 15px;
        }

        .player-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 15px;
            gap: 15px;
        }

        .player-time {
            font-size: 0.9rem;
            color: #666;
        }
*/

   .player-wrapper {
        padding: 5px 15px;
        margin-bottom: 20px;
        border-radius: 12px;
        max-width: 620px;
        /*margin: 0 auto;*/
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        font-family: 'Montserrat', sans-serif;
    }

    .player-container h3 {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.4rem;
        margin-bottom: 20px;
        color: var(--dark);
    }

    audio {
        display: none;
    }

    /* Прогресс-бар с увеличенной высотой */
    .player-progress {
        width: 100%;
        height: 8px;
        border-radius: 6px;
        -webkit-appearance: none;
        background: linear-gradient(to right, var(--primary) 0%, var(--accent) 100%);
        cursor: pointer;
    }

    .player-progress::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        background: var(--accent);
        border-radius: 50%;
        cursor: pointer;
        border: none;
        margin-top: 0;
        box-shadow: 0 0 8px rgba(255,126,95,0.6);
        transition: background-color 0.3s ease;
    }

    .player-progress::-moz-range-thumb {
        width: 18px;
        height: 18px;
        background: var(--accent);
        border-radius: 50%;
        border: none;
        cursor: pointer;
        box-shadow: 0 0 8px rgba(255,126,95,0.6);
        transition: background-color 0.3s ease;
    }

    .time-labels {
        display: flex;
        justify-content: space-between;
        margin-top: 8px;
        font-size: 0.9rem;
        color: #666;
        user-select: none;
        font-family: 'Montserrat', sans-serif;
    }

    /* Управляющий блок */
    .custom-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 18px;
        flex-wrap: wrap;
        margin: 15px auto;
    }

    /* Изолированные стили кнопок плеера */
    .player-btn {
        background-color: var(--accent);
        border: 2px solid var(--accent);
        border-radius: 8px;
        min-width: 46px;
        min-height: 46px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
        padding: 6px;
        user-select: none;
    }

    .player-btn:hover {
        background-color: var(--accent);
        box-shadow: 0 6px 18px rgba(255,126,95,0.5);
        transform: translateY(-3px);
    }

    /* Белые иконки внутри кнопок при hover и без */
    .player-btn .icon {
        width: 28px;
        height: 28px;
        fill: white;
        pointer-events: none;
    }

    /* Регулятор громкости */
    .player-volume {
        width: 120px;
        height: 8px;
        cursor: pointer;
        border-radius: 4px;
        -webkit-appearance: none;
        background: linear-gradient(to right, var(--primary), var(--accent));
        transition: background-color 0.3s ease;
        vertical-align: middle;
    }

    .player-volume::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        background: var(--accent);
        border-radius: 50%;
        border: none;
        cursor: pointer;
        margin-top: -5px;
        box-shadow: 0 0 8px rgba(255,126,95,0.6);
        transition: background-color 0.3s ease;
        pointer-events: auto;
    }

    .player-volume::-moz-range-thumb {
        width: 18px;
        height: 18px;
        background: var(--accent);
        border-radius: 50%;
        border: none;
        cursor: pointer;
        box-shadow: 0 0 8px rgba(255,126,95,0.6);
        transition: background-color 0.3s ease;
        pointer-events: auto;
    }

    /* Адаптив для мобильных */
    @media (max-width: 480px) {
        .custom-controls {
            gap: 14px;
        }

        .player-volume {
            width: 90px;
            height: 6px;
        }

        .player-volume::-webkit-slider-thumb,
        .player-volume::-moz-range-thumb {
            width: 14px;
            height: 14px;
            margin-top: -4px;
        }

        .player-btn {
            min-width: 48px;
            min-height: 48px;
            padding: 4px;
        }

        .player-btn .icon {
            width: 24px;
            height: 24px;
        }

        .player-wrapper {
            padding: 20px 10px;
        }

        .player-container h3 {
            font-size: 1.3rem;
            margin-bottom: 15px;
        }
    }


        .tracklist {
            background-color: white;
            border-radius: 10px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .tracklist h3 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.4rem;
            margin-bottom: 20px;
            color: var(--dark);
        }

        .tracklist ol {
            list-style-position: inside;
            padding-left: 0;
        }

        .tracklist li {
            /*padding: 10px 0;*/
            border-bottom: 1px solid var(--gray);
            display: flex;
           /* justify-content: space-between;*/
        }

        .tracklist li:last-child {
            border-bottom: none;
        }

        .track-number {
            color: var(--primary);
            font-weight: 600;
            margin-right: 10px;
        }

        .track-time {
            color: #666;
            font-size: 0.9rem;
        }



        .track-item {
    transition: background-color 0.2s ease;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 4px;
}

.track-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.track-item.active-track {
    background-color: rgba(33, 150, 243, 0.2);
    border-left: 3px solid #2196f3;
}

.track-time {
    color: #888;
    font-size: 0.9em;
    margin-left: 8px;
}

.track-title {
    flex-grow: 1;
}

.track-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 4px;
}

.track-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.track-time {
    color: #888;
    font-size: 0.9em;
    margin-left: 8px;
}


        .social-share {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-share a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--light);
            color: var(--dark);
            transition: all 0.3s;
            text-decoration: none;
        }

        .social-share a:hover {
            transform: translateY(-3px);
        }

        .social-share .facebook:hover {
            background-color: #3b5998;
            color: white;
        }

        .social-share .twitter:hover {
            background-color: #1da1f2;
            color: white;
        }

        .social-share .vk:hover {
            background-color: #4a76a8;
            color: white;
        }

        .social-share .telegram:hover {
            background-color: #0088cc;
            color: white;
        }

        /* Recommended mixes */
        .recommended-mixes {
            margin: 60px 0;
        }

        .mixes-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: clamp(20px, 3vw, 30px);
            margin-bottom: 40px;
        }

        .mix-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s, box-shadow 0.3s;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .mix-image {
            width: 100%;
            height: 0;
            padding-bottom: 100%;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
        }

        .mix-image img {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .mix-info {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .mix-card.style1 {
            border-top: 5px solid var(--primary);
        }

        .mix-card.style2 {
            border-top: 5px solid var(--accent);
        }

        .mix-card.style3 {
            border-top: 5px solid var(--secondary);
        }

        .mix-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .mix-card:hover .mix-image img {
            transform: scale(1.05);
        }

        .mix-title-small {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.1rem;
            margin-bottom: 10px;
            color: var(--dark);
        }

        .mix-meta-small {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 0.8rem;
            color: #666;
        }

        .mix-genres-small {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 10px;
        }

        .mix-genre-small {
            background-color: var(--secondary);
            color: var(--dark);
            padding: 2px 8px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            white-space: nowrap;
        }

        .mix-genre-small:nth-child(2n) {
            background-color: var(--primary);
            color: white;
        }


		       /* Mobile styles */
        @media (max-width: 992px) {
             .mix-detail .logo img {
                height: 45px;
            }
            
             .mix-detail .mix-header {
                grid-template-columns: 1fr;
            }
            
             .mix-detail .mix-content {
                grid-template-columns: 1fr;
            }
            
             .mix-detail .mixes-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
             .mix-detail .header-content {
                flex-direction: column;
            }

             .mix-detail .logo-toggle-container {
                margin-bottom: 10px;
            }
             .mix-detail .logo {
                margin-bottom: 0px;
            }
        }

        @media (max-width: 576px) {
             .mix-detail .logo {
                margin-bottom: 0px;
            }
             .mix-detail .logo img {
                height: 25px;
            }

             .mix-detail .mix-actions {
                flex-direction: column;
                gap: 10px;
            }

             .mix-detail .btn {
                width: 100%;
                text-align: center;
            }
            
             .mix-detail .mixes-grid {
                grid-template-columns: 1fr;
            }
        }

.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    transition: transform 0.2s;
}

.like-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.like-btn:active {
    transform: scale(0.95);
}

.like-btn .material-icons {
    color: #ccc;
    transition: color 0.3s;
}

.like-btn:hover .material-icons {
    color: #f44336;
}


/* Новый глобальный контейнер подсказки, абсолютно позиционированный */

.mix-genre {
    cursor: pointer;
}

.tooltip-global {
    position: fixed;
    max-width: 320px; /* Для текста в ~200 символов подходит */
    background-color: #f3f3f3;
    color: #333;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(110, 69, 226, 0.2);
    border: 1px solid rgba(110, 69, 226, 0.35);
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
    z-index: 9999; /* Поверх всего */
    pointer-events: none; /* Чтобы подсказка не блокировала мышь */
    opacity: 0;
    transition: opacity 0.25s ease;
    word-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
    user-select: none;
}

/* Стрелочка у подсказки */
.tooltip-global::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 8px;
    border-style: solid;
    border-color: #f3f3f3 transparent transparent transparent;
}

/* Показываем подсказку */
.tooltip-global.show {
    opacity: 1;
    pointer-events: auto;
}

/* Для плавного позиционирования будет set via JS */

/* End */
/* /bitrix/templates/foldback25/components/bitrix/news.detail/dmixes/style.css?176174865119083 */
