.marquee-carousel {
    position: relative;
    z-index: 0;
    overflow: hidden;
    max-width: 100%;
    margin: -32px auto 0.5rem auto;
    padding: 4px 0 0 0;
    min-height: 82px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.06);
}

.marquee-carousel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../imagen/soloFondo.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(1) brightness(0.35);
    border-radius: 8px;
}
.marquee-carousel > * {
    position: relative;
    z-index: 1;
}
.marquee-label {
    position: absolute;
    top: 4px;
    left: 85px;
    z-index: 5;
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    text-shadow: 0 0 4px #000, 0 0 8px #000;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: 0.3px;
    max-width: calc(100% - 90px);
    overflow: hidden;
    text-overflow: ellipsis;
}
.marquee-track { width:100%; max-width:100%; display:flex; align-items:center; justify-content:flex-start; overflow:hidden; position:relative; }
.marquee-row { display:flex; align-items:center; flex:1; min-height:0; width:100%; }
.marquee-item { display:flex; align-items:center; gap:20px; opacity:0; visibility:hidden; position:absolute; width:100%; transition:opacity 0.5s ease, visibility 0.5s ease; }
.marquee-item.active { opacity:1; visibility:visible; position:relative; }

.marquee-thumb {
    width: 48px; height: 48px;
    margin-left: 18px;
    border-radius: 0;
    object-fit: cover;
    border: 2px solid rgba(255,80,80,0.3);
    box-shadow: 0 0 15px rgba(255,0,0,0.1);
    flex-shrink: 0;
}

@keyframes marqueeDrop {
    0%   { transform: translateY(-40px); opacity: 0; }
    60%  { transform: translateY(4px); opacity: 1; }
    80%  { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}
.marquee-item.active .marquee-thumb {
    animation: marqueeDrop 0.6s ease-out forwards;
}

.marquee-text { color:#fff; display:flex; flex-direction:column; overflow:hidden; max-width:100%; min-width:0; text-shadow: 0 0 4px #000, 0 0 8px #000, 0 2px 4px #000; }

.marquee-title {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-width: 100%;
}

@keyframes textSlideIn {
    0%   { opacity: 0; transform: translateX(-8px); }
    100% { opacity: 1; transform: translateX(0); }
}
.marquee-item.active .marquee-title {
    animation: textSlideIn 0.8s ease-out forwards;
}

.marquee-sub { font-size:12px; color:#ddd; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:260px; }
.marquee-controls { display:flex; gap:4px; margin-left:8px; flex-shrink:0; align-items:center; }
.m-prev, .m-next {
    background: rgba(241, 6, 6, 0.911);
    color: #f7f2f2;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.3;
    transition: all 0.2s;
}
.m-prev:hover, .m-next:hover {
    background: rgba(200,0,0,0.3);
    color: #fff;
}

.marquee-player {
    display: flex;
    align-items: center;
    height: 34px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0 12px;
    gap: 10px;
    border-radius: 0 0 8px 8px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mp-play-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #d32f2f;
    border: 2px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    transition: background 0.2s;
}
.mp-play-btn:hover {
    background: #e53935;
}

.mp-label {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.mp-download {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    margin-left: auto;
    transition: background 0.2s;
}
.mp-download:hover {
    background: rgba(255,255,255,0.25);
}

@media (max-width:480px) {
    .marquee-carousel { padding:4px 0 0 0; min-height:58px; }
    .marquee-thumb { width: 36px; height: 36px; }
    .marquee-title { font-size: 12px; }
    .marquee-link { gap: 8px; }
    .marquee-label { top: 3px; left: 71px; font-size: 8px; max-width: calc(100% - 74px); }
    .marquee-player { height: 28px; padding: 0 8px; gap: 6px; }
    .mp-play-btn { width: 20px; height: 20px; font-size: 10px; border-width: 1px; }
    .mp-label { font-size: 9px; }
    .mp-download { width: 20px; height: 20px; font-size: 10px; }
}
.marquee-link {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    max-width: 100%;
    min-width: 0;
}
.marquee-link:hover, .marquee-link:focus {
    color: inherit;
    background: transparent;
    text-decoration: none;
}
