/* ENERGY 106 PLAYED V5 — CLEAN LAYOUT 5.1 */
/* Entire file rebuilt. Original functional HTML retained. */

.energy-profile-v3 .energy-played-v5 {
    --ep5-pink: #ed1584;
    --ep5-hover: #d71379;
    --ep5-panel: #250638;
    --ep5-border: #522761;
    --ep5-muted: #baa2c7;

    display: block;
    width: 100%;
    min-width: 0;
    margin: 16px 0 0;
    padding: 22px;
    border: 1px solid var(--ep5-border);
    border-radius: 4px;
    background: var(--ep5-panel);
    color: #fff;
    box-sizing: border-box;
    container-type: inline-size;
}

.energy-profile-v3 .energy-played-v5 *,
.energy-profile-v3 .energy-played-v5 *::before,
.energy-profile-v3 .energy-played-v5 *::after {
    box-sizing: border-box;
}

/* SINGLE TOP HEADER */

.energy-profile-v3 .energy-played-v5__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 23px;
    padding: 0;
    border: 0;
    background: transparent;
}

.energy-profile-v3 .energy-played-v5__header h2 {
    margin: 0;
    padding: 0 0 0 17px;
    border: 0;
    border-left: 5px solid #ed1584;
    color: #fff;
    font-family: var(--vibe-font-heading, "Rubik", sans-serif);
    font-weight: 900;
    font-size: 25px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0;
}

/* ENERGY-PLAYED-HOMEPAGE-TYPOGRAPHY-V1 */
/* Same desktop/mobile heading scale as Energy homepage. */

@media (max-width: 720px) {
    .energy-profile-v3 .energy-played-v5__header h2 {
        font-size: 19px;
    }
}


.energy-profile-v3 .energy-played-v5__header a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ed1584;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.energy-profile-v3 .energy-played-v5__header a:hover {
    color: #fff;
}

/* FORCE REFERENCE TWO-COLUMN LAYOUT */

