/* =========================================
   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),
        0 2px 15px rgba(0,0,0,0.5);
    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;
}

@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: rgba(255, 255, 255, 0.5);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
}
.lp-ctrl-side i { line-height: 1; }
.lp-ctrl-side:hover { color: var(--c-accent); }
.lp-ctrl-side:active { transform: scale(0.92); }
.lp-ctrl-main {
    width: 48px;
    height: 48px;
    background: var(--c-accent) !important;
    border: none !important;
    border-radius: 50%;
    color: #1a1f2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s !important;
}
.lp-ctrl-main i { line-height: 1; margin-left: 2px; }
.lp-ctrl-main:hover { 
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(212, 165, 116, 0.5);
}
.lp-ctrl-main:active { transform: scale(0.95); }
.lp-player.playing .lp-ctrl-main {
    background: var(--c-accent) !important;
    border: none !important;
    color: #1a1f2e;
    box-shadow: 0 0 12px rgba(212, 165, 116, 0.5);
}
.lp-player.playing .lp-ctrl-main i { margin-left: 0; }

/* 플레이리스트 — 상단 바 / 드롭다운과 동일한 앰버 악센트 */
.lp-playlist {
    background: transparent;
    border-radius: 8px;
    padding: 10px 8px;
    max-height: 160px;
    overflow: hidden; /* 슬라이드 애니메이션을 위해 hidden으로 변경 */
    border: 1px solid rgba(212, 165, 116, 0.25);
    position: relative;
}

/* 플레이리스트 페이지 래퍼 */
.lp-playlist-pages-wrapper {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* 플레이리스트 페이지 */
.lp-playlist-page {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0;
}

/* 플레이리스트 리스트 (기존 스타일 유지) */
#lp-playlist-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
/* 페이지네이션 사용 시 스크롤바 숨김 */
.lp-playlist::-webkit-scrollbar { display: none; }
.lp-playlist { -ms-overflow-style: none; scrollbar-width: none; }

.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: 100px; /* 자켓 컨테이너와 적당한 여백을 위해 오른쪽으로 이동 */
        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: 544px;
        min-height: 480px;
    }
    .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);
    }
    @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;
        /* 중앙 정렬 복구 */
    }
    /* 플레이리스트 - 우측 사이드, 나무 상자(Wooden Crate) 디자인 (모바일과 동일, 격자무늬 없음) */
    .lp-playlist {
        width: auto;
        max-width: 320px;
        height: 700px; /* 모바일 500px 비율 참조하여 데스크탑 높이 증가 */
        min-height: 700px;
        max-height: none;
        padding: 24px 16px;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-y: auto;
        overflow-x: hidden;
        gap: 0;
        align-items: center; /* 중앙 정렬 */
        position: sticky;
        top: 20px;
        background: linear-gradient(180deg, #3e2723 0%, #281a14 100%);
        border: 10px solid #5d4037;
        border-radius: 4px;
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.6),
            inset 0 8px 25px rgba(0, 0, 0, 0.7),
            inset 0 0 80px rgba(93, 64, 55, 0.2);
        scrollbar-width: thin;
        -ms-overflow-style: auto;
    }
    .lp-playlist::before,
    .lp-playlist::after { 
        content: none; 
        display: none; 
    }
    .lp-pl-item {
        flex-shrink: 0;
        width: 120px;
        padding: 0;
        margin-bottom: -100px; /* 모바일 참조: 솔리테어 카드처럼 겹침 (모바일 -110px의 데스크탑 비율) */
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        cursor: pointer;
        transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), z-index 0s;
        z-index: 1;
        background: transparent !important;
        border-left: none !important;
        border-radius: 0;
        transform: none; /* z 방향 변화 제거 - 평면으로 */
        transform-origin: center bottom;
    }
    .lp-pl-item:hover {
        transform: translateY(-25px); /* z 방향 변화 없이 위로만 이동 */
        z-index: 100;
        background: transparent !important;
    }
    .lp-pl-item.active {
        transform: translateY(-8px); /* 활성화 시 약간 위로 */
        z-index: 10;
        background: transparent !important;
    }
    .lp-pl-item.active:hover {
        transform: translateY(-25px); /* 활성화 상태에서도 호버 시 위로만 */
        z-index: 100;
        background: transparent !important;
    }
    .lp-pl-item:active {
        background: transparent !important;
    }
    .lp-pl-item::before {
        display: none;
    }
    .lp-pl-thumb {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
        border-radius: 4px;
        object-fit: cover;
        box-shadow: 
            0 6px 16px rgba(0, 0, 0, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.3),
            inset -1px 0 4px rgba(0, 0, 0, 0.15);
        transition: box-shadow 0.4s ease;
    }
    .lp-pl-item:hover .lp-pl-thumb {
        box-shadow: 
            0 10px 24px rgba(0, 0, 0, 0.6),
            0 4px 8px rgba(0, 0, 0, 0.4),
            inset -1px 0 4px rgba(0, 0, 0, 0.15);
    }
    .lp-pl-item.active .lp-pl-thumb {
        box-shadow: 
            0 12px 28px rgba(212, 165, 116, 0.5),
            0 6px 12px rgba(212, 165, 116, 0.3),
            inset -1px 0 4px rgba(0, 0, 0, 0.15);
    }
    .lp-pl-info {
        width: 100%;
        text-align: center;
        margin-top: 8px;
        padding: 0 4px;
    }
    .lp-pl-title {
        font-size: 0.75rem;
        white-space: normal;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: center;
    }
    .lp-pl-artist {
        font-size: 0.65rem;
        text-align: center;
        margin-top: 4px;
    }
    .lp-pl-icon {
        display: none;
    }
    /* 스크롤바 — 나무 상자 톤 (base display:none override) */
    .lp-playlist::-webkit-scrollbar {
        width: 6px;
    }
    .lp-playlist::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }
    .lp-playlist::-webkit-scrollbar-thumb {
        background: rgba(93, 64, 55, 0.6);
        border-radius: 3px;
    }
    .lp-playlist::-webkit-scrollbar-thumb:hover {
        background: rgba(93, 64, 55, 0.8);
    }
    /* z-index 규칙 - 모바일 참조: 순차적 증가 */
    .lp-playlist .lp-pl-item:first-child {
        margin-bottom: -100px;
        z-index: 1;
    }
    .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; }
    .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 모바일 세팅은 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에 통합됨 */
