/* =========================================
   LP 플레이어 및 플레이리스트 CSS
   글래스모피즘 · 앰비언트 톤
   ========================================= */


/* [SOUND ARCHIVE — 상단 바와 동일한 앰버 악센트] */
/* 모바일 초기 확대 방지: max-width 100%로 제한 */
#sect-playlist { max-width: 380px; width: 100%; margin: 0 auto; text-align: center; padding: 0 16px; box-sizing: border-box; }
#sect-playlist h2 { 
    font-family: var(--f-deco) !important; 
    letter-spacing: 4px; 
    font-size: 1.15rem; 
    font-weight: 300;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--c-accent);
}
.playlist-gramophone {
    width: 40px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(212, 165, 116, 0.4));
}

/* LP 플레이어 — 컨테이너 박스 제거, 레이아웃만 유지 */
.lp-player {
    position: relative;
    margin-bottom: 25px;
    padding: 0;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    contain: none; /* 파형이 밖으로 뻗어나가는 것을 허용 */
}
.lp-player::before,
.lp-player::after { content: none; display: none; }

/* 코너 장식 제거 (컨테이너 영역 제거에 따른 비표시) */
.lp-corner-tl, .lp-corner-tr, .lp-corner-bl, .lp-corner-br {
    display: none !important;
}

/* 왼쪽 섹션 (LP + 트랙정보 + 컨트롤) */
.lp-left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
}

/* 원형 파형 + 그라모폰 + 레코드 래퍼 — 캔버스는 뒤, 축음기·레코드는 앞 */
/* 모바일 초기 확대 방지: max-width 100%로 제한 */
.lp-record-with-soundwave {
    position: relative;
    width: 340px;
    height: 300px;
    max-width: 100%;
    margin: 0 auto 18px;
    overflow: visible;
    box-sizing: border-box;
}

/* 사운드웨이브 캔버스: 축음기 뒤(z-index 낮음), 파동 잘림 방지 — 앨범/축음기 대비 1.6배(160%) */
/* 모바일 초기 확대 방지: 기본값은 컨테이너 크기 제한, min-width는 데스크탑(1200px+)에서만 적용 */
.lp-record-with-soundwave .lp-soundwave-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 160%;
    height: 160%;
    max-width: calc(100vw - 32px);
    max-height: 100vh;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    overflow: visible !important; /* 다른 클래스의 hidden 속성을 무조건 무시 */
}

/* 그라모폰 + 레코드 컨테이너 — 캔버스보다 앞(z-index 높음) */
.lp-record-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* 그라모폰 본체 이미지 - 앞에 배치 */
.gramophone-body {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 5px 20px rgba(0,0,0,0.4));
    z-index: 2;
}

/* LP 디스크 - 그라모폰 왼쪽 뒤에서 1/3 겹치게
   바이닐 색은 JS에서 --lp-base, --lp-dark 로만 교체.
   광택(::before)·엣지(::after)·홈 패턴은 여기 고정(overlay). */
.lp-disc {
    --lp-base: #3a2818;
    --lp-dark: #1a100a;
    position: absolute;
    width: 180px;
    height: 180px;
    left: 20px;
    top: 50%;
    margin-top: -90px;
    border-radius: 50%;
    z-index: 1;
    background: 
        /* 중앙 구멍 */
        radial-gradient(circle at center, transparent 12%, var(--lp-dark) 13%),
        /* 레이블 영역 */
        radial-gradient(circle at center, transparent 30%, var(--lp-dark) 31%),
        /* 바이닐 홈 - 고정 오버레이(어두운 링만, 본색은 그대로 통과) */
        repeating-radial-gradient(circle at center, 
            transparent 0px, 
            rgba(0,0,0,0.5) 1px, 
            transparent 2px, 
            rgba(0,0,0,0.35) 3px, 
            transparent 4px
        ),
        /* 베이스 바이닐 색 (앨범 포인트 컬러로 JS가 --lp-base, --lp-dark 갱신) */
        radial-gradient(circle at center, var(--lp-base) 0%, var(--lp-dark) 100%);
    box-shadow: 
        inset 0 0 60px rgba(0,0,0,0.4);
    z-index: 1;
    transform: translateX(0) translateZ(0);
    -webkit-transform: translateX(0) translateZ(0);
    transition: 
        transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
        background 1.2s ease-in-out;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: strict;
}

