/*
 * ENERGY 106 — HOMEPAGE CONTROL CHART
 * Vibe theme — compact full-bleed chart cards
 * Results only: voting takes place elsewhere.
 */

.vibe-site .energy-home-chart,
.vibe-site .energy-home-chart *,
.vibe-site .energy-home-chart *::before,
.vibe-site .energy-home-chart *::after {
    box-sizing: border-box;
}

.vibe-site .energy-home-chart {
    width: 100%;
    min-width: 0;
    margin: 26px 0 30px;
    color: #fff;
    background: transparent;
}

/* HEADER — PRESERVE SHARED VIBE HEADING */

.vibe-site .energy-home-chart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    padding: 0;
}

.vibe-site .energy-home-chart__heading {
    position: relative;
    min-width: 0;
    padding-left: 19px;
}

.vibe-site .energy-home-chart__heading::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 1px;
    left: 0;
    width: 5px;
    background: var(--vibe-button-bg, #ed1584);
}

/* SIX-COLUMN CHART LAYOUT */

.vibe-site .energy-home-chart__grid {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr))
        minmax(0, 1.24fr);
    gap: 10px;
    align-items: stretch;
    max-width: 1460px;
    margin-inline: auto;
}

/* TRACK CARDS — NO INNER ARTWORK PADDING */

.vibe-site .energy-home-chart__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    background: var(--vibe-bg-card, #2d083d);
    border: 1px solid var(--vibe-border-medium, #522761);
    border-radius: 5px;
    box-shadow: none;
}

.vibe-site .energy-home-chart__card.is-number-one {
    border: 1px solid var(--vibe-border-medium, #522761);
}

/* ARTWORK FILLS THE CARD EDGE TO EDGE */

.vibe-site .energy-home-chart__media {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    overflow: hidden;
}

.vibe-site .energy-home-chart__art {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #311245;
}

.vibe-site .energy-home-chart__art img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
}

.vibe-site .energy-home-chart__art-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #b08ac2;
    font-size: 42px;
}

/* RANK BADGES OVER THE ARTWORK */

.vibe-site .energy-home-chart__rank {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: var(--vibe-button-bg, #ed1584);
    color: #ffffff;
    font-family: var(--vibe-font-heading, "Rubik", sans-serif);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    box-shadow: none;
}

.vibe-site .energy-home-chart__card.is-number-one
.energy-home-chart__rank {
    background: #ffe100;
    border: 1px solid var(--vibe-border-medium, #522761);
    border-radius: 4px;
    color: #23072c;
}

/* COMPACT SONG INFORMATION */

.vibe-site .energy-home-chart__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    gap: 5px;
    min-width: 0;
    margin: 0;
    padding: 11px 11px 13px;
    text-align: left;
}

.vibe-site .energy-home-chart__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    margin: 0;
    color: #fff;
    font-family: var(--vibe-font-heading, "Rubik", sans-serif);
    font-size: 14px;
    line-height: 1.22;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.vibe-site .energy-home-chart__artist {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--vibe-text-secondary, #baa2c7);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
}

/* YOU CALL THE SHOTS — SIXTH CARD */

.vibe-site .energy-home-chart__aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 27px 16px 16px;
    background: var(--vibe-bg-card, #2d083d);
    border: 1px solid var(--vibe-border-medium, #522761);
    border-radius: 5px;
    box-shadow: none;
}

.vibe-site .energy-home-chart__aside::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 16px;
    width: 36px;
    height: 3px;
    background: var(--vibe-button-bg, #ed1584);
}

.vibe-site .energy-home-chart__aside-title {
    margin: 0;
    color: #fff;
    font-family: var(--vibe-font-heading, "Rubik", sans-serif);
    font-size: 20px;
    line-height: 1.06;
    font-weight: 900;
    text-transform: uppercase;
}

.vibe-site .energy-home-chart__aside-copy {
    margin: 13px 0 0;
    color: var(--vibe-text-secondary, #baa2c7);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
}

/* SCOPED BUTTON — DOES NOT ALTER OTHER VIBE CTAS */

.vibe-site .energy-home-chart__aside
.vibe-today-schedule__view-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 0 12px;
    background: var(--vibe-button-bg, #ed1584);
    border: 1px solid var(--vibe-button-bg, #ed1584);
    border-radius: 4px;
    color: #fff;
    font-family: var(--vibe-font-heading, "Rubik", sans-serif);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.vibe-site .energy-home-chart__aside
.vibe-today-schedule__view-all:hover,
.vibe-site .energy-home-chart__aside
.vibe-today-schedule__view-all:focus-visible {
    background: var(--vibe-button-bg-hover, #d71379);
    border-color: var(--vibe-button-bg-hover, #d71379);
    color: #fff;
}

.vibe-site .energy-home-chart__aside
.vibe-today-schedule__view-all span {
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
}

/* TABLET — THREE CARDS PER ROW */

@media (max-width: 1399px) {
    .vibe-site .energy-home-chart__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* SMALL TABLET — TWO CARDS PER ROW */

@media (max-width: 991px) {
    .vibe-site .energy-home-chart__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vibe-site .energy-home-chart__aside {
    }
}

/* MOBILE — COMPACT TWO-COLUMN CHART */

@media (max-width: 680px) {
    .vibe-site .energy-home-chart__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .vibe-site .energy-home-chart__grid {
        gap: 9px;
    }

    .vibe-site .energy-home-chart__rank {
        top: 8px;
        left: 8px;
        width: 30px;
        min-width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .vibe-site .energy-home-chart__details {
        padding: 10px 9px 12px;
    }

    .vibe-site .energy-home-chart__title {
        font-size: 13px;
    }

    .vibe-site .energy-home-chart__artist {
        font-size: 11px;
    }

    .vibe-site .energy-home-chart__aside {
        padding: 26px 14px 14px;
    }

    .vibe-site .energy-home-chart__aside::before {
        left: 14px;
    }
}

/* ENERGY 106 — CONTROL CHART MOBILE LABELS V1 */
@media (max-width: 700px) {
    .vibe-site .energy-home-chart__heading .energy-home-chart-heading--desktop,
    .vibe-site .energy-home-chart__header .vibe-today-schedule__view-all .energy-home-chart-link--desktop {
        display: none !important;
    }

    .vibe-site .energy-home-chart__heading .energy-home-chart-heading--mobile,
    .vibe-site .energy-home-chart__header .vibe-today-schedule__view-all .energy-home-chart-link--mobile {
        display: inline !important;
    }
}
/* END ENERGY 106 — CONTROL CHART MOBILE LABELS V1 */

/* ENERGY 106 — CHART SHARED MOBILE HEADER V2 */
@media screen and (max-width: 700px) {

    /* Shared homepage header arrangement */
    body.vibe-site .vibe-homepage
    .energy-home-chart .energy-home-chart__header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 9px !important;
        margin: 0 0 12px !important;
    }

    body.vibe-site .vibe-homepage
    .energy-home-chart .energy-home-chart__heading {
        flex: 0 1 auto !important;
        min-width: 0 !important;
    }

    body.vibe-site .vibe-homepage
    .energy-home-chart #energy-home-chart-heading {
        white-space: nowrap;
    }

    /* Layout only: typography and design are inherited */
    body.vibe-site .vibe-homepage
    .energy-home-chart .energy-home-chart__header
    > a.vibe-today-schedule__view-all {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        white-space: nowrap;
    }
}
/* END ENERGY 106 — CHART SHARED MOBILE HEADER V2 */

