body {
    line-height: 1.6;
}

/*
.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(7px) brightness(0.4);
    z-index: -999;
    transform: scale(1.05);
}
*/
a {
    color: var(--theme-primary-color);
}

.header {
    background:transparent !important;
}

h3 {
    color: #ddd;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.container {
    max-width: 1450px;
    margin: 0 auto;
}

.music-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.music-cover {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    flex-shrink: 0;
}

.music-info {
    flex: 1;
}

.music-info h1 {
    font-size: 2.5rem;
    color: var(--theme-primary-color);
    margin-bottom: 0.5rem;
}

.music-info .artist {
    font-size: 12px;
    color: #c3c3c3;
    margin-bottom: 0rem;
    margin-top: -50px;
    font-weight: 500;
}

.music-info .artist.lanzamiento {
    margin-top:0px;
}

span.duracion {
    float: right;
    font-size: 20px;
    line-height: 20px;
    font-weight: 400;
    padding-right: 1px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    flex-direction: row;
    min-width: 140px;
}

.music-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;

}

.meta-item {
    background: #ededed52;
    padding: 1rem;
    border-radius: 5px;
}

.meta-item strong {
    display: block;
    color: #f5f5f5;
    margin-bottom: 0.25rem;
}

.meta-item span {
    color: var(--theme-primary-color);
}

.music-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    text-decoration: none;
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e1e5e9;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
}

.audio-player {
    padding: 0;
    border-radius: 10px;
    margin-bottom: 0;
    margin-top: 5px;
    max-width: 600px;
}

.audio-player audio {
    width: 100%;
}

.video-player {
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.video-player video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
    background: #000;
    border-radius: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 6rem;
    max-width: 620px;
    float: left;
}

.stat-card {
    background: #dadada4d;
    padding: 0.2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-height: 120px;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: bold;
    color: #fdfdfd;
    display: block;
}

.stat-card .label {
    color: #dddddd;
    font-size: 0.8rem;
    font-weight: 400;
}

.rating-section {
    background: #ffffff14;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.rating-section h3 {
    display: inline-block;
    margin-right: 40px;
}
.rating-section form {
    display: inline-block;
    width: 300px;
}

.rating-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rating-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e1e5e9;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.rating-btn.active.like {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.rating-btn.active.dislike {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.comments-section {
    background: #ffffff14;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 30px 0px 0px 0px;
    color: var(--theme-primary-color);
    font-weight: 200;
}

.contenedorStats {
    margin-bottom: 10px;
}

.letraStats {
    color: var(--theme-primary-color);
}

.comment-form textarea {
    width: 70%;
    padding: 1rem;
    resize: vertical;
    min-height: 44px;
    background: none;
    color: var(--theme-primary-color);
    border: none;
    border-bottom: 2px solid #919191ab;
}

.contenedorAgregarComment {
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.comment {
    border-bottom: 1px solid #e1e5e9;
    padding: 1rem 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: white;
}

.comment-author {
    font-weight: bold;
    color: #E3E3E3;
}

.comment-date {
    color: #D4D4D4;
    font-size: 0.9rem;
}

.comment-text {
    color: #D4D4D4;
    line-height: 1.5;
    font-weight: 400;
}

.error {
    background: #fee;
    color: #c33;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid #c33;
}

.success {
    background: #efe;
    color: #3c3;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid #3c3;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--theme-primary-color);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .music-header {
        flex-direction: column;
        text-align: center;
    }

    .music-cover {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        font-size: 3rem;
    }

    .music-info h1 {
        font-size: 2rem;
    }

    .music-actions {
        justify-content: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .artist.lanzamiento {
        font-size: 12px;
        text-align: left;
    }

    .h2_versiones  .fila-musica {
        gap: 20px;
        display: inline-grid !important;
    }

    .descripcionCancion{
        max-height: 90px;
        overflow-y: scroll;
    }

}

img.music-cover-full {
    width: 100%;
    height: 100%;
    max-width: 612px;
    max-height: 612px;
}

.player-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
}

.audio-controls {
    margin-bottom: 30px;
    text-align: center;
}

audio {
    width: 100%;
    margin: 20px 0;
}

.visualizer-container {
    position: relative;
    margin: 20px 0;
}

canvas {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    background: rgb(218 218 218 / 30%);
    margin:0;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.file-input {
    margin: 20px 0;
    text-align: center;
}

input[type="file"] {
    display: none;
}

.file-label {
    display: inline-block;
    background: rgba(74, 144, 226, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    background: rgba(74, 144, 226, 1);
    transform: translateY(-2px);
}

#toggleAnimation {
    background: rgba(74, 144, 226, 0.8);
}

#toggleFrequency, #toggleWaveform, #toggleAnimation {
    background: rgb(114 88 180);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    color: var(--theme-primary-color);
}

#toggleFrequency, #toggleWaveform {
    background: rgb(248 249 250);
    color: #000;
}

#toggleFrequency.active, #toggleWaveform.active {
    background: rgb(114 88 180);
    transform: translateY(-2px);
    color: var(--theme-primary-color);
}

