/* ENERGY 106 — CONTROL CHART TOP 30 V2 */
/* Public page only. Existing homepage chart unaffected. */

.vibe-site .ec30,
.vibe-site .ec30 * {
    box-sizing: border-box;
}

.vibe-site .ec30 {
    --ec-pink: #ed1584;
    --ec-yellow: #ecdd0e;
    --ec-border: var(--vibe-border-medium, #522761);
    --ec-muted: var(--vibe-text-secondary, #baa2c7);
    --ec-card: var(--vibe-bg-card, #2d083d);

    display: block;
    width: 100%;
    min-width: 0;
    color: #fff;
    container-type: inline-size;
}

.vibe-site .ec30 h1,
.vibe-site .ec30 h2,
.vibe-site .ec30 h3,
.vibe-site .ec30 p {
    margin-top: 0;
}

.vibe-site .ec30-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
    margin: 0 0 20px;
}

.vibe-site .ec30-header__copy {
    min-width: 0;
    padding-left: 15px;
    border-left: 5px solid var(--ec-pink);
}

.vibe-site .ec30-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--ec-pink);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .07em;
}

body.vibe-site .ec30-header h1 {
    margin: 0 !important;
    color: #fff !important;
    font-family: var(--vibe-font-heading, "Rubik", sans-serif);
    font-size: 32px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: -.6px !important;
    text-transform: uppercase !important;
}

/* Match standard Vibe mobile page-heading size. */
@media (max-width: 760px) {
    body.vibe-site .ec30-header h1 {
        font-size: 27px !important;
    }
}

.vibe-site .ec30-header p {
    margin: 9px 0 0;
    color: var(--ec-muted);
    font-size: 13px;
}

.vibe-site .ec30-week {
    display: inline-flex;
    align-items: center;
    min-height: 39px;
    padding: 10px 13px;
    border: 1px solid var(--ec-border);
    border-radius: 4px;
    color: var(--ec-muted);
    font-size: 11px;
    font-weight: 850;
}

/* ACTUAL CHART STATISTICS */

.vibe-site .ec30-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    margin-bottom: 17px;
    border: 1px solid var(--ec-border);
    border-radius: 5px;
    background: var(--ec-card);
}

.vibe-site .ec30-stat {
    min-width: 0;
    padding: 18px 21px;
    border-right: 1px solid var(--ec-border);
}

.vibe-site .ec30-stat:last-child {
    border-right: 0;
}

.vibe-site .ec30-stat > span {
    display: block;
    color: var(--ec-muted);
    font-size: 11px;
    font-weight: 850;
}

.vibe-site .ec30-stat strong {
    display: block;
    margin: 7px 0 4px;
    color: #fff;
    font-size: 28px;
    font-weight: 950;
    line-height: 1.1;
}

.vibe-site .ec30-stat small {
    display: block;
    color: var(--ec-muted);
    font-size: 11px;
    line-height: 1.35;
}

/* NUMBER ONE FEATURE */

.vibe-site .ec30-leader {
    display: grid;
    grid-template-columns: clamp(190px, 21%, 230px) minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ec-border);
    border-radius: 5px;
    background: var(--ec-card);
}

.vibe-site .ec30-leader__media {
    position: relative;
    min-width: 0;
    min-height: 205px;
    background: #18031f;
}

.vibe-site .ec30-leader__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
}

.vibe-site .ec30-noart {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 80px;
    background: #210631;
    color: var(--ec-pink);
    font-size: 42px;
}

.vibe-site .ec30-leader__corner {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 9px 12px;
    border-radius: 3px;
    background: #ecdd0e;
    color: #230637;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .04em;
}

.vibe-site .ec30-leader__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(15px, 1.8vw, 22px);
}

.vibe-site .ec30-leader__label {
    margin-bottom: 7px;
    color: var(--ec-yellow);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .06em;
}

.vibe-site .ec30-leader__label > span {
    margin-right: 7px;
}

.vibe-site .ec30-leader h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 950;
    line-height: 1.03;
    overflow-wrap: anywhere;
}

.vibe-site .ec30-leader__artist {
    margin: 8px 0 0;
    color: var(--ec-muted);
    font-size: 16px;
}

.vibe-site .ec30-leader__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 10px;
}

.vibe-site .ec30-leader__meta > span {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 75px;
    padding: 0 15px;
    border-right: 1px solid var(--ec-border);
    color: var(--ec-muted);
    font-size: 10px;
    font-weight: 800;
}

.vibe-site .ec30-leader__meta > span:first-child {
    padding-left: 0;
}

