.music-player {
    width: 100vw;
    position: relative;
    background-color: #000;
    width: 100vw;
    top: 100vh;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visualizer-container {
    height: 180px;
    border-radius: 8px;
    margin-bottom: 40px;
    padding: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.visualizer-bar {
    width: 18px;
    background: #ff3c1e;
    border-radius: 2px;
    transition: all 0.2s ease;
    min-height: 8px;
    opacity: 0.2;
}

.visualizer-bar.active {
    opacity: 1;
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.3);
    }

    100% {
        transform: scaleY(1);
    }
}

.music-sheet {
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.staff-lines {
    list-style: none;
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

.staff-line {
    border-bottom: 2px solid #666;
    height: 25px;
    width: 100%;
}

.marquee-container {
    width: 150vw;
    height: 60px;
    background-color: #ff3c1e;
    overflow: hidden;
    position: relative;
    transform: translateY(-60px);
    rotate: 6deg;
    pointer-events: none;
}

.marquee-container:nth-child(2){
    transform: translateY(-120px);
    rotate: -6deg;
}

.marquee-container:nth-child(2) .marquee-content{
    animation: scroll 12s linear reverse infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    height: 100%;
    animation: scroll 12s linear infinite;
    white-space: nowrap;
}

.title {
    flex-shrink: 0;
    padding: 0 60px;
}

.title h1 {
    margin: 0;
    color: #080808;
    font-size: 4rem;
    font-weight: 500;
    letter-spacing: -0.1rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.sheet-content {
    position: relative;
    top: -130px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.clef-symbol {
    flex-shrink: 0;
    width: 80px;
}

.clef-symbol img {
    width: 100%;
    height: auto;
    max-height: 120px;
    filter: brightness(0.4);
}

.measures-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    flex: 1;
}

.measure {
    border-left: 2px solid #666;
    padding: 0 20px;
    display: flex;
    gap: 15px;
    min-height: 100px;
    align-items: center;
    opacity: 1;
}

.note {
    font-size: 48px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.note:hover {
    color: #ff3c1e;
    transform: scale(1.05);
}

.note.clicked {
    color: #ff3c1e;
    animation: noteClick 0.3s ease;
}

@keyframes noteClick {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.note-e {
    top: 30px;
}

.note-g {
    top: 10px;
}

.note-a {
    top: 2px;
}

.note-b {
    top: -10px;
}

.note-d {
    top: -30px;
}

.controls {
    margin-top: -2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.control-btn {
    background: #ff3c1e;
    border: 1px solid transparent;
    color: var(--wht-clr);
    padding: 14px 28px;
    border-radius: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: "Space Grotesk", monospace;
}

.control-btn:hover {
    background: transparent;
    border: 1px solid var(--accent-clr);
}

.note-info {
    position: absolute;
    right: 0;
    top:30%;
    background: rgba(255, 60, 30, 0.08);
    border: 1px solid rgba(255, 60, 30, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.note-info.show {
    opacity: 1;
}

@media (max-width: 768px) {
    .music-player {
        width: 95%;
        padding: 20px;
    }

    .measures-container {
        gap: 15px;
    }

    .measure {
        padding: 0 10px;
        gap: 10px;
    }

    .note {
        font-size: 36px;
    }
}