/* Работы (Портфолио) — вкладка Популярити и Гость */

.works-page {
    padding-bottom: 60px;
}

/* Навигация */
.works-nav {
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.1s;
}

.works-nav .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #77F601;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.works-nav .back-btn:hover {
    color: rgba(255, 255, 255, 0.95);
}

.works-nav .back-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Заголовок */
.works-header {
    text-align: center;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.15s;
}

.works-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.works-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Вкладки Популярити | Гость */
.works-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

.works-tab {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.works-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(119, 246, 1, 0.3);
}

.works-tab.active {
    background: linear-gradient(45deg, rgba(119, 246, 1, 0.2), rgba(196, 0, 251, 0.2));
    border-color: rgba(119, 246, 1, 0.5);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(119, 246, 1, 0.25);
}

/* Панели контента */
.works-panel {
    display: none;
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

.works-panel.active {
    display: block;
}

.works-panel-inner {
    max-width: 900px;
    margin: 0 auto;
}

.works-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px 0;
    text-align: center;
}

/* --- Популярити: бесконечная анимированная карусель артистов --- */
.works-artists-wrap {
    position: relative;
    margin-bottom: 40px;
    padding: 8px 0;
    overflow: hidden;
    width: 100%;
}

.works-artists-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 4px 0;
    animation: works-carousel-scroll 40s linear infinite;
    will-change: transform;
}

@keyframes works-carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.works-artist-item {
    flex: 0 0 auto;
    width: 220px;
    text-align: center;
}

.works-artist-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid rgba(119, 246, 1, 0.25);
    display: block;
    margin-bottom: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.works-artist-item:hover .works-artist-img {
    border-color: rgba(119, 246, 1, 0.5);
    box-shadow: 0 8px 28px rgba(119, 246, 1, 0.25);
    transform: scale(1.03);
}

.works-artist-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Треки с описанием (Популярити) --- */
.works-tracks-section {
    margin-top: 32px;
}

.works-tracks-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.works-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.works-track-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    backdrop-filter: blur(10px);
}

.works-track-card-cover {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(119, 246, 1, 0.2);
}

.works-track-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.works-track-card-body {
    flex: 1;
    min-width: 0;
}

.works-track-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.works-track-card-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.45;
}

/* --- Гость: блоки Запись и Сведение --- */
.works-block {
    margin-bottom: 40px;
}

.works-block-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.works-block-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.works-empty-placeholder {
    padding: 32px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

/* Город и звукорежиссёры (Гость) */
.works-guest-city-wrap {
    margin-bottom: 20px;
}

.works-guest-city-wrap .city-selector {
    margin-bottom: 0;
}

/* Выбор звукорежиссёра (Гость) */
.works-guest-engineer-wrap {
    margin-bottom: 24px;
}

.works-guest-engineer-wrap .promo-engineers-select {
    max-width: 100%;
}

.works-guest-engineer-wrap .promo-engineers-trigger {
    max-width: 100%;
}

.works-guest-engineer-wrap .promo-engineer-card {
    min-width: 160px;
}

.works-guest-engineer-wrap .promo-engineer-name {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

.works-guest-engineer-wrap .promo-engineers-trigger-text {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.works-guest-engineer-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.works-guest-engineer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.works-guest-engineer-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.25s ease;
}

.works-guest-engineer-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(119, 246, 1, 0.35);
    color: #fff;
}

.works-guest-engineer-chip.active {
    background: linear-gradient(45deg, rgba(119, 246, 1, 0.2), rgba(196, 0, 251, 0.15));
    border-color: rgba(119, 246, 1, 0.5);
    color: #ffffff;
}

.works-guest-engineer-chip-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.works-guest-engineer-chip-avatar-initial {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(119, 246, 1, 0.25);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.works-content-transition-out {
    opacity: 0;
    transition: opacity 0.2s ease-out;
}
.works-content-transition-in {
    opacity: 1;
    transition: opacity 0.22s ease-in;
}

/* Карусель видео — CSS Grid + scroll-snap (центр по одному слайду, соседи видны) */
.works-block-recording .works-videos-carousel-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.works-block-recording .works-videos-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 16px 11%;
    scroll-padding-inline: 11%;
}

.works-block-recording .works-videos-carousel::-webkit-scrollbar {
    display: none;
}

.works-block-recording .works-video-slide {
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

/* Карточка на всю ячейку грида, без свечения */
.works-block-recording .works-video-slide .works-video-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.12);
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform-origin: center center;
}

