.respect-widget-slider {
    position: relative;
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    perspective: 1000px;
}

.respect-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
    z-index: 10;
}

.respect-progress-fill {
    width: 0%;
    height: 100%;
    background: #e63946;
    transition: width 0.1s linear;
}

/* 3D-сцена для слайдів у стилі Shazam */
.respect-slides-container {
    position: relative;
    flex: 1;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.respect-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.6) translateZ(-100px);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.45s ease, filter 0.45s ease;
}

/* Центровий активний трек */
.respect-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1) translateZ(0);
    z-index: 10;
}

/* Попередній трек зліва (3D) */
.respect-slide.prev {
    opacity: 0.35;
    pointer-events: auto;
    cursor: pointer;
    transform: translate(-128%, -50%) scale(0.78) rotateY(18deg);
    z-index: 5;
    filter: blur(0.5px);
}

.respect-slide.prev:hover {
    opacity: 0.65;
    filter: blur(0px);
}

/* Наступний трек справа (3D) */
.respect-slide.next {
    opacity: 0.35;
    pointer-events: auto;
    cursor: pointer;
    transform: translate(28%, -50%) scale(0.78) rotateY(-18deg);
    z-index: 5;
    filter: blur(0.5px);
}

.respect-slide.next:hover {
    opacity: 0.65;
    filter: blur(0px);
}

/* Обкладинка */
.respect-cover-link {
    display: block;
    width: 100%;
    text-decoration: none;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    transition: border-color 0.25s ease;
}

.respect-slide.active .respect-cover-link:hover {
    border-color: rgba(230, 57, 70, 0.7);
}

.respect-cover-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
}

.respect-cover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Номери треків */
.respect-badge-row {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.respect-pos-tag {
    background: #e63946;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.respect-pos-tag.top-3 {
    background: linear-gradient(135deg, #e63946 0%, #ff6b6b 100%);
}

.respect-trend-tag {
    font-size: 12px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    line-height: 1.2;
}

.respect-trend-tag.up { color: #4ade80; }
.respect-trend-tag.down { color: #f87171; }
.respect-trend-tag.new { background: #e63946; color: #fff; border: none; font-weight: 900; }

/* Текст під обкладинкою (дозволяємо перенесення рядків замість трьох крапок) */
.respect-info-box {
    text-align: center;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0 4px;
}

.respect-slide.active .respect-info-box {
    opacity: 1;
}

.respect-track-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Дозволяє займати до 2 рядків */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.respect-track-title a {
    color: #ffffff;
    text-decoration: none;
}

.respect-track-title a:hover {
    color: #e63946;
}

.respect-track-artist {
    color: #a1a1aa;
    font-size: 14px;
    font-weight: 600;
    margin: 3px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* Напівпрозорі стрілки */
.respect-nav-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}

.respect-widget-slider:hover .respect-nav-btn {
    opacity: 0.6;
    pointer-events: auto;
}

.respect-nav-btn:hover {
    opacity: 1 !important;
    background: #e63946;
    border-color: #e63946;
    transform: translateY(-50%) scale(1.1);
}

.respect-nav-prev { left: 8px; }
.respect-nav-next { right: 8px; }

/* Крапки навігації */
.respect-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    z-index: 10;
}

.respect-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.respect-dot.active {
    background: #e63946;
    width: 18px;
    border-radius: 4px;
}