/* 배경 블러 효과 줄임 (0.8 정도로 조절) */
.avocado-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: blur(10px) brightness(0.5); /* 50px -> 20px로 수정하여 더 잘 보이게 함 */
    z-index: -1; transform: scale(1.05);
}

.player-container { position: relative; z-index: 10; min-height: 100vh; padding: 60px 20px; color: #fff; }

/* 관리자 스타일 버튼 (EDIT와 통일) */


.btn-admin, .btn-admin-style { 
    background: none;
    font-size: 11px; color: rgba(255,255,255,0.6); text-decoration: none; 
    border: 1px solid rgba(255,255,255,0.3); padding: 5px 12px; 
    border-radius: 2px; cursor: pointer; transition: 0.3s;
    letter-spacing: 1px;
    margin-right: auto;
    
}
.btn-admin:hover, .btn-admin-style:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-admin-style.on { background: #fff !important; color: #000 !important; border-color: #fff; }



/* 시각적 영역: 네모 커버 + 바이닐 */
.visual-area { flex: 1; display: flex; justify-content: center; min-width: 450px; }
.album-square-case { position: relative; width: 350px; height: 350px; }

.square-cover { 
    position: absolute; left: 0; top: 0; width: 350px; height: 350px; 
    z-index: 5; box-shadow: 10px 10px 30px rgba(0,0,0,0.5); object-fit: cover;
}

.vinyl-disk {
    position: absolute; right: -80px; top: 10px; /* 커버 뒤로 살짝 삐져나옴 */
    width: 330px; height: 330px; background: #111; border-radius: 50%;
    background: repeating-radial-gradient(circle, #222, #222 2px, #000 7px);
    z-index: 1; transition: 0.5s ease;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
.vinyl-disk.playing { animation: spin 8s linear infinite; right: -120px; /* 재생 시 더 밖으로 나옴 */ }

.vinyl-center-art {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 120px; height: 120px; border-radius: 50%; background-size: cover; border: 2px solid #111;
}

/* 정보 및 리스트 스타일 */
.content-wrap { flex: 1.2; }
.char-name-text { font-size: 32px; font-weight: 200; margin: 0;margin-bottom: 20px; }
.sub-desc { font-size: 14px; opacity: 0.5; margin-bottom: 40px; }

.track-row { display: flex; 
    padding: 15px; 
    cursor: pointer; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    gap: 15px; /* 요소 간 간격을 명시적으로 부여 */ }
.track-row.active {
    background: rgba(255,255,255,0.1); color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px rgba(255,255,255,0.5);
}

.btns {margin-top: 10px;}
.btns button.on { background: #fff !important; color: #000 !important; box-shadow: 0 0 15px #fff; }

/* 목록 페이지 전용 레이아웃 */
.music-list-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.write-btn-wrap {
    text-align: right;
    margin-bottom: 40px;
}

/* 앨범 그리드 시스템 */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px 30px;
}

.album-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.album-cover-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    background: #111;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.album-cover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 하단 재생바 및 시간 위치 - 시간 상단 고정 버전 */
.status-bar { 
  margin-top: 80px; 
    max-width: 850px; 
    margin-left: auto; 
    margin-right: auto;
    position: relative;
    pointer-events: none;
}

/* 곡 제목 */
.status-bar > *:first-child { 
    font-size: 14px !important; 
    font-weight: 500;
    margin-bottom: 0px; 
    display: inline-block;
    color: #fff;
    pointer-events: none; 
}

/* 재생 시간*/
.time-wrap { 
    position: absolute;
    right: 0;
    bottom: 30px; 
    font-size: 12px; 
    font-family: 'Courier New', monospace; 
    opacity: 0.8;
    pointer-events: none; 
    z-index: 5;
}

/* 재생바 영역 */
.progress-wrap { 
    display: block; 
    margin-top: 10px; 
    position: relative;
    z-index: 100; 
    padding: 10px 0; 
}

.progress-outer { 
    width: 100%; 
    height: 4px; 
    background: rgba(255,255,255,0.2); 
    cursor: pointer; 
    position: relative;
}

.progress-inner { 
    width: 0%; 
    height: 100%; 
    background: #fff; 
    box-shadow: 0 0 10px #fff; 
}



/* 호버 효과 */
.album-item:hover .album-cover-box {
    transform: translateY(-10px);
}

.album-hover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.album-item:hover .album-hover-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 40px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.album-cover-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111; 
}

.album-cover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
    display: block;
}


/* 텍스트 정보 */
.album-info {
    margin-top: 15px;
    text-align: center;
}

.album-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-date {
    font-size: 12px;
    opacity: 0.5;
    letter-spacing: 1px;
}

.empty-list {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 0;
    opacity: 0.5;
}

/* 모바일 대응 */
@media(max-width: 480px) {
    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}