.energy-profile-v3 .energy-played-v5
.energy-played-v5__body {
    display: grid !important;
    grid-template-columns:
        minmax(0, 33%) minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: start !important;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

/* LEFT COLUMN — EPISODE */

.energy-profile-v3 .energy-played-v5__episode {
    display: block !important;
    grid-column: 1;
    min-width: 0;
    margin: 0 !important;
    padding: 0 24px 0 0 !important;
    border: 0 !important;
    border-right: 1px solid var(--ep5-border) !important;
    background: transparent;
}

.energy-profile-v3 .energy-played-v5__art {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 14px;
}

.energy-profile-v3 .energy-played-v5__art a {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    background: #311245;
    text-decoration: none;
    color: #fff;
}

.energy-profile-v3 .energy-played-v5__art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.energy-profile-v3 .energy-played-v5__art a > span {
    display: grid;
    place-items: center;
    height: 100%;
    padding: 12px;
    font-weight: 900;
}

.energy-profile-v3 .energy-played-v5__badge {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 7px 12px;
    background: var(--ep5-pink);
    color: #fff;
    border-radius: 0 4px 0 4px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
}

.energy-profile-v3 .energy-played-v5__episode h3 {
    margin: 0 0 9px;
    color: #fff;
    font-family: var(--vibe-font-heading, "Rubik", sans-serif);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.energy-profile-v3 .energy-played-v5__episode h3 span {
    display: block;
}

.energy-profile-v3 .energy-played-v5__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 15px;
    color: var(--ep5-muted);
    font-size: 12px;
}

.energy-profile-v3
.energy-played-v5__meta span + span::before {
    content: "•";
    margin-right: 7px;
}

.energy-profile-v3 .energy-played-v5__listen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 47px;
    padding: 10px 12px;
    margin: 0;
    border: 0;
    border-radius: 4px;
    background: var(--ep5-pink);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.energy-profile-v3 .energy-played-v5__listen:hover {
    background: var(--ep5-hover);
    color: #fff;
}

.energy-profile-v3 .energy-played-v5__share {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin: 8px 0 0;
    padding: 9px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.energy-profile-v3 .energy-played-v5__share:hover {
    color: var(--ep5-pink);
}

.energy-profile-v3 .energy-played-v5__share svg {
    width: 19px;
    height: 19px;
}

.energy-profile-v3 .energy-played-v5__share-menu[hidden] {
    display: none !important;
}

.energy-profile-v3 .energy-played-v5__share-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 11px;
    background: #210836;
}

.energy-profile-v3 .energy-played-v5__share-menu a,
.energy-profile-v3 .energy-played-v5__share-menu button {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

/* RIGHT COLUMN — REAL SAMPLE PLAYLIST */

.energy-profile-v3 .energy-played-v5__playlist {
    display: block !important;
    grid-column: 2;
    min-width: 0 !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.energy-profile-v3 .energy-played-v5__playlist > h3 {
    margin: 0 0 12px;
    padding: 0;
    color: var(--ep5-muted);
    font-family: Rubik, Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .05em;
}

/* Existing data/vote/preview container */

.energy-profile-v3 .energy-played-v5
#recently-played-list {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* Track rows — compact, aligned, no nested cards */

.energy-profile-v3 .energy-played-v5
.rl-recently-played-track {
    display: grid !important;
    grid-template-columns:
        46px
        54px
        minmax(0, 1fr)
        98px
        42px !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 76px !important;
    margin: 0 !important;
    padding: 9px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ep5-border) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.energy-profile-v3 .energy-played-v5
.rl-recently-played-track:last-child {
    border-bottom: 0 !important;
}

.energy-profile-v3 .energy-played-v5
.rl-recently-played-track__time {
    grid-column: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-align: left !important;
}

.energy-profile-v3 .energy-played-v5
.rl-recently-played-track__artwork {
    grid-column: 2 !important;
    width: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 4px !important;
}

.energy-profile-v3 .energy-played-v5
.rl-recently-played-track__artwork img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.energy-profile-v3 .energy-played-v5
.rl-recently-played-track__copy {
    grid-column: 3 !important;
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
}

.energy-profile-v3 .energy-played-v5
.rl-recently-played-track__copy strong {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
}

.energy-profile-v3 .energy-played-v5
.rl-recently-played-track__copy > span {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: var(--ep5-muted) !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

/* Original voting engine, restyled transparently */

.energy-profile-v3 .energy-played-v5
.rl-recently-played-track__actions {
    display: contents !important;
}

.energy-profile-v3 .energy-played-v5
.rl-vote-bar {
    grid-column: 4 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.energy-profile-v3 .energy-played-v5
.rl-song-vote-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 34px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ep5-muted) !important;
    font-size: 11px !important;
    line-height: 1 !important;
    cursor: pointer;
}

.energy-profile-v3 .energy-played-v5
.rl-song-vote-button svg {
    display: inline-block !important;
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 19px !important;
    fill: none !important;
    stroke: currentColor !important;
}

.energy-profile-v3 .energy-played-v5
.rl-song-vote-button:hover,
.energy-profile-v3 .energy-played-v5
.rl-song-vote-button.is-active,
.energy-profile-v3 .energy-played-v5
.rl-song-vote-button.voted {
    background: transparent !important;
    color: var(--ep5-pink) !important;
}

/* Original preview player — circular button */

.energy-profile-v3 .energy-played-v5
.rl-recently-played-track__preview {
    grid-column: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: center !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid var(--ep5-pink) !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ep5-pink) !important;
    font-size: 0 !important;
    overflow: hidden !important;
}

.energy-profile-v3 .energy-played-v5
.rl-recently-played-track__preview svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    margin: auto !important;
}

.energy-profile-v3 .energy-played-v5
.rl-recently-played-track__preview:hover,
.energy-profile-v3 .energy-played-v5
.rl-recently-played-track__preview.is-playing {
    border-color: var(--ep5-pink) !important;
    background: rgba(237,21,132,.12) !important;
    color: var(--ep5-pink) !important;
}

/* RESPONSIVE TO PANEL WIDTH, NOT THE SITE SIDEBAR */

@container (max-width: 780px) {
    .energy-profile-v3 .energy-played-v5
    .energy-played-v5__body {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px !important;
    }

    .energy-profile-v3 .energy-played-v5__episode {
        grid-column: 1;
        border-right: 0 !important;
        border-bottom: 1px solid #522761 !important;
        padding: 0 0 20px !important;
    }

    .energy-profile-v3 .energy-played-v5__art {
        max-width: 350px;
    }

    .energy-profile-v3 .energy-played-v5__playlist {
        grid-column: 1;
    }
}

@container (max-width: 480px) {
    .energy-profile-v3 .energy-played-v5
    .rl-recently-played-track {
        grid-template-columns:
            37px 43px minmax(0, 1fr) 69px 35px !important;
        gap: 5px !important;
    }

    .energy-profile-v3 .energy-played-v5
    .rl-recently-played-track__artwork {
        width: 40px !important;
        height: 40px !important;
    }

    .energy-profile-v3 .energy-played-v5
    .rl-song-vote-button svg {
        width: 14px !important;
        height: 14px !important;
        flex-basis: 14px !important;
    }

    .energy-profile-v3 .energy-played-v5
    .rl-recently-played-track__preview {
        width: 33px !important;
        min-width: 33px !important;
        height: 33px !important;
        min-height: 33px !important;
    }
}

@media (max-width: 600px) {
    .energy-profile-v3 .energy-played-v5 {
        padding: 14px;
    }
}

/* EXISTING CMS FEATURES BELOW PLAYED PANEL */

.energy-profile-v3 .energy-played-v5-features {
    margin-top: 16px;
    padding: 19px;
    border: 1px solid #522761;
    border-radius: 4px;
    background: #250638;
}

.energy-profile-v3 .energy-played-v5-features h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 21px;
    font-weight: 900;
}

.energy-profile-v3
.energy-played-v5-features__item {
    padding: 12px 0;
    border-bottom: 1px solid #522761;
}

.energy-profile-v3
.energy-played-v5-features__item strong {
    color: #fff;
}

.energy-profile-v3
.energy-played-v5-features__item p {
    margin: 4px 0 0;
    color: #baa2c7;
}