#toggleFrequency:hover, #toggleWaveform:hover, #toggleAnimation:hover {
    background: #48b9c5;
    transform: translateY(-2px);
    color: var(--theme-primary-color);
}

.proximoLanzamiento {
    color: #08ace9;
    font-style: italic;
    font-size: 20px;
}

.contenedor {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.6s ease;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 20px;
    padding: 25px;
    font-family: 'Figtree';
    text-align: center;
}

.contenedor.expandido {
    max-height: 640px;  /* valor grande para que quepa el contenido */
    overflow: auto;
}

.boton-toggle {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid #ffffff;
}

.boton-toggle:hover {
    border: 1px solid #005bb5;
}

.fichero {
    background: #fff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-block;
    width: 30%;
}

.fichero audio {
    display: block;
    margin-bottom: 10px;
}

.vote-btn {
    padding: 8px 12px;
    border: 1px solid #007bff;
    color: #007bff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 130px;
}

.vote-btn.voted, .vote-btn.voted:hover  {
    background: #28a745;
    cursor: default;
    width: 130px;
    background: #f4f4f480;
    color: #28a745;
    border: 1px solid #28a745;
}

.vote-btn:hover{
    background: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.resultado {
    margin-top: 20px;
}

.votar-item {
    min-width: 30%;
    padding: 10px;
    font-size: 14px;
}

.file-upload {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 1.7rem;
    text-align: center;
    transition: border-color 0.3s;
    cursor: pointer;
}

.ver_perfil_artista {
    text-transform: capitalize;
    text-decoration: none;
    font-size: 12px;
    color: #020202 !important;
    background: #686767;
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid #000;
    margin-top: 5px;
}

.ver_perfil_artista span.material-symbols-outlined {
    padding: 0px 3px 0px 2px;
    line-height: 15px;
    vertical-align: bottom;
    color: #161616;
    font-size: 18px;
}
.ver_perfil_artista:hover {
    text-transform: capitalize;
    text-decoration: none;
    font-size: 12px;
    color: #e9e9e9 !important;
    background: #939090;
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid #000;
}

.ver_perfil_artista:hover span.material-symbols-outlined {
    padding: 0px 3px 0px 2px;
    line-height: 15px;
    vertical-align: bottom;
    color: #f3f3f3;
    ;
    font-size: 18px;
}



#contenedor_amiDIV{
    display:none;
    background: rgba(220, 220, 220, 0.3);
    border-radius: 20px;
    padding: 20px !important;
    width: 80%;
    margin: 0 auto;
}

#miDiv h3 {
    color: #ddd;
    font-family: 'Montserrat';
    margin-bottom: 0px !important;
}

#player {
    width: 100%;
    background: #000;
}

.videoPLayer{
    min-height: 400px;
}

.music-cover-full {
    margin-top: 0px;
}
.music-cover-full-imagen {
    margin-top: 0px;
}

.music-meta span {
    font-weight: 600;
}

.info_login_video, .info_login_sesion,.comentarios {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--theme-primary-color);
    font-weight: 400;
    margin-top: 50px;
    width: 100%;
}

.enlace_tema {
    text-decoration: none;
    color: var(--theme-primary-color);
    font-weight: 400;
}

.div_castillo {
    float: none;
    width: 100%;
    padding: 0rem;
    height: auto;
    display: grid;
    justify-content: space-around;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

audio::-webkit-media-controls, audio::-webkit-media-controls-enclosure, audio::-webkit-media-controls-panel {
    background: #efefef4f !important;
    color: var(--theme-primary-color);
    border-radius: 10px;
}

div#miDiv p {
    color: #ebebeb !important;
    font-family: 'Montserrat';
    font-weight: 400;
    padding: 30px 0px 0px 30px;
}

