/* CD Player Overall Styling */
/* .cd-player {
    background: #000;
    border: 2px solid #444;
    border-radius: 10px;
    width: 750px;
    height: 250px;
    box-shadow: 0px 0px 10px #444;
    display: flex;
    flex-direction: row;
    position: absolute;
    bottom: 0px;
    color: lime;
    z-index: 10;
} */
.cd-player {
    background: linear-gradient(to bottom, #333, #111);
    border: 4px solid #444;
    border-radius: 12px;
    width: 750px;
    height: 250px;
    box-shadow: inset 0px 0px 10px #000, 0px 0px 20px #444;
    display: flex;
    flex-direction: row;
    position: absolute;
    bottom: 0px;
    color: lime;
    z-index: 10;
    padding: 10px;
    font-family: 'DSEG14 Classic', 'Courier New', Courier, monospace;
}

/* Leftmost Controls */
.cd-player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 120px;
    margin-top: 40px;
}

.track-controls {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

/* Volume Area */
.cd-player-volume {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Space between knob and buttons */
    justify-content: center;
    width: 200px;
    margin-top: 40px;
}


/********************/
/* Volume Knob Stuff */
/********************/

/* Main Knob Container: Static Gradient */
#volume-knob {
    position: relative;
    width: 90px;
    height: 90px;
    border: 3px solid gray;
    border-radius: 50%;
    background: linear-gradient(to bottom, #555, #222);
    /* Static gradient */
    box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    /* Ensure child layers remain inside */

    user-select: none;
    /* Prevent text selection */
    cursor: pointer;
    /* Indicate interactivity */
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE/Edge */
}

/* Rotating Layer: Pointer rotates inside the static knob */
#volume-knob .rotating-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(var(--knob-rotation, 0deg));
    /* Rotate this layer only */
    transition: transform 0.05s linear;
}

/* Pointer: Visual Indicator */
#volume-knob .pointer {
    position: absolute;
    top: 5%;
    left: 50%;
    width: 4px;
    height: 20%;
    background: rgba(252, 20, 20, 0.5);
    /* Pointer color */
    border-radius: 2px;
    transform-origin: bottom center;
    transform: translateX(-50%);
}

/* Notches: Added to the rotating layer */
#volume-knob .notches {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: repeating-conic-gradient(transparent 0deg,
            transparent 8deg,
            #888 9deg,
            transparent 10deg);
    mask: radial-gradient(circle, transparent 55%, black 70%);
}


.volume-buttons {
    display: flex;
    flex-direction: column;
    /* Stack buttons vertically */
    gap: 10px;
}

.volume-buttons button {
    background: linear-gradient(to bottom, #444, #222);
    color: white;
    border: 1px solid #555;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0px 3px 0px #111;
    transition: all 0.1s ease-in-out;
}

.volume-buttons button:hover {
    background: linear-gradient(to bottom, #555, #333);
    transform: translateY(-1px);
}

.volume-buttons button:active {
    background: linear-gradient(to bottom, #222, #000);
    transform: translateY(1px);
}

/******************/
/* Button Options */
/******************/

/* button {
    background: linear-gradient(to bottom, #444, #222);
    color: white;
    border: 1px solid #555;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0px 3px 0px #111;
    transition: all 0.1s ease-in-out;
}

button:hover {
    background: linear-gradient(to bottom, #555, #333);
    transform: translateY(-1px);
}

button:active {
    background: linear-gradient(to bottom, #222, #000);
    transform: translateY(1px);
} */
button {
    background: linear-gradient(to bottom, #555, #222);
    color: white;
    border: 2px solid #444;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0px 3px 0px #111;
    transition: all 0.1s ease-in-out;
    text-transform: uppercase;
}

button:hover {
    background: linear-gradient(to bottom, #666, #333);
    transform: translateY(-1px);
    box-shadow: 0px 4px 5px #000;
}

button:active {
    background: linear-gradient(to bottom, #222, #111);
    transform: translateY(2px);
    box-shadow: inset 0px 2px 5px #000;
}

/* Lighting effect for "active" state */
button.active {
    background: linear-gradient(to bottom, #222, #000);
    border-color: lime;
    box-shadow: 0 0 10px lime, 0px 0px 5px lime inset;
}


/****************/
/* Display Area */
/****************/

/* font-family: 'DSEG14 Classic', 'Courier New', Courier, monospace;
font-size: 20px; */
/* .cd-player-display {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    background: #222;
    border-radius: 5px;
    padding: 10px;
    font-family: monospace;
    font-size: 20px;
}

.icon {
    font-size: 1rem;
    color: yellow;
    text-shadow: 0 0 5px yellow;
    opacity: 0.3;
}*/

.cd-player-display {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    background: linear-gradient(to bottom, #222, #000);
    border-radius: 5px;
    border: 2px solid #444;
    padding: 10px;
    margin-top: 65px;
    box-shadow: inset 0px 0px 5px #000;
    font-family: 'DSEG14 Classic', 'Courier New', Courier, monospace;
}

.icon {
    font-size: 1.2rem;
    color: lime;
    text-shadow: 0px 0px 10px lime, 0px 0px 5px lime;
    opacity: 0.3;
}


.mode-icons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Control Buttons Below Display */
.display-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.display-buttons button {
    background: linear-gradient(to bottom, #444, #222);
    color: white;
    border: 1px solid #555;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0px 3px 0px #111;
    transition: all 0.1s ease-in-out;
}

.display-buttons button:hover {
    background: linear-gradient(to bottom, #555, #333);
    transform: translateY(-1px);
}

.display-buttons button:active {
    background: linear-gradient(to bottom, #222, #000);
    transform: translateY(1px);
}

/* Eject Button */
.eject-button {
    position: absolute;
    top: 35px;
    right: 10px;
    padding: 8px 14px;
    font-weight: bold;
}



/* CD Slot Styling */
.cd-slot {
    position: absolute;
    top: 40px;
    left: 154px;
    width: 490px;
    height: 20px;
    background: linear-gradient(to bottom, #1e1e1e, #111);
    border: 2px solid #444;
    border-radius: 2px;
    box-shadow: inset 0px -2px 8px rgba(0, 0, 0, 0.8), 0px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 5;
}