/* LP 광택 효과 */
.lp-disc::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.08) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255,255,255,0.03) 100%
    );
    pointer-events: none;
}

/* LP 엣지 하이라이트 */
.lp-disc::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 
        inset 0 0 0 1px rgba(255,255,255,0.08),
        inset 0 0 0 3px rgba(0,0,0,0.3);
    pointer-events: none;
}


/* 슬라이딩 (디스크 이동) — 데스크탑 기본값 */
.lp-player.sliding .lp-disc {
    transform: translateX(-110px) translateZ(0);
}

/* 재생 시 LP 회전 — 데스크탑 기본값 */
.lp-player.playing .lp-disc {
    animation: lpSpin 1.8s linear infinite;
    transition: none; /* 애니메이션과 충돌 방지 */
}

@keyframes lpSpin {
    from { transform: translateX(-110px) rotate(0deg); }
    to { transform: translateX(-110px) rotate(360deg); }
}

/* LP 레이블 (중앙 원형 스티커) - 그라모폰용 */
.lp-label {
    position: absolute;
    width: 58px;
    height: 58px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 0 0 2px rgba(0,0,0,0.5),
        inset 0 0 15px rgba(0,0,0,0.4);
    z-index: 2;
}
.lp-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 중앙 스핀들 구멍 */
.lp-label::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #2a2a2a, #0a0a0a);
    border-radius: 50%;
    box-shadow: 
        inset 0 1px 2px rgba(0,0,0,0.8),
        0 0 0 1px rgba(60,60,60,0.5);
}

/* LP 재킷 (앨범 커버) - 그라모폰에서는 숨김 */
.lp-jacket {
    display: none;
    position: absolute;
    width: 200px;
    height: 200px;
    left: 5px;
    top: 25px;
    background: #1a1a1a;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 
        -3px 3px 15px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.05);
    z-index: 3;
    transition: transform 0.15s ease-out;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}
.lp-jacket img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 재킷 엣지 효과 */
.lp-jacket::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset -3px 0 8px rgba(0,0,0,0.15);
    pointer-events: none;
}

/* 호버 시 살짝 열림 */
.lp-jacket:hover {
    transform: translateX(-20px) translateZ(0);
}
/* 재생 시 더 열림 */
.lp-player.playing .lp-jacket {
    transform: translateX(-80px) translateZ(0);
}

/* 트랙 정보 — 상단 바 곡 정보와 동일 톤 */
.lp-track-info {
    text-align: center;
    margin-bottom: 12px;
    padding: 0 5px;
}
.lp-title {
    font-family: var(--f-sans) !important;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.lp-artist {
    font-family: var(--f-sans) !important;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 프로그레스 바 — 상단 바와 동일한 악센트 */
.lp-progress {
    margin-bottom: 12px;
    padding: 0 10px;
}
.lp-progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}
.lp-progress-fill {
    height: 100%;
    background: var(--c-accent);
    width: 0%;
    border-radius: 3px;
    position: relative;
    transition: width 0.1s linear;
}
.lp-progress-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
}
.lp-progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    font-family: var(--f-sans);
}

/* 컨트롤 — 상단 바 플레이어와 동일한 앰버 악센트 */
.lp-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}
.lp-controls button {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}
.lp-ctrl-side { 
    font-size: 1rem; 
    color: #000000;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 50%;
    border: 2px solid #000000;
    background-color: #fff;
}
.lp-ctrl-side i { line-height: 1; }

/* 이전 곡 버튼 - 사선 패턴 (왼쪽 위에서 오른쪽 아래로) */
.lp-controls .lp-ctrl-side:nth-child(2) {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 4px,
            rgba(0, 0, 0, 0.3) 4px,
            rgba(0, 0, 0, 0.3) 8px
        );
    background-size: 12px 12px;
}

