.zldi-dynamic-island {
    position: fixed;
    top: var(--zldi-top, 80px);
    left: 50%;
    width: auto;
    max-width: min(80vw, 420px);
    min-width: 190px;
    height: 40px;
    padding: 0 20px 0 42px;
    color: #fff;
    background: #000;
    border-radius: 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
    transform: translateX(-50%) scale(0);
    transform-origin: center;
    transition: transform .4s ease-in-out, height .6s ease-in-out, border-radius .6s ease-in-out, box-shadow .5s ease-in-out, opacity .5s ease-in-out;
    z-index: var(--zldi-z-index, 1000);
}

.zldi-dynamic-island.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.zldi-dynamic-island.inactive {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

.zldi-dynamic-island:hover {
    height: 60px;
    border-radius: 50px;
}

.zldi-icon {
    position: absolute;
    left: 10px;
    width: 22px;
    height: 22px;
    object-fit: cover;
    transition: height .8s ease-in-out, width .8s ease-in-out, filter .8s ease-in-out;
}

.zldi-dynamic-island:hover .zldi-icon {
    width: 30px;
    height: 30px;
}

.zldi-island-content {
    width: 100%;
    flex-grow: 1;
    opacity: 0;
    text-align: right;
    font-weight: 700;
    transition: opacity .9s ease-in-out, filter .8s ease-in-out;
}

.zldi-dynamic-island.active .zldi-island-content {
    opacity: 1;
}

.zldi-bars {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    line-height: 50px;
    margin: 0;
}

.zldi-bars p {
    max-width: 285px;
    margin: 0;
    padding-right: 10px;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    line-height: 50px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zldi-bar {
    width: 2px;
    height: 13px;
    flex: 0 0 2px;
    background-color: #18a558;
    animation: zldi-bounce 1s infinite ease-in-out alternate;
}

.zldi-bar:nth-of-type(2) {
    animation-duration: .9s;
}

.zldi-bar:nth-of-type(3) {
    animation-duration: .8s;
}

.zldi-bar:nth-of-type(4) {
    animation-duration: .7s;
}

.zldi-bar:nth-of-type(5) {
    animation-duration: .6s;
}

.zldi-bar:nth-of-type(6) {
    animation-duration: .9s;
}

.zldi-bar:nth-of-type(7) {
    animation-duration: .7s;
}

@keyframes zldi-bounce {
    0% {
        background-color: #18a558;
        transform: scaleY(.3);
    }

    50% {
        background-color: #ff9800;
        transform: scaleY(1);
    }

    100% {
        background-color: #18a558;
        transform: scaleY(.3);
    }
}

@media (max-width: 480px) {
    .zldi-dynamic-island {
        max-width: calc(100vw - 24px);
        min-width: 168px;
        padding-right: 14px;
    }

    .zldi-bars p {
        max-width: 205px;
    }
}
