.player-container {
    max-width: 300px;
    margin: auto;
    text-align: center;
    padding: 5px;
}

.player-container audio {
    background-color: #0f9be0;
    color: #fff;
    border-radius: 8px;
    width: 100%;
    height: 40px;
}

.song {
    color: #0000FF;
    font-size: 125%;
    font-style: italic;
    animation: blink 2s step-start infinite;
}

.song-meta {
    margin-top: 8px;
}

.song-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.song-author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #9db4c8;
}

.song-author-text {
    color: #4d6478;
    font-size: 1.1em;
    line-height: 1.3;
}

.song-author-text a {
    font-weight: 700;
}

.song-author-count {
    display: block;
    margin-top: 2px;
    color: #4d6478;
    font-size: 1.02em;
    font-weight: 600;
}

.song-author-count .song-author-count-link {
    margin-left: 2px;
    color: #c52828;
    text-decoration: none;
    font-weight: 700;
}

.song-author-count .song-author-count-link:hover,
.song-author-count .song-author-count-link:focus {
    text-decoration: underline;
}

.song-edited-badge {
    display: block;
    flex-basis: 100%;
    margin-top: 2px;
    color: #a94442;
    font-size: 11px;
    font-style: italic;
}

.song-topic-replies {
    display: block;
    flex-basis: 100%;
    margin-top: 2px;
    color: #536482;
    font-size: 11px;
}

.bbp-topic-player {
    margin-top: 12px;
}

.bbp-topic-player .bbp-topic-player-container {
    border: 1px solid #c7d5e4;
    border-radius: 6px;
    padding: 10px 12px;
    background: #f8fbfe;
}

.bbp-topic-player .bbp-topic-controls {
    margin: 8px 0;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.cover {
    max-width: 150px;
    margin-bottom: 10px;
    box-shadow: 0 0 8px #8706FF;
    border-radius: 100%;
    height: 100px;
    width: 100px;
}

h3, label {
    margin: 10px 0;
    font-size: 1.2em;
}

.players-wrapper {
    overflow: hidden;
    width: 100%;
}

.player-item {
    min-width: 300px;
    margin: 0 10px;
    text-align: center;
}

button {
    cursor: pointer;
    padding: 10px;
    font-size: 16px;
}

.bbp-scroll-area {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.bbp-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.bbp-scroll-area::-webkit-scrollbar-track {
    background: transparent; 
}

.bbp-scroll-area::-webkit-scrollbar-thumb {
    background-color: #a4b3bf;
    border-radius: 10px;
}

.bbp-scroll-area::-webkit-scrollbar-thumb:hover {
    background-color: #798d9e;
}

.animate-track-change {
    animation: modernFadeBlur 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modernFadeBlur {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: scale(0.95) translateY(10px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1) translateY(0);
    }
}

.player-avatar-container {
    display: inline-flex;
    align-items: center;
}

.player-mini-avatar img {
    width: 20px !important;
    height: 20px !important;
    vertical-align: middle;
    border-radius: 50%;
    margin-right: 2px;
    object-fit: cover;
}

.top10-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 30px 15px;
    background-color: #eef5f9;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.top10-player-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px #d1d9e0;
    width: 280px;
    margin: 0;
    text-align: center;
    border: 1px solid #e1e8ed;
    transition: transform 0.2s ease;
}

.top10-player-card:hover {
    transform: translateY(-5px);
}

.top10-cover-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    box-shadow: 0 0 8px #8706ff;
    display: block;
}

.top10-track-title {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: #105289;
}

.top10-track-title .player-like-btn {
    margin-left: 10px;
    font-size: 18px;
}

.top10-track-title .like-count {
    font-size: 14px;
    color: #555555;
}

.top10-audio {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #0f9be0;
}

.top10-song-meta {
    margin-top: 5px;
    border-top: 1px solid #eeeeee;
    padding-top: 10px;
}

.top10-song-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.top10-author-text {
    font-size: 11px;
    color: #536482;
}

.top10-avatar-container {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
}

.top10-avatar-container a, 
.top10-avatar-container span.username-coloured {
    font-weight: 700;
}

.top10-mini-avatar img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
    border: 1px solid #cccccc;
    margin-right: 4px;
    object-fit: cover;
    vertical-align: middle;
}

.top10-author-count {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 600;
}

