@use '@/styles/base';

.cell {
    position: relative;
    display: block;
    align-content: center;
    height: 100%;
    padding: 0 base.$gap-sm;
    font-size: base.$font-size-md;

    @include base.text-ellipsis;
}

.remove {
    justify-self: center;
}

.skeleton {
    display: flex;
    align-content: center;
    width: 100%;
    height: 100%;
    padding: 0 base.$gap-sm;
    font-size: base.$font-size-md;

    @include base.text-ellipsis;
}

.clamp-container {
    display: flex;
}

.centered {
    align-items: center;
    justify-content: center;
}

.skeleton-image-container {
    display: block;
    width: auto;
    height: 100%;
    max-height: 95% !important;
    aspect-ratio: 1 / 1;
    margin: auto;
    line-height: 0;
    object-fit: contain;
    border-radius: base.$border-radius-md;
}

.skeleton-image {
    display: block;
    width: auto;
    height: 100%;
}

.image-cell {
    position: relative;
    display: block;
    align-content: center;
    height: 100%;
    max-height: 95% !important;
    padding: 0 base.$gap-sm;
}

.image {
    display: block;
    width: auto !important;
    aspect-ratio: 1 / 1;
    margin: auto;
    object-fit: cover;
    border-radius: base.$border-radius-md;
}

.name {
    display: -webkit-box;
    text-overflow: none;
    white-space: normal;
}

.standalone-combined {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: base.$gap-sm;
    align-items: center;
    width: 100%;
    padding: 0 base.$gap-sm;
}

.standalone-combined .inner {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.standalone-combined .inner > div {
    @include base.text-ellipsis;
}

.playing {
    color: var(--global-primary-color);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 60%;
    border-radius: 50%;
    opacity: 0.5;
    transform: translate(-50%, -50%);

    &:hover {
        opacity: 1;
    }

    &:active {
        transform: translate(-50%, -50%) scale(0.9);
    }
}
