html, body {
  overflow: hidden;
  position: fixed;  /* This is important for mobile */
  width: 100%;
  height: 100%;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}


.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    object-fit: cover;
    opacity: 0.7;
}

.container {
    gap: 20px;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    /* backdrop-filter: blur(10px); */
    border-radius: 15px;
    height: auto;
    min-height: 15rem;
    padding: 35px 15px;
    width: 100%;
    max-width: 650px;
    text-align: center;
    /* border: 3px solid rgba(255, 255, 255, 0.068); */
    margin: -10px; /* WITH MUSIC CONTAINER UP ANIMATION */
    margin-top: 80px;
    transition: 
        transform 0.5s cubic-bezier(0.03, 0.98, 0.52, 0.99), 
        height 0.5s cubic-bezier(0.03, 0.98, 0.52, 0.99);
    overflow: visible;
    transform-style: preserve-3d;
    z-index: 9999;
}

/* Responsividade para tablets */
@media (max-width: 480px) {
    .container {
        padding: 60px 15px;
    }
}

/* Responsividade para tablets */
@media (max-width: 480px) {
    .container {
        margin-top: 90px;
    }
}

/* @media (max-width: 390px) {
    .container {
        margin-top: 90px;
    }
} */


.container .banner {
    position: absolute;
    top: 0;
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 13px 13px 0 0;
}

.container .avatar {
    margin-top: 50px;
    z-index: 1;
    border-radius: 50%;
    height: 130px;
    width: 130px;
    outline: 3px solid rgba(255, 255, 255, 0.288);
    /* background-color: #ffffff; */
    pointer-events: none;
}

/* Responsividade para tablets */
@media (max-width: 480px) {
    .container .avatar {
		margin-top: 40px;
        height: 150px;
        width: 150px;
    }
}

/* Responsividade para tablets */
@media (max-width: 390px) {
    .container .avatar {
		margin-top: -40px;
        height: 150px;
        width: 150px;
    }
}

.container .profileLayout {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 27rem;
    text-align: center;
}

/* Ajustes para telas muito pequenas (smartphones) */
@media (max-width: 480px) {
    .container .profileLayout {
        padding-top: 10px;
    }
}
.container .profileLayout .profileUsername {
    font-weight: 600;
    width: fit-content;
    pointer-events: none;
    -webkit-animation: glow 1s ease-in-out infinite alternate;
    -moz-animation: glow 1s ease-in-out infinite alternate;
    animation: glow 1s ease-in-out infinite alternate;
    color: rgba(163, 163, 163, 0.322);
}

/* Responsividade para tablets */
@media (max-width: 480px) {
    .container .profileLayout .profileUsername {
        font-weight: 600;
        font-size: 50px;
        margin-top: -30px;
    }
}

.container .profileLayout .profileUsername span{
    font-weight: 600;
    font-size: 40px;
    width: fit-content;
    pointer-events: none;
}

/* Responsividade para tablets */
@media (max-width: 480px) {
    .container .profileLayout .profileUsername span {
        font-size: 80px;
    }
}

.container .profileLayout .profileBadges {
    content: attr(data-tooltip);
    margin-top: 8px;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.04);
    border-radius: 25px;
    display: flex;
    gap: 5.5px;
    justify-content: center;
    padding: 6px 10px;
}

/* Responsividade para tablets */
@media (max-width: 480px) {
    .container .profileLayout .profileBadges {
		margin-top: 5px;
    }
}

.container .profileLayout .profileBadges .profileBadge {
    position: relative;
    font-size: 20.5px;
    display: flex;
    align-items: center;
    color: #ffffff !important;
}

/* Novo estilo para o tooltip personalizado */
.badge-tooltip {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 1rem;
    padding: 4px 16px;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animação tipo bounce */
  }
  
  /* Podemos remover o pseudo-elemento ::before que era usado antes */
  .container .profileLayout .profileBadges .profileBadge::before {
    display: none;
  }

.container .profileLayout .profileBio {
    font-weight: 570;
    font-size: 17px;
    margin-top: 18px;
    color: white;
    height: 23px;
}

@media (max-width: 480px) {
    .container .profileLayout .profileBio {
        margin-top: 20px;
        height: 1px;
    }
}

.container .presenceWrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 28rem;
    width: 100%;
}

.container .presenceContainer {
    align-items: center;
    display: flex;
    /* overflow: hidden; */
    text-overflow: ellipsis;
    background-color: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    box-sizing: border-box;
    justify-content: space-between;
    max-width: -moz-fit-content;
    max-width: fit-content;
    width: 100%;
}

