/* ==========================================================
   ONEETSAKO AMBIENT MUSIC EXPERIENCE
   FULLY FLUID / DESKTOP STANDARD / PHONE-VISIBLE
   NO RESPONSIVE MEDIA QUERIES
   ========================================================== */

/* ==========================================================
   MUSIC SECTION
   ========================================================== */
#music {
    width: 100%;
    box-sizing: border-box;
    padding: clamp(60px, 8vw, 120px) clamp(16px, 4vw, 40px);
    text-align: center;
}

/* ==========================================================
   MUSIC SHELL
   ========================================================== */
.music-shell {
    width: min(100%, 380px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 2vw, 24px);
    text-align: center;
}

/* ==========================================================
   HEADER
   ========================================================== */
.music-tag {
    font-family: monospace;
    font-size: clamp(0.65rem, 1.05vw, 0.78rem);
    line-height: 1.4;
    letter-spacing: clamp(0.14em, 0.3vw, 0.25em);
    color: #aadf8e;
    opacity: 0.95;
}

.music-title {
    margin: 0;
    font-family: "Cinzel", "Tempus Sans ITC", serif;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.2;
    font-weight: 100;
    letter-spacing: clamp(0.05em, 0.12vw, 0.08em);
    color: #ffffff;
}

.music-subtitle {
    width: min(100%, 320px);
    margin: 0;
    font-size: clamp(0.82rem, 1.15vw, 0.95rem);
    line-height: 1.7;
    letter-spacing: clamp(0.03em, 0.08vw, 0.06em);
    color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================
   AMBIENT WAVE
   ========================================================== */
.audio-wave {
    width: clamp(170px, 22vw, 220px);
    height: clamp(42px, 5vw, 55px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 0.5vw, 5px);
    margin: clamp(4px, 0.8vw, 8px) 0;
    opacity: 0.7;
}

.audio-wave span {
    width: clamp(2px, 0.3vw, 3px);
    height: clamp(10px, 1.5vw, 15px);
    background: #aadf8e;
    border-radius: 50px;
    opacity: 0.7;
    animation: ambientPulse 2s ease-in-out infinite;
}

.audio-wave span:nth-child(1) { animation-delay: 0.1s; }
.audio-wave span:nth-child(2) { animation-delay: 0.25s; }
.audio-wave span:nth-child(3) { animation-delay: 0.4s; }
.audio-wave span:nth-child(4) { animation-delay: 0.55s; }
.audio-wave span:nth-child(5) { animation-delay: 0.7s; }
.audio-wave span:nth-child(6) { animation-delay: 0.55s; }
.audio-wave span:nth-child(7) { animation-delay: 0.4s; }
.audio-wave span:nth-child(8) { animation-delay: 0.25s; }
.audio-wave span:nth-child(9) { animation-delay: 0.1s; }

@keyframes ambientPulse {
    0% {
        height: clamp(8px, 1vw, 10px);
        opacity: 0.25;
    }
    50% {
        height: clamp(30px, 4vw, 45px);
        opacity: 1;
    }
    100% {
        height: clamp(8px, 1vw, 10px);
        opacity: 0.25;
    }
}

/* ==========================================================
   PLAYER CORE
   ========================================================== */
.music-player {
    position: relative;
    width: min(100%, 300px);
    box-sizing: border-box;
    padding: clamp(12px, 2vw, 18px) clamp(10px, 2vw, 16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(18px, 2.5vw, 26px);
    background: transparent;
    border: none;
    border-radius: clamp(10px, 1.5vw, 14px);
    overflow: hidden;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ==========================================================
   MICRO ELECTRIC RAZOR DASH
   ========================================================== */
.music-player::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: clamp(6px, 0.7vw, 8px);
    height: 2px;
    background: #aadf8e;
    border-radius: 20px;
    opacity: 0;
    box-shadow: 0 0 4px rgba(170, 223, 142, 0.7);
    pointer-events: none;
}

.music-player:hover::before {
    opacity: 0.75;
    animation: razorTrace 2.5s linear infinite;
}

@keyframes razorTrace {
    0% { top: 0; left: 10%; }
    25% { top: 0; left: 90%; }
    50% { top: 100%; left: 90%; }
    75% { top: 100%; left: 10%; }
    100% { top: 0; left: 10%; }
}

.music-player:hover {
    background: rgba(255, 255, 255, 0.008);
}

/* ==========================================================
   DISPLAY
   ========================================================== */
.music-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(6px, 0.8vw, 9px);
    width: 100%;
}

.music-status {
    font-family: monospace;
    font-size: clamp(0.65rem, 0.9vw, 0.78rem);
    line-height: 1.4;
    letter-spacing: clamp(0.16em, 0.28vw, 0.24em);
    color: #aadf8e;
}

.music-track-title {
    margin: 0;
    font-family: "Cinzel", "Tempus Sans ITC", serif;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.35;
    font-weight: 100;
    letter-spacing: clamp(0.04em, 0.1vw, 0.07em);
    color: #ffffff;
}

.music-subtext {
    font-size: clamp(0.72rem, 0.95vw, 0.82rem);
    line-height: 1.5;
    letter-spacing: clamp(0.03em, 0.07vw, 0.05em);
    color: rgba(255, 255, 255, 0.62);
}

/* ==========================================================
   AUDIO CONTROLS
   ========================================================== */
.music-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.8vw, 18px);
    width: 100%;
}

.music-controls button {
    width: clamp(36px, 4vw, 42px);
    height: clamp(36px, 4vw, 42px);
    flex: 0 0 auto;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: clamp(0.82rem, 1.1vw, 0.95rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.music-controls button:hover {
    transform: scale(1.12);
    color: #aadf8e;
    border-color: rgba(170, 223, 142, 0.55);
}

.music-controls #playBtn {
    width: clamp(46px, 5vw, 54px);
    height: clamp(46px, 5vw, 54px);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    background: rgba(170, 223, 142, 0.06);
    border: 1px solid rgba(170, 223, 142, 0.35);
}

.music-controls #playBtn:hover {
    background: #aadf8e;
    color: #050807;
    box-shadow: 0 0 15px rgba(170, 223, 142, 0.25);
}

/* ==========================================================
   PROGRESS LINE
   ========================================================== */
.progress-track {
    width: clamp(180px, 75%, 250px);
    height: clamp(2px, 0.25vw, 3px);
    background: rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #aadf8e;
    transition: width 0.2s linear;
}

/* ==========================================================
   PHONE-FIRST VISIBILITY SAFETY
   ========================================================== */
.music-tag,
.music-status {
    min-font-size: 0.65rem;
}

.music-title,
.music-track-title,
.music-subtitle,
.music-subtext {
    overflow-wrap: anywhere;
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    .audio-wave span,
    .music-player::before {
        animation: none !important;
    }

    .music-controls button {
        transition: none;
    }
}