.works-block-recording .works-video-slide.active .works-video-card {
    transform: scale(1);
    opacity: 1;
    z-index: 2;
    box-shadow: none;
}

.works-block-recording .works-video-slide:not(.active) .works-video-card {
    transform: scale(0.72);
    opacity: 0.82;
    pointer-events: none;
}

/* Вертикальный контейнер видео (портрет), крупнее */
.works-block-recording .works-video-wrap {
    aspect-ratio: 9 / 16;
    max-height: min(82vh, 600px);
}

.works-block-recording .works-video-wrap .works-video {
    object-fit: cover;
}

/* Плеер в блоке «Запись» — упрощённая панель без кружков */
.works-block-recording .works-video-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 8px;
    background: rgba(0, 0, 0, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
}

.works-block-recording .works-video-controls .works-video-progress-wrap {
    flex: 1;
    min-width: 0;
}

.works-block-recording .works-video-time {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 7em;
}

/* Без кружков — только иконки, плоские кнопки */
.works-block-recording .works-player-btn {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

.works-block-recording .works-player-btn:hover {
    color: #fff;
    background: transparent;
    border: none;
    box-shadow: none;
    transform: none;
}

.works-block-recording .works-video-play::before {
    border-width: 5px 0 5px 9px;
    margin-left: 2px;
}

.works-block-recording .works-video-play.playing::before {
    width: 9px;
    height: 11px;
    margin-left: 0;
    background: linear-gradient(to right, currentColor 0, currentColor 2px, transparent 2px, transparent 6px, currentColor 6px, currentColor 9px);
}

.works-block-recording .works-video-fullscreen {
    flex-shrink: 0;
}

.works-block-recording .works-video-fullscreen::before {
    width: 12px;
    height: 12px;
    border: 1px solid currentColor;
    border-radius: 0;
}

.works-block-recording .works-video-progress-track {
    height: 5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.works-block-recording .works-video-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #77F601, rgba(196, 0, 251, 0.85));
}

.works-block-recording .works-video-time {
    font-size: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    width: 5.5em;
    min-width: 5.5em;
    flex-shrink: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.works-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: opacity 0.5s ease;
}

.works-swipe-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.works-swipe-hint-icon:first-child {
    animation: works-swipe-bounce-left 1.5s ease-in-out infinite;
}

.works-swipe-hint-icon:last-child {
    animation: works-swipe-bounce-right 1.5s ease-in-out infinite;
    animation-delay: 0.3s;
}

.works-swipe-hint-icon {
    font-size: 1.2rem;
    color: rgba(119, 246, 1, 0.9);
}

@keyframes works-swipe-bounce-left {
    0%, 100% { transform: translateX(0); opacity: 0.8; }
    50% { transform: translateX(-8px); opacity: 1; }
}

@keyframes works-swipe-bounce-right {
    0%, 100% { transform: translateX(0); opacity: 0.8; }
    50% { transform: translateX(8px); opacity: 1; }
}

.works-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.works-video-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

.works-video-placeholder-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(119, 246, 1, 0.3);
    border: 2px solid rgba(119, 246, 1, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    padding-left: 4px;
}

.works-video-placeholder-text {
    display: none;
}

.works-video-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(119, 246, 1, 0.2);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.works-video-card:hover {
    border-color: rgba(119, 246, 1, 0.4);
    box-shadow: 0 12px 40px rgba(119, 246, 1, 0.15);
}

.works-video-wrap {
    position: relative;
    background: #0a0a0a;
    aspect-ratio: 16 / 9;
}

.works-video-wrap .works-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.works-video-wrap:fullscreen,
.works-video-wrap:-webkit-full-screen {
    width: 100%;
    height: 100%;
    background: #000;
}

.works-video-wrap:fullscreen .works-video,
.works-video-wrap:-webkit-full-screen .works-video {
    object-fit: contain;
}

.works-video {
    width: 100%;
    display: block;
    vertical-align: top;
}

.works-video-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.works-video-title {
    display: block;
    padding: 12px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Общие стили кастомных плееров (аудио + видео) --- */
.works-player-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(119, 246, 1, 0.25), rgba(196, 0, 251, 0.2));
    border: 1px solid rgba(119, 246, 1, 0.5);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(119, 246, 1, 0.2);
}

