.games-widget {
    font-family: inherit;
}

.games-nav {
    padding: 6px 8px;
    background: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 4px 4px 0 0;
}

.games-nav select {
    font-size: 12px;
    padding: 3px 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    width: 100%;
}

.games-player-container {
    position: relative;
    background: #000;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.games-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(0,0,0,0.85);
}

.games-player-title {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.games-player-close {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
    opacity: 0.8;
    margin-left: 8px;
}

.games-player-close:hover {
    opacity: 1;
}

.games-player-frame {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.games-grid-full {
    grid-template-columns: repeat(3, 1fr);
    max-height: none;
}

.games-card {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    background: #f9f9f9;
    text-decoration: none;
    transition: box-shadow 0.15s, transform 0.15s;
    border: 1px solid #eee;
}

.games-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.games-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.games-card-title {
    padding: 5px 6px;
    font-size: 11px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.games-empty {
    color: #666;
    font-size: 13px;
    text-align: center;
    padding: 20px 10px;
}
