/* =========================================
   BOTTOM SHEET 統一スタイル (リスト背景薄め)
========================================= */

#homeTrackOverlay,
#albumTrackOverlay,
#artistTrackOverlay,
#favoriteOverlay,
#playlistSelectOverlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8); /* オーバーレイ暗め */
    backdrop-filter: blur(8px);
    z-index: 9998;
}

.album-bottom-sheet {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    transform: translateY(100%);
    opacity: 0;
    background: #111; /* ボトムシート暗め */
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    padding: 6px 0 40px; /* 下余白大きめ */
    box-shadow: 0 -20px 60px rgba(0,0,0,0.75);
    z-index: 9999;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .35s;
}

.album-bottom-sheet.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

/* 閉じるバー */
.album-bottom-sheet::before {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    margin: 20px auto 6px auto;
    border-radius: 999px;
    background: rgba(255,255,255,0.6);
}

/* =========================================
   LIST ITEMS
========================================= */

.album-bottom-sheet .menu-item,
#playlistSelectSheet .playlist-item {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .02em;
    color: #fff;
    background: rgba(255, 255, 255, 0.05); /* 通常時リスト背景を薄めに */
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: background .18s ease;
}

.album-bottom-sheet .menu-item:last-child,
#playlistSelectSheet .playlist-item:last-child {
    border-bottom: none;
}

.album-bottom-sheet .menu-item::after {
    content: "›";
    font-size: 17px;
    opacity: .35;
}

/* ホバー・アクティブはそのまま */
.album-bottom-sheet .menu-item:hover,
#playlistSelectSheet .playlist-item:hover {
    background: rgba(255,255,255,0.04);
}

.album-bottom-sheet .menu-item:active,
#playlistSelectSheet .playlist-item:active {
    background: rgba(255,255,255,0.07);
}

#playlistSelectSheet .sheet-title {
    padding: 4px 20px 4px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.38);
    text-align: left;
}

#playlistSelectSheet .playlist-list {
    max-height: 320px;
    overflow-y: auto;
}

#playlistSelectSheet .playlist-item small {
    margin-left: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

#playlistSelectSheet .playlist-empty {
    padding: 10px 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.38);
}

/* スクロールバー */
#playlistSelectSheet .playlist-list::-webkit-scrollbar {
    width: 4px;
}

#playlistSelectSheet .playlist-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.14);
    border-radius: 999px;
}

#playlistSelectSheet .playlist-list::-webkit-scrollbar-track {
    background: transparent;
}

/* =========================================
   MOBILE
========================================= */
@media screen and (max-width:490px) {
    .album-bottom-sheet {
        padding-bottom: 60px;
    }
    .album-bottom-sheet::before {
        width: 60px;
        height: 4px;
        margin-top: 20px;
        margin-bottom: 6px;
    }
    .album-bottom-sheet .menu-item,
    #playlistSelectSheet .playlist-item {
        min-height: 54px;
        padding-left: 16px;
        padding-right: 16px;
        font-size: 14px;
    }
    #playlistSelectSheet .sheet-title,
    #playlistSelectSheet .playlist-empty {
        padding-left: 16px;
        padding-right: 16px;
    }
}