.lp-controls .lp-ctrl-side:nth-child(2):hover {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 4px,
            rgba(0, 0, 0, 0.5) 4px,
            rgba(0, 0, 0, 0.5) 8px
        );
    transform: scale(1.05);
}

.lp-controls .lp-ctrl-side:nth-child(2):active {
    transform: scale(0.92);
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 4px,
            rgba(0, 0, 0, 0.7) 4px,
            rgba(0, 0, 0, 0.7) 8px
        );
}

/* 다음 곡 버튼 - 반대 사선 패턴 (오른쪽 위에서 왼쪽 아래로) */
.lp-controls .lp-ctrl-side:nth-child(4) {
    background-image: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 4px,
            rgba(0, 0, 0, 0.3) 4px,
            rgba(0, 0, 0, 0.3) 8px
        );
    background-size: 12px 12px;
}

.lp-controls .lp-ctrl-side:nth-child(4):hover {
    background-image: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 4px,
            rgba(0, 0, 0, 0.5) 4px,
            rgba(0, 0, 0, 0.5) 8px
        );
    transform: scale(1.05);
}

.lp-controls .lp-ctrl-side:nth-child(4):active {
    transform: scale(0.92);
    background-image: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 4px,
            rgba(0, 0, 0, 0.7) 4px,
            rgba(0, 0, 0, 0.7) 8px
        );
}

/* 셔플 버튼 스타일 - 검은 도트/배경 없음 */
.lp-shuffle-btn {
    background: transparent;
    border: 2px solid #000000;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 50%;
    color: #000000;
}

.lp-shuffle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.lp-shuffle-btn.active {
    background: rgba(0, 0, 0, 0.2);
    border-color: #000;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
    color: #000;
}

.lp-shuffle-btn.active i {
    color: #000;
}

