/* ── Image Actions (Below Image) ── */
.img-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);

    /* Hidden by default */
    max-height: 0;
    opacity: 0;
    padding: 0 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Show when card is tapped/clicked */
.img-card.tapped .img-actions {
    max-height: 80px;
    opacity: 1;
    padding: 12px 16px;
    pointer-events: auto;
}

.action-btn {
    flex: 1;
    padding: 12px 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, var(--element), rgba(255, 255, 255, 0.03));
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.3),
        -1px -1px 4px rgba(255, 255, 255, 0.05);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.4),
        -1px -1px 4px rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    filter: brightness(1.1);
}

.action-btn:active {
    transform: scale(0.96);
}

.action-btn.dl {
    background: #252525;
    border-color: rgba(255, 255, 255, 0.1);
}

.action-btn.sv {
    background: rgba(255, 215, 0, 0.08);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.2);
}

.action-btn.sh {
    background: rgba(0, 122, 255, 0.08);
    color: #4facfe;
    border-color: rgba(0, 122, 255, 0.2);
}

/* Ensure image respects width */
.img-card img.loaded {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
}