* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    background: url('images/2.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #9370DB;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.music-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.cd-shelf {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.cd {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 20px rgba(147, 112, 219, 0.3);
}

.cd:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(147, 112, 219, 0.5);
}

.cd-cover {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}


.cd-label {
    position: absolute;
    bottom: -30px;
    color: white;
    font-size: 14px;
    text-align: center;
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.5);
}

.player-container {
    position: relative;
    z-index: 10;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-text {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.5);
    z-index: 11;
    white-space: nowrap;
    background: rgba(147, 112, 219, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.floating-cds {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cd.floating {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(147, 112, 219, 0.3);
    cursor: grab;
    pointer-events: auto;
    transition: all 0.3s ease;
    animation: float 15s infinite ease-in-out;
    opacity: 0.8;
    z-index: 1;
}

.cd.floating:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(147, 112, 219, 0.5);
}

.cd.floating.dragging {
    animation: none;
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 40px rgba(147, 112, 219, 0.7);
    z-index: 100;
    cursor: grabbing;
}

/* Random positions for CDs */
.cd.floating:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.cd.floating:nth-child(2) { top: 20%; right: 10%; animation-delay: -2s; }
.cd.floating:nth-child(3) { top: 40%; left: 15%; animation-delay: -4s; }
.cd.floating:nth-child(4) { top: 60%; right: 20%; animation-delay: -6s; }
.cd.floating:nth-child(5) { top: 30%; left: 25%; animation-delay: -8s; }
.cd.floating:nth-child(6) { top: 50%; right: 30%; animation-delay: -10s; }
.cd.floating:nth-child(7) { top: 70%; left: 35%; animation-delay: -12s; }
.cd.floating:nth-child(8) { top: 20%; right: 40%; animation-delay: -14s; }
.cd.floating:nth-child(9) { top: 10%; left: 70%; animation-delay: -16s; }
.cd.floating:nth-child(10) { top: 80%; right: 70%; animation-delay: -18s; }
.cd.floating:nth-child(11) { top: 40%; left: 60%; animation-delay: -20s; }
.cd.floating:nth-child(12) { top: 60%; right: 60%; animation-delay: -22s; }
.cd.floating:nth-child(13) { top: 30%; left: 80%; animation-delay: -24s; }
.cd.floating:nth-child(14) { top: 50%; right: 80%; animation-delay: -26s; }
.cd.floating:nth-child(15) { top: 70%; left: 90%; animation-delay: -28s; }
.cd.floating:nth-child(16) { top: 20%; right: 90%; animation-delay: -30s; }
.cd.floating:nth-child(17) { top: 40%; left: 10%; animation-delay: -32s; }
.cd.floating:nth-child(18) { top: 60%; right: 10%; animation-delay: -34s; }
.cd.floating:nth-child(19) { top: 80%; left: 20%; animation-delay: -36s; }
.cd.floating:nth-child(20) { top: 30%; right: 20%; animation-delay: -38s; }
.cd.floating:nth-child(21) { top: 50%; left: 30%; animation-delay: -40s; }
.cd.floating:nth-child(22) { top: 70%; right: 30%; animation-delay: -42s; }
.cd.floating:nth-child(23) { top: 90%; left: 40%; animation-delay: -44s; }

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(0, -40px) rotate(0deg);
    }
    75% {
        transform: translate(-20px, -20px) rotate(-5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Create a safe zone around the player */
.cd.floating:nth-child(n+1):nth-child(-n+23) {
    transform-origin: center;
}

/* Hide CDs on smaller screens */
@media (max-width: 768px) {
    .cd.floating {
        display: none;
    }
}

/* Player styles */
.player {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(147, 112, 219, 0.3);
    transition: all 0.3s ease;
}

.player.drag-over {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(147, 112, 219, 0.5);
}

.player-disc {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.player-disc.playing {
    box-shadow: 0 0 30px rgba(147, 112, 219, 0.5);
}

.disc-hole {
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
}

.player-controls {
    position: absolute;
    bottom: -80px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(147, 112, 219, 0.8);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(147, 112, 219, 0.5);
}

.control-btn:hover {
    background: rgba(147, 112, 219, 1);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(147, 112, 219, 0.7);
}

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

.progress-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 10px 0;
}

.progress {
    height: 100%;
    background: rgba(147, 112, 219, 0.8);
    width: 0%;
    transition: width 0.1s linear;
}

/* CD cover styles */
.cd-cover {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.cd-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cd-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: white;
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.5);
    white-space: nowrap;
}

/* YouTube container */
.youtube-container {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Light theme styles */
body.light-theme {
    background: url('images/2 copy.jpg') no-repeat center center fixed;
    background-size: cover;
}

body.light-theme .cd,
body.light-theme .player-container,
body.light-theme .player {
    background: rgba(255, 255, 255, 0.3);
}

body.light-theme .cd-label {
    color: #9370DB;
}

/* Responsive styles */
@media (max-width: 480px) {
    .cd {
        width: 100px;
        height: 100px;
    }

    .cd-cover {
        width: 80px;
        height: 80px;
    }

    .cd-label {
        font-size: 12px;
        bottom: -25px;
    }

    .player-container {
        width: 200px;
        height: 200px;
    }

    .player {
        width: 160px;
        height: 160px;
    }

    .player-disc {
        width: 130px;
        height: 130px;
    }
}

.timer {
    color: white;
    font-size: 0.9rem;
    margin-left: 15px;
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.5);
    font-family: 'Arial', sans-serif;
    background: rgba(147, 112, 219, 0.3);
    padding: 4px 8px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none; /* Initially hidden */
}

/* Light theme adjustment for timer */
body.light-theme .timer {
    color: #333;
    background: rgba(147, 112, 219, 0.2);
}

/* Media query adjustments for timer */
@media (max-width: 768px) {
    .timer {
        font-size: 0.8rem;
        margin-left: 10px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .timer {
        font-size: 0.7rem;
        margin-left: 8px;
        padding: 2px 5px;
    }
}

.nav-icon,
.tooltip {
    display: none;
}

.about-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    background: rgba(147, 112, 219, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    animation: iconGlow 4s ease-in-out infinite;
    color: #9370db;
    margin-right: 20px;
    overflow: visible;
    position: relative;
}

.about-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.about-icon::after {
    content: 'About Lily';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    color: #9370db;
    padding: 8px 16px;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.4);
    z-index: 1000;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.about-icon:hover {
    transform: scale(1.1) rotate(15deg);
    background: rgba(147, 112, 219, 0.3);
    filter: drop-shadow(0 0 40px rgba(147, 112, 219, 0.9))
           drop-shadow(0 0 80px rgba(147, 112, 219, 0.7));
}

.about-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    background: rgba(255, 255, 255, 0.15);
    color: #9370db;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(183, 157, 255, 0.8))
               drop-shadow(0 0 40px rgba(183, 157, 255, 0.4));
        opacity: 0.8;
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(183, 157, 255, 0.9))
               drop-shadow(0 0 60px rgba(183, 157, 255, 0.6));
        opacity: 1;
    }
}