/* Ajustes para telas muito pequenas (smartphones) */
@media (max-width: 480px) {
    .container .presenceContainer {
        margin-top: 20px;
    }
}

.container .presenceWrapper .discordInfos {
    display: flex;
    gap: 10px;
    justify-content: left;
    padding: 10px;
    position: relative;
    white-space: nowrap;
}

.container .presenceWrapper .discordInfos .discordAvatar {
    display: flex;
    position: relative;
}

.container .presenceWrapper .discordInfos .discordAvatar .decoration {
    position: absolute;
    height: 86px;
    width: 86px;
    left: -8px;
    top: -7px;
}

.container .presenceWrapper .discordInfos .discordAvatar .avatarImage {
    border: 50%;
    border-radius: 50%;
    height: 70px;
    -o-object-fit: cover;
    object-fit: cover;
    width: 70px;
}

.container .presenceWrapper .discordInfos .discordAvatar .discordStatus {
    bottom: 2px;
    height: 17px;
    -o-object-fit: cover;
    object-fit: cover;
    position: absolute;
    right: 2px;
    width: 17px;
}

.container .presenceWrapper .discordInfos .discordActivity {
    /* overflow: hidden; */
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    gap: 12px;
}

.container .presenceWrapper .discordInfos .discordUser {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    /* overflow: hidden; */
    text-overflow: ellipsis;
    white-space: nowrap;
}

.container .presenceWrapper .discordInfos .discordUser h3 {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 2px;
    font-style: italic;
    text-align: left;
}

.container .presenceWrapper .discordInfos .discordUserDiv {
    align-items: center;
    display: flex;
}

.container .presenceWrapper .discordInfos .discordUserDiv span {
    font-weight: 600;
    font-size: 20px;
    color: white;
}

.container .presenceWrapper .discordInfos .discordUserBadges {
    display: flex;
    align-items: center;
    margin-left: 6px;
}

.container .presenceWrapper .discordInfos .discordUserBadges img {
    height: 22px;
    object-fit: cover;
    width: 22px;
}

.container .presenceWrapper .discordInfos .discordUserBadge {
    position: relative;
    display: flex;
    align-items: center;
}

.container .presenceWrapper .discordInfos .discordUserBadge {
    position: relative;
}

/* .container .presenceWrapper .discordInfos .discordUserBadge::before {
    content: attr(data-tooltip);
    background-color: black;
    color: white;
    opacity: 0;
    position: absolute;
    font-size: 15px;
    font-weight: 600;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1rem;
    padding: 2px 16px;
    z-index: 1;
    transition: opacity 0.3s;
} */

.container .presenceWrapper .discordInfos .discordUserBadge:hover::before {
    opacity: 0.8;
}

.presenceWrapper .spotifyInfos {
    display: flex;
    gap: 10px;
    justify-content: left;
    padding: 7px 10px;
    position: relative;
    white-space: nowrap;
}

.presenceWrapper .spotifyCover {
    display: flex;
    align-items: center;
}

.presenceWrapper .spotifyDetails {
    display: flex;
    flex-direction: column;
    min-width: 14rem;
}

.presenceWrapper .spotifyDetails .spotifyTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.presenceWrapper .spotifyDetails .spotifyTitle h1 {
    font-size: 15px;
    font-weight: 700;
}

.presenceWrapper .spotifyDetails .spotifyTitle img {
    width: 20px;
    height: 20px;
}

.presenceWrapper .spotifyDetails .spotifyDescription {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.presenceWrapper .spotifyDetails .spotifyDescription span {
    font-size: 14px;
}

.presenceWrapper .spotifyDetails .spotifyDescription span:last-child {
    color: rgb(160, 160, 160);
    font-size: 13px;
    font-weight: 400;
}

.presenceWrapper .spotifyDetails .spotifyProgress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-top: 4px;
    position: relative;
}

.presenceWrapper .spotifyDetails .spotifyProgress span {
    font-size: 12px;
}

.presenceWrapper .spotifyDetails .bar {
    width: 73%;
    height: 4px;
    border-radius: 6px;
    position: absolute;
    left: 30px;
    background-color: grey;
}

.presenceWrapper .spotifyDetails .bar .progress {
    width: 0%;
    height: 4px;
    background-color: white;
    border-radius: 6px;
}