span.comentarios {
    font-size: 14px;
    font-weight: 300;
    float: right;
}

svg.rating, .capa_acciones {
    cursor: pointer;
}

#menu_capa {
    display: none;
    position: absolute;
    padding: 10px;
    background: #ededed52;
    border-radius: 20px;
}

ul {
    list-style: none;
}

div#menu_capa a, div#menu_capa button {
    background: none;
    color: var(--theme-primary-color);
    border: none;
    width: 226px;
    font-size: 14px;
    text-align: left;
    padding: 10px 15px;
}

.video-container {
    width: 710px;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
}

.overlay-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 20px;
    font-size: 28px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    z-index: 10;
    width: 82px;
    height: 83px;
}

.overlay-button:hover {
    background-color: rgba(0, 0, 0, 0.7); /* Ligeramente menos transparente al pasar el ratón */
}

.mas_canciones_autor .music-card img {
    width: 80px;
    height: 80px;
}

.mas_canciones_autor {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1350px) {
    .mas_canciones_autor {
        grid-template-columns: 1fr;
    }
}

.mas_canciones_autor .music-card {
    padding: 10px;
}

.mas_canciones_autor .music-card-header {

}

.derecha_music-info{
    min-height: 440px;
}

.derecha_music-info.lanzamiento{
    min-height: 140px;
}

button.btn.btn-primary.agregar_comentario {
    background: #00000033;
    color: #f8f9fa;
    font-size: 14px;
    border: 1px solid #ddd;
    margin-left: 18px;
    padding: 10px 10px;
    font-family: 'Montserrat';
}

.contenedor_musica {
    display:flex;
    flex-direction: row;
}

.separacion-contenedores {
    margin-right: 2rem;
}

@media (max-width: 991px) {
    .contenedor_musica {
        flex-direction: column;
    }

    .separacion-contenedores {
        margin-right: 0rem;
    }

    .derecha_music-info {
        margin-top: 60px;
    }
}

.menuListado {
    display: none;
    position: absolute;
    background: rgba(166, 166, 166, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--theme-primary-color);
    padding: 10px;
    border-radius: 11px;
    width: auto;
    z-index: 1000;
    margin-top: 10px;
}

@media (max-width: 1680px) {
    .menuListado {
        display: none;
        position: absolute;
        background: rgba(166, 166, 166, 0.35);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: var(--theme-primary-color);
        padding: 10px;
        border-radius: 11px;
        width: auto;
        z-index: 1000;
        margin-top: 10px;
    }
}

.opciones {
    padding: 7px 24px 7px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.opciones:hover {
    color: #FFCC00;
}

.link-login:hover {
    color: #FFCC00;
}

.contenedor-video {
    position: relative;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    aspect-ratio: 11 / 7;
    height: auto;
    max-height: 100vh;
    margin: 0 auto;
}

.contenedor-video.orientacion-vertical {
    aspect-ratio: 2.7 / 5;
    max-width: 400px;
    width: 60%;
}

.contenedor-video.orientacion-horizontal {
    aspect-ratio: 11 / 7;
    max-width: 800px;
    width: 100%;
}

.contenedor-imagen {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    aspect-ratio: 11 / 7;
}

.video-musica {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
    object-fit: contain;
    background: #000;
}

.contenedor-imagen.sin-video {
    display: flex;
    justify-content: center;
    color: var(--theme-primary-color);
    font-size: 18px;
    background: rgba(30, 30, 30, 0.4);
    text-align: center;
    backdrop-filter: blur(8px);
}

.contenedor-video,
.video-musica {
    animation: fadeIn 0.8s ease forwards;
    transition: all 0.3s ease;
}

.overlay-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 20px;
    font-size: 28px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    z-index: 10;
    width: 82px;
    height: 83px;
    pointer-events: auto;
}