/* Media queries for the about icon */
@media (max-width: 768px) {
    .about-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .about-icon::after {
        font-size: 12px;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .about-icon {
        width: 35px;
        height: 35px;
        margin-right: 5px;
    }
    
    .about-icon::after {
        display: none;
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header-logo {
    font-size: 100px;
    font-weight: bold;
    color: #9370DB;
    text-shadow: 0 0 10px rgba(147, 112, 219, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(147, 112, 219, 0.7);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    color: #9370DB;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    
    transition: all 0.3s ease;
}

.back-btn:hover {
    
    transform: scale(1.05);
}

.new-button {
    background: rgba(147, 112, 219, 0.4);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    border: 2px solid rgba(147, 112, 219, 0.6);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.new-button:hover {
    background: rgba(147, 112, 219, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 112, 219, 0.3);
}

/* Light theme adjustments for reset button */
body.light-theme .new-button {
    background: rgba(147, 112, 219, 0.2);
    color: #333;
    border: 2px solid rgba(147, 112, 219, 0.4);
}

body.light-theme .new-button:hover {
    background: rgba(147, 112, 219, 0.3);
}

/* Media query adjustments for reset button */
@media (max-width: 768px) {
    .new-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .new-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Popup Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.popup-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    z-index: 1001;
}

.popup-content h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.popup-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

.time-button {
    background: rgba(147, 112, 219, 0.4);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(147, 112, 219, 0.6);
    min-width: 200px;
}

.time-button:hover {
    background: rgba(147, 112, 219, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(147, 112, 219, 0.3);
}

/* Light theme adjustments for popup */
body.light-theme .popup-content {
    background: rgba(255, 255, 255, 0.9);
}

body.light-theme .popup-content h2 {
    color: #333;
}

body.light-theme .time-button {
    background: rgba(147, 112, 219, 0.2);
    color: #333;
    border: 2px solid rgba(147, 112, 219, 0.4);
}

body.light-theme .time-button:hover {
    background: rgba(147, 112, 219, 0.3);
}

/* Media query adjustments for popup */
@media (max-width: 768px) {
    .popup-content {
        padding: 1.5rem;
    }
    
    .popup-content h2 {
        font-size: 1.3rem;
    }
    
    .time-button {
        padding: 10px 18px;
        font-size: 1rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 1rem;
    }
    
    .popup-content h2 {
        font-size: 1.2rem;
    }
    
    .time-button {
        padding: 8px 16px;
        font-size: 0.9rem;
        min-width: 160px;
        width: 100%;
    }
    
    .popup-buttons {
        flex-direction: column;
    }
}

/* Light theme adjustment for player text */
body.light-theme .player-text {
    color: #333;
    background: rgba(147, 112, 219, 0.2);
}

/* Media query adjustments for player text */
@media (max-width: 768px) {
    .player-text {
        font-size: 0.8rem;
        top: -35px;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .player-text {
        font-size: 0.7rem;
        top: -30px;
        padding: 3px 8px;
    }
} 