.top10-no-tracks {
    text-align: center;
    padding: 20px;
    width: 100%;
    font-size: 16px;
}

.top10-empty-state {
    text-align: center;
    padding: 34px 20px 40px;
    background: linear-gradient(180deg, #f6fbff 0%, #eaf3fb 100%);
    border-radius: 8px;
    border: 1px solid #d7e6f3;
}

.top10-empty-message {
    font-size: 19px;
    font-weight: 700;
    color: #1c4f80;
    margin-bottom: 16px;
}

.top10-empty-image {
    display: inline-block;
    width: 220px;
    max-width: 85%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 82, 137, 0.25);
}

.mp3-top10-badge {
    display: inline-block;
    padding: 4px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px #a0a0a0;
}

.top10-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border: 1px solid #b8860b;
    color: #000000;
    text-shadow: 0 1px 0 #ffffff;
}

.top10-silver {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    border: 1px solid #9e9e9e;
    color: #333333;
    text-shadow: 0 1px 0 #ffffff;
}

.top10-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    border: 1px solid #8b4513;
    color: #ffffff;
    text-shadow: 0 1px 2px #666666;
}

.top10-standard {
    background: #f0f4f7;
    border: 1px solid #c8d4df;
    color: #4d6478;
    box-shadow: inset 0 1px 2px #ffffff;
}

/* =========================================
   PROFILO AUDITORIUM (STILE SPOTIFY) E PULIZIA INLINE CSS
   ========================================= */

.auditorium-panel {
    /* margin-top: 25px; */
    border: none;
    /* background: transparent; */
    padding-bottom: 20px;
}

.auditorium-header {
    border-bottom: 2px solid #0f9be0;
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: #105289;
    font-size: 15px;
    font-weight: bold;
}

.auditorium-header-icon {
    color: #f39c12;
    margin-right: 8px;
}

.auditorium-hero {
    background: linear-gradient(90deg, #105289 0%, #0f9be0 100%);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    color: #ffffff;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px #d1d9e0;
    box-sizing: border-box;
    width: 100%;
}

.auditorium-hero-cover {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    margin-right: 25px;
    object-fit: cover;
    box-shadow: 0 0 15px #000000;
    flex-shrink: 0; 
}

.auditorium-hero-info {
    flex-grow: 1;
    min-width: 0; 
}

.auditorium-hero-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 5px;
}

.auditorium-hero-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auditorium-hero-audio {
    width: 100%;
    height: 35px;
    border-radius: 20px;
    margin-top: 10px;
}

.auditorium-hero-like-container {
    margin-top: 10px;
}

.auditorium-hero-like-btn {
    cursor: pointer;
    font-size: 18px;
}

/* Nel blocco hero i cuori restano bianchi, pieni o vuoti */
.auditorium-hero-like-icon {
    color: #ffffff;
}

.auditorium-hero-like-count {
    font-size: 14px;
    margin-left: 5px;
}

.auditorium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    box-sizing: border-box;
    width: 100%;
}

.auditorium-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px #d1d9e0;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.auditorium-card:hover {
    box-shadow: 0 5px 15px #c0c9d1;
    transform: translateY(-3px);
}

.auditorium-card-cover {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid #0f9be0;
    flex-shrink: 0; 
}

.auditorium-card-info {
    flex-grow: 1;
    min-width: 0;
}

