/* =========================================================
   1. Theme variables and base page styles
   ========================================================= */
:root {
    --pl-maroon: #850000;
    --pl-maroon-dark: #580000;
    --pl-gold: #efbd48;
    --pl-cream: #fff9ed;
    --pl-ink: #1d1b1b;
    --pl-muted: #6b6662;
    --pl-border: #eadfce;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f6f1e8;
    color: var(--pl-ink);
    font-family: "Open Sans", Arial, sans-serif;
}

button,
input,
select {
    font: inherit;
}

.pl-hero-inner,
.pl-main,
.pl-footer {
    width: 94%;
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

.pl-small-button,
.pl-secondary-button,
.pl-icon-button,
.pl-view-lyric,
.pl-primary-button {
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: 0.16s ease;
}

.pl-small-button,
.pl-secondary-button {
    min-height: 38px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #fff;
    color: var(--pl-maroon);
    border-color: #d8c8c0;
}

    .pl-small-button:hover,
    .pl-secondary-button:hover {
        background: var(--pl-maroon);
        color: #fff;
        border-color: var(--pl-maroon);
    }

/* =========================================================
   2. Shared controls and keyboard focus
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid rgba(239, 189, 72, 0.9);
    outline-offset: 3px;
}

/* =========================================================
   3. Hero
   ========================================================= */

.pl-hero {
    overflow: hidden;
    background: linear-gradient(125deg, #fff9ed 0%, #ffe79d 48%, #d2f0f6 100%);
    border-bottom: 1px solid rgba(88, 0, 0, 0.09);
}

.pl-hero-inner {
    position: relative;
    z-index: 2;
    width: 94%;
    max-width: 1220px;
    min-height: 240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: center;
    gap: 26px;
    padding: 28px 0 30px;
}

.pl-hero-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pl-hero-logo-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.pl-hero-logo {
    display: block;
    width: 105px;
    height: 105px;
    object-fit: contain;
    transform: translateY(12px);
}

.pl-hero-title-copy {
    min-width: 0;
}

.pl-kicker {
    margin-bottom: 5px;
    color: var(--pl-maroon);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.pl-hero h1 {
    max-width: none;
    margin: 0;
    color: #4c0a08;
    font-size: clamp(38px, 4.2vw, 62px);
    line-height: 1;
    letter-spacing: -.045em;
    white-space: nowrap;
}

.pl-hero p {
    max-width: 760px;
    margin: 14px 0 0 125px;
    color: #554943;
    font-size: 17px;
    line-height: 1.45;
}

.pl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin: 20px 0 0 125px;
}

.pl-primary-button,
.pl-secondary-button {
    min-height: 46px;
    padding: 0 21px;
}

.pl-primary-button {
    background: var(--pl-maroon);
    color: #fff;
    box-shadow: 0 10px 22px rgba(88, 0, 0, 0.18);
}

    .pl-primary-button:hover {
        background: var(--pl-maroon-dark);
        transform: translateY(-1px);
    }

.pl-hero-art {
    position: relative;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pl-record {
    width: 185px;
    height: 185px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient( circle at center, #f3c75e 0 16%, #8a170d 16% 20%, #151515 20% 34%, #232323 34% 48%, #111111 48% 66%, #262626 66% 82%, #111111 82% 100% );
    box-shadow: 0 24px 48px rgba(62, 34, 16, 0.24);
    transform: rotate(-8deg);
}

.pl-record-label {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f3c75e;
    color: #600;
    font-weight: 800;
}

.pl-hero-free-link {
    color: var(--pl-maroon);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .pl-hero-free-link:hover,
    .pl-hero-free-link:focus {
        color: var(--pl-maroon-dark);
        text-decoration-thickness: 2px;
    }

.pl-music-note {
    position: absolute;
    right: 6%;
    top: 7%;
    color: var(--pl-maroon);
    font-size: 70px;
}

    /* Encoding-safe decorative music note. */
    .pl-music-note::before {
        content: "\266A";
    }

/* =========================================================
   4. Main layout and system messaging
   ========================================================= */

.pl-main {
    margin-top: 24px;
}

.pl-system-message {
    padding: 16px 18px;
    background: #fff5d6;
    border: 1px solid #e3c66f;
    border-left: 5px solid #c49a18;
    border-radius: 12px;
}

.pl-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 22px;
    align-items: start;
}

.pl-player-column {
    position: sticky;
    top: 18px;
}

/* =========================================================
   5. Spotlight card and member profile
   ========================================================= */

.pl-spotlight-card,
.pl-list-card {
    background: #fff;
    border: 1px solid var(--pl-border);
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(72, 45, 20, 0.075);
}

.pl-spotlight-card {
    overflow: hidden;
    transition: opacity 0.42s ease, transform 0.42s ease;
}

    .pl-spotlight-card.is-fading {
        opacity: 0.16;
        transform: translateY(5px);
    }

.pl-spotlight-top {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, #321514 0%, #760000 58%, #1c1b1b 100%);
}

.pl-member-photo-wrap {
    scroll-margin-top: 12px;
}

.pl-member-photo-wrap {
    width: 120px;
    position: relative;
    height: 120px;
    overflow: hidden;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

    .pl-member-photo-wrap img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

        .pl-member-photo-wrap img.pl-member-photo-logo {
            object-fit: contain;
            padding: 18px;
            background: #ffffff;
        }

.pl-now-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.pl-spotlight-copy h2,
.pl-lyric-reader-head h2 {
    margin: 5px 0;
    color: #fff;
    font-size: 25px;
    line-height: 1.1;
}

.pl-writer-line {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 1.4;
}

.pl-member-name {
    margin-top: 9px;
    color: #ffd76c;
    font-size: 15px;
    font-weight: 800;
}

.pl-member-location {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.pl-member-bio {
    min-height: 92px;
    padding: 18px 22px;
    color: #403936;
    font-size: 14px;
    line-height: 1.55;
    background: var(--pl-cream);
    border-bottom: 1px solid var(--pl-border);
}

.pl-member-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 13px 22px 0;
}

/* =========================================================
   6. Audio player
   ========================================================= */

.pl-player {
    position: relative;
    margin: 16px 22px 22px;
    padding: 20px 18px 18px;
    border: 1px solid #d7d8d0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f6efc8 0%, #eef6f5 100%);
    box-shadow: 0 8px 22px rgba(72, 45, 20, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

    .pl-player::before {
        content: "";
        position: absolute;
        top: -1px;
        left: 28px;
        right: 28px;
        height: 3px;
        border-radius: 0 0 999px 999px;
        background: var(--pl-maroon);
        opacity: 0.82;
    }

.pl-player-main-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.pl-big-play,
.pl-round-control {
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
}

.pl-big-play {
    width: 66px;
    height: 66px;
    border: 0;
    background: var(--pl-maroon);
    color: #fff;
    font-size: 23px;
    font-weight: 800;
    box-shadow: 0 9px 22px rgba(88, 0, 0, 0.2);
}

.pl-round-control {
    width: 40px;
    height: 40px;
    border: 1px solid #d7ccc5;
    background: #fff;
    color: var(--pl-maroon);
}

.pl-round-control-text {
    display: none;
}

.pl-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 24px;
    margin-top: 10px;
    opacity: 0.45;
}

    .pl-visualizer span {
        display: block;
        width: 4px;
        height: 7px;
        border-radius: 999px;
        background: var(--pl-maroon);
        transform-origin: center bottom;
    }

    .pl-visualizer.is-playing span {
        animation: plVisualizerPulse 900ms ease-in-out infinite;
    }

        .pl-visualizer.is-playing span:nth-child(2n) {
            animation-duration: 720ms;
        }

        .pl-visualizer.is-playing span:nth-child(3n) {
            animation-duration: 1040ms;
        }

        .pl-visualizer.is-playing span:nth-child(4n) {
            animation-duration: 820ms;
        }

@keyframes plVisualizerPulse {
    0%, 100% {
        height: 6px;
        opacity: 0.45;
    }

    50% {
        height: 24px;
        opacity: 1;
    }
}

.pl-progress-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.pl-time {
    color: #77706b;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.pl-progress {
    position: relative;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #ece6e0;
    cursor: pointer;
}

.pl-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: var(--pl-maroon);
}

.pl-player-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.pl-player-status {
    color: var(--pl-muted);
    font-size: 12px;
    font-weight: 800;
}

.pl-volume {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--pl-muted);
    font-size: 12px;
    font-weight: 800;
}

    .pl-volume input {
        width: 90px;
        accent-color: var(--pl-maroon);
    }

/* =========================================================
   7. Playlist tools and song cards
   ========================================================= */

.pl-list-card {
    padding: 20px;
}

.pl-list-head,
.pl-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .pl-list-head h2 {
        margin: 0;
        font-size: 27px;
    }

.pl-subhead-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.pl-jump-link {
    color: var(--pl-maroon);
    position: relative;
    top: 2px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    margin-left: 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .pl-jump-link:hover,
    .pl-jump-link:focus {
        color: var(--pl-maroon-dark);
        text-decoration-thickness: 2px;
    }

.pl-song-count {
    display: block;
    margin-top: 3px;
    color: var(--pl-muted);
    font-size: 13px;
    font-weight: 700;
}

.pl-tools {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto minmax(230px, 0.7fr);
    align-items: center;
    gap: 12px;
    margin: 18px 0 20px;
    padding: 14px;
    border-radius: 13px;
    background: #f8f3ec;
}

    .pl-tools label {
        font-size: 12px;
        font-weight: 800;
        color: #544b46;
    }

.pl-mobile-top20-jump {
    display: none;
}

.pl-search,
.pl-sort {
    width: 100%;
    min-height: 39px;
    padding: 0 11px;
    border: 1px solid #d9cec5;
    border-radius: 9px;
    background: #fff;
}

.pl-sort {
    min-width: 230px;
}

.pl-track-section + .pl-track-section {
    margin-top: 26px;
}

.pl-subhead {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pl-border);
}

    .pl-subhead h3 {
        margin: 0;
        font-size: 18px;
    }

    .pl-subhead span {
        color: var(--pl-muted);
        font-size: 12px;
        font-weight: 700;
    }

.pl-track-list {
    display: grid;
    gap: 9px;
}

.pl-track-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid #e7ddd4;
    border-left: 5px solid var(--pl-maroon);
    border-radius: 12px;
    background: #fff;
}

    .pl-track-card.is-active {
        background: #fff8f6;
        border-color: #d6b8b2;
        box-shadow: 0 7px 20px rgba(88, 0, 0, 0.08);
    }

    .pl-track-card.is-shared-target {
        animation: plTargetPulse 1.3s ease 2;
    }

@keyframes plTargetPulse {
    50% {
        box-shadow: 0 0 0 5px rgba(239, 189, 72, 0.36);
    }
}

.pl-track-play {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--pl-maroon);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.pl-view-lyric {
    min-height: 34px;
    padding: 0 14px;
    background: #fff0c4;
    color: #684600;
    border-color: #e3c46f;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.pl-track-info {
    min-width: 0;
}

.pl-audio-card .pl-track-info {
    cursor: pointer;
}

.pl-track-info h4 {
    margin: 0;
    color: #272323;
    font-size: 15px;
    line-height: 1.25;
}

.pl-track-writers {
    margin-top: 3px;
    color: #5d5550;
    font-size: 12px;
    line-height: 1.35;
}

.pl-track-member {
    margin-top: 2px;
    color: #8a6d2f;
    font-size: 11px;
    font-weight: 800;
}

.pl-track-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pl-play-count {
    color: var(--pl-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.pl-icon-button {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    background: #fff;
    color: var(--pl-maroon);
    border-color: #d9cec5;
}

    .pl-icon-button:hover {
        background: var(--pl-maroon);
        color: #fff;
    }

.pl-lyric-card {
    border-left-color: #d6a12b;
    background: #fffdf7;
}

.pl-lyric-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #d9f1f5;
    color: #245d66;
    border: 1px solid #b9dfe6;
    font-size: 11px;
    font-weight: 800;
}

/* =========================================================
   8. Lyric-only reader
   ========================================================= */

.pl-lyric-view {
    min-height: 560px;
    padding: 22px;
    background: #2a1715;
    color: #fff;
}

.pl-lyric-reader-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pl-lyric-body {
    max-height: 620px;
    margin-top: 18px;
    padding: 20px;
    overflow-y: auto;
    border-radius: 12px;
    background: #fffaf1;
    color: #2f2a27;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.pl-lyric-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.pl-empty {
    padding: 14px;
    border: 1px dashed #d4c6b9;
    border-radius: 11px;
    color: #655d58;
    background: #faf6ef;
}

.is-hidden {
    display: none !important;
}

/* =========================================================
   9. Footer
   ========================================================= */

.pl-footer {
    margin-top: 28px;
    padding: 22px 0 48px;
    color: #6e655f;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
}

    .pl-footer img {
        display: block;
        max-height: 52px;
        width: auto;
        margin: 0 auto 14px;
    }

.pl-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin-bottom: 14px;
}

    .pl-footer-links a {
        color: var(--pl-maroon);
        font-weight: 700;
        text-decoration: none;
    }

/* =========================================================
   10. Core responsive layout
   ========================================================= */

@media screen and (max-width: 1050px) {
    .pl-hero h1 {
        font-size: clamp(36px, 4.7vw, 52px);
    }

    .pl-hero-logo {
        width: 88px;
        height: 88px;
    }

    .pl-hero p,
    .pl-hero-actions {
        margin-left: 108px;
    }
}

@media screen and (max-width: 920px) {
    .pl-content-grid {
        grid-template-columns: 1fr;
    }

    .pl-player-column {
        position: static;
    }

    .pl-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .pl-hero h1 {
        white-space: normal;
    }

    .pl-hero-art {
        min-height: auto;
        margin-top: 8px;
    }

    .pl-record,
    .pl-music-note {
        display: none;
    }
}

@media screen and (max-width: 680px) {
    .pl-hero-inner,
    .pl-main,
    .pl-footer {
        width: 92%;
    }

    .pl-member-photo-wrap {
        width: 82px;
        height: 82px;
        border-radius: 12px;
    }

        .pl-member-photo-wrap img.pl-member-photo-logo {
            padding: 11px;
        }

    .pl-hero-inner {
        padding: 24px 0 28px;
    }

    .pl-hero-title-row {
        align-items: flex-start;
        gap: 13px;
    }

    .pl-hero-logo {
        width: 68px;
        height: 68px;
    }

    .pl-kicker {
        font-size: 11px;
    }

    .pl-hero h1 {
        font-size: 36px;
    }

    .pl-hero p,
    .pl-hero-actions {
        margin-left: 0;
    }

    .pl-hero-actions {
        width: 100%;
    }

    .pl-primary-button,
    .pl-secondary-button {
        width: 100%;
    }

    .pl-spotlight-top {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 13px;
        padding: 17px;
    }

    .pl-spotlight-copy h2 {
        font-size: 20px;
    }

    .pl-tools {
        grid-template-columns: 1fr;
    }

    .pl-track-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .pl-track-actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    .pl-list-head {
        align-items: flex-start;
    }

        .pl-list-head .pl-small-button {
            font-size: 0;
            width: 38px;
            padding: 0;
        }

            .pl-list-head .pl-small-button i {
                font-size: 13px;
            }

    .pl-player-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .pl-volume {
        width: 100%;
    }

        .pl-volume input {
            flex: 1;
        }

    .pl-view-lyric {
        min-height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    .pl-lyric-reader-head {
        flex-direction: column;
    }

    .pl-lyric-nav {
        flex-wrap: wrap;
    }

    .pl-player-main-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
    }

    .pl-round-control {
        width: 100%;
        min-width: 0;
        height: 42px;
        padding: 0 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-radius: 999px;
        background: #fff;
        color: var(--pl-maroon);
        font-size: 11px;
        font-weight: 800;
        white-space: nowrap;
    }

    .pl-round-control-text {
        display: inline;
        white-space: nowrap;
    }

    .pl-big-play {
        width: 58px;
        height: 58px;
        min-width: 58px;
    }

    .pl-mobile-top20-jump {
        display: block;
        margin: -6px 0 18px;
    }

        .pl-mobile-top20-jump a {
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 0 14px;
            border: 1px solid #d8c8c0;
            border-radius: 999px;
            background: var(--pl-maroon);
            color: #fff;
            font-size: 13px;
            font-weight: 800;
            text-decoration: none;
        }

            .pl-mobile-top20-jump a:hover,
            .pl-mobile-top20-jump a:focus {
                background: var(--pl-maroon-dark);
                color: #fff;
            }
}

/* =========================================================
   11. Playing and paused states
   ========================================================= */

.pl-spotlight-card.is-paused .pl-profile-playing-badge {
    display: inline-flex;
    background: #d9f1f5;
    color: #245d66;
    border: 1px solid #b9dfe6;
}

.pl-spotlight-card.is-paused .pl-profile-playing-dot {
    background: #245d66;
    animation: none;
}

.pl-track-card.is-paused-now,
.pl-top20-row.is-paused-now {
    background: #f4fbfc;
    border-color: #b9dfe6;
    box-shadow: 0 8px 24px rgba(36, 93, 102, 0.1);
}

/* Gold ring identifies the song currently loaded in the player. */
.pl-track-card.is-active .pl-track-play,
.pl-top20-row.is-active .pl-top20-play {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(239, 189, 72, 0.95), 0 5px 14px rgba(88, 0, 0, 0.18);
}

.pl-paused-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 23px;
    padding: 0 9px;
    border-radius: 999px;
    background: #d9f1f5;
    color: #245d66;
    border: 1px solid #b9dfe6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

    .pl-paused-badge::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #245d66;
    }

.pl-member-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
}

    .pl-member-name-row .pl-member-name {
        margin-top: 0;
    }

.pl-profile-playing-badge {
    display: none;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(88, 0, 0, 0.94);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pl-spotlight-card.is-playing .pl-profile-playing-badge {
    display: inline-flex;
}

.pl-spotlight-card.is-playing .pl-member-photo-wrap {
    animation: plProfilePulse 1.25s ease-in-out infinite;
}

.pl-profile-playing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pl-gold);
    animation: plProfilePlayingDot .9s ease-in-out infinite;
}