.works-player-btn:hover {
    background: linear-gradient(135deg, rgba(119, 246, 1, 0.4), rgba(196, 0, 251, 0.3));
    border-color: #77F601;
    box-shadow: 0 6px 20px rgba(119, 246, 1, 0.35);
    transform: scale(1.05);
}

.works-player-btn:active {
    transform: scale(0.98);
}

/* Иконка play (треугольник) */
.works-player-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent currentColor;
    margin-left: 3px;
}

/* Иконка паузы: два вертикальных столбика (::before + тень) */
.works-player-btn.playing::before {
    border: none;
    width: 12px;
    height: 14px;
    margin-left: 0;
    background: linear-gradient(to right, currentColor 0, currentColor 4px, transparent 4px, transparent 8px, currentColor 8px, currentColor 12px);
}

/* Иконка полноэкранного режима */
.works-video-fullscreen::before {
    content: '';
    width: 14px;
    height: 14px;
    margin-left: 0;
    border: 2px solid currentColor;
    border-radius: 1px;
    background: transparent;
}


.works-player-progress-track,
.works-video-progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.works-player-progress-fill,
.works-video-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #77F601, rgba(196, 0, 251, 0.9));
    border-radius: 3px;
    transition: width 0.1s linear;
}

.works-player-time,
.works-video-time {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    width: 90px;
    min-width: 90px;
    flex-shrink: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Скрыть время у видеоплееров по запросу */
.works-video-time {
    display: none !important;
}

/* --- Блок «Сведение» до/после — карточки с отступом через gap --- */
.works-block-mixing,
#worksGuestMixingBlock {
    padding-bottom: 120px;
    box-sizing: border-box;
}

#worksAudioCarousel {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 24px 16px 32px;
    box-sizing: border-box;
    width: 100% !important;
}

#worksAudioCarousel::-webkit-scrollbar {
    display: none;
}

/* Спейсер между карточками — реальный div 24px, отступ не перебить */
.works-block-mixing .works-mixing-gap,
#worksGuestMixingBlock .works-mixing-gap {
    flex-shrink: 0;
    height: 24px;
    min-height: 24px;
    width: 100%;
    display: block;
}

#worksGuestMixingBlock .works-audio-slide,
.works-block-mixing .works-audio-slide {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 300px !important;
    align-self: center;
    padding: 0;
    box-sizing: border-box;
}

#worksGuestMixingBlock .works-audio-slide:last-child,
.works-block-mixing .works-audio-slide:last-child {
    margin-right: 0;
}

.works-block-mixing .works-block-title,
.works-block-mixing .works-block-desc,
#worksGuestMixingBlock .works-block-title,
#worksGuestMixingBlock .works-block-desc {
    text-align: center;
}

.works-block-mixing .works-audio-carousel-wrap,
#worksGuestMixingBlock .works-audio-carousel-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    margin: 0 auto;
}

.works-block-mixing .works-audio-carousel,
.works-block-mixing #worksAudioCarousel,
#worksGuestMixingBlock .works-audio-carousel,
#worksGuestMixingBlock #worksAudioCarousel {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 24px 16px 32px;
    box-sizing: border-box;
    width: 100% !important;
}

.works-block-mixing .works-audio-carousel::-webkit-scrollbar,
#worksGuestMixingBlock .works-audio-carousel::-webkit-scrollbar {
    display: none;
}

.works-block-mixing .works-audio-slide,
#worksGuestMixingBlock .works-audio-slide {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 300px !important;
    align-self: center;
    padding: 0;
    box-sizing: border-box;
}

