.container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-template-columns: minmax(0, 1fr);
    gap: var(--theme-spacing-sm);
    width: 100%;
    height: 100%;
}

.container.compact {
    opacity: 0;
    transform: scale(0.8);
    transition:
        opacity 0.2s ease-in-out,
        transform 0.2s ease-in-out;
}

.container.visible.compact {
    opacity: 1;
    transform: scale(1);
}

.top-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.secondary-controls {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    gap: var(--theme-spacing-xs);
    justify-content: flex-end;
    width: 100%;
    height: 15%;
    margin-right: var(--theme-spacing-sm);
    margin-bottom: var(--theme-spacing-lg);
}

.play-button {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(var(--play-button-scale, 1));

    &:hover {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }

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

.primary {
    left: 50%;
    width: 25%;
    height: 25%;

    svg {
        fill: rgb(0 0 0);
    }
}

.secondary {
    width: 15%;
    height: 15%;
}

.left {
    left: 25%;
}

.right {
    left: 75%;
}

.secondary-button {
    all: unset;
    position: absolute;
    padding: var(--theme-spacing-md);
    border-radius: var(--theme-radius-md);
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
    transition: scale 0.2s linear;

    @mixin light {
        svg {
            stroke: var(--theme-colors-background);
        }
    }

    &:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    &:active {
        opacity: 1;
        transform: scale(0.9);
    }
}

.user-data {
    position: absolute;
    top: 0;
    right: 0;
}

.favorite {
    svg {
        stroke: white;
        stroke-width: 1.5px;
    }
}

.rating {
    position: absolute;
    top: 0;
    right: 0;
    padding: var(--theme-spacing-md);

    svg {
        stroke: white;
        stroke-width: 1.5px;
    }
}

.secondary-button.options {
    right: 0;
    bottom: 0;
}

.secondary-button.expand {
    bottom: 0;
    left: 0;
}