@keyframes plProfilePlayingDot {
    0%, 100% {
        opacity: .42;
        transform: scale(.82);
    }

    50% {
        opacity: 1;
        transform: scale(1.22);
    }
}

@keyframes plProfilePulse {
    0%, 100% {
        box-shadow: 0 12px 30px rgba(0, 0, 0, .24), 0 0 0 3px rgba(239, 189, 72, .28);
    }

    50% {
        box-shadow: 0 12px 30px rgba(0, 0, 0, .24), 0 0 0 7px rgba(239, 189, 72, .9);
    }
}

.pl-track-card.is-playing-now,
.pl-top20-row.is-playing-now {
    background: #fff8f6;
    border-color: #cfae9f;
    box-shadow: 0 8px 24px rgba(128, 0, 0, .12);
}

.pl-now-playing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 23px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--pl-maroon);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

    .pl-now-playing-badge::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--pl-gold);
        animation: plSongPulse .9s ease-in-out infinite;
    }

@keyframes plSongPulse {
    0%, 100% {
        opacity: .4;
        transform: scale(.82);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* =========================================================
   12. SongU Top 20 listener chart
   ========================================================= */

.pl-top20-section {
    margin-top: 28px;
}

.pl-top20-card {
    overflow: hidden;
    border: 1px solid var(--pl-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 42px rgba(72, 45, 20, 0.09);
}

.pl-top20-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px;
    color: #fff;
    background: radial-gradient( circle at 88% 18%, rgba(239, 189, 72, 0.28), transparent 28% ), linear-gradient( 130deg, #281210 0%, #710000 57%, #271a18 100% );
}

    .pl-top20-header::after {
        content: "\266B";
        position: absolute;
        right: 30px;
        bottom: -25px;
        color: rgba(255, 255, 255, 0.07);
        font-size: 118px;
        line-height: 1;
        pointer-events: none;
    }

.pl-top20-heading {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.pl-top20-kicker {
    color: var(--pl-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.pl-top20-heading h2 {
    margin: 4px 0 5px;
    color: #fff;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.pl-top20-heading p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.45;
}

.pl-top20-header .pl-primary-button {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    background: var(--pl-gold);
    color: #4b1800;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

    .pl-top20-header .pl-primary-button:hover {
        background: #ffd368;
        color: #351000;
    }

.pl-top20-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #f8f3ec;
}

.pl-top20-column {
    display: grid;
}

    .pl-top20-column:first-child {
        border-right: 1px solid #e8ddd2;
    }

.pl-top20-zero-message {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 11px;
    padding: 18px 22px;
    border-top: 1px solid #e8ddd2;
    background: #f8f3ec;
    color: #655d58;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

    .pl-top20-zero-message i {
        margin-top: 3px;
        color: var(--pl-maroon);
        font-size: 16px;
    }

    .pl-top20-zero-message strong,
    .pl-top20-zero-message span {
        display: block;
    }

    .pl-top20-zero-message strong {
        color: #403936;
        font-size: 14px;
    }

    .pl-top20-zero-message span {
        margin-top: 2px;
    }

.pl-top20-row {
    display: grid;
    grid-template-columns: 52px 42px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #e8ddd2;
    background: #fff;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

    .pl-top20-row:hover {
        position: relative;
        z-index: 1;
        background: #fffaf2;
    }

    .pl-top20-row.is-active {
        background: #fff8f6;
        box-shadow: inset 5px 0 0 var(--pl-maroon);
    }

    .pl-top20-row[data-top-rank="1"],
    .pl-top20-row[data-top-rank="2"],
    .pl-top20-row[data-top-rank="3"] {
        background: linear-gradient( 90deg, rgba(239, 189, 72, 0.15), rgba(255, 255, 255, 0.96) 42% );
    }

        .pl-top20-row[data-top-rank="1"].is-active,
        .pl-top20-row[data-top-rank="2"].is-active,
        .pl-top20-row[data-top-rank="3"].is-active {
            background: #fff8f6;
        }

.pl-top20-rank,
.pl-top20-play,
.pl-top20-actions {
    margin-top: 4px;
}

.pl-top20-rank {
    color: #b8a998;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    letter-spacing: -0.05em;
}

.pl-top20-row[data-top-rank="1"] .pl-top20-rank {
    color: #b67a00;
    font-size: 36px;
}

.pl-top20-row[data-top-rank="2"] .pl-top20-rank {
    color: #7b7771;
    font-size: 33px;
}

.pl-top20-row[data-top-rank="3"] .pl-top20-rank {
    color: #9a5d2f;
    font-size: 31px;
}

.pl-top20-play {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
}

.pl-top20-info {
    min-width: 0;
    cursor: pointer;
}

    .pl-top20-info h3 {
        margin: 0;
        overflow: hidden;
        color: #272323;
        font-size: 15px;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.pl-top20-member {
    margin-top: 3px;
    color: #8a6d2f;
    font-size: 11px;
    font-weight: 800;
}

.pl-top20-writers {
    margin-top: 2px;
    overflow: hidden;
    color: #655d58;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pl-top20-more-wrap {
    margin-top: 5px;
}

.pl-top20-more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--pl-maroon);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .pl-top20-more-link:hover,
    .pl-top20-more-link:focus {
        color: var(--pl-maroon-dark);
        text-decoration-thickness: 2px;
    }

    .pl-top20-more-link span {
        flex: 0 0 auto;
        font-size: 12px;
    }

.pl-top20-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.pl-top20-count {
    min-width: 58px;
    color: var(--pl-muted);
    font-size: 11px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.pl-top20-row .pl-now-playing-badge,
.pl-top20-row .pl-paused-badge {
    min-height: 21px;
    padding: 0 7px;
    font-size: 9px;
}

.pl-top20-row.is-playing-now,
.pl-top20-row[data-top-rank="1"].is-playing-now,
.pl-top20-row[data-top-rank="2"].is-playing-now,
.pl-top20-row[data-top-rank="3"].is-playing-now {
    background: #fff8f6;
    border-color: #cfae9f;
    box-shadow: inset 5px 0 0 var(--pl-maroon), 0 8px 24px rgba(128, 0, 0, 0.12);
}

.pl-top20-row.is-paused-now,
.pl-top20-row[data-top-rank="1"].is-paused-now,
.pl-top20-row[data-top-rank="2"].is-paused-now,
.pl-top20-row[data-top-rank="3"].is-paused-now {
    background: #f4fbfc;
    border-color: #b9dfe6;
    box-shadow: inset 5px 0 0 #245d66, 0 8px 24px rgba(36, 93, 102, 0.1);
}

@media screen and (max-width: 920px) {
    .pl-top20-list {
        grid-template-columns: 1fr;
    }

    .pl-top20-column:first-child {
        border-right: 0;
    }
}

/* =========================================================
   13. Current-song lyrics modal
   ========================================================= */
body.pl-modal-open {
    overflow: hidden;
}

.pl-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(29, 20, 18, 0.68);
}

    .pl-modal-overlay.is-open {
        display: flex;
    }

.pl-modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 44px);
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--pl-border);
    border-radius: 18px;
    background: #fffaf1;
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.32);
}

.pl-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f1e8df;
    color: var(--pl-maroon);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

    .pl-modal-close:hover,
    .pl-modal-close:focus {
        background: var(--pl-maroon);
        color: #fff;
    }

.pl-modal-kicker {
    margin-right: 48px;
    color: var(--pl-maroon);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.pl-modal-title {
    margin: 5px 48px 4px 0;
    color: #2f2724;
    font-size: 25px;
    line-height: 1.15;
}

.pl-modal-writer {
    margin-bottom: 16px;
    color: #766b64;
    font-size: 13px;
    font-weight: 700;
}

.pl-modal-lyrics {
    max-height: calc(100vh - 190px);
    padding: 18px;
    overflow-y: auto;
    border: 1px solid #eadfce;
    border-radius: 12px;
    background: #fff;
    color: #2f2a27;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* =========================================================
   14. Desktop-only playlist scrolling
   ========================================================= */
@media screen and (min-width: 921px) {
    .pl-list-card {
        height: clamp(620px, calc(100vh - 36px), 820px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

        .pl-list-card::-webkit-scrollbar {
            width: 10px;
        }

        .pl-list-card::-webkit-scrollbar-track {
            background: #f3ede5;
            border-radius: 999px;
        }

        .pl-list-card::-webkit-scrollbar-thumb {
            background: #c8b4a6;
            border: 2px solid #f3ede5;
            border-radius: 999px;
        }

            .pl-list-card::-webkit-scrollbar-thumb:hover {
                background: var(--pl-maroon);
            }
}

/* =========================================================
   15. Mobile modal and Top 20 adjustments
   ========================================================= */

@media screen and (max-width: 680px) {
    .pl-modal-overlay {
        padding: 12px;
    }

    .pl-modal {
        max-height: calc(100vh - 24px);
        padding: 20px 16px 16px;
    }

    .pl-modal-title {
        font-size: 21px;
    }

    .pl-modal-lyrics {
        max-height: calc(100vh - 165px);
        padding: 14px;
        font-size: 14px;
    }

    .pl-top20-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px 18px;
    }

    .pl-top20-heading h2 {
        font-size: 29px;
    }

    .pl-top20-header .pl-primary-button {
        width: 100%;
    }

    .pl-top20-row {
        grid-template-columns: 38px 38px minmax(0, 1fr);
        gap: 9px;
        padding: 12px 10px;
    }

    .pl-top20-rank {
        font-size: 23px;
    }

    .pl-top20-row[data-top-rank="1"] .pl-top20-rank,
    .pl-top20-row[data-top-rank="2"] .pl-top20-rank,
    .pl-top20-row[data-top-rank="3"] .pl-top20-rank {
        font-size: 27px;
    }

    .pl-top20-play {
        width: 36px;
        height: 36px;
    }

    .pl-top20-actions {
        grid-column: 3;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .pl-top20-info h3,
    .pl-top20-writers {
        white-space: normal;
    }
}

/* =========================================================
   16. Reduced-motion accessibility
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