.container .linkedAccounts {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 8px;
    font-size: 18px;
    filter: drop-shadow(0 0 0.9px #ffffff) !important;
    cursor: url('/img/extralsmall.png') !important;
    transition: all 0.3s ease; /* Adiciona uma transição suave */
}

/* Ajustes para telas muito pequenas (smartphones) */
@media (max-width: 480px) {
    .container .linkedAccounts {
        padding-top: 20px;
    }
}

/* .container .linkedAccounts svg {
    width: 2.1em;
    height: 2.1em;
} */

/* .container .linkedAccounts:hover {
    transform: scale(1.05);
} */

/* .container .linkedAccounts a[data-type="Discord"]:hover svg {
    transform: scale(1.25);
    filter: drop-shadow(0 0 0.8px #ffffff) !important;
}

.container .linkedAccounts a[data-type="Spotify"]:hover svg {
    transform: scale(1.25);
    filter: drop-shadow(0 0 0.8px #ffffff) !important;
}

.container .linkedAccounts a[data-type="Instagram"]:hover svg {
    transform: scale(1.25);
    filter: drop-shadow(0 0 0.8px #ffffff) !important;
}

.container .linkedAccounts a[data-type="Roblox"]:hover svg {
    transform: scale(1.25);
    filter: drop-shadow(0 0 0.8px #ffffff) !important;
} */

/* Transição suave para todos os SVGs */
.container .linkedAccounts a svg {
    transition: transform 0.3s ease;
}

.container .linkedAccounts .linkedAccountsRedirect {
    transition: all 0.3s;
    display: flex;
    align-items: center;
    position: relative;
    cursor: url('/img/extralsmall.png') !important;
}

.container .linkedAccounts .linkedAccountsRedirect.copied::before {
    content: 'Copied';
}

.container .linkedAccounts .linkedAccountsRedirect::before {
    content: attr(data-type);
    opacity: 0;
    color: white;
    position: absolute;
    font-size: 15px;
    font-weight: 600;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1rem;
    padding: 2px 16px;
    z-index: 1;
    filter: none;
    box-shadow: none;
    white-space: nowrap;
    transition: opacity .3s;
}

.container .linkedAccounts .linkedAccountsRedirect:hover::before {
    opacity: .8;
}

.container .linkedAccountsRedirect {
    text-decoration: none;
    color: white;
}

/* Estilos base para o tooltip dos profileViews */
.container .profileViews::before {
    content: attr(data-type);
    opacity: 0;
    color: white;
    position: absolute;
    font-size: 15px;
    font-weight: 600;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1rem;
    padding: 2px 16px;
    z-index: -9999; /* Aumentado para garantir que fique acima de outros elementos */
    filter: none;
    box-shadow: none;
    white-space: nowrap;
    transition: opacity .3s;
    /* background-color: rgba(0, 0, 0, 0.7); */
}

.container .profileViews:hover::before {
    opacity: .8;
    content: 'Views';
}

.profileStats {
    /* position: relative;
    display: flex;
    align-items: center;
    bottom: -440px;
    left: 870px;
    gap: 0.5rem;
    padding: 6px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.178);
    transition: all 0.3s ease;
    z-index: 1; */
    display: none;
}

.profileStats:hover {
    filter: blur(0px);
}

/* Profile views e location estilizados para serem mais robustos */
.profileViews, .profileLocation {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Espaçamento ligeiramente aumentado */
    position: relative;
    padding: 2px 4px;
}

/* Estilo para o tooltip do Location */
.profileLocation::before {
    content: attr(data-type);
    opacity: 0;
    color: white;
    position: absolute;
    font-size: 15px;
    font-weight: 600;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1rem;
    padding: 2px 16px;
    filter: none;
    box-shadow: none;
    white-space: nowrap;
    transition: opacity .3s;
    /* background-color: rgba(0, 0, 0, 0.7); */
}

.profileLocation:hover::before {
    opacity: .8;
}

.separator {
    height: 16px;
    width: 2px;
    background-color: rgba(54, 54, 54, 0.562);
    margin: 0 2px;
    border-radius: 25px;
}

/* Estilo para os ícones SVG dentro dos elementos */
.profileViews svg, .profileLocation svg {
    flex-shrink: 0; /* Impede que os ícones encolham */
}

/* Destaque no hover para elementos clicáveis */
.profileViews:hover, .profileLocation:hover {
    color: rgba(255, 255, 255, 1);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.music-container {
    font-family: 'Chillax', sans-serif !important;
    position: fixed;
    display: flex;
    align-items: center;
    flex-direction: column;
    /* backdrop-filter: blur(10px); */
    border-radius: 15px;
    min-height: 5rem; /* Altura inicial */
    padding: 20px 10px;
    width: 100%;
    max-width: 650px;
    /* max-height: 100px; */
    text-align: center;
    /* border: 3px solid rgba(255, 255, 255, 0.068); */
    margin: 0 auto; /* Centraliza o container na tela */
    will-change: transform, height;
    transition: height 0.5s ease, min-height 0.5s ease;
    overflow: hidden;
}

.music-player {
    width: 600px;
    border-radius: 10px;
	font-family: "Gidole", sans-serif !important;
    font-size: large;
}

/* O CSS anterior permanece igual, apenas adicionando/modificando as partes relacionadas ao music-container */

body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}


.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    object-fit: cover;
    opacity: 0.7;
}

