@charset "UTF-8";
/* Recent 섹션 스타일 개선 */
.recent-section-header, .your-music-header { /* Added .your-music-header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0rem;
    position: relative; /* 안정적인 위치를 위해 추가 */
}

.recent-section-title, .your-music-title { /* Added .your-music-title */
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    flex: 1; /* 제목이 가능한 공간을 차지하도록 */
}

/* ========================================================== */
/* ▼▼▼ [추가] Your Songs, Artists 섹션 스타일 (PC/모바일) ▼▼▼ */
/* ========================================================== */

/* 1. 기본 스타일 (PC 화면용) */
#your-songs-section,
#your-artists-section {
    padding: 2rem 1.5rem; /* PC에서는 기존 여백 유지 */
    min-height: 100vh;    /* 최소 높이 유지 */
}

/* 2. 모바일 반응형 스타일 */
@media (max-width: 768px) {
    /* Your Songs, Artists 섹션의 모바일 좌우 여백만 제거 */
    #your-songs-section,
    #your-artists-section {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }
}
/* ========================================================== */
/* ▲▲▲ [추가] Your Songs, Artists 섹션 스타일 끝 ▲▲▲         */
/* ========================================================== */


#search-history-container {
    margin-top: -5px;
}

.recent-section-nav, .your-music-actions { /* Added .your-music-actions */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto; /* 오른쪽으로 정렬 */
    flex-shrink: 0; /* 버튼들이 줄어들지 않도록 */
}

.recent-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 36px; /* 약간 크기 증가 */
    height: 36px; /* 약간 크기 증가 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0; /* 버튼 크기 고정 */
}

.recent-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.05); /* 호버 시 약간 확대 */
}

.recent-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none; /* disabled 상태에서는 확대 효과 없음 */
}

.recent-nav-btn:active {
    transform: scale(0.95); /* 클릭 시 약간 축소 */
}

.search-history-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-history-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.search-history-content {
    flex-grow: 1;
    cursor: pointer;
}

.search-history-query {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.search-history-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.search-history-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-search-again {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-search-again:hover {
    transform: scale(1.05);
}

.btn-delete-history, .btn-delete-song { /* Added .btn-delete-song */
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.4rem; /* Adjusted padding for icon only */
    font-size: 0.8rem; /* Adjusted font-size */
    cursor: pointer;
    transition: all 0.2s ease;
    width: 30px; /* Fixed width for icon button */
    height: 30px; /* Fixed height for icon button */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-history:hover, .btn-delete-song:hover { /* Added .btn-delete-song hover */
    background: rgba(255, 99, 99, 0.2);
    color: #ff6b6b;
}

#your-recent-section {
    padding-top: 4rem !important; 
    margin-top: 0;
}

.content-navigation-wrapper {
    position: sticky;
    top: 0;
    z-index: 100; /* 검색결과보다 위에 있도록 조정 */
    background: rgba(0, 0, 0, 0.8); /* 예시와 유사하게 반투명 배경 */
    backdrop-filter: blur(10px); /* 블러 효과 */
}

#main-content {
   /* 플레이어 바 높이(약 90px)보다 넉넉하게 아래쪽 여백을 줍니다 */
   padding-bottom: 100px; 
}


/* ▼▼▼ 이퀄라이저 버튼 CSS ▼▼▼ */
#equalizer-button {
    position: relative;
    align-items: center;
    justify-content: center;
    display: none; /* JS로 제어 */
    width: 32px;
    height: 32px;
}

#equalizer-button.blinking-eq {
    animation: pulse-green 2s infinite;
    cursor: pointer;
}

#equalizer-button.is-on {
    cursor: default;
    animation: none;
}

.custom-eq-icon {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 18px;
    height: 18px;
}

.eq-bar-custom {
    width: 2px;
    height: 100%;
    background-color: #555;
    border-radius: 1px;
    position: relative;
}

.eq-slider-custom {
    width: 6px; 
    height: 6px;
    background-color: #999;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%); 
    transition: background-color 0.2s ease;
}

.eq-bar-custom:nth-child(1) .eq-slider-custom {
    top: calc(75% - 2px); 
}
.eq-bar-custom:nth-child(2) .eq-slider-custom {
    top: calc(25% + 2px);
}

#equalizer-button.blinking-eq .eq-slider-custom,
#equalizer-button.is-on .eq-slider-custom {
    background-color: #4ade80;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    #left-sidebar {
        display: none !important;
    }
    #app-container {
        margin-left: 0 !important;
    }
    body {
        padding-bottom: 80px !important;
    }
    
    /* 모바일에서 네비게이션 버튼 크기 조정 */
    .recent-nav-btn {
        width: 32px;
        height: 32px;
    }
    
    /* 모바일에서 헤더 간격 조정 */
    .recent-section-header, .your-music-header {
        margin-bottom: 1rem;
    }
    
    /* 모바일에서 섹션 제목 스타일 통합 조정 */
    .recent-section-title, .your-music-title,
    #discover-section h2,
    #your-songs-section h2,
    #your-artists-section h2 {
        font-size: 1.4rem !important; /* 데스크탑(2rem) 대비 30% 축소 및 인라인 스타일 오버라이드 */
        padding-left: 10px; /* 텍스트를 오른쪽으로 10px 이동 */
    }
}