:root {
    --primary-color: rgba(255, 255, 255, 0.1);
    --secondary-color: rgba(116, 116, 116, 0.2);
    --text-color: rgb(233, 233, 233);
    --highlight-color: rgb(237, 237, 237);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --blur-effect: blur(20px);
    --border-radius: 0.625rem; /* 10px */
    --spacing-small: 1rem; /* 16px */
    --spacing-medium: 1.25rem; /* 20px */
    --spacing-large: 2.5rem; /* 40px */
    --font-size-small: 1rem; /* 16px */
    --font-size-medium: 1.25rem; /* 20px */
    --font-size-large: 3.75rem; /* 60px */
    --container-width: 33.5rem; /* 536px */
    --container-height: 72.625rem; /* 1162px */
}

*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    overflow: hidden;
    user-select: none;
}

#songList {
    width: 100%;
    list-style: none;
    padding: 0;
    margin-bottom: 30rem;
}

#songList li {
    padding: var(--spacing-small);
    color: rgb(233, 233, 233);
    margin: var(--spacing-medium);
    cursor: pointer;
    transition: background 0.3s;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

#songList li:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    transform-origin: center; /* Scale from the center */
    transition: transform 0.3s ease; /* Smooth scaling transition */
    overflow: visible; /* Allow content to be visible */
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

#mainScreen, #musicPlayer {
    width: var(--container-width);
    height: var(--container-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-color);
    backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: var(--spacing-medium);
    transition: opacity 0.3s, transform 0.3s;
    animation: fadeIn 0.5s ease-in-out;
    position: absolute;
}

#musicPlayer {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

#mainScreen {
    padding: 0px;
    animation: fadeIn 0.5s  ease-in-out;
}

.mainArtist {
    margin-top: -7.5rem; /* -120px */
    margin-left: -11.25rem; /* -180px */
    font-size: var(--font-size-large);
    color: white;
    z-index: 10;
    text-shadow: 0.375rem 0.375rem rgb(30, 4, 46);
}

.mainImage {
    width: 100%;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.social-container1 {
    margin-top: -25rem; 
    width: 25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 5.625rem;
    overflow: visible;
}

.social-container1 div {
    width: 6.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    filter: brightness(0) invert(.9);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.social-container1 div:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.social-container div:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.875rem;
}

.back {
    width: 50%;
}

.test {
    width: 50%;
}

.song-img {
    margin-top: 5rem; /* 80px */
    width: 25rem; /* 400px */
    border-radius: 1.25rem;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.song-info {
    width: 100%;
    margin-top: -100px;
    margin-right: -50px;
}

.song-title {
    font-size: var(--font-size-medium);
    font-weight: bold;
    color: var(--highlight-color);
}

.artist {
    font-size: var(--font-size-medium);
    color: rgba(255, 255, 255, 0.8);
}

.progress-container {
    width: 90%;
    transform: translateY(-12.5rem);
}

#progress {
    appearance: none;
    width: 100%;
    height: 0.3125rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0.3125rem;
    cursor: pointer;
}

#progress::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 10px rgba(255, 255, 255, 0.2);
}

.controls {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transform: translateY(-350px);
    overflow: visible;
}

.controls div {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    filter: brightness(0) invert(.9);
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.controls div:hover {
    transform: scale(1.2);
}

.previous, .next{
    width: 50%;
}

.controls div:nth-child(2) {
    transform: scale(1.5);
}

.controls div:nth-child(2):hover {
    transform: scale(1.8);
}

.play {
    width:50%;
}

.pause {
    width:40%;
}

.ref {
    display: none;
}


.timestamp {
    display: flex;
    justify-content: space-between;
    color: rgba(215, 215, 215, 0.6);
    font-size: 1.125rem;
}

.volume-container {
    width: 80%;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: -18.75rem;
    transform: translateY(-12.5rem);
}

.volume-slider {
    appearance: none;
    width: 100%;
    height: 0.3125rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0.3125rem;
    cursor: pointer;
}

#volume::-webkit-slider-thumb {
    appearance: none;
    width: 1rem;
    height: 1rem;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

#volume::-webkit-slider-thumb :hover {
    transform: scale(3.2);
}

#volumeIcon {
    width: 8%;
    height: 90%;
    filter: brightness(0) invert(.9);
}

.social-container {
    margin-top: -18.75rem;
    width: 25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 4.375rem;
    overflow: visible;
}

.social-container div {
    width: 6.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    filter: brightness(0) invert(.9);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.instagram, .spotify, .apple, .youtube, .tiktok {
    width: 50%;
}

.back {
    margin-bottom: -18.75rem;
    margin-left: -16.875rem;
}

.backIcon {
    width: 20%;
    filter: brightness(0) invert(.9);
    cursor: pointer;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.backIcon:hover {
    transform: scale(1.1);
}