/* Our Playlists page - neon green theme (shell colours come from the variables below) */
:root {
    --accent: #1df08a;
    --accent-start: #5bffb4;
    --accent-end: #00c466;
    --accent-rgb: 29,240,138;
}

.content.pl-page {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4vh 5vh 6vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-color: #000;
    background-image:
        linear-gradient(180deg, rgba(0,0,0,0.80) 0%, rgba(0,8,4,0.86) 100%),
        url("https://itxrecordlabel.in/Itx-jungle-logo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #e9f5ee;
    font-family: 'Outfit', 'Oswald', sans-serif;
}
.content.pl-page::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (min-width: 769px) and (min-height: 501px) {
    .content.pl-page { background-attachment: fixed; }
}

.pl-wrap { max-width: 178vh; margin: 0 auto; }

/* ---- hero ---- */
.pl-eyebrow { display: flex; align-items: center; gap: 1.2vh; font: 600 1.45vh 'Outfit', sans-serif; letter-spacing: 0.45vh; color: #fff; }
.pl-dot { width: 1.1vh; height: 1.1vh; border-radius: 50%; background: var(--accent); box-shadow: 0 0 1.4vh var(--accent); }
.pl-title { margin: 1.6vh 0 1.8vh; font: 700 7.4vh/0.98 'Oswald', sans-serif; text-transform: uppercase; color: #fff; letter-spacing: 0.1vh; }
.pl-title span { color: var(--accent); text-shadow: 0 0 2.4vh rgba(var(--accent-rgb), 0.45); }
.pl-lead { margin: 0; max-width: 78vh; font: 400 1.6vh/1.6 'Outfit', sans-serif; color: #f1f7f3; }

/* ---- panel ---- */
.pl-panel {
    margin-top: 4vh; padding: 2vh;
    border: 0.18vh solid rgba(var(--accent-rgb), 0.55); border-radius: 1.8vh;
    background: rgba(2, 10, 6, 0.55);
    -webkit-backdrop-filter: blur(0.5vh); backdrop-filter: blur(0.5vh);
    box-shadow: 0 0 4vh rgba(var(--accent-rgb), 0.10), inset 0 0 3vh rgba(var(--accent-rgb), 0.05);
}
.pl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 2vh; margin-bottom: 2vh; flex-wrap: wrap; }
.pl-count { font: 500 1.35vh 'Outfit', sans-serif; letter-spacing: 0.25vh; color: #9bb3a6; text-transform: uppercase; }

/* ---- platform dropdown ---- */
.pl-select { position: relative; }
.pl-select-btn {
    display: flex; align-items: center; gap: 1.3vh; min-width: 21vh; padding: 1.2vh 1.6vh;
    background: #0a0f0c; color: var(--accent);
    border: 0.15vh solid rgba(var(--accent-rgb), 0.35); border-radius: 1vh;
    font: 600 1.6vh 'Outfit', sans-serif; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.pl-select-btn:hover, .pl-select-btn[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 1.6vh rgba(var(--accent-rgb), 0.25); }
.pl-select-name { flex: 1; text-align: left; }
.pl-chev { width: 2vh; height: 2vh; color: #cfe9db; transition: transform .15s; }
.pl-select-btn[aria-expanded="true"] .pl-chev { transform: rotate(180deg); }
.pl-ic { width: 3.2vh; height: 3.2vh; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pl-ic img { width: 1.9vh; height: 1.9vh; filter: brightness(0); }

.pl-select-menu {
    position: absolute; z-index: 20; top: calc(100% + 0.8vh); left: 0; min-width: 100%;
    margin: 0; padding: 0.6vh; list-style: none;
    background: #070b09; border: 0.15vh solid rgba(var(--accent-rgb), 0.45); border-radius: 1.2vh;
    box-shadow: 0 1.5vh 4vh rgba(0,0,0,0.7);
}
.pl-select-menu[hidden] { display: none; }
.pl-opt { display: flex; align-items: center; gap: 1.2vh; padding: 1vh 1.2vh; border-radius: 0.8vh; cursor: pointer; font: 500 1.5vh 'Outfit', sans-serif; color: #e9f5ee; white-space: nowrap; }
.pl-opt:hover, .pl-opt:focus-visible, .pl-opt[aria-selected="true"] { background: rgba(var(--accent-rgb), 0.14); color: var(--accent); outline: none; }
.pl-opt .pl-ic { width: 2.8vh; height: 2.8vh; }
.pl-opt .pl-ic img { width: 1.6vh; height: 1.6vh; }
.pl-opt-n { margin-left: auto; padding-left: 2vh; font-size: 1.2vh; color: #7f978a; }

/* ---- cards ---- */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(27vh, 1fr)); gap: 2vh; }

.pl-card {
    position: relative; display: flex; flex-direction: column;
    background: #090c0a; color: #fff;
    border: 0.12vh solid rgba(255,255,255,0.14); border-radius: 1vh; overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    animation: plIn .45s ease both;
}
.pl-card:hover, .pl-card:focus-within { transform: translateY(-0.7vh); border-color: var(--accent); box-shadow: 0 1vh 3vh rgba(var(--accent-rgb), 0.22); }
@keyframes plIn { from { opacity: 0; transform: translateY(1.4vh); } to { opacity: 1; transform: none; } }

.pl-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; outline: none; }
.pl-cover { position: relative; aspect-ratio: 6 / 5; background: #050706; overflow: hidden; }
.pl-cover > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.pl-card:hover .pl-cover > img { transform: scale(1.05); }
.pl-cover-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, rgba(var(--accent-rgb), 0.25), #050706 70%); color: var(--accent); font: 700 5vh 'Oswald', sans-serif; }
.pl-badge { position: absolute; top: 1.2vh; right: 1.2vh; width: 3.2vh; height: 3.2vh; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 1.2vh rgba(0,0,0,0.5); }
.pl-badge img { width: 1.9vh; height: 1.9vh; filter: brightness(0); }

.pl-prev {
    position: absolute; left: 1.2vh; top: 1.2vh; z-index: 2;
    display: inline-flex; align-items: center; gap: 0.7vh; padding: 0.7vh 1.2vh;
    background: rgba(0,0,0,0.72); color: var(--accent); border: 0.12vh solid rgba(var(--accent-rgb), 0.6); border-radius: 2vh;
    font: 600 1.15vh 'Outfit', sans-serif; letter-spacing: 0.15vh; cursor: pointer;
    -webkit-backdrop-filter: blur(0.4vh); backdrop-filter: blur(0.4vh);
}
.pl-prev:hover { background: var(--accent); color: #04100a; }

.pl-body { display: flex; flex-direction: column; gap: 0.9vh; padding: 1.8vh 1.8vh 1.6vh; flex: 1; }
.pl-body h3 { margin: 0; font: 700 2vh/1.15 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.1vh; }
.pl-desc { margin: 0; font: 400 1.35vh/1.5 'Outfit', sans-serif; color: #d3dcd7; min-height: 4.05vh; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pl-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 1.2vh; }
.pl-play { display: inline-flex; align-items: center; gap: 0.9vh; font: 600 1.3vh 'Outfit', sans-serif; letter-spacing: 0.2vh; color: var(--accent); }
.pl-play svg { width: 2.5vh; height: 2.5vh; }
.pl-fol { text-align: right; font: 700 1.4vh/1.2 'Outfit', sans-serif; color: #fff; }
.pl-fol small { display: block; font: 500 0.95vh 'Outfit', sans-serif; letter-spacing: 0.2vh; color: #aebbb4; }

.pl-skel { aspect-ratio: 6 / 7.6; border-radius: 1vh; background: linear-gradient(100deg, #0c120f 30%, #16211b 50%, #0c120f 70%); background-size: 200% 100%; animation: plSh 1.3s linear infinite; }
@keyframes plSh { to { background-position: -200% 0; } }
.pl-empty { grid-column: 1 / -1; padding: 7vh 2vh; text-align: center; color: #8ea398; font: 500 1.7vh 'Outfit', sans-serif; border: 0.15vh dashed rgba(var(--accent-rgb), 0.3); border-radius: 1.2vh; }

/* ---- Spotify preview modal ---- */
.pl-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.78); padding: 2vh; }
.pl-modal[hidden] { display: none; }
.pl-modal-box { position: relative; width: min(64vh, 94vw); background: #070b09; border: 0.15vh solid rgba(var(--accent-rgb), 0.5); border-radius: 1.6vh; padding: 2.4vh 2vh 2vh; box-shadow: 0 0 5vh rgba(var(--accent-rgb), 0.2); }
.pl-modal-box iframe { display: block; width: 100%; height: 35.2vh; min-height: 300px; border: 0; border-radius: 1.2vh; background: #000; }
.pl-modal-title { margin: 0 4vh 1.4vh 0; font: 700 2vh 'Oswald', sans-serif; text-transform: uppercase; color: #fff; }
.pl-modal-x { position: absolute; top: 1.2vh; right: 1.4vh; width: 3.6vh; height: 3.6vh; border: 0; border-radius: 50%; background: #16211b; color: #fff; font: 400 2.6vh/1 'Outfit', sans-serif; cursor: pointer; }
.pl-modal-x:hover { background: var(--accent); color: #04100a; }
.pl-modal-open { display: inline-block; margin-top: 1.6vh; color: var(--accent); font: 600 1.4vh 'Outfit', sans-serif; letter-spacing: 0.15vh; text-decoration: none; }
.pl-modal-open:hover { text-decoration: underline; }

/* ---- mobile ---- */
@media (max-width: 768px), (max-height: 500px) and (pointer: coarse) {
    .content.pl-page { padding: 4% 4% 8%; }
    .pl-title { font-size: min(13vw, 56px); }
    .pl-eyebrow { font-size: 12px; letter-spacing: 3px; }
    .pl-lead { font-size: min(3.9vw, 15px); }
    .pl-panel { padding: 3%; margin-top: 24px; border-radius: 14px; }
    .pl-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .pl-select-btn { width: 100%; font-size: 15px; padding: 11px 14px; border-radius: 10px; }
    .pl-ic { width: 28px; height: 28px; } .pl-ic img { width: 16px; height: 16px; }
    .pl-select-menu { width: 100%; border-radius: 12px; }
    .pl-opt { font-size: 15px; padding: 11px 12px; } .pl-opt-n { font-size: 12px; }
    .pl-count { font-size: 11px; }
    .pl-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pl-body { padding: 10px; gap: 6px; }
    .pl-body h3 { font-size: 15px; } .pl-desc { font-size: 11.5px; min-height: 0; -webkit-line-clamp: 2; }
    .pl-play { font-size: 10px; } .pl-play svg { width: 20px; height: 20px; }
    .pl-fol { font-size: 12px; } .pl-fol small { font-size: 8px; }
    .pl-badge { width: 26px; height: 26px; top: 8px; right: 8px; } .pl-badge img { width: 15px; height: 15px; }
    .pl-prev { font-size: 10px; padding: 5px 9px; left: 8px; top: 8px; }
    .pl-modal-box { width: 94vw; } .pl-modal-title { font-size: 16px; } .pl-modal-open { font-size: 13px; }
}
@media (max-width: 420px) { .pl-grid { grid-template-columns: 1fr; } }

/* ---- v13: platform chips (replace the dropdown) ---- */
.pl-chips { display: flex; flex-wrap: wrap; gap: 1.2vh; }
.pl-chip { display: inline-flex; align-items: center; gap: 1.1vh; padding: 0.9vh 1.5vh 0.9vh 1.1vh; background: #0a0f0c; color: #b9c4be; border: 0.15vh solid rgba(255,255,255,0.14); border-radius: 1.4vh; font: 600 1.4vh 'Outfit', sans-serif; letter-spacing: 0.2vh; text-transform: uppercase; cursor: pointer; transition: border-color .15s, box-shadow .15s, color .15s, background .15s; }
.pl-chip:hover { border-color: rgba(var(--accent-rgb), 0.6); color: #fff; }
.pl-chip.on { color: #fff; border-color: var(--accent); background: rgba(var(--accent-rgb), 0.12); box-shadow: 0 0 1.6vh rgba(var(--accent-rgb), 0.3); }
.pl-chip.zero { opacity: 0.55; }
.pl-chip .pl-ic { width: 2.8vh; height: 2.8vh; background: transparent; }
.pl-chip .pl-ic img { width: 2.4vh; height: 2.4vh; filter: none; }
.pl-chip.on .pl-ic, .pl-chip[data-p="spotify"] .pl-ic { background: transparent; }
.pl-chip .n { min-width: 2.8vh; text-align: center; padding: 0.3vh 0.9vh; border-radius: 99px; background: #18211c; color: #cfd9d3; font-size: 1.2vh; letter-spacing: 0; }
.pl-chip.on .n { background: var(--accent); color: #04100a; }
a.pl-prev { text-decoration: none; }
@media (max-width: 768px) {
    .pl-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 6px; scrollbar-width: none; }
    .pl-chips::-webkit-scrollbar { display: none; }
    .pl-chip { font-size: 12px; padding: 8px 12px 8px 8px; flex: none; gap: 8px; border-radius: 12px; }
    .pl-chip .pl-ic { width: 24px; height: 24px; } .pl-chip .pl-ic img { width: 20px; height: 20px; }
    .pl-chip .n { font-size: 11px; min-width: 22px; padding: 2px 7px; }
}


/* ===================== v14 ===================== */
/* main container: same proportions as the Our Artist page (60% of the page, centred); the cards themselves keep their size */
.pl-wrap { max-width: none; width: 60%; margin: 0 auto; }
@media (max-width: 1300px) { .pl-wrap { width: 90%; } }
@media (max-width: 992px)  { .pl-wrap { width: 92%; } }
@media (max-width: 768px)  { .pl-wrap { width: 100%; } }

/* full-colour platform logos (shape from Simple Icons, filled with the official brand colour) */
.pl-logo { display: inline-block; flex: none; width: 2.6vh; height: 2.6vh; background: var(--brand, #fff); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.pl-chip .pl-logo { width: 2.7vh; height: 2.7vh; }
.pl-chip { gap: 1.1vh; padding: 0.9vh 1.5vh; }
.pl-chip .pl-logo { filter: drop-shadow(0 0 0.4vh rgba(0,0,0,.5)); }
.pl-chip.zero { opacity: 0.7; }
.pl-badge { background: rgba(0,0,0,0.72); border: 0.12vh solid rgba(255,255,255,0.18); -webkit-backdrop-filter: blur(0.4vh); backdrop-filter: blur(0.4vh); }
.pl-badge .pl-logo { width: 1.9vh; height: 1.9vh; }
.pl-cover-ph .pl-logo { width: 7vh; height: 7vh; opacity: .55; }
.pl-chips { gap: 1vh; }

/* card footer: PLAY NOW on the left, followers + Save on the right */
.pl-foot { align-items: center; padding: 0 1.8vh 1.6vh; margin-top: 0; }
.pl-body { flex: 1; padding-bottom: 0.8vh; }
.pl-link { flex: 1; }
.pl-linkplay { text-decoration: none; }
.pl-right { display: flex; align-items: center; gap: 1.2vh; }
.pl-fol { line-height: 1.15; }
.pl-savebtn {
    position: relative; width: 3.6vh; height: 3.6vh; padding: 0.7vh; flex: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: var(--accent); border: 0.16vh solid rgba(var(--accent-rgb), 0.7); border-radius: 50%;
    transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.pl-savebtn:hover:not(:disabled) { background: var(--accent); color: #04100a; transform: scale(1.08); box-shadow: 0 0 1.4vh rgba(var(--accent-rgb), 0.5); }
.pl-savebtn:focus-visible { outline: 0.2vh solid #fff; outline-offset: 0.3vh; }
.pl-savebtn .ic-ok { display: none; }
.pl-savebtn.saved { background: var(--accent); color: #04100a; }
.pl-savebtn.saved .ic-add { display: none; }
.pl-savebtn.saved .ic-ok { display: inline; }
.pl-savebtn.saving { cursor: wait; }
.pl-savebtn.saving svg { opacity: 0; }
.pl-savebtn.saving::after { content: ""; position: absolute; inset: 0.8vh; border-radius: 50%; border: 0.25vh solid rgba(var(--accent-rgb), 0.3); border-top-color: var(--accent); animation: plSpin .7s linear infinite; }
@keyframes plSpin { to { transform: rotate(360deg); } }

#plToast { position: fixed; left: 50%; bottom: 4vh; transform: translate(-50%, 2vh); z-index: 200; max-width: min(92vw, 62vh); padding: 1.3vh 2vh; border-radius: 1.2vh; font: 500 1.5vh/1.45 'Outfit', sans-serif; color: #fff; background: #0d1511; border: 0.15vh solid var(--accent); box-shadow: 0 1vh 3vh rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center; }
#plToast.show { opacity: 1; transform: translate(-50%, 0); }
#plToast.err { border-color: #ff5a5a; }

@media (max-width: 768px) {
    .pl-logo { width: 22px; height: 22px; } .pl-chip .pl-logo { width: 22px; height: 22px; } .pl-badge .pl-logo { width: 15px; height: 15px; }
    .pl-foot { padding: 0 10px 10px; } .pl-right { gap: 8px; }
    .pl-savebtn { width: 30px; height: 30px; padding: 6px; }
    #plToast { font-size: 13px; bottom: 18px; padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) { .pl-savebtn.saving::after { animation: none; } }


/* ===================== v15 : compact, Our-Artist-style layout ===================== */
.content.pl-page { padding: 0 0 5vh; }
.pl-wrap { width: 76%; margin: 10% auto 0; padding: 40px 0 0; }
@media (max-width: 1300px) { .pl-wrap { width: 90%; margin-top: 0; } }
@media (max-width: 992px)  { .pl-wrap { width: 92%; } }
@media (max-width: 768px)  { .pl-wrap { width: 100%; padding: 28px 4% 0; } }

.pl-eyebrow { font-size: 12px; letter-spacing: 5px; gap: 10px; }
.pl-dot { width: 8px; height: 8px; box-shadow: 0 0 10px var(--accent); }
.pl-title { margin: 14px 0 14px; font-size: clamp(34px, 3.6vw, 60px); line-height: 1; }
.pl-lead { max-width: 640px; font-size: 14px; line-height: 1.7; color: #ccc; text-shadow: 0 2px 10px rgba(0,0,0,.8); }

.pl-panel { margin-top: 26px; margin-bottom: 40px; padding: 10px; border-radius: 8px; border-width: 1px;
    background: rgba(255,255,255,.04); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-color: rgba(255,255,255,.08); box-shadow: 0 25px 50px -12px rgba(0,0,0,.6); }
.pl-toolbar { padding: 6px 4px 12px; margin-bottom: 4px; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.pl-chips { gap: 8px; }
.pl-chip { padding: 7px 12px; font-size: 11.5px; letter-spacing: 1.4px; border-radius: 8px; gap: 8px; border-width: 1px; }
.pl-chip .pl-logo { width: 18px; height: 18px; }
.pl-chip .n { font-size: 10.5px; min-width: 20px; padding: 2px 6px; }
.pl-count { font-size: 11px; letter-spacing: 2px; }

/* 7 per row, same 8px gap as the Our Artist grid */
.pl-grid { grid-template-columns: repeat(7, 1fr); gap: 8px; padding-top: 6px; align-items: stretch; }
.pl-card { border-radius: 0; border-width: 1px; background: #0b0d0c; }
.pl-card:hover, .pl-card:focus-within { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(var(--accent-rgb), .18); }
.pl-cover { aspect-ratio: 1 / 1; }
.pl-badge { width: 22px; height: 22px; top: 7px; right: 7px; }
.pl-badge .pl-logo { width: 13px; height: 13px; }
.pl-cover-ph .pl-logo { width: 44px; height: 44px; }
.pl-cover-ph { font-size: 32px; }
.pl-body { padding: 10px 10px 6px; gap: 5px; }
.pl-body h3 { font-size: clamp(12px, .85vw, 15px); line-height: 1.2; letter-spacing: .6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-desc { font-size: 11px; line-height: 1.45; min-height: 0; -webkit-line-clamp: 2; color: #bfc9c4; }
.pl-foot { padding: 4px 10px 10px; gap: 6px; flex-wrap: wrap; }
.pl-play { font-size: 10px; letter-spacing: 1.2px; gap: 6px; }
.pl-play svg { width: 20px; height: 20px; }
.pl-right { gap: 6px; }
.pl-fol { font-size: 11px; }
.pl-fol small { font-size: 7px; letter-spacing: 1px; }
.pl-savebtn { width: 24px; height: 24px; padding: 5px; border-width: 1.5px; }
.pl-skel { aspect-ratio: 1 / 1.45; border-radius: 0; }
.pl-empty { font-size: 14px; padding: 48px 16px; }
#plToast { font-size: 13px; padding: 10px 16px; bottom: 28px; }

@media (max-width: 1500px) { .pl-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1250px) { .pl-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 992px)  { .pl-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .pl-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; } .pl-foot { flex-direction: column; align-items: flex-start; } }
@media (max-width: 560px)  { .pl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .pl-grid { grid-template-columns: repeat(2, 1fr); } }
