/* 游玩历史页：沿用 game-list 网格，仅补充少量差异样式 */

.history-list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 16px;
}

.history-list-subtitle {
    flex: 1 1 100%;
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-muted, #666);
    line-height: 1.5;
}

.history-list-actions {
    margin-left: auto;
}

.history-clear-btn {
    border: 1px solid #fecaca;
    background: #fff;
    color: #dc2626;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}

.history-clear-btn:hover {
    background: #fef2f2;
}

.history-list-item {
    position: relative;
}

.history-list-item .game-list-link {
    display: block;
}

.history-list-time {
    display: block;
    margin: 2px 1px 0;
    font-size: 12px;
    color: var(--text-muted, #888);
}

.history-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: #eee;
    color: #aaa;
    font-size: 2rem;
}

.history-item-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #9ca3af;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.history-list-item:hover .history-item-remove,
.history-item-remove:focus {
    opacity: 1;
}

.history-item-remove:hover {
    background: #fef2f2;
    color: #dc2626;
}

#history-empty .history-empty-hint {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-muted, #888);
}

.history-empty-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--theme-color, #f97316);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.history-empty-btn:hover {
    color: #fff;
    opacity: 0.92;
}

@media (max-width: 900px) {
    .history-item-remove {
        opacity: 1;
    }
}