.vibe-site .ec30-leader__meta > span:last-child {
    border: 0;
}

.vibe-site .ec30-leader__meta b {
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.vibe-site .ec30-leader__bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
}

.vibe-site .ec30-votes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    font-weight: 850;
}

.vibe-site .ec30-votes__up,
.vibe-site .ec30-row__up {
    color: var(--ec-pink);
}

.vibe-site .ec30-votes__down,
.vibe-site .ec30-row__down {
    color: var(--ec-muted);
}


/* CONTROL CHART — MATCH EXISTING OUTLINED THUMB ICONS */

.vibe-site .ec30-votes__up,
.vibe-site .ec30-votes__down {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.vibe-site .ec30-votes svg {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vibe-site .ec30-votes__down svg {
    transform: rotate(180deg);
}

/* ACTUAL CHART MOVEMENT */

.vibe-site .ec30-movement {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 7px 10px;
    border: 1px solid var(--ec-border);
    border-radius: 4px;
    color: var(--ec-muted);
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.vibe-site .ec30-movement--up {
    border-color: #436f5c;
    color: #6fd69e;
}

.vibe-site .ec30-movement--down {
    border-color: #795368;
    color: #ee94bb;
}

.vibe-site .ec30-movement--new {
    border-color: var(--ec-pink);
    color: var(--ec-yellow);
}

/* TOP TWO REMAINING POSITIONS */

.vibe-site .ec30-section-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 950;
}

.vibe-site .ec30-podium,
.vibe-site .ec30-countdown {
    margin-top: 14px;
}

.vibe-site .ec30-podium__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.vibe-site .ec30-podium-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ec-border);
    border-radius: 5px;
    background: var(--ec-card);
}

.vibe-site .ec30-podium-card__art {
    position: relative;
    min-width: 0;
    min-height: 92px;
    background: #160321;
}

.vibe-site .ec30-podium-card__art img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vibe-site .ec30-podium-card__art > span {
    position: absolute;
    top: 7px;
    left: 7px;
    padding: 5px 9px;
    background: #ed1584;
    border-radius: 3px;
    color: #fff;
    font-size: 16px;
    font-weight: 950;
}

.vibe-site .ec30-podium-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px 11px;
}

.vibe-site .ec30-podium-card h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 1.4vw, 22px);
    font-weight: 950;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.vibe-site .ec30-podium-card p {
    margin: 6px 0 0;
    color: var(--ec-muted);
    font-size: 12px;
}

.vibe-site .ec30-podium-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.vibe-site .ec30-podium-card__votes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--ec-muted);
    font-size: 11px;
}

.vibe-site .ec30-podium-card__votes b {
    color: var(--ec-pink);
}

/* POSITIONS 4–30 */

.vibe-site .ec30-countdown__list {
    display: grid;
    gap: 8px;
}

.vibe-site .ec30-row {
    display: grid;
    grid-template-columns:
        43px 70px
        minmax(0, 1fr)
        55px 113px;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 9px 15px;
    border: 1px solid var(--ec-border);
    border-radius: 5px;
    background: var(--ec-card);
}

.vibe-site .ec30-row__rank {
    color: #fff;
    font-size: 26px;
    font-weight: 950;
    text-align: center;
}

.vibe-site .ec30-row__art {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 3px;
    background: #190421;
}

.vibe-site .ec30-row__art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vibe-site .ec30-row__track {
    min-width: 0;
}

.vibe-site .ec30-row__track h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.vibe-site .ec30-row__track p {
    margin: 5px 0;
    color: var(--ec-muted);
    font-size: 12px;
}

.vibe-site .ec30-row__history {
    color: var(--ec-muted);
    font-size: 10px;
    line-height: 1.4;
}

.vibe-site .ec30-row__votes {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: flex-end;
    font-size: 11px;
    font-weight: 850;
}

.vibe-site .ec30-empty {
    padding: 35px;
    border: 1px solid var(--ec-border);
    border-radius: 5px;
    text-align: center;
}

.vibe-site .ec30-empty h2 {
    color: #fff;
    font-size: 24px;
}

.vibe-site .ec30-empty p {
    color: var(--ec-muted);
    font-size: 13px;
}

/* THURSDAY ON-AIR PROMOTION */

.vibe-site .ec30-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 23px;
    padding: 22px;
    border: 1px solid var(--ec-border);
    border-radius: 5px;
    background: var(--ec-card);
}

.vibe-site .ec30-promo__copy > span {
    display: block;
    margin-bottom: 7px;
    color: var(--ec-pink);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .07em;
}