.lp-shuffle-btn:active {
    transform: scale(0.92);
    background: rgba(0, 0, 0, 0.3);
}
.lp-ctrl-main {
    width: 48px;
    height: 48px;
    background-color: #fff;
    background-image: 
        radial-gradient(circle, rgba(0, 0, 0, 0.25) 1px, transparent 1.5px),
        linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
    background-size: 3px 3px, 100% 100%;
    background-repeat: repeat, no-repeat;
    border: none;
    border-radius: 50%;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.lp-ctrl-main i { 
    line-height: 1; 
    margin-left: 2px; 
    color: #000;
}
.lp-ctrl-main:hover { 
    transform: scale(1.05);
    background-image: 
        radial-gradient(circle, rgba(0, 0, 0, 0.5) 1px, transparent 1.5px),
        linear-gradient(180deg, #e0e0e0 0%, #707070 100%);
    background-size: 3px 3px, 100% 100%;
    background-repeat: repeat, no-repeat;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}
.lp-ctrl-main:hover i {
    color: #fff;
}
.lp-ctrl-main:active { 
    transform: scale(0.95);
    background-image: 
        radial-gradient(circle, rgba(0, 0, 0, 0.6) 1px, transparent 1.5px),
        linear-gradient(180deg, #505050 0%, #303030 100%);
    background-size: 3px 3px, 100% 100%;
    background-repeat: repeat, no-repeat;
}
.lp-player.playing .lp-ctrl-main {
    background-color: transparent;
    background-image: 
        radial-gradient(circle, rgba(0, 0, 0, 0.5) 1px, transparent 1.5px),
        linear-gradient(180deg, #e0e0e0 0%, #707070 100%);
    background-size: 3px 3px, 100% 100%;
    background-repeat: repeat, no-repeat;
    border: none;
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}
.lp-player.playing .lp-ctrl-main i { 
    margin-left: 0; 
    color: #fff;
}

/* 만화책 스크린톤 효과 (그라데이션 + 도트) */
.comic-tone-bg {
    /* 배경색 (혹시 이미지가 로드 안 될 때를 대비) */
    background-color: #ccc;

    /* 핵심: 배경 이미지 2장 겹치기 (콤마로 구분) */
    /* 1번: 윗면 (도트 패턴) - 먼저 써야 위에 올라옵니다 */
    background-image: 
        radial-gradient(circle, rgba(0, 0, 0, 0.25) 25%, transparent 25%),
    /* 2번: 아랫면 (회색 그라데이션) */
        linear-gradient(to bottom, #f0f0f0, #999999);

    /* 배경 크기 설정 (각각 대응) */
    /* 6px 6px은 도트의 밀도, auto는 그라데이션이 꽉 차게 */
    background-size: 6px 6px, auto; 

    /* (선택사항) 만화처럼 약간 거친 느낌을 주려면 패턴을 살짝 기울임 */
    /* transform: rotate(-2deg); */
}

/* 플레이리스트 — 공통 카툰 격자 스타일 */
.lp-playlist {
    background: #ffffff;
    /* 카툰 스타일 격자무늬 패턴 배경 */
    background-image: 
        repeating-linear-gradient(
            0deg,
            #000000 0px,
            #000000 1px,
            transparent 1px,
            transparent 40px
        ),
        repeating-linear-gradient(
            90deg,
            #000000 0px,
            #000000 1px,
            transparent 1px,
            transparent 40px
        );
    padding: 15px;
    border: 2px dashed #000000;
    border-radius: 12px;
    position: relative;
    height: 600px;
    max-height: 600px;
    overflow: hidden; /* 슬라이드 애니메이션을 위해 hidden으로 변경 */
    box-sizing: border-box;
    opacity: 1;
    box-shadow: none;
    filter: none;
    text-shadow: none;
    z-index: 1;
}

/* 플레이리스트 페이지 래퍼 */
.lp-playlist-pages-wrapper {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: 100%;
    height: 100%;
}

/* 플레이리스트 페이지 */
.lp-playlist-page {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* 플레이리스트 리스트 (기존 스타일 유지) */
#lp-playlist-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.lp-pl-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 10px;
    border-radius: 6px;
    margin-bottom: 4px;
    position: relative;
    border-left: 3px solid transparent;
}
.lp-pl-item:last-child { margin-bottom: 0; }
.lp-pl-item::before { content: none; }
.lp-pl-item:hover { background: rgba(255, 255, 255, 0.05); }
.lp-pl-item:active { background: rgba(255, 255, 255, 0.08); }
.lp-pl-item.active { 
    background: var(--c-accent-soft);
    border-left-color: var(--c-accent);
}
.lp-pl-thumb {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.lp-pl-text {
    flex: 1;
    text-align: left;
    min-width: 0;
}
.lp-pl-num {
    font-family: var(--f-serif) !important;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-right: 4px;
}
.lp-pl-title {
    font-family: var(--f-serif) !important;
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}
.lp-pl-item.active .lp-pl-title { font-weight: 600; }
.lp-pl-item.active .lp-pl-num { color: var(--c-accent); }
.lp-pl-artist {
    font-family: var(--f-sans) !important;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 3px;
    letter-spacing: 0.5px;
}
.lp-pl-icon {
    color: var(--c-accent);
    font-size: 0.65rem;
    opacity: 0;
}
.lp-pl-item.active .lp-pl-icon { opacity: 0.9; }

.rhetoric-box { margin-top: 40px; padding: 30px 15px; text-align: center; }
.rhetoric-text { font-family: var(--f-serif) !important; font-style: italic; font-size: 1rem; color: rgba(255,255,255,0.85); margin-bottom: 8px; word-break: keep-all; }
.rhetoric-sub { font-size: 0.7rem; color: rgba(212, 165, 116, 0.7); letter-spacing: 4px; text-transform: uppercase; font-family: var(--f-sans) !important; }

/* [태블릿/중간 화면 - LP 플레이어 레이아웃] */
@media (min-width: 768px) {
    .layout-wrapper {
        max-width: 1200px;
        gap: 40px;
    }
    .container {
        max-width: 1000px;
    }
    .sidebar {
        width: 180px;
        flex-shrink: 0;
    }
}

/* [데스크탑 - 배너 영역 분리] */
@media (min-width: 1200px) {
    /* 플레이리스트 섹션 - 와이드, 정렬 유지 */
    #sect-playlist {
        max-width: 100%;
        width: 100%;
        padding: 0 24px;
        box-sizing: border-box;
    }
    /* 플레이어 전체: 좌우 배치 (좌측: LP/그라모폰/파형, 우측: 플레이리스트) */
    .lp-player {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        padding: 0;
        gap: 40px;
        margin: 0 auto 25px;
        max-width: 1200px;
        width: 100%;
        overflow: visible;
        contain: none; /* 파형이 밖으로 뻗어나가는 것을 허용 */
        box-sizing: border-box;
    }
    /* LP 섹션 - 중앙 정렬 복구 */
    .lp-left-section {
        display: flex;
        flex-direction: column;
        align-items: center; /* 중앙 정렬 복구 */
        width: auto;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-left: 120px; /* 오른쪽으로 120px 이동 (60px 추가) */
        overflow: visible;
        box-sizing: border-box;
    }
    /* 파형+엘피+그라모폰 래퍼 — 데스크탑에서 400x350 고정, 좌측 정렬 */
    .lp-record-with-soundwave {
        width: 400px;
        height: 350px;
        margin: 70px 0 50px 0; /* 좌측 정렬, 상단 마진 유지, 하단 마진은 파형 확장 고려 */
        overflow: visible;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    /* 데스크탑에서만 파형 min-width/min-height 적용 (모바일 초기 확대 방지) */
    .lp-record-with-soundwave .lp-soundwave-ring {
        min-width: 544px;
        min-height: 480px;
    }
    .lp-record-with-soundwave .lp-soundwave-ring .soundwave-canvas {
        min-width: 400px;
        min-height: 400px;
    }
    .lp-record-container {
        width: 400px;
        height: 350px;
        margin: 0 0 50px 0; /* 좌측 정렬 */
        box-sizing: border-box;
    }
    .gramophone-body {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: 320px;
        height: 320px;
    }
    .lp-disc {
        width: 210px;
        height: 210px;
        left: 50%;
        margin-left: -105px;
        margin-top: -105px;
        transform: translate(-20px, -20px);
        transition: 
            transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
            background 1.2s ease-in-out;
    }
    .lp-player.sliding .lp-disc {
        transform: translate(-100px, -20px) translateZ(0);
    }
    /* 재생 시 LP 회전 — 데스크탑 */
    .lp-player.playing .lp-disc {
        animation: lpSpin 1.8s linear infinite;
        transition: none; /* 애니메이션과 충돌 방지 */
    }
    @keyframes lpSpin {
        from { transform: translate(-100px, -20px) rotate(0deg); }
        to { transform: translate(-100px, -20px) rotate(360deg); }
    }
    .lp-label {
        width: 60px;
        height: 60px;
    }
    .lp-track-info {
        margin-top: 60px; /* 파형 확장을 고려하여 갭 증가 */
        margin-bottom: 12px;
        /* 중앙 정렬 복구 */
    }
    .lp-title {
        font-size: 1.1rem;
    }
    .lp-artist {
        font-size: 0.85rem;
    }
    .lp-progress {
        width: 100%;
        max-width: 500px;
        margin-bottom: 12px;
        /* 중앙 정렬 복구 */
    }
    .lp-controls {
        margin-bottom: 25px;
        /* 중앙 정렬 복구 */
    }
    /* 플레이리스트 컨테이너 - 데스크탑 (높이만 조정) */
    .lp-playlist {
        height: 750px;
        max-height: 750px;
    }
    /* LP 앨범 아이템 (자켓만 표시) */
    .lp-pl-item {
        flex-shrink: 0;
        width: auto; /* 직사각형 컨테이너 제거 - 자켓 크기만큼만 */
        height: auto; /* 높이도 자동 */
        margin-bottom: -140px; /* 솔리테어 스타일 겹침 - 자켓의 대부분이 겹쳐서 약 40px만 보임 */
        padding: 0;
        
        display: flex;
        flex-direction: column; /* 세로 배치 (자켓만) */
        align-items: center;
        justify-content: center;
        
        /* 배경 제거 (자켓만 보이게) */
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        
        /* 애니메이션 설정 */
        transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    z-index 0s; /* z-index는 즉시 변경 */
        cursor: pointer;
        position: relative;
        transform-origin: center bottom;
        z-index: 2;
        /* 호버 영역 안정화를 위한 추가 설정 */
        pointer-events: auto;
    }
    /* [핵심] 호버 시 쑥 올라오는 효과 (Digging) - 이동 거리 감소 */
    .lp-pl-item:hover {
        transform: translateY(-30px) scale(1.05); /* 이동 거리 감소, 스케일도 약간만 */
        z-index: 100; /* 제일 위로 */
        /* margin-bottom은 유지하여 레이아웃 변화 최소화 */
    }
    /* 활성화(재생 중) 된 앨범 */
    .lp-pl-item.active {
        transform: translateY(-10px) scale(1.02); /* 살짝 올라와 있음 */
        z-index: 10;
    }
    .lp-pl-item.active:hover {
        transform: translateY(-30px) scale(1.05);
        z-index: 100;
    }
    /* 앨범 커버 (자켓만 표시) */
    .lp-pl-thumb {
        width: 180px; /* 자켓 크기 대폭 증가 */
        height: 180px;
        border-radius: 4px;
        object-fit: cover;
        margin: 0;
        box-shadow: 
            0 8px 20px rgba(0,0,0,0.6),
            0 2px 6px rgba(0,0,0,0.4),
            inset 0 1px 0 rgba(255,255,255,0.1); /* 자켓 광택 효과 */
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 2px solid rgba(0,0,0,0.3); /* 자켓 테두리 */
    }
    /* 호버 시 자켓 강조 (아이템의 scale과 함께 작동) */
    .lp-pl-item:hover .lp-pl-thumb {
        box-shadow: 
            0 12px 30px rgba(0,0,0,0.8),
            0 4px 10px rgba(0,0,0,0.5),
            inset 0 1px 0 rgba(255,255,255,0.15);
    }
    /* 활성화된 자켓 강조 */
    .lp-pl-item.active .lp-pl-thumb {
        box-shadow: 
            0 10px 25px rgba(212, 165, 116, 0.4),
            0 4px 10px rgba(212, 165, 116, 0.3),
            inset 0 1px 0 rgba(255,255,255,0.15);
        border-color: rgba(212, 165, 116, 0.5);
    }
    /* 텍스트 정보 숨김 (자켓만 표시) */
    .lp-pl-text {
        display: none !important; /* 자켓만 보이도록 텍스트 숨김 */
    }
    .lp-pl-title,
    .lp-pl-artist {
        display: none !important;
    }
    /* =========================================
       플레이리스트 아이템 z-index 규칙 (곡이 많아질 때 대비)
       
       규칙:
       1. 첫 번째 아이템: z-index: 1 (맨 밑에 깔린 느낌)
       2. 두 번째부터 열 번째까지: 순차적으로 z-index 증가 (2, 3, 4, ..., 10)
       3. 열 번째 이후: 모두 z-index: 10으로 제한 (계층 구조 유지)
       4. 호버 시: z-index: 100 (최상위)
       5. 활성화 시: z-index: 10 (호버보다 낮지만 일반 아이템보다 높음)
       6. 활성화 + 호버: z-index: 100 (최상위)
       
       이 규칙으로 곡이 몇 개든 일관된 겹침 효과 유지
       ========================================= */
    
    /* 첫 번째 아이템 - 맨 밑에 깔린 느낌 (z-index 낮춤) */
    .lp-playlist .lp-pl-item:first-child {
        margin-bottom: -140px; /* 첫 번째도 동일하게 겹침 */
        z-index: 1; /* 맨 밑에 깔린 느낌 */
    }
    
    /* 두 번째부터 열 번째까지: 순차적으로 z-index 증가 */
    .lp-playlist .lp-pl-item:nth-child(2) { z-index: 2; }
    .lp-playlist .lp-pl-item:nth-child(3) { z-index: 3; }
    .lp-playlist .lp-pl-item:nth-child(4) { z-index: 4; }
    .lp-playlist .lp-pl-item:nth-child(5) { z-index: 5; }
    .lp-playlist .lp-pl-item:nth-child(6) { z-index: 6; }
    .lp-playlist .lp-pl-item:nth-child(7) { z-index: 7; }
    .lp-playlist .lp-pl-item:nth-child(8) { z-index: 8; }
    .lp-playlist .lp-pl-item:nth-child(9) { z-index: 9; }
    .lp-playlist .lp-pl-item:nth-child(10) { z-index: 10; }
    
    /* 열 번째 이후 모든 아이템: z-index: 10으로 제한 (계층 구조 유지) */
    .lp-playlist .lp-pl-item:nth-child(n+11) {
        z-index: 10;
    }
    /* 마지막 아이템 처리 (곡이 몇 개든 항상 적용) */
    .lp-playlist .lp-pl-item:last-child {
        margin-bottom: 0; /* 마지막은 겹침 없음 */
        padding-bottom: 20px; /* 하단 여백으로 스크롤 시 마지막 곡이 잘리지 않도록 */
    }
    /* 스크롤바 커스텀 */
    /* 페이지네이션 사용 시 스크롤바 숨김 */
    .lp-playlist::-webkit-scrollbar { display: none; }
    .lp-playlist { -ms-overflow-style: none; scrollbar-width: none; }
    
    .lp-playlist::-webkit-scrollbar {
        width: 6px;
    }
    .lp-playlist::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.2);
        margin: 10px 0;
    }
    .lp-playlist::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.4);
        border-radius: 3px;
    }
}

/* LP 모바일 세팅은 mobile.css의 768px/440px 블록으로 통합됨 */

/* 사운드웨이브 비주얼라이저 (LP 플레이어) — 앰비언트 보조 */
.lp-soundwave {
    width: 100%;
    height: 56px;
    margin: 14px 0 12px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.lp-soundwave .soundwave-canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

/* 원형 너울 파형 — canvas는 축음기 뒤(z-index: 0), 도넛 형태로 중앙 비움 */
.lp-soundwave-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: 200px;
    min-height: 200px;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 0;
    pointer-events: none;
}
/* lp-record-with-soundwave 안에서만 캔버스 확대 규칙 적용(160% 컨테이너 내부) */
/* 모바일 초기 확대 방지: 기본값은 뷰포트 제한, min-width는 데스크탑(1200px+)에서만 적용 */
.lp-record-with-soundwave .lp-soundwave-ring .soundwave-canvas {
    display: block;
    width: 100%;
    height: 100%;
    max-width: calc(100vw - 32px);
    max-height: 100vh;
    border-radius: 0;
    pointer-events: none;
}

.soundwave-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.soundwave-wrap .soundwave-canvas {
    border-radius: 8px;
    height: 80px;
}

/* [모바일 최적화] */
@media (max-width: 950px) {
    /* PLAYLIST 메뉴 숨김 (상단 바 리스트 버튼으로 대체) */
    nav#main-nav a#nav-playlist {
        display: none;
    }
}
/* LP 모바일(768px/440px) 세팅은 mobile.css에 통합됨 */

/* [만화 스크린톤 버튼 공통 스타일] */
/* 엘피 컨테이너 밑 버튼 - 검은색 배경에 흰 화살표 */
.next-album-btn,
.back-album-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #000000;
    border-radius: 50%;
    
    /* 텍스트/아이콘 색상 */
    color: #ffffff;
    font-size: 1.2rem;
    
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;

    /* 검은색 배경 */
    background-color: #000000;
}

.next-album-btn i,
.back-album-btn i {
    color: #ffffff;
}

/* [호버 효과] 마우스 올리면 살짝 커짐 */
.next-album-btn:hover,
.back-album-btn:hover {
    transform: scale(1.1);
    background-color: #333333;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

/* [클릭 효과] 눌렀을 때 */
.next-album-btn:active,
.back-album-btn:active {
    transform: scale(0.95);
    background-color: #000000;
}