.container {
    gap: 20px;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    /* backdrop-filter: blur(10px); */
    border-radius: 15px;
    height: auto;
    min-height: 15rem;
    padding: 35px 15px;
    width: 100%;
    max-width: 650px;
    text-align: center;
    /* border: 3px solid rgba(255, 255, 255, 0.068); */
    margin: -10px; /* WITH MUSIC CONTAINER UP ANIMATION */
    margin-top: 80px;
    transition: 
        transform 0.5s cubic-bezier(0.03, 0.98, 0.52, 0.99), 
        height 0.5s cubic-bezier(0.03, 0.98, 0.52, 0.99);
    overflow: visible;
    transform-style: preserve-3d;
    z-index: 9999;
}

/* MUSIC CONTAINER - NOVA IMPLEMENTAÇÃO */
.music-container {
    font-family: 'Chillax', sans-serif !important;
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 15px;
    min-height: 5rem;
    padding: 20px 10px;
    width: 100%;
    max-width: 650px;
    text-align: center;
    will-change: transform, height;
    transition: height 0.5s ease, min-height 0.5s ease;
    overflow: hidden;
    z-index: 9999;
    /* Configuração padrão para desktop */
    position: fixed;
    margin: 0 auto;
}

/* Para dispositivos móveis - player fixo na parte inferior */
@media (max-width: 768px) {
    .music-container {
        display: none;
    }
    
    /* Ajustar a margem inferior do container principal para evitar que conteúdo fique escondido pelo player */
    .container {
        margin-bottom: 100px; /* Adapte conforme a altura do seu player */
    }
}

/* Para celulares menores */
@media (max-width: 480px) {
    .music-player {
        margin: 0 auto;
    }
    
    .music-player .player-controls {
        font-size: 25px; /* Controles ligeiramente menores */
        margin-bottom: 5px;
    }
    
    .play-pause, .pause-icon {
        font-size: 30px; /* Botão de play/pause ligeiramente menor */
    }
    
    /* Botões de controle mais compactos */
    .control-btn {
        padding: 5px;
    }
    
    /* Timeline mais fino */
    .player-timeline {
        margin-top: -5px;
    }
    
    /* Labels de tempo mais compactos */
    .time-label {
        font-size: 10px;
        width: 35px;
    }
}

.music-player .player-controls {
    margin-bottom: 0px;
    font-size: 30px;
}

.player-controls-timeline .prev,
.player-controls-timeline .next {
    transition: opacity 0.4s ease;
}

.player-controls-timeline .prev:hover,
.player-controls-timeline .next:hover {
    opacity: 1.0 !important;
}

.music-player .player-timeline {
    margin-top: -12px;
}

.player-timeline {
    display: flex;
    align-items: center;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline {
    flex-grow: 1;
    height: 4px;
    background-color: #ffffff36;
    border-radius: 2px;
    position: relative;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%;
    background-color: #fff;
    border-radius: 2px;
    will-change: padding, display;
}

.time-label {
    color: #ffffff;
    font-size: 12px;
    width: 40px;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.control-btn:hover {
    opacity: 1;
}

.play-pause {
    font-size: 40px;
}

.pause-icon {
  font-size: 40px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 0.5%;
    top: 1%;
    opacity: 0.9;
}

.volume-icon {
    z-index: 2;
}

@media (max-width: 768px) {
    .volume-icon {
        display: none;
    }
}

.volume-slider {
    width: 120px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    outline: none;
    opacity: 0;
    /* Mudança aqui - transição mais lenta para esconder (desaparecer) */
    transition: opacity 0.2s ease-in, opacity 0.7s ease-out;
    -webkit-appearance: none;
    border-radius: 2px;
    position: absolute;
    left: 100%;
    margin-left: 10px;
}

.volume-control:hover .volume-slider {
    opacity: 0.7;
    /* Transição rápida para aparecer */
    transition: opacity 0.2s ease-in;
}

/* Adicionar este seletor para manter visível quando o cursor estiver sobre o slider */
.volume-slider:hover {
    opacity: 0.7;
    transition: opacity 0s;
}

.volume-slider:hover {
    opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
}