* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Pretendard Variable", "Pretendard", -apple-system, sans-serif;
    background-color: #FFFFFF; /* 배경 화이트 고정 */
    color: #111111; /* 텍스트 딥 블랙 */
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center; /* 수직 중앙 정렬 */
    overflow: hidden;
}

/* 배경 레이어 스타일 */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 콘텐츠 뒤로 보냄 */
    background-color: #ffffff; /* 초기 배경 */
    transition: background-color 0.5s ease;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: -10%; /* 블러 처리에 따른 여백 */
    left: -10%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    filter: blur(40px) brightness(0.7); /* 블러와 밝기 조절 */
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* 배경이 바뀔 때 부드럽게 나타나도록 함 */
.bg-image.active {
    opacity: 0.5; /* 앨범 커버 배경의 투명도 조절 */
}

/* 배경이 어두워지므로 텍스트 색상 대응 (선택 사항) */
.main-title, .album-title, .nav-btn, p {
    color: #111; /* 화이트 배경일 때 */
}

/* 배경에 이미지가 깔렸을 때 텍스트가 잘 보이게 하려면 body에 클래스를 추가해 조절할 수 있습니다 */
body.has-bg {
    color: #ffffff;
}
body.has-bg .main-title, 
body.has-bg .album-title, 
body.has-bg .nav-btn,
body.has-bg p {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
    z-index: 100;
    word-break: keep-all;
    font-size: 0.875rem;

}

/* --- Layout Container --- */
.container {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px; /* 요소 간 간격 */
}

/* --- Title --- */
.main-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000;
    margin-bottom: 10px;
}

/* --- Album Cover Area --- */
.album-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    /* 모바일 대응: 화면 폭이 좁을 경우 */
    max-width: 75vw;
    max-height: 75vw;
    
    cursor: pointer;
    perspective: 1000px;
}

.album-art {
    width: 100%;
    height: 100%;
    border-radius: 8px; /* 모던함을 위해 둥글기 살짝 줄임 */
    object-fit: cover;
    /* 화이트 배경에 어울리는 부드러운 그림자 */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, box-shadow 0.4s ease;
}

@media (hover: hover) {
    .album-wrapper:hover .album-art {
        transform: translateY(-8px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
    }
}

.album-wrapper:active .album-art {
        transform: scale(0.97);
}

.fade-out {
    opacity: 0;
    transform: scale(0.96);
}

/* --- Info Area --- */
.info-area {
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.album-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
    transition: opacity 0.3s ease;
}

.album-date {
    font-size: 14px;
    color: #888;
    font-weight: 400;
    letter-spacing: 0;
    transition: opacity 0.3s ease;
}

/* --- Navigation Buttons --- */
.nav-btn {
    background: transparent;
    border: none;
    color: #111;
    width: 48px;
    height: 48px;
    cursor: pointer;
    opacity: 0; /* 평소에는 숨김 */
    transition: opacity 0.3s, transform 0.2s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 앨범 커버 근처에 마우스 올리면 버튼 표시 */
.container:hover .nav-btn {
    opacity: 0.2;
}
.nav-btn:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* 모바일에서는 버튼 항상 살짝 보이게 or 아예 숨기고 스와이프 유도 */
@media (max-width: 768px) {
    .nav-btn { display: none; } /* 모바일은 스와이프로 */
}

/* --- Indicator --- */
.indicator {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #E0E0E0;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
    background-color: #111;
    transform: scale(1.1);
}