/* Game Icon Preview Component Styles */

.game-icon-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 35 / 21;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease-in-out;
}

.game-icon-preview:hover {
    border-color: var(--highlight-color);
}

.game-icon-preview .game-thumbnail,
.game-icon-preview .game-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-icon-preview .game-thumbnail {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.game-icon-preview .game-video {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.game-icon-preview .game-video.active {
    opacity: 1;
    pointer-events: auto;
}
