/* The existing My Playlist glyph, state and order mark, scoped to fan cards. */
.cover-fan .fan-cover .fkn-fan-playlist-add {
    position:absolute; right:10px; bottom:10px; z-index:80;
    padding:0; margin:0; border:0; border-radius:0; background:none; box-shadow:none;
    color:#00ff99; font-family:inherit; font-size:22px; font-weight:bold; line-height:1;
    text-shadow:0 0 8px rgba(0,255,120,.8);
    opacity:calc(.75 * var(--fan-sheet-ink, 1));
    transition:opacity .2s, transform .2s, text-shadow .2s;
    pointer-events:auto; cursor:pointer; touch-action:manipulation;
}
.cover-fan .fan-cover:hover .fkn-fan-playlist-add,
.cover-fan .fan-cover .fkn-fan-playlist-add.added {
    opacity:var(--fan-sheet-ink, 1); transform:scale(1.15);
}
.cover-fan .fan-cover .fkn-fan-playlist-add.added {
    text-shadow:0 0 10px rgba(0,255,120,1), 0 0 22px rgba(0,255,120,.45);
}
.cover-fan .fan-cover .fkn-fan-playlist-add:focus-visible {
    outline:1px solid #9affbc; outline-offset:3px;
}
.cover-fan .fan-cover .fkn-fan-playlist-add[hidden] { display:none!important; }
/* A fine pointer gets a forgiving invisible target around the unchanged glyph.
 * The button remains on the cover's existing plane and within its clipping. */
@media(any-pointer:fine) {
    @media not all and (any-pointer:coarse) {
        .cover-fan .fan-cover .fkn-fan-playlist-add::before {
            content:""; position:absolute; left:50%; top:50%; width:44px; height:44px;
            transform:translate(-50%,-50%); background:transparent; pointer-events:auto;
        }
    }
}
/* Keep the left cover's control on its exposed outer edge, not beneath the
 * nearer central sheet. It stays inside the cover's existing physical plane. */
.cover-fan :is(.fan-1-left,.fan-2-left,.fan-3-left,.fan-4-left,.fan-5-left) .fkn-fan-playlist-add {
    left:10px; right:auto;
}
.cover-fan .fan-cover .playlistOrderBadge {
    position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:16;
    color:#fff; font-size:clamp(34px,5vw,66px); line-height:1; font-weight:300;
    text-shadow:0 2px 4px rgba(0,0,0,.95),0 0 6px rgba(0,0,0,.80),0 0 10px rgba(255,80,190,.42),0 0 16px rgba(150,80,255,.32);
    background:radial-gradient(circle,rgba(15,10,22,.52) 0%,rgba(15,10,22,.24) 48%,rgba(15,10,22,0) 72%);
    padding:10px 14px; border-radius:50%; pointer-events:none; user-select:none;
    opacity:var(--fan-sheet-ink, 1);
}