.works-block-mixing .works-audio-slide .works-audio-pair,
#worksGuestMixingBlock .works-audio-slide .works-audio-pair {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.works-block-mixing .works-audio-slide .works-audio-pair .works-audio-pair-card,
#worksGuestMixingBlock .works-audio-slide .works-audio-pair .works-audio-pair-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(119, 246, 1, 0.28);
    border-radius: 16px;
    padding: 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.works-block-mixing .works-audio-slide .works-audio-pair .works-audio-pair-card:hover,
#worksGuestMixingBlock .works-audio-slide .works-audio-pair .works-audio-pair-card:hover {
    border-color: rgba(119, 246, 1, 0.5);
    box-shadow: 0 16px 48px rgba(119, 246, 1, 0.18);
}

/* Секции До / После — отступы и разделитель */
.works-block-mixing .works-audio-slide .works-audio-pair .works-audio-section,
#worksGuestMixingBlock .works-audio-slide .works-audio-pair .works-audio-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0.85rem 1rem;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.works-block-mixing .works-audio-slide .works-audio-pair .works-audio-section .works-audio-label,
#worksGuestMixingBlock .works-audio-slide .works-audio-pair .works-audio-section .works-audio-label {
    text-align: center;
    width: 100%;
    font-size: 0.7rem;
}

.works-block-mixing .works-audio-slide .works-audio-pair .works-audio-section .works-audio-player-wrap,
#worksGuestMixingBlock .works-audio-slide .works-audio-pair .works-audio-section .works-audio-player-wrap {
    width: 100%;
    max-width: 100%;
}

.works-block-mixing .works-audio-slide .works-audio-pair .works-audio-section.works-audio-before,
#worksGuestMixingBlock .works-audio-slide .works-audio-pair .works-audio-section.works-audio-before {
    border-bottom: 1px solid rgba(119, 246, 1, 0.18);
}

.works-block-mixing .works-audio-slide .works-audio-pair .works-audio-pair-title,
#worksGuestMixingBlock .works-audio-slide .works-audio-pair .works-audio-pair-title {
    flex: none;
    order: 3;
    margin: 0;
    padding: 0.6rem 1rem 0.9rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.works-audio-pair {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.works-audio-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(119, 246, 1, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.works-audio-section .works-audio-label {
    margin-bottom: 0;
}

.works-audio-pair-title {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 8px;
}

.works-audio-pair .works-audio-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Аудио-карточки со кастомным плеером --- */
.works-audio-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.works-audio-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(119, 246, 1, 0.2);
    border-radius: 16px;
    padding: 18px 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.works-audio-card:hover {
    border-color: rgba(119, 246, 1, 0.35);
    box-shadow: 0 12px 40px rgba(119, 246, 1, 0.12);
}

.works-audio-player-wrap.works-player-custom {
    width: 100%;
}

.works-player-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.works-player-progress-wrap,
.works-video-progress-wrap {
    flex: 1;
    min-width: 0;
}

.works-audio-info {
    flex: 1;
}

.works-audio-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.works-audio-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.45;
}

/* Скрыть нативный audio (управление через кастомный UI) */
.works-audio-player-wrap.works-player-custom {
    position: relative;
}

.works-audio-player-wrap.works-player-custom .works-audio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Футер */
.works-footer-link {
    text-align: center;
    padding: 32px 0 20px;
    margin: 0;
    font-size: 0.9rem;
}

.works-footer-link a {
    color: #77F601;
    text-decoration: none;
}

.works-footer-link a:hover {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 768px) {
    .works-artist-item {
        width: 180px;
    }

    .works-artists-track {
        gap: 16px;
        animation-duration: 35s;
    }

    .works-block-mixing .works-audio-carousel,
    #worksGuestMixingBlock .works-audio-carousel {
        padding: 20px 12px 28px;
        scroll-padding-inline: 12px;
    }

    .works-block-mixing .works-audio-slide,
    #worksGuestMixingBlock .works-audio-slide {
        width: calc(100vw - 56px) !important;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    .works-title {
        font-size: 1.5rem;
    }

    .works-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .works-tab {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .works-artist-item {
        width: 160px;
    }

    .works-artists-track {
        gap: 14px;
        animation-duration: 30s;
    }

    .works-artist-name {
        font-size: 0.8rem;
    }
}