.overlay-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.derecha_music-info_movil{
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .contenedor-video.orientacion-vertical {
        width: 50%;
        max-width: 350px;
    }

    .contenedor-video.orientacion-horizontal {
        width: 95%;
    }

    .derecha_music-info{
        display: none !important;
    }

    .derecha_music-info_movil{
        display: block !important;
    }

    .derecha_music-info_movil span {
        font-size: 12px;
    }

    h1.NombreTema {
        font-size: 23px;
        text-align: left;
        display: inline-block;
        width: 100%;
        line-height: 33px;
        margin-bottom: 19px;
    }
    span.span_fecha_subida {
        display: inline-block;
    }

    .ver_perfil_artista span.material-symbols-outlined {
        padding: 2px 3px 3px 2px;
        line-height: 15px;
        vertical-align: bottom;
        color: #161616;
        font-size: 18px;
    }

    .mas_canciones_autor .music-meta span {
        font-weight: 600;
        font-size: 14px;
        line-height: 8px;
    }

    .mas_canciones_autor a.enlace_tema {
        font-size: 15px;
        line-height: 9px !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contenedor-audio {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.contenedor-imagen {
    position: relative;
    display: inline-block;
}

.boton-musica-audio {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 20px;
    font-size: 28px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    z-index: 10;
    width: 82px;
    height: 83px;
    pointer-events: auto;
}

button#panel-show-video-btn-ficha {
    width: 102px;
    font-size: 14px;
    background: #0d0d0d;
    border: 1px solid #ed2626;
    padding: 3px;
    height: 29px;
    border-radius: 20px !important;
}

svg.like-button:hover {
    cursor: pointer;
    transform: translateY(-1px);
}
svg.like-button:hover path {
    fill: #fff;
    transition: fill 0.3s ease; /* Opcional: hace que el cambio sea suave */
}


.fila-musica {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 18px;
    margin-bottom: 15px;
}

@media (max-width: 800px) {
    .fila-musica {
        flex-direction: column;
        margin-bottom: 1.5rem;
    }
}

.iconos-musica {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iconos-musica svg {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.iconos-musica svg:hover {
    transform: scale(1.1);
}

.pagination a, .pagination span {
    color: var(--theme-primary-color);
}

.pagination .active a {
    border: 1px solid #ffdd00;
    color: #ffdd00;
}

.pagination a:hover {
    border: 1px solid #ffdd00;
    color: #ffdd00;
}

.pagination {
    margin-top: 0.5rem !important;
}

.pagination span {
    border: 1px solid #5c5c5c;
    color: #5c5c5c;
}

.alerta-cancion-no-activa {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alerta-cancion-no-activa svg {
    flex-shrink: 0;
}

.versiones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.version-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 1rem;
}

.version-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
}

.version-duration {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.version-audio audio {
    width: 100%;
}

.version-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

.version-actions .vote-version-btn {
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    font-weight: 600;
}

.version-actions .vote-version-btn:disabled {
    background: #475569;
    cursor: not-allowed;
    color: #cbd5e1;
}

#poll-block {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 1rem;
    max-width: 1020px;
    margin: 0 auto;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.poll-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #e2e8f0;
}

.poll-option .poll-count {
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* ========================================
   VERSIONES MEJORADAS - Estilo reproductor
   ======================================== */

.version-caritas-rating {
    margin: 0.5rem 0;
}
.caritas-mini-selector {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}
.carita-mini-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid transparent;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding: 0;
}
.carita-mini-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.2);
    transform: scale(1.15);
}
.carita-mini-btn.selected {
    border-color: var(--theme-primary-color, #0ea5e9);
    background: rgba(14, 165, 233, 0.3);
    transform: scale(1.2);
}
.carita-mini-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.caritas-mini-stats {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}
.caritas-mini-promedio {
    font-size: 1rem;
}


.versiones-grid-mejorada {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 390px));
    gap: 1.5rem;
    margin-top: 1rem;
    justify-items: center;
    align-items: center;
    justify-content: space-evenly;
}

/* 3 versiones: más compactas en línea */
.versiones-grid-mejorada.versiones-count-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    gap: 1rem;
}

.versiones-count-3 .version-card-mejorada {
    max-width: 280px;
}

/* 4 versiones: grid 2x2 */
.versiones-grid-mejorada.versiones-count-4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.25rem;
}

.versiones-count-4 .version-card-mejorada {
    max-width: 350px;
}

.h2_versiones{
    margin: 0 auto;
    max-width: 1020px;

}

