@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Bebas+Neue&display=swap');

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

body {
    background-color: #00bcd4;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0,200,220,0.6) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0,150,180,0.4) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', 'Arial Black', sans-serif;
    overflow: hidden;
    position: relative;
}

/* Background doodles */
.bg-doodles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.75;
}

.bg-doodles span {
    position: absolute;
    font-size: 2em;
    font-family: 'Permanent Marker', cursive;
    animation: floatDoodle 6s ease-in-out infinite;
}

@keyframes floatDoodle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-15px) rotate(10deg); }
}

@keyframes floatSpin {
    0%   { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

@keyframes floatSpinReverse {
    0%   { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(0) rotate(-360deg); }
}

@keyframes floatWobbleSpin {
    0%   { transform: translateY(0)    rotate(0deg); }
    25%  { transform: translateY(-12px) rotate(90deg); }
    50%  { transform: translateY(0)    rotate(180deg); }
    75%  { transform: translateY(12px)  rotate(270deg); }
    100% { transform: translateY(0)    rotate(360deg); }
}

/* Title */
.title {
    font-family: 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: clamp(2.5em, 6vw, 4.5em);
    color: white;
    letter-spacing: 6px;
    text-shadow:
        3px 3px 0 #006070,
        -2px -2px 0 #006070,
        4px 4px 12px rgba(0,0,0,0.3);
    margin-bottom: 40px;
    transform: skewX(-4deg);
    user-select: none;
}

/* CD wrapper */
.cd-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    cursor: pointer;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.4));
    transition: transform 0.2s;
}

.cd-wrapper:hover {
    transform: scale(1.03);
}

/* CD disc */
.cd-disc {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    animation: spin 3.5s linear infinite;
    animation-play-state: paused;
    display: block;
}

.cd-disc.playing {
    animation-play-state: running;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Shiny overlay ring */
.cd-shine {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%, rgba(255,255,255,0.08) 15%, transparent 30%,
        rgba(255,255,255,0.05) 50%, transparent 65%,
        rgba(255,255,255,0.1) 80%, transparent 100%
    );
    pointer-events: none;
    animation: shineRotate 6s linear infinite;
    animation-play-state: paused;
}

.cd-disc.playing ~ .cd-shine {
    animation-play-state: running;
}

@keyframes shineRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

/* Center hole */
.cd-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, #009aaa 0%, #00bcd4 60%, #009aaa 100%);
    border: 3px solid rgba(0,0,0,0.35);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
    pointer-events: none;
}

/* Volume */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.volume-icon {
    font-size: 1.1em;
    width: 24px;
    text-align: center;
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.35);
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

#volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Controls */
.controls {
    display: flex;
    gap: 16px;
    margin-top: 36px;
    align-items: center;
}

.btn {
    background: rgba(255, 255, 255, 0.18);
    border: 2.5px solid rgba(255,255,255,0.7);
    color: white;
    padding: 11px 28px;
    border-radius: 40px;
    cursor: pointer;
    font-family: 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: 1.1em;
    letter-spacing: 2px;
    transition: all 0.15s ease;
    backdrop-filter: blur(6px);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
}

/* Track info */
.track-info {
    margin-top: 22px;
    text-align: center;
    min-height: 50px;
}

.track-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.3em;
    color: white;
    text-shadow: 2px 2px 0 rgba(0,80,100,0.5);
    transition: opacity 0.3s;
}

.track-status {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85em;
    color: rgba(255,255,255,0.6);
    letter-spacing: 3px;
    margin-top: 4px;
}

/* YouTube player */
#yt-player-wrapper {
    position: fixed;
    bottom: 22px;
    left: 22px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.3);
    line-height: 0;
}

#yt-player {
    width: 200px;
    height: 113px;
    display: block;
}

/* Parental Advisory sticker */
.advisory {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: white;
    color: black;
    padding: 5px 9px;
    font-family: 'Arial Black', sans-serif;
    font-size: 0.5em;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.4;
    text-align: center;
    border: 2px solid black;
    letter-spacing: 0.5px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.advisory .advisory-top {
    font-size: 1.4em;
}

/* Pulse ring when playing */
.pulse-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.25);
    animation: pulse 2s ease-out infinite;
    animation-play-state: paused;
    pointer-events: none;
}

.pulse-ring.active {
    animation-play-state: running;
}

@keyframes pulse {
    0%   { opacity: 0.7; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.18); }
}