.vibe-site .ec30-promo__copy strong {
    display: block;
    color: #fff;
    font-size: 17px;
    font-weight: 950;
}

.vibe-site .ec30-promo__copy p {
    margin: 7px 0 0;
    color: var(--ec-muted);
    font-size: 12px;
}

.vibe-site .ec30-promo > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 10px;
    min-height: 37px;
    margin-top: 5px;
    padding: 0 15px;
    border: 1px solid #ed1584;
    border-radius: 3px;
    background: #ed1584;
    color: #fff;
    font: 900 12px/1 var(--rl-heading-font);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.vibe-site .ec30-promo > a:hover {
    background: var(--vibe-button-bg-hover);
    border-color: var(--vibe-button-bg-hover);
    color: #fff;
}



/* TABLET */
/* ENERGY 106 CONTROL CHART — RESPONSIVE V3 */
/* Existing desktop styling remains unchanged. */

@container (max-width: 780px) {

    /* Header and chart week */

    .vibe-site .ec30-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 17px;
    }

    .vibe-site .ec30-week {
        max-width: 100%;
        min-height: 32px;
        padding: 7px 10px;
        font-size: 10px;
        white-space: normal;
    }

    /* Number One — balanced two-column feature */

    .vibe-site .ec30-leader {
        grid-template-columns: 145px minmax(0, 1fr);
        min-width: 0;
    }

    .vibe-site .ec30-leader__media {
        min-height: 0;
        max-height: none;
    }

    .vibe-site .ec30-leader__media img {
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        object-fit: cover;
        object-position: center;
    }

    .vibe-site .ec30-leader__content {
        min-width: 0;
        padding: 17px;
    }

    .vibe-site .ec30-leader h2 {
        font-size: 22px;
        line-height: 1.1;
        overflow-wrap: anywhere;
    }

    .vibe-site .ec30-leader__artist {
        font-size: 13px;
    }

    .vibe-site .ec30-leader__meta {
        margin-top: 13px;
    }

    .vibe-site .ec30-leader__bottom {
        margin-top: 8px;
        padding-top: 12px;
    }

    /* Top Two — stack cards, not their contents */

    .vibe-site .ec30-podium__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }

    .vibe-site .ec30-podium-card {
        grid-template-columns: 100px minmax(0, 1fr);
        min-width: 0;
    }

    .vibe-site .ec30-podium-card__art {
        min-height: 100px;
    }

    .vibe-site .ec30-podium-card__body {
        min-width: 0;
        padding: 13px;
    }

    /* Countdown — rank / artwork / song,
       followed by movement and votes */

    .vibe-site .ec30-row {
        grid-template-columns:
            35px 65px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        gap: 8px 12px;
        min-width: 0;
        padding: 11px;
    }

    .vibe-site .ec30-row__rank {
        grid-column: 1;
        grid-row: 1 / 3;
        font-size: 22px;
        text-align: center;
    }

    .vibe-site .ec30-row__art {
        grid-column: 2;
        grid-row: 1;
        width: 65px;
        height: 65px;
    }

    .vibe-site .ec30-row__track {
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
    }

    .vibe-site .ec30-row > .ec30-movement {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }

    .vibe-site .ec30-row__votes {
        grid-column: 3;
        grid-row: 2;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px 13px;
        font-size: 11px;
    }

    /* Thursday promotion */

    .vibe-site .ec30-promo {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px;
    }

    .vibe-site .ec30-promo > a {
        width: 100%;
        min-height: 39px;
        padding: 0 8px;
        font-size: 11px;
    }
}

/* PHONE */