.version-card-mejorada {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.version-card-mejorada:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.version-player-container {
    position: relative;
}

.version-cover-container {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1a1a2e;
}

.version-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.version-card-mejorada:hover .version-cover-img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.version-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.version-card-mejorada:hover .version-play-btn,
.version-play-btn.playing {
    opacity: 1;
}

.version-play-btn:hover {
    background: rgba(14, 165, 233, 0.8);
    border-color: #0ea5e9;
    transform: translate(-50%, -50%) scale(1.1);
}

.version-play-btn.playing {
    background: rgba(14, 165, 233, 0.9);
    border-color: #0ea5e9;
    animation: pulse-play 2s infinite;
}

@keyframes pulse-play {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(14, 165, 233, 0);
    }
}

.version-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.version-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
    width: 0%;
    transition: width 0.1s linear;
}

.version-info {
    padding: 1rem;
    position: relative;
}

.version-header {
    position: absolute;
    top: -60px;
    background: #000000b8;
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 14px;
    min-height: 54px;
    left: 0px;
}

.version-title {
    flex: 1;
}

.version-title strong {
    display: block;
    color: #f1f5f9;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.version-card-mejorada .version-duration {
    color: #94a3b8;
    font-size: 0.8rem;
}

.version-card-mejorada .version-votes {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(14, 165, 233, 0.15);
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.votes-icon {
    color: #f43f5e;
}

.votes-count {
    color: #0ea5e9;
    font-weight: 700;
}

.votes-label {
    color: #94a3b8;
    font-size: 0.75rem;
}

.version-card-mejorada .version-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
}

.version-card-mejorada .vote-version-btn {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.version-card-mejorada .vote-version-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0284c7, #0891b2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.version-card-mejorada .vote-version-btn:disabled {
    background: #475569;
    cursor: not-allowed;
    color: #94a3b8;
}

