/* Global Style */
* {
    margin: 0;
    padding: 0;
    font-family: "Playpen Sans", cursive;
    user-select: none;
}

:root {
    --bg-card: rgba(30, 31, 34);
    --primary: rgba(52, 52, 53);
}

.container {
    margin-top: 4.5rem;
    opacity: 0.8;
    display: none;
}

.wrapper {
    display: flex;
    justify-content: space-between;
    margin-left: 3%;
    margin-right: 3%;
}

.card-name{
    color: #b9bbbe;
    margin-top: 5px;
}

.line{
    border-bottom: #b9bbbe solid 2px;
    margin-top: 5px;
    margin-bottom: 16px;
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-text {
    visibility: hidden;
    background-color: rgb(23, 23, 23);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 10;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    font-size: 10px;
}

.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s;
}
/* Global Style */
/* Card Left */
.wrapper-left-card {
    max-height: 515px;
    min-width: 330px;
    overflow-y: scroll;
    scrollbar-width: none;     
    -ms-overflow-style: none;
    padding-left: 1rem;
}

.wrapper-left-card::-webkit-scrollbar {
    display: none;            
}

.left-card {
    padding: 0.5rem;
    width: auto;
    height: auto;
    max-height: 185px;
    background-color: var(--bg-card);
    border-radius: 10px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7),
        0 4px 10px rgba(0, 0, 0, 0.4);
        margin-bottom: 16px;
}

.left-card-music {
    padding: 0.5rem;
    width: auto;
    height: auto;
    max-height: auto;
    background-color: var(--bg-card);
    border-radius: 10px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7),
        0 4px 10px rgba(0, 0, 0, 0.4);
        margin-bottom: 16px;
}

.music-card{
    cursor: pointer;
}