/* Existing floating island, isolated from the site's channel and player CSS. */
#fknMainPlaylist {
    position:fixed; right:18px; top:18px; z-index:200010;
    display:flex; flex-direction:column; align-items:stretch;
    max-width:min(430px,calc(100vw - 36px));
    opacity:0; visibility:hidden; transform:translateY(-8px);
    transition:opacity .24s ease,transform .24s ease,visibility .24s ease;
    font-family:monospace; letter-spacing:normal; line-height:normal;
}
#fknMainPlaylist[hidden] { display:none!important; }
#fknMainPlaylist.is-visible { opacity:1; visibility:visible; transform:translateY(0); }
#fknMainPlaylist button { box-sizing:border-box; font-family:inherit; margin:0; text-transform:none; }
#fknMainPlaylist .playlistIslandHead { display:flex; align-items:stretch; }
#fknMainPlaylist .playlistIslandMain,
#fknMainPlaylist .playlistIslandToggle {
    border:1px solid rgba(140,255,165,.28); color:#fff;
    background:linear-gradient(135deg,rgba(8,18,13,.92),rgba(11,9,18,.91));
    -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
    box-shadow:0 5px 22px rgba(0,0,0,.30),0 0 12px rgba(70,255,120,.08),0 0 16px rgba(190,80,255,.05);
}
#fknMainPlaylist .playlistIslandMain {
    min-width:198px; min-height:44px; display:grid;
    grid-template-columns:auto auto; grid-template-rows:auto auto; column-gap:9px;
    align-items:center; padding:10px 14px; border-radius:18px 0 0 18px;
    text-align:left; cursor:pointer;
}
#fknMainPlaylist .playlistIslandLabel { font-size:10px; line-height:1; letter-spacing:2px; color:rgba(190,255,205,.78); }
#fknMainPlaylist .playlistIslandCount {
    min-width:24px; height:24px; display:flex; align-items:center; justify-content:center;
    border-radius:50%; color:#fff; background:rgba(195,75,145,.58); font-size:12px; font-weight:700;
}
#fknMainPlaylist .playlistIslandNow {
    grid-column:1 / 3; display:flex; align-items:center; gap:8px; min-width:0;
    margin-top:5px; font-size:11px; line-height:1.1; color:rgba(255,255,255,.76);
}
#fknMainPlaylist .playlistIslandNow strong { flex:0 0 auto; color:#fff; font-size:12px; }
#fknMainPlaylist .playlistIslandNow span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
#fknMainPlaylist .playlistIslandNow strong[hidden] { display:none; }
#fknMainPlaylist .playlistIslandToggle {
    width:42px; border-left:0; color:rgba(255,255,255,.78); font-size:15px; cursor:pointer;
}
#fknMainPlaylist.is-open .playlistIslandToggle { transform:rotate(180deg); }
#fknMainPlaylist .playlistIslandPanel {
    display:none; width:100%; max-width:470px; max-height:310px;
    overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain;
    margin-top:6px; border:1px solid rgba(140,255,165,.22); border-radius:16px;
    background:linear-gradient(145deg,rgba(7,16,12,.96),rgba(12,8,18,.95));
    -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
    box-shadow:0 8px 30px rgba(0,0,0,.38),0 0 18px rgba(130,80,255,.07);
}
#fknMainPlaylist.is-open .playlistIslandPanel { display:block; }
#fknMainPlaylist .playlistIslandRow { display:flex; align-items:stretch; min-height:42px; border-bottom:1px solid rgba(255,255,255,.055); }
#fknMainPlaylist .playlistIslandRow:last-child { border-bottom:0; }
#fknMainPlaylist .playlistIslandRow.is-current { background:linear-gradient(90deg,rgba(80,255,120,.07),rgba(200,80,255,.06)); }
#fknMainPlaylist .playlistIslandTrack {
    flex:1; display:flex; align-items:center; gap:10px; min-width:0; border:0;
    background:transparent; color:#fff; padding:8px 10px; text-align:left; cursor:pointer;
}
#fknMainPlaylist .playlistIslandRowNumber { flex:0 0 22px; color:rgba(255,255,255,.58); font-size:10px; text-align:right; }
#fknMainPlaylist .playlistIslandRowTitle { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:11px; letter-spacing:.2px; color:rgba(255,255,255,.80); }
#fknMainPlaylist .playlistIslandRow.is-current .playlistIslandRowTitle { color:#fff; }
#fknMainPlaylist .playlistIslandRowRemove { width:36px; border:0; border-left:1px solid rgba(255,255,255,.05); background:transparent; color:rgba(255,145,195,.72); font-size:17px; font-weight:300; cursor:pointer; }
#fknMainPlaylist .playlistIslandRowRemove:active { background:rgba(120,20,55,.28); }
#fknMainPlaylist .playlistIslandPlaying { flex:0 0 auto; color:#66ff88; font-size:10px; line-height:1; text-shadow:0 0 4px rgba(80,255,120,.75),0 0 9px rgba(60,255,100,.30); }
#fknMainPlaylist .playlistIslandPlaying[hidden] { display:none; }
#fknMainPlaylist button:focus-visible { outline:1px solid #9affbc; outline-offset:-3px; }
.fkn-playlist-notice { position:fixed; left:50%; bottom:max(20px,env(safe-area-inset-bottom)); transform:translate(-50%,8px); z-index:200011; max-width:calc(100vw - 32px); padding:10px 14px; border-radius:12px; color:#e6ffed; background:rgba(6,16,10,.94); font:13px/1.4 Arial,Helvetica,sans-serif; text-align:center; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .18s,transform .18s; }
.fkn-playlist-notice.is-visible { opacity:1; visibility:visible; transform:translate(-50%,0); }
@media(max-width:720px), (any-pointer:coarse) {
    .cover-fan .fan-cover .fkn-fan-playlist-add { right:4px; bottom:4px; width:44px; height:44px; line-height:44px; display:flex; align-items:center; justify-content:center; font-size:26px; }
    .cover-fan :is(.fan-1-left,.fan-2-left,.fan-3-left,.fan-4-left,.fan-5-left) .fkn-fan-playlist-add { left:4px; right:auto; }
}
@media(max-width:720px) {
    .cover-fan .fan-cover .playlistOrderBadge { font-size:42px; padding:8px 11px; }
    #fknMainPlaylist { top:max(10px,env(safe-area-inset-top)); right:10px; max-width:calc(100vw - 20px); }
    #fknMainPlaylist .playlistIslandMain { min-width:168px; max-width:290px; padding:9px 11px; }
    #fknMainPlaylist .playlistIslandToggle { width:38px; }
    #fknMainPlaylist .playlistIslandPanel { max-height:260px; }
    #fknMainPlaylist .playlistIslandRow { min-height:39px; }
    #fknMainPlaylist .playlistIslandTrack { padding:7px 8px; }
}
@media(prefers-reduced-motion:reduce) {
    #fknMainPlaylist,.fkn-playlist-notice,.cover-fan .fan-cover .fkn-fan-playlist-add { transition:none; }
}