.auditorium-card-title {
    font-weight: bold;
    font-size: 15px;
    color: #105289;
    display: block;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auditorium-card-meta {
    font-size: 12px;
    color: #536482;
}

.auditorium-card-like-btn {
    cursor: pointer;
}

.auditorium-card-like-icon {
    color: #cccccc;
}

.auditorium-card-like-icon-active {
    color: #e74c3c;
}

.auditorium-card-like-count {
    margin-left: 3px;
}

.auditorium-play-btn {
    background-color: #0f9be0;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    font-size: 16px;
    box-shadow: 0 2px 4px #a0a0a0;
    flex-shrink: 0; 
}

.auditorium-hidden-audio {
    display: none;
}

.favorites-panel {
    /* margin-top: 20px; */
}

.favorites-header-icon {
    color: #e74c3c;
}

.auditorium-empty-message {
    margin: 10px 0 0 0;
    color: #536482;
    font-size: 13px;
}

/* =========================================
   MEDIA QUERIES PER DISPOSITIVI MOBILI
   ========================================= */
@media (max-width: 700px) {
    .auditorium-hero {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .auditorium-hero-cover {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100px;
        height: 100px;
    }

    .auditorium-hero-title {
        white-space: normal; 
        font-size: 18px;
    }

    .auditorium-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

/* =========================================
   SISTEMA SUPER-PLAYER "FLOATING VINYL"
   ========================================= */

.vinyl-player-container {
    /* background: #ffffff; */
    /* border-radius: 15px; */
    padding: 15px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
    width: 100%;
    /* max-width: 350px; */
    margin: 10px auto;
    box-sizing: border-box;
}

.vinyl-top-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.vinyl-cover-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.vinyl-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Classe attivata via JS quando in riproduzione */
.vinyl-playing .vinyl-cover {
    border-radius: 50%;
    animation: vinylRotate 5s linear infinite;
}

@keyframes vinylRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-text-info {
    flex-grow: 1;
    margin-left: 15px;
    text-align: left;
    min-width: 0;
}

.vinyl-track-name {
    display: block;
    font-weight: bold;
    color: #c52828;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vinyl-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.vinyl-play-btn {
    background: #0f9be0;
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}

.vinyl-play-btn:hover {
    transform: scale(1.1);
}

/* Progress Bar */
.vinyl-progress-wrapper {
    width: 100%;
    margin-bottom: 8px;
}

.vinyl-time-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #536482;
    margin-top: 4px;
}

input[type=range].vinyl-slider {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range].vinyl-slider:focus { outline: none; }

input[type=range].vinyl-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e1e8ed;
    border-radius: 3px;
}

input[type=range].vinyl-slider::-webkit-slider-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #0f9be0;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -4px;
}

/* Volume */
.vinyl-volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100px;
}

.vinyl-volume-icon {
    color: #536482;
    font-size: 14px;
    width: 20px;
}

/* AGGIUNTE PER SUPER PLAYER COMPLETO */
.vinyl-author-info {
    margin-top: 4px;
    font-size: 11px;
    color: #536482;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.vinyl-author-avatar img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
    object-fit: cover;
}

.vinyl-author-avatar,
.vinyl-author-info > a,
.vinyl-author-info .song-author-count {
    font-weight: 700;
}

.song-added-date {
    display: block;
    flex-basis: 100%;
    margin-top: 2px;
    color: #c0392b;
    font-size: 11px;
    font-weight: 700;
}

.song-latest-badge {
    display: block;
    flex-basis: 100%;
    margin-top: 2px;
    color: #b03a2e;
    font-size: 11px;
    font-weight: 700;
}

.vinyl-top-info .player-like-btn,
.vinyl-top-info .player-like-btn i,
.vinyl-top-info .player-like-btn .like-count {
    cursor: pointer;
}

#mp3player .topiclist.topics,
#mp3player .topiclist.topics > li:last-child,
#mp3player .topiclist.topics .panel,
#mp3player .topiclist.topics .vinyl-player-container {
    margin-bottom: 0;
}

.vinyl-nav-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.vinyl-nav-btn {
    background: none;
    border: none;
    color: #105289;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
}

.vinyl-nav-btn:hover {
    color: #0f9be0;
}

.vinyl-top10-link {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    font-weight: bold;
    color: #6d6d6d;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
}

.vinyl-top10-link:hover { color: #f39c12; }

/* Centraggio fisso per il link Top 10 */
.vinyl-top10-container {
    text-align: center;
    margin-top: 15px;
    padding-bottom: 5px;
    width: 100%;
}

/* Cover image inserted in topic first post: max 150x150 + rounded corners */
.content img.bbp-topic-cover-image,
.content img[data-bbp-topic-cover="1"],
.bbp-topic-cover-image {
    max-width: 150px !important;
    max-height: 150px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 12px;
}

/* Correzione chirurgica per Mobile (testo e cuore sovrapposti) */
@media (max-width: 480px) {
    .vinyl-top-info {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }

    .vinyl-text-info {
        margin-left: 0 !important;
        margin-top: 10px !important;
        width: 100% !important;
    }

    .vinyl-author-info {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .vinyl-top-info .player-like-btn {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 10px !important;
        display: inline-flex !important;
    }
    
    .vinyl-cover-wrapper {
        margin-bottom: 5px;
    }
}