.img-activity {
    position: relative;
    max-height: 70px;
    min-height: 70px;
    max-width: 70px;
    min-width: 70px;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.activity-discord {
    height: 70px;
    border-radius: 5%;
    margin-right: 10px;
}

.imgSmall {
    position: absolute;
    bottom: 8%;
    right: -8%;
    height: 20%;
}

.imgSmall .tooltip-wrapper .activity-discord-small {
    height: 20px;
    border-radius: 50%;
    border : 3px solid var(--primary);
}

.state {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 2.5px;
}

.details {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll-text 10s linear infinite;
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 5px;
}

.elapsed {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 1px;
    margin-bottom: 1.5px;
    text-align: center;
}

.container-discord {
    margin: 20px auto 10px;
    padding: 15px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 450px;
}

/* .img-activity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 200px;
    min-width: 200px;
    position: relative;
} */

.description-discord {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 200px;
    min-width: 200px;
    overflow: hidden;
}

@keyframes scroll-text {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* Card Left */
/* Card Main */
.main-card {
    padding: 0.5rem;
    width: auto;
    height: auto;
    max-height: 450px;
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7),
        0 4px 10px rgba(0, 0, 0, 0.4);
        
}

.profile-card {
    width: 400px;
    background-color: var(--primary);
    border-radius: 10px;
    overflow: hidden;
}

.profile-banner {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.profile-content {
    padding: 20px;
    text-align: start;
}

.top-content {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: start;
    margin: -60px auto 10px;
}

.avatar {
    position: relative;
    height: 80px;
    align-items: center;
    justify-content: center;
}

.decoration-discord {
    position: absolute;
    top: -5%;
    left: -5%;
    height: 120%;
    pointer-events: none;
}

.status-discord {
    position: absolute;
    bottom: 0;
    right: 5%;
    height: 20%;
}

.status-discord img {
    height: 100%;
    border-radius: 50%;
    border: 5px solid var(--primary);
    background-color: var(--primary);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid var(--primary);
    /* background-color: #fff; */
    object-fit: cover;
}

.profile-main {
    margin: 45px 0 0 10px;
    height: 100%;
    width: 100%;
}

.profile-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.profile-username,
.profile-handle {
    text-align: left;
}

.profile-handle {
    font-size: 12px;
    font-weight: bold;
    color: #b9bbbe;
    margin-right: 5px;
}

.profile-username {
    font-size: 18px;
    font-weight: bold;
    color: #b9bbbe;
}

.wrapper-name-clan {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #2b2d31;
    padding: 2px 5px 2px 5px;
    border-radius: 5px;
}

.badge {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.badge span {
    font-size: 12px;
    font-weight: bold;
    color: #b9bbbe;
}

.badge img {
    width: 15px;
    height: 15px;
    padding: 1px;
}

.badge:hover {
    transform: scale(1.1);
}

.profile-bio {
    margin: 10px 0;
    background-color: #2b2d31;
    color: #b9bbbe;
    padding: 10px;
    border-radius: 5px;
    font-size: 10px;
    text-align: left;
}

.roles {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.role {
    background-color: #5865f2;
    color: #fff;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 5px;
    font-size: 12px;
}

.img-bottom {
    width: auto;
    height: auto;
    margin-top: 5%;
}

.img-bottom img {
    width: 450px;
    height: 110px;
    object-fit: cover;
}

.connections-header{
    font-size: 12px;
    color: #b9bbbe;
    margin-bottom: 10px;
}

.connections{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 15px;
    grid-row-gap: 15px;
}

.connection{
    height: 15px;
    width: 90%;
    border-radius: 8px;
    border: var(--bg-card) solid 1px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    text-decoration: none;
}

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

.connection .icon{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.connection-name{
    font-size: 10px;
    color: #b9bbbe;
    margin-left: 12px;
    font-weight: bold;
}

.connection-link{
    color: #b9bbbe;
    font-weight: bold;
}
/* Card Main */
/* Card Right */
.right-card {
    padding: 0.5rem;
    width: auto;
    height: auto;
    max-height: 450px;
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7),
        0 4px 10px rgba(0, 0, 0, 0.4);
    margin-right: 1rem;
}

.right-card::-webkit-scrollbar {
    display: none;
}

.card-project{
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 300px;
    height: auto;
    background-color: var(--primary);
    border-radius: 8px;
    margin-bottom: 16px;
    text-decoration: none;
}

.wrapper-img{
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.card-project img{
    width: 300px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.title-project{
    position: absolute;
    bottom:  10%;
    left: 3.5%;
    width: 280px;
    height: auto;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 2px;
}

.title-project h1{
    color: #b9bbbe;
    font-size: 10px;
    text-align: center;
}

.description-project{
    width: 280px;
    height: auto;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    margin-top: 8px;
    margin-bottom: 3px;
}

.description-project h1{
    color: #b9bbbe;
    font-size: 10px;
    text-align: center;
    padding: 5px;
}

.tag{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.tag-item{
    background-color: rgba(0, 0, 0, 0.8);
    color: #b9bbbe;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 5px;
    font-size: 10px;
}
/* Card Right */
/* Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    color: white;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
    cursor: pointer;
    opacity: 1;
    transition: opacity 1.5s ease;
}

#overlay.fade-out {
    opacity: 0;
}
  

.overlay-content h1 {
    font-size: 2em;
}
/* Overlay */
/* BG Video dan Control Volume Video */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    display: none;
    background-color: var(--primary);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    z-index: -1;
    backdrop-filter: blur(5px);
}

.video-controls {
    background: var(--primary);
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center; 
    gap: 10px;
    z-index: 20;
    color: white;
}

#mute-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#mute-toggle img {
    width: 24px;
    height: 24px;
    display: block;
}

#volume-slider {
    width: 100%;
    accent-color: var(--bg-card);
}
/* BG Video dan Control Volume Video */
/* Gaya Umum Halaman */
.page {
    width: 100%;
    max-width: 800px; /* Lebar maksimum untuk konten utama */
    padding: 1rem;
    display: block; /* Semua halaman disembunyikan secara default */
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    position: relative; /* Penting untuk z-index di atas video */
    z-index: 2; /* Pastikan page selalu di atas overlay dan video */
    background-color: transparent; /* Pastikan halaman itu sendiri transparan agar video terlihat */
}

/* Music Player Container */
.music-player-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.music-player-box {
    background: radial-gradient(circle at top left, #121212, #282828); /* Warna box player */
    border-radius: 18px;
    overflow: hidden;
    min-width: 400px;
    max-width: 400px; /* Lebar box player */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    opacity: 0.8;
}

.player-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.album-art-player {
    width: 80px; /* Ukuran gambar album di player */
    height: 80px;
    border-radius: 0.5rem;
    margin-right: 1rem;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.track-info-player h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #ffffff;
}

.track-info-player p {
    font-size: 0.9rem;
    color: #b3b3b3;
    margin: 0;
}

.lyrics-container {
    height: 180px; /* Tinggi area lirik */
    overflow-y: auto;
    background: radial-gradient(circle at top left,  #121212, var(--bg-card)); /* Latar lirik sedikit beda */
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #d0d0d0;
    /* white-space: pre-wrap; */ /* Hapus ini jika ingin lyric-line display: block */
}

/* Custom Scrollbar untuk Lirik */
.lyrics-container::-webkit-scrollbar {
    width: 8px;
}
.lyrics-container::-webkit-scrollbar-track {
    background: #282828;
    border-radius: 10px;
}
.lyrics-container::-webkit-scrollbar-thumb {
    background: #121212;
    border-radius: 10px;
}
.lyrics-container::-webkit-scrollbar-thumb:hover {
    background: #5a5a6e;
}

/* Styles for Lyric Highlighting */
.lyric-line {
    color: rgba(255, 255, 255, 0.4); /* Default: agak pudar */
    transition: color 0.3s ease; /* Transisi halus saat warna berubah */
    display: block; /* Penting: Setiap lirik di baris baru */
    margin-bottom: 0.2em; /* Sedikit spasi antar baris lirik */
}

.lyric-line.highlight {
    color: #FFFFFF; /* Highlight: putih penuh */
    font-weight: 600; /* Opsional: buat teks lebih tebal saat di-highlight */
}

/* Modals */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.active {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    background: none;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    height: 100px; 
    min-width: 315px;
    border-radius: 8px;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Lebar gradien kilau */
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--bg-card), transparent);
    animation: shimmer-animation 1.5s infinite;
}

/* Animasi yang lebih baik untuk efek melintas penuh */
@keyframes shimmer-animation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%); /* Bergerak dari -100% ke 200% agar melintas penuh */
    }
}