.version-card-mejorada .vote-version-btn.voted {
    background: linear-gradient(135deg, #10b981, #059669);
}

.version-audio-element {
    display: none;
}

/* Tablet: 3 versiones pasan a 2 columnas */
@media (max-width: 900px) {
    .versiones-grid-mejorada.versiones-count-3 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

@media (max-width: 640px) {
    .versiones-grid-mejorada {
        grid-template-columns: 1fr;
    }

    /* En móvil: todas las variantes pasan a 1 columna */
    .versiones-grid-mejorada.versiones-count-3,
    .versiones-grid-mejorada.versiones-count-4 {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .versiones-count-3 .version-card-mejorada,
    .versiones-count-4 .version-card-mejorada {
        max-width: 100%;
    }

    .version-cover-container {
        aspect-ratio: 16 / 9;
    }

    .version-play-btn {
        opacity: 1;
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

/* ===========================================
   Botón Panel Lateral (esquina inferior derecha)
   =========================================== */
.btn-panel-esquina {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 10;

    width: 130px;
    height: 50px;
    padding: 2px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25%;

    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}
/*
    right: 0px;
    position: absolute;
    bottom: 0px;
    background: #000000a6;
    padding: 10px;
    border-radius: 12px;
*/
.btn-panel-esquina:hover {

    transform: scale(1.05);
}

.btn-panel-esquina:active {
    transform: scale(0.95);
}

.btn-panel-esquina .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 768px) {
    .btn-panel-esquina {
        width: 105px;
        height: 42px;
        bottom: 10px;
        right: 12px;
        font-size: 13px;
    }

    .btn-panel-esquina .material-symbols-outlined {
        font-size: 18px;
    }
}

/* ================================================
   HERO HEADER - Diseño Unificado
   ================================================ */


.hero-header {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

/* Carátula con botón play */
.hero-cover {
    position: relative;
    flex-shrink: 0;
    width: 350px;
    height: 350px;
}

.hero-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-cover:hover .hero-play-btn {
    opacity: 1;
}

.hero-play-btn:hover {
    background: var(--theme-primary-color, #1db954);
    border-color: var(--theme-primary-color, #1db954);
    transform: translate(-50%, -50%) scale(1.1);
}

.hero-play-btn .material-symbols-outlined {
    font-size: 32px;
}

.hero-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Info principal */
.hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-badge-lanzamiento {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 0.5rem;
}

.hero-badge-lanzamiento .material-symbols-outlined {
    font-size: 16px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta info (artista, género, fecha) */
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 14px;
    color: #a1a1a1;
}

.hero-artist-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--theme-primary-color, #1db954);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.hero-artist-link:hover {
    color: #fff;
    text-decoration: underline;
}

.hero-artist-link .material-symbols-outlined,
.hero-genre .material-symbols-outlined {
    font-size: 16px;
}

.hero-genre {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-separator {
    color: #666;
}

/* Estadísticas */
.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a1a1a1;
    font-size: 14px;
}

.hero-stat .material-symbols-outlined {
    font-size: 18px;
    color: var(--theme-primary-color, #ffffff);
}

.hero-stat-value {
    font-weight: 600;
    color: #fff;
}

.hero-stat-label {
    color: #888;
}

/* Botones de acción */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0rem;
    align-items: center;
}

.hero-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    padding: 8px 12px 8px 0px;
    /* background: rgba(255, 255, 255, 0.1);
     border: 1px solid rgba(255, 255, 255, 0.15);*/
    background:none;

    border: none;
    border-radius: 24px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-label {
    display: none;
    color: #999;
    padding: 5px;
}

.hero-action-btn:hover svg path {
    fill: white;
}

.hero-action-btn:hover svg {
    transform: translateY(-2px);
}

.hero-action-btn .material-symbols-outlined {
    font-size: 18px;
    color: #888;
}
.hero-action-btn .material-symbols-outlined:hover {
    font-size: 18px;
    color: #fff;
    transform: translateY(-2px);
}

.hero-action-btn span.material-symbols-outlined:hover {

}

/* Menú contextual (tres puntitos) */
.menu-contextual-dropdown {
    position: absolute;
    right: 0;
    bottom: 100%;
    margin-bottom: 8px;
    min-width: 255px;
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    padding: 6px 0;
    z-index: 50;
}

.menu-contextual-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
}

.menu-contextual-item:hover {
    background: rgba(255,255,255,0.08);
    text-decoration: none;
    color: #fff;
}

.menu-contextual-item--danger {
    color: #f87171;
}

.menu-contextual-item--danger:hover {
    color: #fca5a5;
}

.menu-contextual-item .material-symbols-outlined {
    font-size: 20px;
}

.hero-like-btn.liked {

}

.hero-like-btn.liked .material-symbols-outlined {

}

/* Botón de letra - destacado */
.hero-lyrics-btn {

}

.hero-lyrics-btn:hover {
}

.hero-lyrics-btn .material-symbols-outlined {

}


/* Descripción colapsable */
.hero-description-wrapper {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.hero-description {
    color: #a1a1a1;
    font-size: 14px;
    line-height: 1.6;
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.hero-description.collapsed {
    max-height: 5.2em; /* Aproximadamente 2 líneas */
    position: relative;
}

.hero-description.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5em;
    background: linear-gradient(transparent, rgba(18, 18, 18, 0.95));
    pointer-events: none;
}

.hero-description.expanded {
    max-height: 500px;
}

.hero-description-toggle {
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 2px;
    transition: color 0.2s;
    display: inline-block;
}

.hero-description-toggle:hover {
    color: #fff;
}

.hero-description-toggle .toggle-text {
    font-style: italic;
}

/* Sección reproductor */
.ficha-reproductor {
    margin-bottom: 2rem;
}

.ficha-reproductor .music-cover-full,
.ficha-reproductor .music-cover-full-imagen {
    max-width: 800px;
    margin: 0 auto;
}

/* Sección más del artista */
.ficha-mas-artista {
    margin-top: 2rem;
}

.ficha-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ficha-section-title .material-symbols-outlined {
    font-size: 24px;
    color: var(--theme-primary-color, #ffffff);
}

/* ================================================
   RESPONSIVE - Hero Header
   ================================================ */

@media (max-width: 768px) {
    .hero-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
        gap: 1rem;
    }

    .hero-cover {
        width: 160px;
        height: 160px;
    }

    .hero-play-btn {
        opacity: 1;
        width: 56px;
        height: 56px;
    }

    .hero-play-btn .material-symbols-outlined {
        font-size: 28px;
    }

    .hero-title {
        font-size: 1.5rem;
        white-space: normal;
        text-align: center;
    }

    .hero-meta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-action-btn .btn-label {
        display: none;
    }

    .hero-action-btn {
        padding: 10px;
        border-radius: 50%;
    }

    .hero-description-wrapper {
        text-align: left;
    }

    .hero-description {
        text-align: left;
    }

    .hero-description-toggle {
        text-align: left;
    }

    .ficha-section-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-cover {
        width: 140px;
        height: 140px;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}