@container (max-width: 560px) {

    /* Statistics — two across, climber below */

    .vibe-site .ec30-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        margin-bottom: 14px;
    }

    .vibe-site .ec30-stat {
        padding: 14px 12px;
    }

    .vibe-site .ec30-stat:nth-child(2) {
        border-right: 0;
    }

    .vibe-site .ec30-stat:nth-child(3) {
        grid-column: 1 / -1;
        border-top: 1px solid var(--ec-border);
    }

    .vibe-site .ec30-stat strong {
        font-size: 24px;
    }

    .vibe-site .ec30-stat > span {
        font-size: 10px;
    }

    .vibe-site .ec30-stat small {
        font-size: 10px;
    }

    /* Compact Number One */

    .vibe-site .ec30-leader {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .vibe-site .ec30-leader__media {
        min-height: 0;
    }

    .vibe-site .ec30-leader__corner {
        top: 8px;
        left: 7px;
        max-width: calc(100% - 14px);
        padding: 6px;
        font-size: 9px;
        line-height: 1.1;
        text-align: center;
        white-space: normal;
    }

    .vibe-site .ec30-leader__content {
        padding: 12px;
    }

    .vibe-site .ec30-leader__label {
        margin-bottom: 7px;
        font-size: 9px;
        line-height: 1.3;
    }

    .vibe-site .ec30-leader h2 {
        font-size: 19px;
        line-height: 1.12;
    }

    .vibe-site .ec30-leader__artist {
        margin-top: 5px;
        font-size: 12px;
    }

    .vibe-site .ec30-leader__meta {
        display: grid;
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        margin-top: 11px;
    }

    .vibe-site .ec30-leader__meta > span {
        min-width: 0;
        padding: 0 5px;
        font-size: 8px;
        line-height: 1.2;
    }

    .vibe-site .ec30-leader__meta > span:first-child {
        padding-left: 0;
    }

    .vibe-site .ec30-leader__meta b {
        font-size: 13px;
    }

    .vibe-site .ec30-leader__bottom {
        gap: 8px;
        padding-top: 10px;
    }

    .vibe-site .ec30-votes {
        gap: 8px;
        font-size: 10px;
    }

    .vibe-site .ec30-votes__up,
    .vibe-site .ec30-votes__down {
        gap: 4px;
    }

    .vibe-site .ec30-votes svg {
        width: 15px;
        height: 15px;
        flex-basis: 15px;
    }

    .vibe-site .ec30-movement {
        min-width: 38px;
        padding: 5px 7px;
        font-size: 10px;
    }

    /* Top Two */

    .vibe-site .ec30-section-title {
        margin-bottom: 9px;
        font-size: 19px;
    }

    .vibe-site .ec30-podium,
    .vibe-site .ec30-countdown {
        margin-top: 17px;
    }

    .vibe-site .ec30-podium-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .vibe-site .ec30-podium-card__art {
        min-height: 88px;
    }

    .vibe-site .ec30-podium-card__art > span {
        top: 6px;
        left: 6px;
        padding: 5px 7px;
        font-size: 12px;
    }

    .vibe-site .ec30-podium-card__body {
        padding: 11px;
    }

    .vibe-site .ec30-podium-card h3 {
        font-size: 15px;
    }

    .vibe-site .ec30-podium-card p {
        font-size: 11px;
    }

    .vibe-site .ec30-podium-card__footer {
        padding-top: 8px;
    }

    /* Countdown */

    .vibe-site .ec30-row {
        grid-template-columns:
            29px 57px minmax(0, 1fr);
        gap: 7px 9px;
        padding: 10px 8px;
    }

    .vibe-site .ec30-row__rank {
        font-size: 19px;
    }

    .vibe-site .ec30-row__art {
        width: 57px;
        height: 57px;
    }

    .vibe-site .ec30-row__track h3 {
        font-size: 13px;
        line-height: 1.2;
    }

    .vibe-site .ec30-row__track p {
        font-size: 11px;
    }

    .vibe-site .ec30-row__history {
        font-size: 9px;
    }

    .vibe-site .ec30-row__votes {
        gap: 6px 10px;
        font-size: 10px;
    }

    /* Footer */

    .vibe-site .ec30-promo {
        padding: 15px;
    }

    .vibe-site .ec30-promo__copy strong {
        font-size: 15px;
        line-height: 1.25;
    }

    .vibe-site .ec30-promo__copy p {
        font-size: 11px;
        line-height: 1.5;
    }
}

/* SMALL PHONES */

@container (max-width: 380px) {

    .vibe-site .ec30-leader {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .vibe-site .ec30-leader__content {
        padding: 10px;
    }

    .vibe-site .ec30-leader h2 {
        font-size: 17px;
    }

    .vibe-site .ec30-leader__label {
        font-size: 8px;
    }

    .vibe-site .ec30-podium-card {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .vibe-site .ec30-podium-card__art {
        min-height: 76px;
    }

    .vibe-site .ec30-podium-card h3 {
        font-size: 14px;
    }

    .vibe-site .ec30-row {
        grid-template-columns:
            25px 50px minmax(0, 1fr);
        gap: 7px;
    }

    .vibe-site .ec30-row__art {
        width: 50px;
        height: 50px;
    }

    .vibe-site .ec30-row__rank {
        font-size: 17px;
    }

    .vibe-site .ec30-row__history {
        display: none;
    }

    .vibe-site .ec30-row__votes {
        font-size: 9px;
    }
}
